CN109391519B - Data transmission method for radio system - Google Patents
Data transmission method for radio system Download PDFInfo
- Publication number
- CN109391519B CN109391519B CN201710674794.3A CN201710674794A CN109391519B CN 109391519 B CN109391519 B CN 109391519B CN 201710674794 A CN201710674794 A CN 201710674794A CN 109391519 B CN109391519 B CN 109391519B
- Authority
- CN
- China
- Prior art keywords
- server
- intermediate device
- base station
- wireless base
- command
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000005540 biological transmission Effects 0.000 title claims abstract description 48
- 230000000875 corresponding effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 5
- UGFAIRIUMAVXCW-UHFFFAOYSA-N Carbon monoxide Chemical compound [O+]#[C-] UGFAIRIUMAVXCW-UHFFFAOYSA-N 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 2
- 229910002091 carbon monoxide Inorganic materials 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004880 explosion Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/04—Arrangements for maintaining operational condition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A data transmission method of a wireless system, the wireless system includes a server, an intermediate device and at least one device, the method includes: the intermediate device is connected with the server through the Internet; judging whether the intermediate equipment has the state information transmitted by the storage equipment, if so, transmitting the state information to the server; if not, transmitting a first conversation instruction to the server, wherein the first conversation instruction corresponds to no storage state information; and transmitting a second conversation instruction to the server, and interrupting the connection with the server after the second conversation instruction is transmitted, wherein the second conversation instruction requests the server to interrupt the connection with the intermediate equipment. The server can judge whether the intermediate equipment normally transmits data or not so as to ensure the reliability of data transmission.
Description
Technical Field
The present invention relates to wireless systems, and more particularly, to a data transmission method for a wireless system.
Background
At present, generally, remote-controllable devices are equipped with remote controllers, so that a user can operate the devices without installing the devices, and a lot of convenience is added to life. As the number of devices owned by the user increases, the number of remote controllers increases. The increased number of remote controllers is not only difficult to collect, but in some cases, such as the same type of equipment, the remote controllers have similar appearances, so that the user can hardly distinguish the pairing relationship between the remote controllers and the equipment.
To this end, the skilled person then proposes an intermediary device that allows a user to connect to the intermediary device via an electronic device (for example a computer or a mobile phone) via a network. After the user executes the control command on the electronic device and transmits the control command to the intermediate equipment, the intermediate equipment converts the received control command into a corresponding control signal and transmits the control signal to the specific equipment, so that different equipment can be controlled to act on the same electronic device, and the defect of excessive remote controllers is effectively overcome.
Today, with the explosion of cloud technology, the middleware also connects to the server via the internet, so as to transmit the state information of the device to the server via the middleware for subsequent use. When data is transmitted through the internet, the situation of data loss is inevitable, so that the server cannot know whether the intermediate device has transmission state information or not. Therefore, how to ensure the reliability of data transmission between the intermediate device and the server is a problem that needs to be solved urgently at present.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a data transmission method for a wireless system, which can ensure the reliability of data transmission.
In order to achieve the above object, the present invention provides a data transmission method of a wireless system, wherein the wireless system comprises a server, an intermediate device and at least one device, the server and the intermediate device are respectively connected to the internet, the intermediate device is connected to the device by a signal, and the intermediate device is configured to receive and store status information from the device; the data transmission method comprises the following steps: A. connecting with the server by the intermediate device through the Internet; B. judging whether the intermediate device stores the state information transmitted by the device: if yes, the intermediate device transmits the state information to the server; if not, the intermediate device transmits a first conversation instruction to the server, wherein the first conversation instruction corresponds to the state information which is not stored; C. and transmitting a second conversation instruction to the server, and interrupting the connection with the server after the second conversation instruction is transmitted, wherein the second conversation instruction requests the server to interrupt the connection with the intermediate equipment.
The invention has the advantages that the intermediate device can transmit the first talking command to the server even if no stored state information exists, so that the server can judge whether the intermediate device normally transmits data or not so as to ensure the reliability of data transmission.
Drawings
Fig. 1 is a diagram of a wireless system according to a first preferred embodiment of the present invention.
Fig. 2 is a flowchart illustrating an operation of an intermediate device in a data transmission method according to a first preferred embodiment of the present invention.
Fig. 3 is a flowchart illustrating the operation of the server according to the data transmission method of the first preferred embodiment of the present invention.
Fig. 4 is a flowchart of a data transmission method according to a third preferred embodiment of the invention.
Fig. 5A and 5B are flowcharts of a data transmission method according to a fifth preferred embodiment of the invention.
Fig. 6 is a flowchart of a data transmission method according to a sixth preferred embodiment of the invention.
Fig. 7A and 7B are flowcharts of a data transmission method according to a seventh preferred embodiment of the invention.
Detailed Description
To illustrate the present invention more clearly, a preferred embodiment will now be described in detail with reference to the accompanying drawings. Referring to fig. 1, a wireless system according to a first preferred embodiment of the present invention includes at least one device 10, an intermediate device 20, a wireless base station (Access Point)30, an electronic apparatus 40, and a server 50. Wherein:
the number of the at least one device 10 is plural in the present embodiment, the devices 10 are located at the client side, and include controllable devices and detecting devices, in the present embodiment, the controllable devices are exemplified by the air conditioning system 10a and the fireplace 10b, and the detecting device is exemplified by the carbon monoxide detector 10 c. Each of the devices 10 is in signal connection with the intermediate device 20 through an rf (radio frequency) signal, but not limited thereto, may also be in signal connection through Wi-Fi, Zigbee, bluetooth, infrared, and the like. The controlled device receives the control instruction and performs corresponding actions, for example: the controlled device also compiles its own status information into an RF signal and transmits the RF signal, wherein the status information may be the current on or off status of the device 10, the current temperature, abnormal information, etc. The detecting device also compiles status information into RF signal and sends the RF signal, and the status information may be detected physical quantity, such as: the concentration of carbon monoxide.
The intermediate device 20 is located at a client and is in signal connection with the wireless base station 30 through a Wi-Fi signal so as to be connected to the internet I, and the intermediate device 20 is configured to receive and convert an RF signal into a Wi-Fi signal and then transmit the Wi-Fi signal, and receive and convert a Wi-Fi signal into an RF signal and then transmit the Wi-Fi signal. The intermediate device 20 is configured to receive the RF signals with status information from the devices 10, and to obtain the status information after interpreting the RF signals and storing the status information in a memory (not shown). In addition, the intermediate device 20 has a first counter 202 and a second counter 204, and the functions of the first counter 202 and the second counter 204 will be described later.
The electronic device 40, which is a tablet computer in the embodiment, can be directly connected to the internet I or connected to the wireless base station 30. The electronic device 40 is embedded with an Application program (Application) for a user to input control commands (such as turning on, turning off, adjusting temperature, etc.) of the control apparatus 10. The user can designate the device 10 to be controlled through the application program of the electronic apparatus 40, and in a state where the electronic apparatus 40 is directly connected to the internet I, one or more control commands input by the user are transmitted to the server 50 through the internet I, wherein the control commands transmitted by the electronic apparatus 40 include an identifier of the intermediate device 20, a code of at least one device 10 to be controlled, and a script (for example, a script corresponding to all of turning on, turning off, and adjusting temperature), thereby designating the intermediate device 20 and the device 10 to be controlled.
The server 50 is located remotely and connected to a database 52, and the database 52 is used for recording the control command transmitted from the electronic device 40 and storing the control command to be transmitted. The server 50 and the database 52 may be executed on the same server host or on two server hosts separately.
With the above-mentioned structure, the data transmission method of the present embodiment can be performed, and the method includes the following steps:
please refer to fig. 2, which shows an operation flow of the intermediate device 20:
in step S201, the middleware 20 is connected to the server 50 through the wireless base station 30 via the internet I, so that the middleware 20 and the server 50 can transmit data to each other.
In step S202, the intermediate device 20 determines whether there is currently any status information transmitted from any one of the devices 10:
if so, the middleware 20 transmits the stored state information to the server 50;
if not, the middleware 20 transmits a first chat command to the server 50, where the first chat command corresponds to that the middleware 20 does not currently store the status information of any device 10, that is, indicates to the server 50 that no status information is currently available to be uploaded to the server 50.
In step S203, after the middleware 20 finishes transmitting the status information or the first chat command, the middleware 20 transmits a second chat command (i.e., an interrupt request command) to the server 50, and interrupts the connection with the server 50 after the transmission, wherein the second chat command requests the server 50 to interrupt the connection with the middleware 20. In this embodiment, after the second conversation command is transmitted, the connection between the middleware 20 and the server 50 is interrupted by a predetermined time, wherein the predetermined time is more than 1 second. The time period of 1 second is to ensure that the second conversation command can be successfully sent to the server 50, so as to avoid that the server 50 closes the channel with the intermediate device 20 before the second conversation command is not sent to the server 50, which may result in the server 50 not receiving the second conversation command.
Please refer to fig. 3 for an operation flow of the server 50:
step S301 is continued after step S201 is connected, and the server 50 waits for receiving the data transmitted from the middleware 20.
Step S302, after receiving the data transmitted from the intermediate device 20, the server 50 analyzes the type of the received data, where:
if the device status information is the status information of the device 10, the server 50 stores the status information received each time in the database 52, updates the corresponding device status in the database 52, and transmits the corresponding device status information to the electronic apparatus 40. Returning to step S301, the process continues to wait for reception of data transmitted from the intermediate apparatus 20.
If the first chat command is received, the process returns to step S301 to continue to wait for receiving the data from the intermediate device 20.
If the second chat command indicates that the data transmission is completed, the server 50 closes the channel with the middleware 20 to interrupt the connection, and waits for the middleware 20 to be connected again or for other middleware 20 to be connected, thereby freeing up the connection resources of the server 50, and allowing other middleware 20 to be connected without being monopolized by the originally connected middleware 20 in the configuration of multiple middleware 20.
If one of the status information of the device 10, the first chat command and the second chat command indicates that the received data format is not the same, that is, the data is lost during the transmission, the server 50 transmits a third chat command (i.e., request interrupt command) to the middleware 20, and interrupts the connection with the middleware 20 after the transmission, wherein the third chat command requests the middleware 20 to interrupt the connection with the server 50. In this embodiment, the connection between the server 50 and the intermediate device 20 is interrupted after a predetermined time after the third conversation instruction is transmitted, wherein the predetermined time is more than 1 second. The time period of 1 second is to ensure that the third conversation command can be smoothly sent to the intermediate device 20, so as to avoid that the intermediate device 20 closes the channel with the server 50 before the third conversation command is not sent to the intermediate device 20, and the intermediate device 20 cannot receive the third conversation command. After receiving the third conversation command, the middleware 20 returns to step S201 and connects to the server 50 via the internet.
In the second embodiment, based on the first embodiment, step S302 further includes that when the server 50 determines that the data from the intermediate device 20 is one of the status information and the first conversation command, the server 50 determines whether there is a control command stored in the database 52 currently to be transmitted to any device 10 from the electronic apparatus 40:
if yes, the server 50 transmits the control instruction stored in the database 52 to the intermediate device 20, and after the intermediate device 20 receives the control instruction, the control instruction is sent to the corresponding device 10, so that the device 10 performs the corresponding action;
if not, the server 50 transmits a fourth chat command to the intermediate device 20, wherein the fourth chat command corresponds to a control command that is not to be transmitted to the device 10.
In the above, the timing of transmitting the control command or the fourth conversation command may be before or after returning to step 301.
In the first and second embodiments, after the middleware 20 finishes transmitting the status information or the first conversation command in step S202, step S203 is performed, so that the middleware 20 communicates with the server 50 regardless of whether the stored status information exists, and the server 50 can determine whether the middleware 20 is abnormal (for example, the middleware 20 does not transmit any data after being connected or the transmitted data format is not consistent) so as to ensure the reliability of data transmission. Of course, step S202 may be executed at least once, or the intermediate apparatus 20 may be caused to transmit the status information or the first conversation instruction a plurality of times before step S203 is executed in the following embodiment.
Fig. 4 shows a data transmission method of a wireless system according to a third preferred embodiment of the present invention, which has substantially the same steps as the first embodiment, except that:
step S401 includes setting the value of the first counter 202 in the intermediate apparatus 20 to a first initial value, which is 0 in this embodiment.
Step S402 includes adjusting the value of the first counter 202 to another value after a predetermined operation, in this embodiment, adding a first predetermined value to the value of the first counter, where the first predetermined value is 1 as an example. Of course the predetermined operation may also be the subtraction of the first predetermined value.
Step S403 includes determining whether the value of the first counter 202 reaches a first end value:
if so, the second chat command is sent to the server 50 and the connection with the server 50 is interrupted after the second chat command is sent. In this embodiment, after the second conversation command is transmitted, the connection between the middleware 20 and the server 50 is interrupted by a predetermined time, wherein the predetermined time is more than 1 second.
If not, the process returns to step S402.
In this embodiment, the first termination value is 20, that is, the intermediate device 20 and the server 50 will transmit the status information or the first conversation command 20 times after connecting, unless the data received by the server 50 in step S302 of the first embodiment is not one of the status information of the device 10, the first conversation command and the second conversation command, the transmission times will not be interrupted in advance.
Therefore, after the middleware 20 and the server 50 are connected, the state information or the first conversation command can be transmitted for a plurality of times. In particular, when the framework is applied to a plurality of middleware devices 20, each middleware device 20 can maintain the right for a certain number of transfers after being connected to the server 50.
In a fourth embodiment, based on the third embodiment, the method for transmitting data in a wireless system further includes the step of after a period of time elapses between the middleware 20 and the wireless base station 30, disconnecting the connection with the wireless base station 30 by the middleware 20, and reconnecting the connection with the wireless base station 30 by the middleware 20. In this embodiment, after the connection with the wireless base station 30 is interrupted, the middleware 20 restarts itself, and then the middleware 20 is connected with the wireless base station 30 again. Thus, the connection between the middleware 20 and the wireless base station 30 is more stable, and data loss is avoided.
Fig. 5A and 5B show a data transmission method of a wireless system according to a fifth preferred embodiment of the present invention, which has substantially the same steps as the third embodiment, except that:
step S501 is preceded by step S500 of linking the intermediate apparatus 20 with the wireless base station 30 and setting the value of the second counter 204 of the intermediate apparatus 20 to a second initial value, which in this embodiment is 0.
In step S502, in addition to adjusting the value of the first counter 202 to another value, the method further includes adjusting the value of the second counter 204 to another value after a predetermined operation, in this embodiment, a second predetermined value is added to the value of the second counter 204, and the second predetermined value is 1 as an example. Of course the predetermined operation may be subtracting the second predetermined value.
Step S503 further includes step S504 (see fig. 5B) after the middleware 20 is disconnected from the server 50, in which the middleware 20 determines whether the value of the second counter 204 reaches a second end value:
if so, the middleware 20 disconnects the connection with the wireless base station 30 and returns to step S500. In this embodiment, after the connection with the wireless base station 30 is broken, the intermediate apparatus 20 first restarts itself, and then returns to step S500.
If not, the process returns to step S501.
The present embodiment can also achieve the purpose of re-connecting the middleware 20 and the wireless base station 30 after a period of time, so that the connection between the middleware 20 and the wireless base station 30 is more stable.
Fig. 6 shows a data transmission method of a wireless system according to a sixth preferred embodiment of the present invention, which has substantially the same steps as the first embodiment, except that:
step S601 includes that the intermediate device 20 obtains a first time data from the server 50, in this step, the intermediate device 20 transmits a time request command to the server 50, and after receiving the time request command, the server 50 transmits the first time data back to the intermediate device 20, where the first time data includes the current system time of the server 50.
Step S603 includes that the intermediate device 20 transmits the time request command to the server 50 to obtain a second time data including the current system time of the server 50 from the server 50, and the intermediate device 20 determines whether the time difference between the first time data and the second time data reaches a first predetermined time difference:
if yes, transmitting a second conversation command to the server 50, and interrupting the connection with the server 50 after transmission; in this embodiment, after the second conversation command is transmitted, the connection between the middleware 20 and the server 50 is interrupted by a predetermined time, wherein the predetermined time is more than 1 second;
if not, go back to step S602.
In this embodiment, after the middleware 20 and the server 50 are connected, the status information or the first conversation command is transmitted a plurality of times within the time period corresponding to the first predetermined time difference, unless the transmission times are interrupted in advance unless the data received by the server 50 in step S302 of the first embodiment is not one of the status information of the middleware, the first conversation command and the second conversation command. Therefore, after the middleware 20 and the server 50 are connected, the state information or the first conversation command can be transmitted for a plurality of times. In particular, when the framework is applied to a plurality of middleware devices 20, each middleware device 20 can maintain the right for a certain number of transfers after being connected to the server 50.
The data transmission method of the present embodiment can also be similar to the fourth embodiment, after the connection between the middleware 20 and the wireless base station 30 is interrupted by the middleware 20 after a period of time, the middleware 20 restarts itself, and then the middleware 20 restarts the connection with the wireless base station 30. Thus, the connection between the middleware 20 and the wireless base station 30 is more stable, and data loss is avoided.
Fig. 7A and 7B show a data transmission method of a wireless system according to a seventh preferred embodiment of the present invention, which has substantially the same steps as those of the sixth embodiment, except that:
before step S701, step S700 is included, in which the intermediate apparatus 20 is connected to the wireless base station 30.
After step S702, step S703 is performed, and step S703 further includes step S704 (see fig. 7B) after the middleware 20 is disconnected from the server 50, in which the middleware 20 determines whether the time difference between the first time data and the second time data reaches a second predetermined time difference:
if so, the middleware 20 disconnects the connection with the wireless base station 30 and returns to step S700. In this embodiment, after the connection with the wireless base station 30 is broken, the intermediate apparatus 20 first restarts itself, and then returns to step S700.
If not, the process returns to step S701.
The present embodiment can also achieve the purpose of re-connecting the middleware 20 and the wireless base station 30 after a period of time, so that the connection between the middleware 20 and the wireless base station 30 is more stable.
Accordingly, the data transmission method of the wireless system of the present invention enables the intermediate device 20 to transmit the first chat command to the server 50 even if there is no stored status information, so that the server 50 can determine whether the intermediate device 20 normally transmits data, thereby ensuring the reliability of data transmission.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (19)
1. A data transmission method of wireless system, wherein the wireless system includes a server, an intermediate device, at least one device and a plurality of other intermediate devices, the server, the intermediate device and the plurality of other intermediate devices are connected to the Internet respectively, the intermediate device is connected to the device by signal, the intermediate device is used for receiving and storing the state information from the device; the data transmission method comprises the following steps:
A. the intermediate device is connected with the server through the Internet, so that the intermediate device and the server can mutually transmit data through the Internet; the intermediate device sets a value of a first counter to a first starting value;
B. the intermediate device determines whether the status information transmitted from the device is stored:
if yes, the intermediate device transmits the state information to the server;
if not, the intermediate device transmits a first conversation instruction to the server, wherein the first conversation instruction corresponds to the state information which is not stored;
step B includes that the intermediate device adjusts the value of the first counter into another value after a preset operation;
C. the intermediate device determines whether the value of the first counter reaches a first end value: if so, the intermediate device transmits a second conversation instruction to the server, and interrupts the connection with the server after transmission so as to enable the other intermediate devices to be connected with the server, wherein the second conversation instruction requests the server to interrupt the connection with the intermediate device; if not, returning to the step B for execution.
2. The method according to claim 1, wherein the connection with the server is interrupted after a predetermined time after the second chat instruction is transmitted in step C.
3. The data transmission method of claim 1, wherein the wireless system comprises a wireless base station connected to the internet for the intermediate device to connect to via Wi-Fi signals; the data transmission method comprises the steps that after the intermediate equipment is connected with the wireless base station for a period of time, the intermediate equipment is disconnected with the wireless base station, and the intermediate equipment is connected with the wireless base station again.
4. The data transmission method of claim 1, wherein the wireless system comprises a wireless base station connected to the internet for the intermediate device to connect to via Wi-Fi signals; step A includes, before connecting with the wireless base station by the intermediate device, and setting a value of a second counter in the intermediate device to a second initial value; step B comprises adjusting the value of the second counter to another value after a predetermined operation; after step C, when the value of the second counter reaches a second end value, the intermediate device interrupts the connection with the wireless base station, and then the intermediate device re-connects with the wireless base station and sets the value of the second counter as the second initial value before returning to step A.
5. The method according to claim 4, wherein step C is performed after the middleware device is disconnected from the wireless base station, the middleware device is restarted, and then the middleware device is reconnected to the wireless base station before step A is performed and the value of the second counter is set to the second initial value.
6. The method according to claim 4, wherein step C is followed by the step of returning to step B when the value of the second counter does not reach the second end value.
7. The method of claim 1, wherein step B is followed by transmitting a third chat command to the intermediary device and interrupting the connection with the intermediary device after the transmitting when the server determines that the data from the intermediary device is not one of the status information, the first chat command and the second chat command, wherein the third chat command requests the intermediary device to interrupt the connection with the server.
8. The method of claim 7 wherein step B further comprises the step of returning to step a after the intermediate device receives the third chat command.
9. The method according to claim 7, wherein after the step B, the server disconnects the intermediate device after a predetermined time after the third chat instruction is transmitted.
10. The data transmission method of claim 1, wherein the intermediate device is configured to transmit a control command to the device; step B is followed by determining, by the server, whether there is a control command to be transmitted to the device when the server determines that the data from the intermediate device is one of the status information and the first conversation command:
if yes, transmitting the stored control command to the intermediate device;
if not, a fourth conversation instruction is transmitted to the intermediate equipment, wherein the fourth conversation instruction corresponds to a control instruction which is not to be transmitted to the equipment.
11. A data transmission method of wireless system, wherein the wireless system includes a server, an intermediate device, at least one device and a plurality of other intermediate devices, the server, the intermediate device and the plurality of other intermediate devices are connected to the Internet respectively, the intermediate device is connected to the device by signal, the intermediate device is used for receiving and storing the state information from the device; the data transmission method comprises the following steps:
A. the intermediate device is connected with the server through the Internet, so that the intermediate device and the server can mutually transmit data through the Internet; the intermediate device obtains first time data from the server;
B. the intermediate device determines whether the status information transmitted from the device is stored:
if yes, the intermediate device transmits the state information to the server;
if not, the intermediate device transmits a first conversation instruction to the server, wherein the first conversation instruction corresponds to the state information which is not stored;
C. the intermediate device obtains a second time data from the server, and the intermediate device determines whether the time difference between the first time data and the second time data reaches a first predetermined time difference: if so, the intermediate device transmits a second conversation instruction to the server, and interrupts the connection with the server after transmission so as to enable the other intermediate devices to be connected with the server, wherein the second conversation instruction requests the server to interrupt the connection with the intermediate device; if not, returning to the step B for execution.
12. The method according to claim 11, wherein the connection with the server is interrupted after a predetermined time after the second chat instruction is transmitted in step C.
13. The data transmission method of claim 11, wherein the wireless system comprises a wireless base station connected to the internet for the intermediate device to connect to via Wi-Fi signals; the data transmission method comprises the steps that after the intermediate equipment is connected with the wireless base station for a period of time, the intermediate equipment is disconnected with the wireless base station, and then the intermediate equipment is connected with the wireless base station again.
14. The data transmission method of claim 11, wherein the wireless system comprises a wireless base station connected to the internet for the intermediate device to connect to via Wi-Fi signals; step A includes, connecting with the wireless base station by the intermediate device; after step C, when the time difference between the first time data and the second time data reaches a second preset time difference, the connection between the intermediate device and the wireless base station is interrupted, and before the step A, the intermediate device is executed to be connected with the wireless base station again.
15. The method of claim 14 wherein step C is performed after the middleware device is disconnected from the base station, the middleware device is restarted, and then the middleware device is reconnected to the base station before step a.
16. The method of claim 11, wherein step B further comprises sending a third chat command to the intermediary device and breaking the connection with the intermediary device after the sending when the server determines that the data from the intermediary device is not one of the status information, the first chat command and the second chat command, wherein the third chat command requests the intermediary device to break the connection with the server.
17. The method of claim 16 wherein step B further comprises the step of returning to step a after the intermediate device receives the third chat command.
18. The method according to claim 16, wherein after the step B, the server disconnects the intermediate device after a predetermined time after the third chat instruction is transmitted.
19. The data transmission method of the wireless system according to claim 11, wherein the intermediate device is configured to transmit a control command to the device; step B is followed by determining, by the server, whether there is a control command to be transmitted to the device when the server determines that the data from the intermediate device is one of the status information and the first conversation command:
if yes, transmitting the stored control command to the intermediate device;
if not, a fourth conversation instruction is transmitted to the intermediate equipment, wherein the fourth conversation instruction corresponds to a control instruction which is not to be transmitted to the equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710674794.3A CN109391519B (en) | 2017-08-08 | 2017-08-08 | Data transmission method for radio system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710674794.3A CN109391519B (en) | 2017-08-08 | 2017-08-08 | Data transmission method for radio system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109391519A CN109391519A (en) | 2019-02-26 |
CN109391519B true CN109391519B (en) | 2022-03-22 |
Family
ID=65414675
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710674794.3A Active CN109391519B (en) | 2017-08-08 | 2017-08-08 | Data transmission method for radio system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109391519B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858669A (en) * | 2006-01-11 | 2006-11-08 | 华为技术有限公司 | Switching method and device of control equipment |
CN104426734A (en) * | 2013-08-27 | 2015-03-18 | 鸿富锦精密工业(深圳)有限公司 | System and method for network on-line control |
CN104916098A (en) * | 2014-03-12 | 2015-09-16 | 关隆股份有限公司 | Online enable method of wireless control system |
CN105978851A (en) * | 2016-04-13 | 2016-09-28 | 青岛海信传媒网络技术有限公司 | System and method for controlling intelligent equipment |
-
2017
- 2017-08-08 CN CN201710674794.3A patent/CN109391519B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858669A (en) * | 2006-01-11 | 2006-11-08 | 华为技术有限公司 | Switching method and device of control equipment |
CN104426734A (en) * | 2013-08-27 | 2015-03-18 | 鸿富锦精密工业(深圳)有限公司 | System and method for network on-line control |
CN104916098A (en) * | 2014-03-12 | 2015-09-16 | 关隆股份有限公司 | Online enable method of wireless control system |
CN105978851A (en) * | 2016-04-13 | 2016-09-28 | 青岛海信传媒网络技术有限公司 | System and method for controlling intelligent equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109391519A (en) | 2019-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102473262B1 (en) | Electronic device for controlling establishing or releasing communication connection and method for controlling thereof | |
EP2838309A1 (en) | Method, device and system for establishing data connection | |
US9930708B2 (en) | Method of reconnecting master device and slave device | |
CN105764159B (en) | Network connection method, system and terminal thereof | |
US11770871B2 (en) | Radio link recovery method and terminal | |
US20240064710A1 (en) | Resource pool configuration method, resource pool using method, configuration device, and terminal | |
CN112233404A (en) | Bluetooth connection method, Bluetooth remote controller, terminal device and storage medium | |
CN109391519B (en) | Data transmission method for radio system | |
CN109547913B (en) | Data transmission method for radio system | |
US10368387B2 (en) | Method for transmitting data in wireless system | |
CN112333849A (en) | Equipment connection disconnection processing method and device, mobile terminal and storage medium | |
EP3229446B1 (en) | Application interaction method, device and terminal | |
CN109391652B (en) | Data transmission method for radio system | |
CN105142237A (en) | Device pairing method and system | |
WO2022068564A1 (en) | Device abnormality monitoring method and device | |
CN114995848A (en) | IoT device upgrading method, IoT device and computer-readable storage medium | |
CN112788658B (en) | Data sharing method of communication equipment, communication equipment and storage medium | |
TWI647931B (en) | Wireless system data transmission method | |
KR20230006118A (en) | Electronic device for performing network management operation and operating method thereof | |
US10367571B2 (en) | Method for transmitting data in wireless system | |
KR20170130801A (en) | Operating method for provisioning and electronic device supporting the same | |
CN109151160B (en) | Communication method, communication device, mobile terminal and storage medium | |
TWI647929B (en) | Wireless system data transmission method | |
TWI650974B (en) | Wireless system data transmission method | |
US9210658B2 (en) | Communication device, communication system, communication method, and program |
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 |