Method and device for managing embedded device, wearable device and storage medium

By creating business domain services and managing socket channels in embedded devices, the problem of low response efficiency between embedded devices and multiple smart terminals is solved, achieving efficient communication management and business data response.

CN117499488BActive Publication Date: 2026-11-24GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311431387.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2026-11-24
Estimated Expiration
2043-10-31

AI Technical Summary

Technical Problem

In business response scenarios involving embedded devices and multiple smart terminals, existing technologies have poor response efficiency under high-concurrency application scenarios and cannot effectively manage the connections between multiple smart terminals and embedded devices.

Method used

By creating business domain services for multiple business modules in the embedded device, maintaining the communication connection between the device and the client terminal, sending and receiving business data according to the device identifier, and managing it using socket channels.

Benefits of technology

It improves the efficiency of business data response between embedded devices and multiple smart terminals, reduces the coupling of business modules, and improves the efficiency of device communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117499488B_ABST
    Figure CN117499488B_ABST
Patent Text Reader

Abstract

This application discloses a management method, apparatus, wearable device, and computer storage medium for embedded devices, relating to the field of communication network management technology. The method includes: creating corresponding service domain services for multiple service modules in the embedded device; maintaining communication connections between the embedded device and each client terminal according to each service domain service, and maintaining device identifiers for each client terminal according to the communication connections; and transmitting and receiving service data through the socket channels corresponding to the service domain services according to the device identifiers, so that the embedded device can respond to the service requests from the client terminals. This application can effectively improve the efficiency of service data response between the embedded device and multiple smart terminals by enhancing device communication performance and rationally managing the connections between multiple smart terminals and the embedded device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication network management technology, and in particular to a management method, apparatus, wearable device, and computer storage medium for embedded devices. Background Technology

[0002] Currently, in business service response scenarios involving embedded devices and multiple smart terminals, it is often necessary for the embedded device to establish a direct communication connection with each smart terminal before business data responses can be successfully exchanged. However, with the increasing prevalence of high-concurrency data applications, the business response efficiency of embedded devices and multiple smart terminals is becoming increasingly worse. Summary of the Invention

[0003] The main objective of this application is to provide a management method, apparatus, wearable device, and computer storage medium for embedded devices, aiming to effectively improve the efficiency of business data response between embedded devices and multiple smart terminals by enhancing device communication performance and rationally managing the connection between multiple smart terminals and embedded devices.

[0004] To achieve the above objectives, this application provides a method for managing an embedded device, the method comprising the following steps:

[0005] Create corresponding business domain services for each of the multiple business modules in the embedded device;

[0006] The embedded device maintains the communication connection between each client terminal according to each of the service domains, and maintains the device identifier of each client terminal according to the communication connection.

[0007] Based on the device identifier, the embedded device sends and receives service data on the socket channel corresponding to the service domain service, so that the embedded device can respond to the client terminal's service.

[0008] Optionally, maintaining the communication connection includes: monitoring the status of the communication connection;

[0009] The step of maintaining the communication connection between the embedded device and the client terminal according to each of the service domains further includes:

[0010] Maintain at least one client set according to the respective transport protocol of each of the aforementioned business domain services;

[0011] Monitor the communication connection status between each of the multiple client terminals in the at least one client set and the embedded device.

[0012] Optionally, the method further includes:

[0013] Based on the service type corresponding to each of the service domain services, the transmission protocol corresponding to each of the service domain services is determined, wherein the transmission protocol includes: a first transmission protocol and a second transmission protocol.

[0014] Optionally, the method further includes:

[0015] Create corresponding socket channels for each of the aforementioned business domain services;

[0016] Establish a mapping table between each of the aforementioned business domain services and each of the aforementioned socket channels;

[0017] The services of each business domain are managed according to the aforementioned correspondence table.

[0018] Optionally, the step of establishing a mapping table between each of the service domain services and each of the socket channels includes:

[0019] The domain name of each of the aforementioned business domain services and the corresponding socket channel of each of the aforementioned business domain services are maintained in a preset overall domain list to establish a one-to-one correspondence table between each of the aforementioned business domain services and each of the aforementioned socket channels.

[0020] Optionally, managing business domain services includes: controlling the starting and stopping of business domain services;

[0021] The step of managing each of the business domain services according to the lookup table includes:

[0022] According to the aforementioned lookup table, control the enabling or disabling of a single business domain service corresponding to a single socket channel;

[0023] According to the aforementioned lookup table, the overall operation of each business domain service corresponding to the set of socket channels is controlled to be started or stopped.

[0024] Optionally, the step of creating corresponding business domain services for each of the multiple business modules in the embedded device includes:

[0025] Multiple service modules are identified in the embedded device, wherein the multiple service modules are divided according to the service type of the service to be responded to;

[0026] For any target business module among the plurality of business modules, create a business domain service corresponding to the target business module.

[0027] Furthermore, to achieve the above objectives, this application also provides a management device for an embedded device, the management device for the embedded device comprising:

[0028] The business domain creation module is used to create corresponding business domain services for multiple business modules in an embedded device.

[0029] The connection management module is used to maintain the communication connection between the embedded device and each client terminal according to each of the service domains, and to maintain the device identifier of each client terminal according to the communication connection.

[0030] The service management module is used to send and receive service data on the socket channel corresponding to the service domain service according to the device identifier, so that the embedded device can respond to the service of the client terminal.

[0031] Optionally, each functional module of the embedded device management device provided in this application implements the steps of the embedded device management method described above during operation.

[0032] In addition, to achieve the above objectives, this application also provides a wearable device, the wearable device comprising: a memory, a processor, and an embedded device management program stored in the memory and executable on the processor, wherein the embedded device management program, when executed by the processor, implements the steps of the embedded device management method as described above.

[0033] In addition, to achieve the above objectives, this application also provides a computer storage medium storing a management program for an embedded device, wherein the management program for the embedded device, when executed by a processor, implements the steps of the embedded device management method described above.

[0034] The embedded device management method, apparatus, wearable device, and computer storage medium provided in this application include: creating corresponding service domain services for multiple service modules in the embedded device; maintaining communication connections between the embedded device and each client terminal according to each service domain service, and maintaining device identifiers for each client terminal according to the communication connections; and sending and receiving service data through the socket channels corresponding to the service domain services according to the device identifiers, so that the embedded device can respond to the services of the client terminals.

[0035] In this embodiment, by creating a business domain service corresponding to each of the pre-divided business modules in the embedded device, and then maintaining the communication connection between the embedded device and each client terminal according to the business domain service, and further maintaining a unique device identifier for each client terminal according to the communication connection, and then sending and receiving business data on the client terminal socket channel corresponding to the business domain service according to the device identifier, thereby enabling the embedded device to perform business response operations to the client terminal based on the business domain service.

[0036] Therefore, compared to the traditional method of embedded devices relying on direct communication connections with smart terminals for service responses, this embodiment creates multiple service domain services corresponding to service modules. Based on these service domain services, the communication connection between the embedded device and the client terminal is maintained as needed. During actual service responses, only the client terminal's device identifier is needed to send and receive service data through the client terminal socket channel corresponding to the service domain service. This enables the embedded device to perform service responses to the client terminal based on the service domain service. In other words, this embodiment can manage complex communication service modules within the embedded device, thereby improving the efficiency of device communication. Furthermore, by reasonably managing the connections between multiple smart terminals and the embedded device, the coupling of service modules is reduced, effectively improving the efficiency of service data response between the embedded device and multiple smart terminals. Attached Figure Description

[0037] Figure 1 This is a schematic diagram of the structure of the terminal device in the hardware operating environment involved in the embodiments of this application;

[0038] Figure 2 This is a flowchart illustrating the steps of an embodiment of the embedded device management method of this application;

[0039] Figure 3 This is a schematic diagram of the application process involved in an embodiment of the embedded device management method of this application;

[0040] Figure 4 This is a schematic diagram of the functional modules involved in an embodiment of the management device for the embedded device of this application.

[0041] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0042] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0043] Reference Figure 1 , Figure 1 This is a schematic diagram of the terminal device structure of the hardware operating environment involved in the embodiments of this application.

[0044] It should be noted that the terminal device in this application embodiment can be a wearable device that executes the management method of the embedded device in this application. In addition, the terminal device in this application embodiment can also be a computing unit such as a PC, smartphone, or tablet connected to the aforementioned wearable device.

[0045] It should be understood that, based on different design needs of practical applications, the terminal device in the embodiments of this application may of course also be other devices or device modules. For example, the terminal device may specifically be a data storage control terminal or a portable computer, or other mobile or non-mobile terminal devices.

[0046] like Figure 1 As shown, the terminal device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0047] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the terminal device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0048] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a management program for embedded devices.

[0049] exist Figure 1 In the terminal device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; in this embodiment, the processor 1001 and the memory 1005 can be located in the terminal device.

[0050] Based on this, the terminal device calls the embedded device management program stored in the memory 1005 through the processor 1001 and performs the following operations:

[0051] Create corresponding business domain services for each of the multiple business modules in the embedded device;

[0052] The embedded device maintains the communication connection between each client terminal according to each of the service domains, and maintains the device identifier of each client terminal according to the communication connection.

[0053] Based on the device identifier, the embedded device sends and receives service data on the socket channel corresponding to the service domain service, so that the embedded device can respond to the client terminal's service.

[0054] Furthermore, maintaining the communication connection includes: monitoring the status of the communication connection;

[0055] The processor 1001 calls the embedded device management program stored in the memory 1005 and also performs the following operations:

[0056] Maintain at least one client set according to the respective transport protocol of each of the aforementioned business domain services;

[0057] Monitor the communication connection status between each client terminal in the at least one client set and the embedded device.

[0058] Furthermore, the processor 1001 calls the embedded device management program stored in the memory 1005 and performs the following operations:

[0059] Based on the service type corresponding to each of the service domain services, the transmission protocol corresponding to each of the service domain services is determined, wherein the transmission protocol includes: a first transmission protocol and a second transmission protocol.

[0060] Furthermore, the processor 1001 calls the embedded device management program stored in the memory 1005 and performs the following operations:

[0061] Create corresponding socket channels for each of the aforementioned business domain services;

[0062] Establish a mapping table between each of the aforementioned business domain services and each of the aforementioned socket channels;

[0063] The services of each business domain are managed according to the aforementioned correspondence table.

[0064] Furthermore, the processor 1001 calls the embedded device management program stored in the memory 1005 and performs the following operations:

[0065] The domain name of each of the aforementioned business domain services and the corresponding socket channel of each of the aforementioned business domain services are maintained in a preset overall domain list to establish a one-to-one correspondence table between each of the aforementioned business domain services and each of the aforementioned socket channels.

[0066] Furthermore, managing business domain services includes controlling the starting and stopping of business domain services;

[0067] The processor 1001 calls the embedded device management program stored in the memory 1005 and also performs the following operations:

[0068] According to the aforementioned lookup table, control the enabling or disabling of a single business domain service corresponding to a single socket channel;

[0069] According to the aforementioned lookup table, the overall operation of each business domain service corresponding to the set of socket channels is controlled to be started or stopped.

[0070] Furthermore, the processor 1001 calls the embedded device management program stored in the memory 1005 and performs the following operations:

[0071] Multiple service modules are identified in the embedded device, wherein the multiple service modules are divided according to the service type of the service to be responded to;

[0072] For any target business module among the plurality of business modules, create a business domain service corresponding to the target business module.

[0073] Based on the aforementioned terminal devices, this application presents an overall concept for the management method of embedded devices.

[0074] It should be noted that in current business service response scenarios involving embedded devices and multiple smart terminals, the embedded device often needs to establish a direct communication connection with each smart terminal before business data responses can be successfully exchanged. However, with the increasing prevalence of high-concurrency data applications, the business response efficiency of embedded devices and multiple smart terminals will become increasingly worse.

[0075] To address the aforementioned technical problems, embodiments of this application provide a management method for an embedded device, comprising: creating corresponding service domain services for multiple service modules in the embedded device; maintaining communication connections between the embedded device and each client terminal according to each service domain service, and maintaining device identifiers for each client terminal according to the communication connections; and transmitting and receiving service data through the socket channels corresponding to the service domain services according to the device identifiers, so that the embedded device can respond to the services of the client terminals.

[0076] That is, the embedded device management method provided in this application creates a business domain service for each of the pre-divided business modules in the embedded device, then maintains the communication connection between the embedded device and each client terminal according to the business domain service, and further maintains a unique device identifier for each client terminal according to the communication connection. Then, it sends and receives business data through the client terminal socket channel corresponding to the business domain service according to the device identifier, thereby enabling the embedded device to perform business response operations to the client terminal based on the business domain service.

[0077] Therefore, compared to the traditional method of embedded devices relying on direct communication connections with smart terminals for service responses, the embedded device management method provided in this application creates multiple service domain services corresponding to service modules. Based on these service domain services, the communication connection between the embedded device and the client terminal is maintained as needed. During actual service responses, only the client terminal's device identifier is needed to send and receive service data through the client terminal's socket channel corresponding to the service domain service. This enables the embedded device to perform service responses to the client terminal based on the service domain service. In other words, the embedded device management method provided in this application can manage complex communication service modules within the embedded device, thereby improving the efficiency of device communication. Furthermore, by reasonably controlling the connections between multiple smart terminals and the embedded device, the coupling of service modules is reduced, effectively improving the efficiency of service data response between the embedded device and multiple smart terminals.

[0078] Based on the overall concept of the terminal device and the embedded device management method of this application described above, various embodiments of the embedded device management method of this application are further proposed.

[0079] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the embedded device management method of this application.

[0080] It should be understood that although the logical order is shown in the flowchart, in some cases, the management method of the embedded device of this application may of course perform the steps shown or described in a different order than that shown here.

[0081] Furthermore, the first embodiment of the embedded device management method of this application is applied to the aforementioned terminal device. To clearly explain the embedded device management method of this application, the following description will use one type of terminal device—a wearable device—as the execution subject to illustrate the embedded device management method of this application.

[0082] like Figure 2As shown, in the first embodiment of the embedded device management method of this application, the embedded device management method of this application may include the following steps:

[0083] Step S10: Create corresponding business domain services for each of the multiple business modules in the embedded device;

[0084] In this embodiment, the wearable device pre-divides multiple business modules within the embedded device and creates corresponding business domain services for each of these multiple business modules.

[0085] It should be noted that in this embodiment and other feasible embodiments described below, the wearable device can specifically be a smart glasses terminal. The smart glasses terminal can establish a communication connection with one or more smart terminal devices through its own configured and installed embedded device. Then, the smart glasses terminal can act as a server for multiple smart terminal devices, acting as a client terminal and providing business function response services.

[0086] For example, when a wearable device is powered on and running, it can create business domain services corresponding to each of its pre-defined business modules, and simultaneously start one or more of the pre-defined business domain services.

[0087] Step S20: Maintain the communication connection between the embedded device and each client terminal according to each of the service domain services, and maintain the device identifier of each client terminal according to the communication connection;

[0088] In this embodiment, after the wearable device creates the business domain services corresponding to each business module, it can maintain the communication connection between the embedded device and each client terminal according to the business domain services, and further maintain the unique device identifier of each client terminal according to the communication connection.

[0089] It should be noted that, in this embodiment and other feasible embodiments described below, during the connection management process of the wearable device for each client terminal of the embedded device, a client terminal set needs to be maintained for each service type's transmission protocol. When a client terminal connects / disconnects from the embedded device, the wearable device immediately performs corresponding addition / deletion maintenance operations on this client terminal set. Furthermore, the wearable device can also maintain the client terminal device identifier through communication between the embedded device and the client terminal; that is, it saves the unique device identifier value of the client terminal. For example, the client terminal identifier can specifically be the unique device ID of the client terminal.

[0090] Furthermore, wearable devices can use the client terminal device ID maintained by the embedded device as a unique key to send and receive data to the corresponding client terminal socket channel. This ensures that a client terminal can connect to the embedded device multiple times for a single service type, thus avoiding invalid connections between the embedded device and the client terminal.

[0091] It should be noted that, in this embodiment and in other feasible embodiments described below, maintaining the communication connection includes: monitoring the communication connection status.

[0092] Based on this, the step S20 above, "maintaining the communication connection between the embedded device and each client terminal according to each of the service domains," may include:

[0093] Maintain at least one client set according to the respective transport protocol of each of the aforementioned business domain services;

[0094] Monitor the communication connection status between each client terminal in the at least one client set and the embedded device.

[0095] In this embodiment, when the wearable device maintains the communication connection between the embedded device and each client terminal according to each service domain, it first maintains at least one client set for each service domain based on the corresponding transmission protocol. Then, it continuously monitors the communication connection status between one or more clients in each client set and the embedded device.

[0096] Optionally, in this embodiment and other feasible embodiments described below, the embedded device management method provided in this application may further include:

[0097] Based on the service type corresponding to each of the service domain services, the transmission protocol corresponding to each of the service domain services is determined, wherein the transmission protocol includes: a first transmission protocol and a second transmission protocol.

[0098] It should be noted that the first and second transmission protocols are TCP (Transmission Control Protocol) and UDP (User Datagram Protocol), respectively. However, it should be understood that, based on different design needs in practical applications, in any other feasible embodiments, the above-mentioned transmission protocols may of course include other Internet network protocols different from TCP and UDP listed herein. This embodiment only uses TCP and UDP protocols to explain the embedded device management method provided in this application and does not limit the specific types of transmission protocols mentioned above.

[0099] In this embodiment, before maintaining a client set for each transmission protocol according to its respective service domain, the wearable device can first determine whether the transmission protocol corresponding to each service domain is TCP or UDP based on the service type of each service domain. In this way, the wearable device can subsequently maintain a client set for each service domain's corresponding TCP or UDP protocol. This client set represents the communication connection between the TCP protocol (or UDP protocol) of the service domain and one or more client terminals when the embedded device provides a service response to one or more client terminals through a certain service domain.

[0100] It should be noted that in this embodiment and in other feasible embodiments described below, the service types include, but are not limited to: transmission of video stream data, transmission of audio stream data, and transmission of control signaling data.

[0101] For example, assume that the wearable device creates service domain services for its own control module, audio stream module, and video stream module respectively. Then, service domain service 1 corresponding to the wearable device's own control module is responsible for sending and receiving control signaling data, thus the wearable device can determine that the transport protocol corresponding to service domain service 1 is UDP. Furthermore, service domain services 2 and 3 corresponding to the wearable device's own audio stream module and video stream module respectively are responsible for sending and receiving audio stream data and video stream data, thus the wearable device can determine that the transport protocol corresponding to service domain service 2 and service domain service 3 is TCP.

[0102] It should be noted that, in this embodiment and other feasible embodiments described below, when the wearable device maintains the communication connection between each client terminal and the embedded device in the aforementioned client set, it can receive connection / disconnection instructions from the client terminal through the embedded device and maintain a heartbeat packet to dynamically monitor whether the connection between the embedded device and the client terminal is in progress. Furthermore, on the client terminal side, the client terminal can also independently create and manage the connection and disconnection with the embedded device according to the service type of the service that currently requires a response from the embedded device, and the client terminal can also dynamically monitor the heartbeat packet and determine whether the heartbeat is normal.

[0103] Step S30: Send and receive service data on the socket channel corresponding to the service domain service according to the device identifier, so that the embedded device can respond to the client terminal's service.

[0104] In this embodiment, after the wearable device maintains the unique device identifier of each client terminal connected to the embedded device, it can further send and receive service data to the client terminal socket channel corresponding to one or more service domain services based on the device identifier, thereby enabling the embedded device to perform service response operations to the client terminal based on the service domain service.

[0105] For example, after the wearable device establishes service domains for its own control module, audio stream module, and video stream module, and determines the corresponding transmission protocol for each service domain, when the transmission protocol for service domain 1 corresponding to its own control module is UDP, the wearable device can maintain a client set for UDP. This allows the wearable device to maintain client terminal 1 in the client set corresponding to UDP when a client terminal 1 needs to send control signaling to the embedded device built into the wearable device. Subsequently, based on the unique device ID of client terminal 1 as the unique key, the wearable device can use UDP to send and receive control signaling data for client terminal 1 within the socket channel corresponding to service domain 1, thereby enabling the embedded device to perform service response operations for client terminal 1 based on service domain 1.

[0106] Furthermore, when the wearable device's audio and video stream modules each correspond to the TCP protocol in their respective service domain services 2 and 3, a client set is maintained for this TCP protocol. This allows the wearable device to maintain client 2 in the TCP client set when a client terminal 2 needs to send a video stream to the embedded device within the wearable device. Subsequently, using the unique device ID of client terminal 2 as the unique key, the TCP protocol is used within the socket channel corresponding to service domain service 3 to provide video stream data transmission and reception operations for client terminal 2, enabling the embedded device to perform service response operations for client terminal 2 based on service domain service 3. Similarly, when another client terminal 3 needs to send an audio stream to the embedded device within the wearable device, the wearable device can also maintain client terminal 3 in the TCP client set. This allows the wearable device to use the unique device ID of client terminal 3 as the unique key within the socket channel corresponding to service domain service 2 to provide audio stream data transmission and reception operations for client terminal 3, enabling the embedded device to perform service response operations for client terminal 3 based on service domain service 2.

[0107] In this embodiment, the embedded device management method provided in this application pre-divides multiple service modules within the embedded device using a wearable device, and creates corresponding service domain services for each of these service modules. Then, the wearable device maintains the communication connection between the embedded device and each client terminal based on these service domain services, and further maintains a unique device identifier for each client terminal based on these communication connections. Subsequently, the wearable device sends and receives service data through the client terminal socket channels corresponding to one or more service domain services based on the device identifier, thereby enabling the embedded device to perform service response operations to the client terminals based on the service domain services.

[0108] That is, the embedded device management method provided in this application creates a business domain service for each of the pre-divided business modules in the embedded device, then maintains the communication connection between the embedded device and each client terminal according to the business domain service, and further maintains a unique device identifier for each client terminal according to the communication connection. Then, it sends and receives business data through the client terminal socket channel corresponding to the business domain service according to the device identifier, thereby enabling the embedded device to perform business response operations to the client terminal based on the business domain service.

[0109] Therefore, compared to the traditional method of embedded devices relying on direct communication connections with smart terminals for service responses, the embedded device management method provided in this application creates multiple service domain services corresponding to service modules. Based on these service domain services, the communication connection between the embedded device and the client terminal is maintained as needed. During actual service responses, only the client terminal's device identifier is needed to send and receive service data through the client terminal's socket channel corresponding to the service domain service. This enables the embedded device to perform service responses to the client terminal based on the service domain service. In other words, the embedded device management method provided in this application can manage complex communication service modules within the embedded device, thereby improving the efficiency of device communication. Furthermore, by reasonably controlling the connections between multiple smart terminals and the embedded device, the coupling of service modules is reduced, effectively improving the efficiency of service data response between the embedded device and multiple smart terminals.

[0110] Furthermore, based on the first embodiment of the embedded device management method of this application described above, a second embodiment of the embedded device management method of this application is proposed.

[0111] Similarly, the second embodiment of the embedded device management method of this application is also applied to the aforementioned terminal device. Again, for the sake of clarity in explaining the embedded device management method of this application, the following description will still use a type of terminal device—a wearable device—as the implementing entity to illustrate the embedded device management method of this application.

[0112] In a second embodiment of the embedded device management method of this application, the embedded device management method may further include the following steps:

[0113] Create corresponding socket channels for each of the aforementioned business domain services;

[0114] Establish a mapping table between each of the aforementioned business domain services and each of the aforementioned socket channels;

[0115] The services of each business domain are managed according to the aforementioned correspondence table.

[0116] In this embodiment, before the wearable device sends and receives service data to the client terminal socket channels corresponding to one or more service domain services based on the device identifiers of each client terminal in the client set, it also creates a corresponding Socket socket channel for each service domain service. This ensures high-speed data transmission between the embedded device and the client terminal, and the service response from the embedded device to the client terminal will not decrease in data communication efficiency as the number of service modules increases.

[0117] Subsequently, the wearable device can also perform overall business domain management operations for each business domain service based on the corresponding Socket socket channel. That is, when the wearable device creates the corresponding Socket socket channel for each business domain service, it synchronously or asynchronously establishes a mapping table between each business domain service and each socket channel, and then manages each business domain service based on the mapping table.

[0118] It should be noted that in this embodiment and in other feasible embodiments described below, the wearable device can use the domain names of each business domain service to establish a mapping table between each business domain service and each socket channel.

[0119] Based on this, the aforementioned "establishing a mapping table between each of the aforementioned business domain services and each of the aforementioned socket channels" may include:

[0120] The domain name of each of the aforementioned business domain services and the corresponding socket channel of each of the aforementioned business domain services are maintained in a preset overall domain list to establish a one-to-one correspondence table between each of the aforementioned business domain services and each of the aforementioned socket channels.

[0121] In this embodiment, the wearable device can maintain the domain name city (e.g., control) corresponding to each business domain service in a preset overall domain list. Simultaneously, this overall domain list also records the socket channels corresponding to each business domain service. In this way, the wearable device can determine the overall domain list as a one-to-one mapping table between each business domain service and each socket channel.

[0122] It should be noted that, in this embodiment and in the other feasible embodiments described below, the wearable device can manage the mapping table between business domain services and socket channels in a set manner. This allows for both individual domain service management and management of the entire business domain services.

[0123] Furthermore, managing business domain services includes controlling the starting and stopping of business domain services. Based on this, the aforementioned step of "managing each of the business domain services according to the aforementioned lookup table" may include:

[0124] According to the aforementioned lookup table, control the enabling or disabling of a single business domain service corresponding to a single socket channel;

[0125] According to the aforementioned lookup table, the overall operation of each business domain service corresponding to the set of socket channels is controlled to be started or stopped.

[0126] In this embodiment, when managing services in various service domains, the wearable device can control the activation or deactivation of a single service domain corresponding to a single socket channel based on the mapping table between each service domain and each socket channel. Alternatively, the wearable device can also use a set approach, based on the mapping table between each service domain and each socket channel, to uniformly control the activation or deactivation of all service domain services corresponding to the set of socket channels as a whole.

[0127] In this embodiment, the embedded device management method provided by this application efficiently manages high-concurrency socket channel connections in the embedded device through a wearable device. Based on the business module division, one business module of the embedded device corresponds to TCP and UDP communication protocol services, thereby improving the embedded device's ability to respond to high-concurrency data volumes from client terminals. Data corresponding to different business types can also be quickly sent and received between the client and server by selecting the appropriate transmission protocol to utilize the maximum transmission characteristics of the socket channel.

[0128] Furthermore, the embedded device management method provided in this application manages embedded devices by business segmentation through wearable devices, thereby enabling effective monitoring of individual business modules, which can effectively reduce module coupling and allow for individual control of the opening / closing of business modules.

[0129] Furthermore, based on the first and / or second embodiments of the embedded device management method of this application described above, a third embodiment of the embedded device management method of this application is proposed.

[0130] Similarly, the third embodiment of the embedded device management method of this application is also applied to the aforementioned terminal device. Again, for the sake of clarity in explaining the embedded device management method of this application, the following description will still use a type of terminal device—a wearable device—as the execution subject to illustrate the embedded device management method of this application.

[0131] In the third embodiment of the embedded device management method of this application, step S10 above: creating corresponding business domain services for each of the multiple business modules in the embedded device, may include:

[0132] Multiple service modules are identified in the embedded device, wherein the multiple service modules are divided according to the service type of the service to be responded to;

[0133] For any target business module among the plurality of business modules, create a business domain service corresponding to the target business module.

[0134] In this embodiment, when the wearable device creates business domain services corresponding to each of the multiple business modules pre-divided in the embedded device, it can first determine the business type of the service provided by each business module in the embedded device. Then, the wearable device uses the multiple business modules as target business modules to be created for the business domain services, and then creates the business domain services according to the business type corresponding to the target business module. In this way, the business domain services corresponding to each business module can be created.

[0135] Optionally, such as Figure 3 As shown, when a wearable device is based on the division of embedded devices into business modules and the creation of corresponding business domain services for each module, the embedded device can first act as a server, starting multiple servers as needed. For example, its video stream module, audio stream module, and control signaling module can each start a server, with each module operating on a separate port, allowing independent switching without affecting the use of other modules. Subsequently, each server module can connect to multiple client terminals to receive connection / disconnection commands. Furthermore, each server can maintain a heartbeat to dynamically monitor whether a connection with a client terminal is in progress. In addition, client terminals only need to independently create and manage connections and disconnections with a specific server module based on the business type. Client terminals can also dynamically monitor heartbeats and determine their normality.

[0136] Based on this, the embedded device management method of this application realizes the decoupling of the embedded device as a server and client terminal by dividing it into business modules, thereby effectively avoiding the coupling redundancy problem between the business response provided by the server and the communication with the client terminal, and improving the response efficiency of business data between the server and the client terminal.

[0137] Furthermore, this application also provides a management device for an embedded device. Please refer to... Figure 4 The management device for the embedded device in this application includes:

[0138] The business domain creation module 10 is used to create corresponding business domain services for multiple business modules in the embedded device.

[0139] The connection management module 20 is used to maintain the communication connection between the embedded device and each client terminal according to each of the service domains, and to maintain the device identifier of each client terminal according to the communication connection.

[0140] The service management module 30 is used to send and receive service data on the socket channel corresponding to the service domain service according to the device identifier, so that the embedded device can respond to the service of the client terminal.

[0141] Optionally, maintaining the communication connection includes: monitoring the status of the communication connection;

[0142] Connection management module 20 includes:

[0143] A client maintenance unit is used to maintain at least one client set according to the respective transmission protocol of each of the business domain services.

[0144] The client connection terminal management unit is used to monitor the communication connection status between each client terminal in the at least one client set and the embedded device.

[0145] Optionally, the management device for the embedded device in this application further includes:

[0146] The transmission protocol determination module is used to determine the transmission protocol corresponding to each of the service domain services based on the service type corresponding to each of the service domain services, wherein the transmission protocol includes: a first transmission protocol and a second transmission protocol.

[0147] Optionally, the management device for the embedded device in this application further includes:

[0148] The business domain management module is used to create corresponding socket channels for each of the business domain services; establish a mapping table between each of the business domain services and each of the socket channels; and manage each of the business domain services according to the mapping table.

[0149] Optionally, the business domain management module includes:

[0150] The mapping relationship construction unit is used to maintain the domain name of each of the business domain services and the corresponding socket channel of each of the business domain services in a preset overall domain list, so as to establish a mapping relationship table between each of the business domain services and each of the socket channels.

[0151] Optionally, managing business domain services includes: controlling the starting and stopping of business domain services;

[0152] The business domain management module also includes:

[0153] The first management unit is used to control the opening or stopping of a single business domain service corresponding to a single socket channel according to the reference table;

[0154] The second management unit is used to control the overall opening or stopping of each of the service domain services corresponding to the set of each socket channel according to the reference table.

[0155] Optionally, the service domain creation module 10 is further configured to determine multiple service modules in the embedded device, wherein the multiple service modules are divided according to the service type of the service to be responded to; and to create a service domain service corresponding to any target service module among the multiple service modules.

[0156] It should be noted that the specific implementations of the operation of each functional module of the embedded device management device provided in this application are basically the same as the implementations of the embedded device management method described above, and will not be repeated here.

[0157] In addition, this application also provides a wearable device, which includes: a memory, a processor, and an embedded device management program stored in the memory and executable on the processor. When the processor of the wearable device executes the embedded device management program, it implements the steps of the embedded device management method as described in any of the above embodiments.

[0158] It should be noted that the specific embodiments of the wearable device in this application are basically the same as the embodiments of the management method of the embedded device described above, and will not be repeated here.

[0159] In addition, this application also provides a computer storage medium storing a management program for an embedded device, which, when executed by a processor, implements the steps of the embedded device management method as described in any of the above embodiments.

[0160] It should be noted that the specific embodiments of the computer storage medium of this invention are basically the same as the embodiments of the management method of the embedded device described above, and will not be repeated here.

[0161] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.

[0162] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0163] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which can be a device that executes the embedded device management method of this application, specifically a mobile terminal, data storage control terminal, PC, or portable computer, etc.) to execute the methods described in the various embodiments of this application.

[0164] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A management method of an embedded device, characterized by, The method for managing the embedded device includes the following steps: Multiple service modules are identified in the embedded device, wherein the multiple service modules are divided according to the service type of the service to be responded to; For any target business module among the plurality of business modules, create a business domain service corresponding to the target business module; The embedded device maintains the communication connection between each client terminal according to each of the service domains, and maintains the device identifier of each client terminal according to the communication connection, wherein the device identifier is a unique device ID of each client terminal; Using the unique device ID as the unique key, the client terminal sends and receives service data within the socket channel corresponding to the service domain service, so that the embedded device can respond to the client terminal's service based on the service domain service.

2. The management method of the embedded device according to Claim 1, wherein, Maintaining communication connections includes: monitoring the status of communication connections; The step of maintaining the communication connection between the embedded device and each client terminal according to each of the service domains includes: Maintain at least one client set according to the respective transport protocol of each of the aforementioned business domain services; Monitor the communication connection status between each client terminal in the at least one client set and the embedded device.

3. The management method of the embedded device according to Claim 2, characterized by, The method further includes: Based on the service type corresponding to each of the service domain services, the corresponding transmission protocol for each of the service domain services is determined, wherein the transmission protocol includes: a first transmission protocol and a second transmission protocol.

4. The management method of the embedded device according to Claim 1, wherein The method further includes: Create corresponding socket channels for each of the aforementioned business domain services; Establish a mapping table between each of the aforementioned business domain services and each of the aforementioned socket channels; The services of each business domain are managed according to the aforementioned correspondence table.

5. The management method of the embedded device according to Claim 4, characterized by, The step of establishing a mapping table between each of the service domain services and each of the socket channels includes: The domain name of each of the aforementioned business domain services and the corresponding socket channel of each of the aforementioned business domain services are maintained in a preset overall domain list to establish a one-to-one correspondence table between each of the aforementioned business domain services and each of the aforementioned socket channels.

6. The management method of the embedded device according to Claim 4, wherein Managing business domain services includes: controlling the starting and stopping of business domain services; The step of managing each of the business domain services according to the lookup table includes: According to the aforementioned lookup table, control the enabling or disabling of a single business domain service corresponding to a single socket channel; According to the aforementioned lookup table, the overall operation of each business domain service corresponding to the set of socket channels is controlled to be started or stopped.

7. A management apparatus of an embedded device, characterized by comprising: The management device for the embedded device includes: A service domain creation module is used to determine multiple service modules in an embedded device, wherein the multiple service modules are divided according to the service type of the service to be responded to; and to create a service domain service corresponding to any target service module among the multiple service modules. The connection management module is used to maintain the communication connection between the embedded device and each client terminal according to each of the business domain services, and to maintain the device identifier of each client terminal according to the communication connection, wherein the device identifier is a unique device ID of each client terminal; The business management module is used to send and receive business data of the client terminal in the socket channel corresponding to the business domain service, using the unique device ID as the unique key, so that the embedded device can respond to the client terminal's business based on the business domain service.

8. A terminal device, comprising: The terminal device includes: a memory, a processor, and an embedded device management program stored in the memory and executable on the processor. When the embedded device management program is executed by the processor, it implements the steps of the embedded device management method as described in any one of claims 1 to 6.

9. A computer storage medium, characterized in that The computer storage medium stores a management program for an embedded device, which, when executed by a processor, implements the steps of the embedded device management method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data transmission device and method

    CN105101294A

  • Method and nodes for aggregating data traffic through unicast messages over an access domain using service bindings

    US20060182146A1