CN110933825A - Communication control method of rescue equipment and related product - Google Patents

Communication control method of rescue equipment and related product Download PDF

Info

Publication number
CN110933825A
CN110933825A CN201911025492.9A CN201911025492A CN110933825A CN 110933825 A CN110933825 A CN 110933825A CN 201911025492 A CN201911025492 A CN 201911025492A CN 110933825 A CN110933825 A CN 110933825A
Authority
CN
China
Prior art keywords
control
preprocessing
information
equipment
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911025492.9A
Other languages
Chinese (zh)
Other versions
CN110933825B (en
Inventor
刘兴华
杨志远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xuanhuo Tribal Technology Co Ltd
Original Assignee
Shenzhen Xuanhuo Tribal Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xuanhuo Tribal Technology Co Ltd filed Critical Shenzhen Xuanhuo Tribal Technology Co Ltd
Priority to CN201911025492.9A priority Critical patent/CN110933825B/en
Publication of CN110933825A publication Critical patent/CN110933825A/en
Application granted granted Critical
Publication of CN110933825B publication Critical patent/CN110933825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the application discloses a communication control method of a recourse device and a related product, which are applied to an electronic device, wherein the electronic device comprises a wireless communication module, and the electronic device and other devices are automatically networked to form a wireless MESH MESH network; the method comprises the following steps: the method comprises the steps that an electronic device obtains a plurality of pieces of device information in a MESH network, determines a control terminal device and at least one first device, sends a first request protocol and a second request protocol from the first device to the control terminal device, receives the first control protocol, obtains a first preprocessing state of the electronic device for preprocessing the first control protocol, sends the first control protocol or the second control protocol to the first device, receives the second preprocessing state from the first device, sends preprocessing information to the control terminal device, receives a processing request, sends the processing request to the first device, and executes the processing request, and therefore interactivity and entertainment of the electronic device are improved.

Description

Communication control method of rescue equipment and related product
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a communication control method for a device under help and a related product.
Background
In scenes such as a concert, the aid-seeking device generally arranges one or more LED lamps, and controls the LED lamps to be turned on or off and the human visual persistence principle, so that when the user uses the aid-seeking device, corresponding colors or patterns are displayed for the user to entertain or express contents.
Most of existing devices to be assisted preset contents, and users switch and display the contents through keys. Some devices to be assisted are optimized, and communication and control can be carried out on the devices to be assisted through a computer or a mobile phone APP. But the device is independently controlled aiming at a single rescue device, cannot form linkage, and is not rich in stereo display. The existing rescue devices are controlled independently, and a plurality of rescue devices do not have a linkage function, so that the form is single, the interactivity is poor, and the fun is lacked in occasions with strong interactivity such as a concert.
Disclosure of Invention
The embodiment of the application provides a communication control method of a rescue apparatus and a related product, so as to improve the efficiency and convenience of communication control of the rescue apparatus.
In a first aspect, an embodiment of the present application provides a communication control method for a recourse device, which is applied to an electronic device, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatically networking with other devices through the wireless communication module; the method comprises the following steps:
acquiring information of a plurality of devices in the MESH network, determining a control terminal device and at least one first device, and sending a first request protocol and a second request protocol from the at least one first device to the control terminal device;
receiving a first control protocol from the control terminal equipment;
acquiring a first preprocessing state of the electronic equipment for preprocessing the first control protocol, sending the first control protocol or a second control protocol to the first equipment, wherein the second control protocol is used for processing the second control protocol after the first equipment receives the second control protocol, determining a second preprocessing state of the first equipment, and sending the second preprocessing state to the electronic equipment;
receiving the second preprocessing state, sending preprocessing information to the control terminal equipment, and receiving a processing request from the control terminal equipment, wherein the preprocessing information comprises the first preprocessing state and the second preprocessing state;
and sending the processing request to the first equipment, and executing the processing request.
In a second aspect, an embodiment of the present application provides a communication control apparatus for a device under help, where the communication control apparatus is applied to an electronic device, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatically networking with other devices through the wireless communication module; the communication control device of the rescue apparatus comprises a processing unit, a communication unit and a storage unit, wherein,
the processing unit is configured to acquire information of multiple devices in the MESH network, determine a control terminal device and at least one first device, and send a first request protocol and a second request protocol from the at least one first device to the control terminal device; and a first control protocol for receiving data from the control terminal device; the second control protocol is used for processing the second control protocol after the first device receives the second control protocol, determining a second preprocessing state of the first device, and sending the second preprocessing state to the electronic device; the second preprocessing state is used for receiving the second preprocessing state, sending preprocessing information to the control terminal equipment, and receiving a processing request from the control terminal equipment, wherein the preprocessing information comprises a first preprocessing state and the second preprocessing state; and the processing request is sent to the first equipment and executed.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiments of the present application, a communication control method of a recourse device and a related product are provided, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatic networking between the wireless communication module and other devices; the method comprises the following steps: the method comprises the steps that an electronic device obtains a plurality of device information in the MESH network, determines a control terminal device and at least one first device, sends a first request protocol and a second request protocol from the at least one first device to the control terminal device, receives the first control protocol from the control terminal device, then obtains a first preprocessing state of the electronic device for preprocessing the first control protocol, sends the first control protocol or the second control protocol to the first device, receives the second preprocessing state from the at least one first device, sends preprocessing information to the control terminal device, receives a processing request from the control terminal device, finally sends the processing request to the first device, and executes the processing request. Therefore, the method is beneficial to solving the problems of single control and poor interactivity of the current rescue apparatus and is beneficial to increasing the interactivity and entertainment of the rescue apparatus.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic flowchart of a communication control method of a rescue-requiring device according to an embodiment of the present application;
fig. 1B is a schematic diagram of a MESH network according to an embodiment of the present application;
fig. 1C is a schematic diagram of another MESH network provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of another communication control method for a device on demand according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a block diagram illustrating functional units of a communication control apparatus of a device under help according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic flowchart of a communication control method for a recourse device, which is applied to an electronic device, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatic networking between the wireless communication module and other devices; the method comprises the following steps:
s101, an electronic device acquires information of a plurality of devices in the MESH network, determines a control terminal device and at least one first device, and sends a first request protocol and a second request protocol from the at least one first device to the control terminal device;
wherein the plurality of device information includes a device type and a signal quality.
S102, the electronic equipment receives a first control protocol from the control terminal equipment;
the control terminal equipment comprises a function of coding the effect information and integrating and generating the control protocol.
The control terminal device and/or the electronic device have a function of dynamically adjusting the nodes of the connection device.
S103, the electronic equipment acquires a first preprocessing state of the electronic equipment for preprocessing the first control protocol, and sends the first control protocol or the second control protocol to the first equipment;
the second control protocol is used for processing the second control protocol, determining a second preprocessing state of the first device, and sending the second preprocessing state to the electronic device after the first device receives the second control protocol.
S104, the electronic equipment receives the second preprocessing state, sends preprocessing information to the control terminal equipment and receives a processing request from the control terminal equipment;
wherein the pre-processing information comprises the first pre-processing state and the second pre-processing state.
S105, the electronic device sends the processing request to the first device and executes the processing request.
It can be seen that, in the embodiments of the present application, a communication control method of a recourse device and a related product are provided, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatic networking between the wireless communication module and other devices; the method comprises the following steps: the method comprises the steps that an electronic device obtains a plurality of device information in the MESH network, determines a control terminal device and at least one first device, sends a first request protocol and a second request protocol from the at least one first device to the control terminal device, receives the first control protocol from the control terminal device, then obtains a first preprocessing state of the electronic device for preprocessing the first control protocol, sends the first control protocol or the second control protocol to the first device, receives the second preprocessing state from the at least one first device, sends preprocessing information to the control terminal device, receives a processing request from the control terminal device, finally sends the processing request to the first device, and executes the processing request. Therefore, the method is beneficial to solving the problems of single control and poor interactivity of the current rescue apparatus and is beneficial to increasing the interactivity and entertainment of the rescue apparatus.
In one possible example, the electronic device obtains a plurality of pieces of device information in a MESH network, and determines a control terminal device and at least one first device, including: the method comprises the steps that electronic equipment obtains a plurality of pieces of equipment information in a MESH network; the electronic equipment determines the equipment type to be a terminal control type according to the plurality of pieces of equipment information, and the equipment with the optimal signal quality is control terminal equipment; and the electronic equipment determines that the equipment type is a first equipment type according to the plurality of pieces of equipment information, and at least one piece of equipment with the optimal signal quality is the first equipment.
Wherein the plurality of device information is used to determine a device type and a signal quality of each of a plurality of devices.
The MESH network comprises a plurality of devices, the devices are respectively connected with the device closest to the device, the control terminal device is connected with the electronic device and serves as a key node, and meanwhile, the whole connecting link is updated along with each period of time of synchronous information, so that the communication link of the whole MESH network is ensured to be stable and accessible.
Specifically, as shown in fig. 1B, the existing MESH network P includes a plurality of devices X0, X1, X2, X3, and Y, the devices are respectively connected to the device closest to the device itself, and the control terminal device Y is connected to the electronic device X0 as a key node.
The control terminal device is used for sending a control protocol and controlling the display effect displayed by the electronic device and the first device.
Wherein the first device comprises an electronic device provided with a wireless communication module.
The control terminal device and/or the electronic device have a function of dynamically adjusting the nodes of the connection device.
Specifically, as shown in fig. 1C, there is a connection between the electronic device X0 and the device X1, and when the RSSI of the device X1 connected to X0 is determined to be >100, which indicates that the connection is not reliable, the connection with the device X1 is disconnected, the automatic signal is stronger, and the device X2 with smaller RSSI makes a connection request.
In the specific implementation, the electronic device A acquires a plurality of pieces of device information in the MESH network, and according to the plurality of pieces of device information, the electronic device A determines that the device type is a terminal control type, and the device with the optimal signal quality is a control terminal device B; and the electronic equipment A determines that the equipment type is a first equipment type according to the plurality of pieces of equipment information, and the two pieces of equipment with the optimal signal quality are first equipment C.
It can be seen that, in this example, the electronic device obtains a plurality of pieces of device information in the MESH network, and according to the plurality of pieces of device information, determines that the device type is the terminal control type, and the device with the best signal quality is the control terminal device, and determines that the device type is the first device type, and the at least one device with the best signal quality is the first device, which is beneficial to determining the control terminal device more efficiently, and further controlling the display effect of the device to be assisted, and is beneficial to enriching the display content of the device to be assisted.
In one possible example, the electronic device receives a first control protocol from the control terminal device, including: the first control protocol is obtained by the control terminal device executing the following steps: the control terminal device receives the first request protocol and the second request protocol from the electronic device; the control terminal equipment acquires first state information of the electronic equipment and second state information of the first equipment according to the first request protocol and the second request protocol, calculates coordinated Universal Time Coordinated (UTC) time difference between the electronic equipment and the first equipment, performs time compensation synchronization and determines timestamp information; and the control terminal equipment generates a first control protocol according to the timestamp information, the first state information and the second state information.
In one possible example, the electronic device obtaining a first preprocessing state in which the electronic device preprocesses the first control protocol, and sending the first control protocol or the second control protocol to the first device includes: the electronic equipment determines that control information needing to be processed by the electronic equipment exists in the first control protocol, and acquires a first preprocessing state of the electronic equipment for preprocessing the control information; the electronic equipment intercepts control information related to the electronic equipment in the first control protocol, and determines that the intercepted first control protocol is a second control protocol; the electronic device sends the second control protocol to the first device.
Wherein the content of the first control protocol includes, but is not limited to, the content of the second control protocol.
In specific implementation, an electronic device X0 determines that control information B1 that needs to be processed by the electronic device exists in a first control protocol M1, and obtains a first preprocessing state in which the control information is preprocessed by the electronic device; the electronic equipment intercepts control information B1 related to the electronic equipment in the first control protocol M1, and determines that the intercepted first control protocol M1 is a second control protocol M2; the electronic device X0 sends the second control protocol M2 to the first device X1.
As can be seen, in this example, the electronic device determines that there is control information that needs to be processed by the electronic device in the first control protocol, obtains a first preprocessing state in which the control information is preprocessed by the electronic device, then intercepts the control information related to the electronic device in the first control protocol, determines that the intercepted first control protocol is a second control protocol, and finally sends the second control protocol to the first device; under the condition that the first control protocol has control information needing to be processed by the electronic equipment, communication data of the control protocol are reasonably reduced, communication consumption is reduced, and therefore the high efficiency and convenience of communication control of the aid-accepting equipment are improved.
In one possible example, the determining, by the electronic device, that there is control information in the first control protocol that needs to be processed by the electronic device, and acquiring a first preprocessing state in which the electronic device preprocesses the control information includes: the electronic equipment preprocesses the first control information, and if the preprocessing result is normal, the first preprocessing state is successful; and the electronic equipment preprocesses the first control information, and if the preprocessing result is abnormal, the first preprocessing state is failure.
In one possible example, the obtaining a first preprocessing state in which the electronic device preprocesses the first control protocol and sending the first control protocol or the second control protocol to the first device includes: if the electronic equipment determines that the control information needing to be processed by the electronic equipment does not exist in the first control protocol, determining that a first preprocessing state of the electronic equipment for preprocessing the control information is successful; the electronic device sends the first control protocol to the first device.
If the first control protocol does not have control information needing to be processed by the electronic equipment, directly judging that the first preprocessing state is successful.
In a specific implementation, the electronic device X0 determines that there is no control information in a first control protocol M1 that needs to be processed by the electronic device, determines that a first preprocessing state in which the electronic device preprocesses the control information is successful, and the electronic device X0 sends the first control protocol M1 to the first device X1.
As can be seen, in this example, if it is determined that there is no control information that needs to be processed by the electronic device in the first control protocol, the electronic device determines that a first preprocessing state in which the electronic device preprocesses the control information is successful, and then sends the first control protocol to the first device; under the condition that control information needing to be processed by the electronic equipment does not exist in the first control protocol, the first control protocol is directly sent to the first equipment, so that the communication speed is favorably improved, and the high efficiency and convenience of communication control of the aid-taking equipment are favorably improved.
In one possible example, the electronic device receiving the second preprocessing state, sending preprocessing information to the control terminal device, and receiving a processing request from the control terminal device includes: the processing request is obtained by the control terminal device executing the following steps:
the control terminal equipment receives the preprocessing information;
if the control terminal device determines that the first preprocessing information and the second preprocessing information in the preprocessing information are both successful, generating a processing request for executing effect display;
and if the control terminal equipment determines that the first preprocessing information and/or the second preprocessing information in the preprocessing information are failed, generating a processing request for not executing effect display.
In a specific implementation, the control terminal device Y receives the preprocessing information N1 and N2, determines that the processing result of the first preprocessing information N1 is successful, and determines that the processing result of the second preprocessing information N2 is failed, and generates a processing request for not executing effect display.
Referring to fig. 2, fig. 2 is a schematic flowchart of a communication control method of another emergency device according to an embodiment of the present application, applied to an electronic device, where the electronic device includes a wireless communication module, and the electronic device forms a MESH network through automatic networking between the wireless communication module and other devices; as shown in the figure, the communication control method of the self-help device includes:
s201, an electronic device acquires information of a plurality of devices in the MESH network, determines a control terminal device and at least one first device, and sends a first request protocol and a second request protocol from the at least one first device to the control terminal device;
s202, the electronic equipment receives a first control protocol from the control terminal equipment;
s203, determining that control information needing to be processed by the electronic equipment exists in the first control protocol, and acquiring a first preprocessing state of the electronic equipment for preprocessing the control information;
s204, the electronic equipment intercepts control information related to the electronic equipment in the first control protocol, and determines that the intercepted first control protocol is a second control protocol;
s205, the electronic device sends the second control protocol to the first device;
s206, the electronic equipment receives the second preprocessing state, sends preprocessing information to the control terminal equipment and receives a processing request from the control terminal equipment;
s207, the electronic device sends the processing request to the first device and executes the processing request.
It can be seen that, in the embodiments of the present application, a communication control method of a recourse device and a related product are provided, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatic networking between the wireless communication module and other devices; the method comprises the following steps: the method comprises the steps that an electronic device obtains a plurality of device information in the MESH network, determines a control terminal device and at least one first device, sends a first request protocol and a second request protocol from the at least one first device to the control terminal device, receives the first control protocol from the control terminal device, then obtains a first preprocessing state of the electronic device for preprocessing the first control protocol, sends the first control protocol or the second control protocol to the first device, receives the second preprocessing state from the at least one first device, sends preprocessing information to the control terminal device, receives a processing request from the control terminal device, finally sends the processing request to the first device, and executes the processing request. Therefore, the method is beneficial to solving the problems of single control and poor interactivity of the current rescue apparatus and is beneficial to increasing the interactivity and entertainment of the rescue apparatus.
In addition, the electronic device determines that control information needing to be processed by the electronic device exists in the first control protocol, acquires a first preprocessing state of the electronic device for preprocessing the control information, intercepts the control information related to the electronic device in the first control protocol, determines that the intercepted first control protocol is a second control protocol, and finally sends the second control protocol to the first device; under the condition that the first control protocol has control information needing to be processed by the electronic equipment, communication data of the control protocol are reasonably reduced, communication consumption is reduced, and therefore the high efficiency and convenience of communication control of the aid-accepting equipment are improved.
Consistent with the embodiments shown in fig. 1A and fig. 2, please refer to fig. 3, and fig. 3 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present application, and as shown in the drawing, the electronic device 300 includes an application processor 310, a memory 320, a communication interface 330, and one or more programs 321, where the one or more programs 321 are stored in the memory 320 and configured to be executed by the application processor 310, and the one or more programs 321 include instructions for performing the following steps;
acquiring information of a plurality of devices in the MESH network, determining a control terminal device and at least one first device, and sending a first request protocol and a second request protocol from the at least one first device to the control terminal device;
receiving a first control protocol from the control terminal equipment;
acquiring a first preprocessing state of the electronic equipment for preprocessing the first control protocol, sending the first control protocol or a second control protocol to the first equipment, wherein the second control protocol is used for processing the second control protocol after the first equipment receives the second control protocol, determining a second preprocessing state of the first equipment, and sending the second preprocessing state to the electronic equipment;
receiving the second preprocessing state, sending preprocessing information to the control terminal equipment, and receiving a processing request from the control terminal equipment, wherein the preprocessing information comprises the first preprocessing state and the second preprocessing state;
and sending the processing request to the first equipment, and executing the processing request.
It can be seen that, in the embodiments of the present application, a communication control method of a recourse device and a related product are provided, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatic networking between the wireless communication module and other devices; the method comprises the following steps: the method comprises the steps that an electronic device obtains a plurality of device information in the MESH network, determines a control terminal device and at least one first device, sends a first request protocol and a second request protocol from the at least one first device to the control terminal device, receives the first control protocol from the control terminal device, then obtains a first preprocessing state of the electronic device for preprocessing the first control protocol, sends the first control protocol or the second control protocol to the first device, receives the second preprocessing state from the at least one first device, sends preprocessing information to the control terminal device, receives a processing request from the control terminal device, finally sends the processing request to the first device, and executes the processing request. Therefore, the method is beneficial to solving the problems of single control and poor interactivity of the current rescue apparatus and is beneficial to increasing the interactivity and entertainment of the rescue apparatus.
In a possible example, the obtaining of the information of the multiple devices in the MESH network, and the determining of the control terminal device and the at least one first device are specifically configured to perform the following operations: acquiring a plurality of pieces of equipment information in the MESH network; determining the equipment type as a terminal control type according to the plurality of pieces of equipment information, wherein one piece of equipment with the optimal signal quality is control terminal equipment; and determining the equipment type to be a first equipment type according to the plurality of pieces of equipment information, wherein at least one piece of equipment with the optimal signal quality is the first equipment.
In one possible example, the receiving of the first control protocol from the control terminal device is specifically configured to perform the following operations: the first control protocol is obtained by the control terminal device executing the following steps: receiving the first request protocol and the second request protocol from the electronic device; acquiring first state information of the electronic equipment and second state information of the first equipment according to the first request protocol and the second request protocol, calculating coordinated Universal Time (UTC) time difference between the electronic equipment and the first equipment, performing time compensation synchronization, and determining timestamp information; and generating a first control protocol according to the timestamp information, the first state information and the second state information.
In one possible example, the obtaining a first preprocessing state in which the electronic device preprocesses the first control protocol, and sending the first control protocol or the second control protocol to the first device, where the instructions in the program are specifically configured to perform the following operations: determining that control information needing to be processed by the electronic equipment exists in the first control protocol, and acquiring a first preprocessing state of the electronic equipment for preprocessing the control information; intercepting control information related to the electronic equipment in the first control protocol, and determining that the intercepted first control protocol is a second control protocol; sending the second control protocol to the first device.
In one possible example, the determining that there is control information that needs to be processed by the electronic device in the first control protocol, and obtaining a first preprocessing state in which the electronic device preprocesses the control information, the instructions in the program are specifically configured to perform the following operations: preprocessing the first control information, wherein if the preprocessing result is normal, the first preprocessing state is successful; and preprocessing the first control information, wherein if the preprocessing result is abnormal, the first preprocessing state is failure.
In one possible example, the obtaining a first preprocessing state in which the electronic device preprocesses the first control protocol, and sending the first control protocol or the second control protocol to the first device, where the instructions in the program are specifically configured to perform the following operations: determining that the first preprocessing state of the electronic equipment for preprocessing the control information is successful if the first control protocol does not have the control information needing to be processed by the electronic equipment; sending the first control protocol to the first device.
In a possible example, the receiving the second preprocessing state, sending preprocessing information to the control terminal device, and receiving a processing request from the control terminal device, where the instructions in the program are specifically configured to perform the following operations: the processing request is obtained by the control terminal device executing the following steps: receiving the preprocessing information; if the first preprocessing information and the second preprocessing information in the preprocessing information are both determined to be successful, generating a processing request for executing effect display; if the first preprocessing information and/or the second preprocessing information in the preprocessing information are determined to be failed, generating a processing request for not executing effect display
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 4 is a block diagram illustrating functional units of a communication control apparatus 400 of a device on demand according to an embodiment of the present application. The communication control device 400 of the aid-seeking device is applied to electronic equipment, wherein the electronic equipment comprises a wireless communication module, and the electronic equipment is automatically networked with other equipment through the wireless communication module to form a wireless MESH MESH network; the communication control means 400 of the rescue apparatus comprises a processing unit 401, a communication unit 402 and a storage unit 403, wherein,
the processing unit 401 is configured to acquire multiple pieces of device information in the MESH network, determine a control terminal device and at least one first device, and send a first request protocol and a second request protocol from the at least one first device to the control terminal device; and a first control protocol for receiving data from the control terminal device; the second control protocol is used for processing the second control protocol after the first device receives the second control protocol, determining a second preprocessing state of the first device, and sending the second preprocessing state to the electronic device; the second preprocessing state is used for receiving the first preprocessing state, sending preprocessing information to the control terminal equipment, and receiving a processing request from the control terminal equipment; and the processing request is sent to the first equipment and executed.
It can be seen that, in the embodiments of the present application, a communication control method of a recourse device and a related product are provided, where the electronic device includes a wireless communication module, and the electronic device forms a wireless MESH network by automatic networking between the wireless communication module and other devices; the method comprises the following steps: the method comprises the steps that an electronic device obtains a plurality of device information in the MESH network, determines a control terminal device and at least one first device, sends a first request protocol and a second request protocol from the at least one first device to the control terminal device, receives the first control protocol from the control terminal device, then obtains a first preprocessing state of the electronic device for preprocessing the first control protocol, sends the first control protocol or the second control protocol to the first device, receives the second preprocessing state from the at least one first device, sends preprocessing information to the control terminal device, receives a processing request from the control terminal device, finally sends the processing request to the first device, and executes the processing request. Therefore, the method is beneficial to solving the problems of single control and poor interactivity of the current rescue apparatus and is beneficial to increasing the interactivity and entertainment of the rescue apparatus.
In a possible example, the processing unit 401 is specifically configured to, in acquiring information of multiple devices in the MESH network, determine a control terminal device and at least one first device, and: acquiring a plurality of pieces of equipment information in the MESH network; determining the equipment type as a terminal control type according to the plurality of pieces of equipment information, wherein one piece of equipment with the optimal signal quality is control terminal equipment; and determining the equipment type to be a first equipment type according to the plurality of pieces of equipment information, wherein at least one piece of equipment with the optimal signal quality is the first equipment.
In a possible example, the processing unit 401 is specifically configured to, in response to receiving the first control protocol from the control terminal device: the first control protocol is obtained by the control terminal device executing the following steps: receiving the first request protocol and the second request protocol from the electronic device; acquiring first state information of the electronic equipment and second state information of the first equipment according to the first request protocol and the second request protocol, calculating coordinated Universal Time (UTC) time difference between the electronic equipment and the first equipment, performing time compensation synchronization, and determining timestamp information; and generating a first control protocol according to the timestamp information, the first state information and the second state information.
In a possible example, the obtaining a first preprocessing state in which the electronic device preprocesses the first control protocol, and sending the first control protocol or the second control protocol to the first device, where the processing unit 401 is specifically configured to: determining that control information needing to be processed by the electronic equipment exists in the first control protocol, and acquiring a first preprocessing state of the electronic equipment for preprocessing the control information; intercepting control information related to the electronic equipment in the first control protocol, and determining that the intercepted first control protocol is a second control protocol; sending the second control protocol to the first device.
In a possible example, the processing unit 401 is specifically configured to determine that control information that needs to be processed by the electronic device exists in the first control protocol, and acquire a first preprocessing state in which the electronic device preprocesses the control information, where: preprocessing the first control information, wherein if the preprocessing result is normal, the first preprocessing state is successful; and preprocessing the first control information, wherein if the preprocessing result is abnormal, the first preprocessing state is failure.
In a possible example, the obtaining a first preprocessing state in which the electronic device preprocesses the first control protocol, and sending the first control protocol or the second control protocol to the first device, where the processing unit 401 is specifically configured to: determining that the first preprocessing state of the electronic equipment for preprocessing the control information is successful if the first control protocol does not have the control information needing to be processed by the electronic equipment; sending the first control protocol to the first device.
In a possible example, the processing unit 401 is specifically configured to receive the second preprocessing state, send preprocessing information to the control terminal device, and receive a processing request from the control terminal device, where: the processing request is obtained by the control terminal device executing the following steps: receiving the preprocessing information; if the first preprocessing information and the second preprocessing information in the preprocessing information are both determined to be successful, generating a processing request for executing effect display; if the first preprocessing information and/or the second preprocessing information in the preprocessing information are determined to be failed, generating a processing request for not executing effect display
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A communication control method of a rescue device is characterized in that the method is applied to an electronic device, the electronic device comprises a wireless communication module, and the electronic device is automatically networked with other devices through the wireless communication module to form a wireless MESH MESH network; the method comprises the following steps:
acquiring information of a plurality of devices in the MESH network, determining a control terminal device and at least one first device, and sending a first request protocol and a second request protocol from the at least one first device to the control terminal device;
receiving a first control protocol from the control terminal equipment;
acquiring a first preprocessing state of the electronic equipment for preprocessing the first control protocol, sending the first control protocol or a second control protocol to the first equipment, wherein the second control protocol is used for processing the second control protocol after the first equipment receives the second control protocol, determining a second preprocessing state of the first equipment, and sending the second preprocessing state to the electronic equipment;
receiving the second preprocessing state, sending preprocessing information to the control terminal equipment, and receiving a processing request from the control terminal equipment, wherein the preprocessing information comprises the first preprocessing state and the second preprocessing state;
and sending the processing request to the first equipment, and executing the processing request.
2. The method of claim 1, wherein the obtaining the information of the plurality of devices in the MESH network and determining the control terminal device and the at least one first device comprises:
acquiring a plurality of pieces of equipment information in the MESH network;
determining the equipment type as a terminal control type according to the plurality of pieces of equipment information, wherein one piece of equipment with the optimal signal quality is control terminal equipment;
and determining the equipment type to be a first equipment type according to the plurality of pieces of equipment information, wherein at least one piece of equipment with the optimal signal quality is the first equipment.
3. The method of claim 1, wherein receiving the first control protocol from the control terminal device comprises:
the first control protocol is obtained by the control terminal device executing the following steps:
receiving the first request protocol and the second request protocol from the electronic device;
acquiring first state information of the electronic equipment and second state information of the first equipment according to the first request protocol and the second request protocol, calculating coordinated Universal Time (UTC) time difference between the electronic equipment and the first equipment, performing time compensation synchronization, and determining timestamp information;
and generating a first control protocol according to the timestamp information, the first state information and the second state information.
4. The method of claim 1, wherein the obtaining a first pre-processing state in which the electronic device pre-processes the first control protocol, and sending the first control protocol or the second control protocol to the first device, comprises:
determining that control information needing to be processed by the electronic equipment exists in the first control protocol, and acquiring a first preprocessing state of the electronic equipment for preprocessing the control information;
intercepting control information related to the electronic equipment in the first control protocol, and determining that the intercepted first control protocol is a second control protocol;
sending the second control protocol to the first device.
5. The method of claim 4, wherein the determining that the control information needing to be processed by the electronic device exists in the first control protocol, and obtaining a first preprocessing state in which the electronic device preprocesses the control information comprises:
preprocessing the first control information, wherein if the preprocessing result is normal, the first preprocessing state is successful;
and preprocessing the first control information, wherein if the preprocessing result is abnormal, the first preprocessing state is failure.
6. The method of claim 1, wherein the obtaining a first pre-processing state in which the electronic device pre-processes the first control protocol, and sending the first control protocol or the second control protocol to the first device, comprises:
determining that the first preprocessing state of the electronic equipment for preprocessing the control information is successful if the first control protocol does not have the control information needing to be processed by the electronic equipment;
sending the first control protocol to the first device.
7. The method according to claim 1, wherein the receiving the second preprocessing state, sending preprocessing information to the control terminal device, and receiving a processing request from the control terminal device comprises:
the processing request is obtained by the control terminal device executing the following steps:
receiving the preprocessing information;
if the first preprocessing information and the second preprocessing information in the preprocessing information are both determined to be successful, generating a processing request for executing effect display;
and if the first preprocessing information and/or the second preprocessing information in the preprocessing information are determined to be failed, generating a processing request for not executing effect display.
8. The communication control device of the recourse equipment is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a wireless communication module, and the electronic equipment is automatically networked with other equipment through the wireless communication module to form a wireless MESH MESH network; the communication control device of the rescue apparatus comprises a processing unit, a communication unit and a storage unit, wherein,
the processing unit is configured to acquire information of multiple devices in the MESH network, determine a control terminal device and at least one first device, and send a first request protocol and a second request protocol from the at least one first device to the control terminal device; and a first control protocol for receiving data from the control terminal device; the second control protocol is used for processing the second control protocol after the first device receives the second control protocol, determining a second preprocessing state of the first device, and sending the second preprocessing state to the electronic device; the second preprocessing state is used for receiving the first preprocessing state, sending preprocessing information to the control terminal equipment, and receiving a processing request from the control terminal equipment; and the processing request is sent to the first equipment and executed.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201911025492.9A 2019-10-25 2019-10-25 Communication control method of rescue equipment and related product Active CN110933825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911025492.9A CN110933825B (en) 2019-10-25 2019-10-25 Communication control method of rescue equipment and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911025492.9A CN110933825B (en) 2019-10-25 2019-10-25 Communication control method of rescue equipment and related product

Publications (2)

Publication Number Publication Date
CN110933825A true CN110933825A (en) 2020-03-27
CN110933825B CN110933825B (en) 2021-10-29

Family

ID=69849589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911025492.9A Active CN110933825B (en) 2019-10-25 2019-10-25 Communication control method of rescue equipment and related product

Country Status (1)

Country Link
CN (1) CN110933825B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102194318A (en) * 2010-03-04 2011-09-21 上海伟器光电科技有限公司 Urban pedestrian traffic intelligent guidance system
CN102737575A (en) * 2011-04-12 2012-10-17 上海广茂达光艺科技股份有限公司 Control system of LED shutter grid screen and method thereof
CN103809574A (en) * 2014-02-28 2014-05-21 北京经纬恒润科技有限公司 Method for improving security of remote control vehicle
CN106227045A (en) * 2016-07-25 2016-12-14 青岛海信电器股份有限公司 A kind of Smart Home inter-linked controlling method, device and system
CN106604356A (en) * 2015-10-15 2017-04-26 华为终端(东莞)有限公司 Wireless communication access method and device, processor, and wireless terminal
CN108924768A (en) * 2018-06-13 2018-11-30 四川斐讯信息技术有限公司 The ad hoc network method and system and smart machine of a kind of smart machine
CN109348458A (en) * 2018-10-23 2019-02-15 深圳绿米联创科技有限公司 Network connection configuration method, apparatus, electronic equipment and network system
CN109451510A (en) * 2018-09-14 2019-03-08 珠海格力电器股份有限公司 Wireless self-networking method, air-conditioning system and computer readable storage medium
US20190180882A1 (en) * 2017-12-12 2019-06-13 Electronics And Telecommunications Research Institute Device and method of processing multi-dimensional time series medical data
CN110045705A (en) * 2019-04-29 2019-07-23 生迪智慧科技有限公司 Using the intelligent home furnishing control method of heterogeneous wireless network, apparatus and system
US10360448B1 (en) * 2013-10-17 2019-07-23 United Services Automobile Association (Usaa) Character count determination for a digital image

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102194318A (en) * 2010-03-04 2011-09-21 上海伟器光电科技有限公司 Urban pedestrian traffic intelligent guidance system
CN102737575A (en) * 2011-04-12 2012-10-17 上海广茂达光艺科技股份有限公司 Control system of LED shutter grid screen and method thereof
US10360448B1 (en) * 2013-10-17 2019-07-23 United Services Automobile Association (Usaa) Character count determination for a digital image
CN103809574A (en) * 2014-02-28 2014-05-21 北京经纬恒润科技有限公司 Method for improving security of remote control vehicle
CN106604356A (en) * 2015-10-15 2017-04-26 华为终端(东莞)有限公司 Wireless communication access method and device, processor, and wireless terminal
CN106227045A (en) * 2016-07-25 2016-12-14 青岛海信电器股份有限公司 A kind of Smart Home inter-linked controlling method, device and system
US20190180882A1 (en) * 2017-12-12 2019-06-13 Electronics And Telecommunications Research Institute Device and method of processing multi-dimensional time series medical data
CN108924768A (en) * 2018-06-13 2018-11-30 四川斐讯信息技术有限公司 The ad hoc network method and system and smart machine of a kind of smart machine
CN109451510A (en) * 2018-09-14 2019-03-08 珠海格力电器股份有限公司 Wireless self-networking method, air-conditioning system and computer readable storage medium
CN109348458A (en) * 2018-10-23 2019-02-15 深圳绿米联创科技有限公司 Network connection configuration method, apparatus, electronic equipment and network system
CN110045705A (en) * 2019-04-29 2019-07-23 生迪智慧科技有限公司 Using the intelligent home furnishing control method of heterogeneous wireless network, apparatus and system

Also Published As

Publication number Publication date
CN110933825B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN109819303B (en) Data output method and related equipment
CN109151212B (en) Equipment control method and device and electronic equipment
CN109768596B (en) Electric quantity display method, earphone charging device and earphone
US20220261217A1 (en) Audio data processing method, server, and storage medium
CN103281346A (en) Disconnection reconnection method, network system and proxy server
CN110167192A (en) Bluetooth connection management method and device, electronic equipment and non-transient storage media
CN108370353A (en) It is increased network utilization using network assistance agreement
CN108696846B (en) Method and device for accessing star network slave equipment
CN108234143B (en) Method, device and equipment for processing messages in live broadcast
CN109150675A (en) A kind of exchange method and device of household electrical appliance
CN108662718A (en) The network-building method and device of air conditioner
US10111207B2 (en) Network device, terminal device, and voice service control method
CN205283611U (en) End and server end news information will be moved and synchronous device will be carried out
CN114143659A (en) Earphone data sending method, terminal equipment, master earphone, slave earphone and system
CN108243396A (en) A kind of time synchronizing method and device
CN110933825B (en) Communication control method of rescue equipment and related product
CN105580424A (en) Method and apparatus for accessing base station by terminal
CN114268799B (en) Streaming media transmission method and device, electronic equipment and medium
CN108986828A (en) Call establishment method and device, storage medium, electronic device
CN108259972B (en) Display control method of playing scene, playing device and medium product
CN114125052A (en) Target operation execution method and device, storage medium and electronic device
CN113556716B (en) Image content sharing method and device and head-mounted display equipment
CN107483542B (en) Exception handling method and device for wireless sensor network
CN111984901A (en) Message pushing method and related product thereof
CN108923994A (en) A kind of communication fault detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant