Bidirectional wireless communication method, device and terminal
A technology of two-way wireless communication and host information, applied in the field of communication, can solve the problems of communication failure, inability to send information from the host, long distance, etc., and achieve the effect of improving the success rate of communication
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2017-09-19
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present invention relates to the technical field of communication, in particular to a two-way wireless communication method, device and terminal. Background technique
[0002] The use of wireless technology in smart devices is becoming more and more common. However, most of the wireless communications in the market for a system composed of a master and multiple slaves are one-way, and only the slave can report to the master for operation. state, the master cannot send information to the slave. And because the distance between the master of the smart device and multiple slaves is relatively long, not all of them are within the coverage of the same wireless network, resulting in communication failure between the slave and the master. At the same time, due to the short-term disconnection of individual slaves, the communication between the slaves and the master will also fail.
[0003] For the above-mentioned communication problems existing in the sy...
Examples
Embodiment 1
[0027] Embodiment 1 of the present invention provides a two-way wireless communication method, see figure 1 The flow chart of the two-way wireless communication method shown, the system of the host and multiple slaves, the host and the multiple slaves send heartbeat packets cyclically at regular intervals in sequence, and the method includes the following steps:
[0028] Step S11, the second slave receives the master heartbeat packet sent by the master and the first slave heartbeat packet sent by the first slave.
[0029] In a system including at least one master and multiple slaves, two-way communication can be realized by regularly sending a heartbeat packet, which not only carries the information to be interacted with but also includes the information to verify whether it is online. Specifically, the master and the multiple slaves cyclically send heartbeat packets at fixed intervals in sequence. see figure 2 The schematic diagram of the communication sequence of the syst...
Embodiment 2
[0053] Embodiment 2 of the present invention provides a two-way wireless communication device, which is applied to a system including a host and multiple slaves. The host and multiple slaves send heartbeat packets cyclically at regular intervals in sequence, Image 6 A structural block diagram of a two-way wireless communication device provided by an embodiment of the present invention is shown, and the device includes:
[0054] The receiving module 610 is used for the second slave to receive the master heartbeat packet sent by the master and the first slave heartbeat packet sent by the first slave; the master heartbeat packet includes master information, and the first slave heartbeat packet includes first slave information ;
[0055] The sending module 620 is used for the second slave to broadcast a second heartbeat packet to the master and other slaves; the second heartbeat packet includes master information, first slave information and second slave information.