A communication method based on temporary binding of wireless communication devices

By adopting a temporary binding method in wireless communication equipment, the problem of easy interference and complicated connection in the prior art communication slaves is solved, simplification and unique control of communication connections are realized, and communication stability and flexibility are ensured. .

CN118764979BActive Publication Date: 2024-11-15FUZHOU RENXIN MEDICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411256448.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-11-15
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

In the existing wireless communication methods, the communication slave is easily connected or interfered by other communication hosts during operation, and the binding connection process is cumbersome and inflexible, so it cannot be connected without confirmation.

Method used

Using a temporary binding method based on wireless communication equipment, the communication slave is reset to the initial code after the communication slave is turned on, and broadcasts it externally, allowing all communication hosts to connect, update the binding code after active connection, and restore the initial code after disconnection. Code, priority is given to connecting to the last bound host, and unique connection control is achieved through the binding code.

Benefits of technology

It simplifies communication connections, avoids communication interference, ensures the only control of the communication host over the slave, and prioritizes the connection of bound hosts when rebooting, while allowing new hosts to be connected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764979B_ABST
    Figure CN118764979B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication method based on temporary binding of wireless communication devices, which relates to the field of wireless communication. In the method, a communication host directly establishes a communication connection with a communication slave autonomously. After the communication connection is completed, a communication binding handshake code is sent to the connected communication slave through the communication host. The communication slave records the communication binding handshake code in an internal storage module and updates it to the communication protocol to avoid other devices interfering with the communication. The communication binding handshake code is a fixed code for the communication host, so as to achieve the uniqueness and fixity of the communication binding handshake code. After the communication slave is turned on, the communication binding handshake code of the communication protocol is set as an initial code. When the wireless communication connection with the communication host device is completed, the communication binding handshake code sent by the communication host is received, recorded in the storage module and updated in the communication protocol, so as to realize a one-master-one-slave communication mode. If the machine is not turned on and off again, it cannot be controlled and communicated by other communication hosts.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communications, and in particular to a communication method based on temporary binding of wireless communication devices. Background Art

[0002] The existing communication methods are divided into two aspects:

[0003] On the one hand, the communication host and the communication slave are directly connected without binding. After the communication slave is turned on, the communication host can actively establish a connection without the need for confirmation from the communication slave. Disadvantages: The same communication slave can be connected or interfered with by other communication hosts during operation. When the connected communication host is disconnected, other communication hosts can directly take over the communication connection of the communication slave, causing control and communication interference.

[0004] On the other hand, the communication host and the communication slave need to be bound and connected. The communication host sends a binding request to the communication slave, and the communication connection can be made only after the communication slave confirms it. Disadvantages: The communication slave needs to go through the confirmation step, which is more troublesome. Different communication hosts need to be bound repeatedly when connected. When the communication slave cannot confirm, the communication host cannot connect to the communication slave.

[0005] In view of the above situation, we propose a communication method based on temporary binding of wireless communication devices. Summary of the invention

[0006] The purpose of the present invention is to provide a communication method based on temporary binding of wireless communication devices to solve the problems raised in the above background technology.

[0007] To achieve the above object, the present invention provides the following technical solution: a communication method based on temporary binding of wireless communication devices, the hardware system includes multiple communication hosts, multiple communication slaves and a cloud server, and the communication method includes the following steps:

[0008] S1. After the communication slave is turned on, the communication binding handshake code contained in the communication protocol is reset to the initial code, and the communication slave is broadcasted to seek a communication connection. At this time, the communication slave allows all communication hosts to communicate with it;

[0009] S2, the communication host actively and directly connects to the communication slave. When the first communication host searches for the broadcast information of the communication slave and completes the connection, the communication host sends the fixed communication binding handshake code of the local machine to the communication slave. After receiving the communication binding handshake code, the communication slave saves it to the storage module inside the communication slave, and updates the communication binding handshake code of the communication protocol to the communication binding handshake code for connecting to the communication host. At this time, the communication slave only receives the relevant instructions sent by the communication host. Other communication hosts cannot communicate and control the communication slave due to different communication binding handshake codes.

[0010] S3. If the currently connected communication host disconnects the communication connection, the communication slave still keeps working and broadcasts the communication protocol with the communication binding handshake code of the communication host connected after startup. When the broadcast is connected to the corresponding communication binding handshake code communication host, the communication connection is formally established and the control state is restored;

[0011] S4. When a new communication host needs to be connected, the communication slave only needs to be turned off and then restarted. The communication slave will reset the communication binding handshake code of the communication protocol to the initial code, allowing other communication hosts to connect;

[0012] S5. The communication slave opportunity saves the communication binding handshake codes of the communication hosts that have been connected for communication. When multiple communication hosts are opened at the same time, the communication host that was connected last time, that is, the communication host with the latest communication binding handshake code saved, is preferentially connected. The connection order can be selected by whether there is a communication binding handshake code and the order of the communication binding handshake codes.

[0013] Preferably, in step S2, after the communication host is connected to the communication slave, the communication slave will not be connected to by other communication hosts. Even if the communication host is disconnected, the communication slave will not be connected to by other communication hosts. The communication slave will be connected to any communication host only after it is restarted.

[0014] Preferably, after the communication slave is powered on, it allows the communication host matched by any communication protocol to connect. The communication slave is an open communication connection broadcast. After the communication host searches for the communication slave, it can directly establish a connection with the communication slave without the need for the communication slave to confirm the match.

[0015] Preferably, after the communication host is connected, it sends its own unique communication binding handshake code to the communication slave, and loads it into the communication protocol to complete the binding communication.

[0016] Preferably, in step S2, after the communication slave is powered on and bound to the first communication host, other communication hosts cannot establish a connection with the bound communication slave. Even after the communication host is disconnected, other communication hosts still cannot connect to the communication slave. When the bound communication host re-enters the connection application, a connection can be established and the working status of the communication slave at this time can be obtained.

[0017] Preferably, in step S4, the communication slave will restore the broadcast communication protocol after restarting and restarting, and restore the communication binding handshake code of the communication protocol to the initial code. At this time, the communication slave is allowed to establish a connection and be bound by any communication host.

[0018] Preferably, the communication slave can store the communication binding handshake code of the bound communication host inside. When the communication slave searches for multiple communication hosts after being turned on, it will give priority to connecting to the bound communication host. When the communication slave searches for multiple bound communication hosts after being turned on, it will give priority to connecting to the communication host bound last time.

[0019] Preferably, the communication host can read the communication slave information and upload it to the cloud server. The cloud server modifies the communication binding handshake code of the communication host through administrator authority, or temporarily assigns the communication host administrator pass code, and generates an advanced communication protocol to delete or modify the communication binding handshake code information stored in the communication slave.

[0020] Compared with the prior art, the present invention has the following beneficial effects:

[0021] 1. It simplifies the communication connection between the communication host and the communication slave. The communication host can actively connect to the communication slave that is not connected by other communication hosts, without the need for the communication slave to enter the connection matching mode or confirm the connection application;

[0022] 2. The communication host can realize the exclusive connection and control communication right for the connected communication slave, so as to avoid being interfered by other communication hosts during the communication process. Even if the connection is disconnected, other communication hosts will not obtain the communication and control rights.

[0023] 3. At the same time, when the communication slave is restarted, the communication slave will give priority to connecting to the bound communication host. When no bound communication host is found, it can still be actively connected by other new communication hosts. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A system connection diagram for use with the method of the present invention. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] like Figure 1 As shown, this embodiment proposes a communication method based on temporary binding of wireless communication devices. The applied system includes a communication host, a communication slave and a cloud server. The communication host can read the communication slave information and upload it to the cloud server. The cloud server modifies the communication binding handshake code of the communication host through administrator authority, or temporarily grants the communication host administrator pass code, and generates an advanced communication protocol to delete or modify the communication binding handshake code information stored in the communication slave.

[0027] The communication method provided in this embodiment includes the following steps:

[0028] S1. After the communication slave is powered on, the communication binding handshake code contained in the communication protocol is reset to the initial code, and the communication slave is broadcasted to seek a communication connection. After the communication slave is powered on, it allows the communication host that matches any communication protocol to connect. The communication slave is an open communication connection broadcast. After the communication host searches for the communication slave, it can directly establish a connection with the communication slave without the need for the communication slave to confirm the match.

[0029] S2, the communication host actively and directly connects to the communication slave. When the first communication host searches for the communication slave broadcast information and completes the connection, the communication host sends the fixed communication binding handshake code of the local machine to the communication slave. After receiving the communication binding handshake code, the communication slave saves it to the storage module inside the communication slave, and updates the communication binding handshake code of the communication protocol to the communication binding handshake code for connecting to the communication host. At this time, the communication slave only receives the relevant instructions sent by the communication host. Other communication hosts cannot communicate and control the communication slave due to different communication binding handshake codes. After the communication host and the communication slave are connected, the communication host sends its own unique communication binding handshake code to the communication slave after the connection, and loads it into the communication protocol to complete the binding communication. The communication slave will not be connected by other communication hosts. Even if the communication host is disconnected, the communication slave will not be connected by other communication hosts. The communication slave will be connected by any communication host only after the communication slave is restarted.

[0030] S3. If the currently connected communication host disconnects the communication connection, the communication slave still keeps working and broadcasts the communication protocol with the communication binding handshake code of the communication host connected after startup. When the broadcast is connected to the corresponding communication binding handshake code communication host, the communication connection is formally established and the control state is restored;

[0031] S4. When you need to connect to a new communication host, you only need to shut down the communication slave and then restart it. The communication slave will reset the communication binding handshake code of the communication protocol to the initial code and allow other communication hosts to connect. After the communication slave is restarted, the broadcast communication protocol will be restored and the communication binding handshake code of the communication protocol will be restored to the initial code. At this time, the communication slave allows any communication host to establish a connection and bind.

[0032] S5. The communication slave will save the communication binding handshake code of the communication host that has been connected to the communication. When multiple communication hosts are turned on at the same time, the communication host that was connected last time, that is, the communication host with the latest communication binding handshake code saved, will be connected first. The connection order can be selected by whether there is a communication binding handshake code and the order of the communication binding handshake code. The communication binding handshake code of the communication host that has been bound can be stored inside the communication slave. When the communication slave searches for multiple communication hosts after it is turned on, it will be connected to the bound communication host first. When the communication slave searches for multiple bound communication hosts after it is turned on, it will be connected to the communication host that was bound last time.

[0033] In this embodiment, after the communication slave is powered on and bound to the first communication host, other communication hosts cannot establish a connection with the bound communication slave. Even after the communication host is disconnected, other communication hosts still cannot connect to the communication slave. When the bound communication host re-enters the connection application, a connection can be established and the working status of the communication slave at this time can be obtained.

[0034] The communication method provided in this embodiment is that the communication host can directly establish a communication connection with the communication slave independently. After the communication connection is completed, the communication host sends a communication binding handshake code to the connected communication slave. The communication slave records the communication binding handshake code in the internal storage module and updates it to the communication protocol to realize the communication binding requirements of the communication host and the communication slave, and avoid other devices interfering with the communication. The communication binding handshake code is a fixed code for the communication host, so as to achieve the uniqueness and fixity of the communication binding handshake code, and the communication host has initiative as a control system. After the communication slave is turned on, the communication protocol communication binding handshake code is set as the initial code. When the wireless communication connection with the communication host device is completed, the communication binding handshake code sent by the communication host is received, recorded in the storage module and updated to the communication protocol, realizing a master-slave communication mode. If the machine is not restarted, it cannot be controlled and communicated by other communication hosts. When the communication slave is working, after the communication host disconnects the communication, the communication protocol of the communication slave maintains the original communication binding handshake code. Except for the same communication host re-establishing communication, other communication hosts cannot control the communication slave to work.

[0035] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A communication method based on temporary binding of wireless communication devices, wherein the hardware system includes multiple communication hosts, multiple communication slaves and a cloud server, and is characterized in that: The communication method comprises the following steps: S1. After the communication slave is turned on, the communication binding handshake code contained in the communication protocol is reset to the initial code, and the communication slave is broadcasted to seek a communication connection. At this time, the communication slave allows all communication hosts to communicate with it; S2, the communication host actively and directly connects to the communication slave. When the first communication host searches for the broadcast information of the communication slave and completes the connection, the communication host sends the fixed communication binding handshake code of the local machine to the communication slave. After receiving the communication binding handshake code, the communication slave saves it to the storage module inside the communication slave, and updates the communication binding handshake code of the communication protocol to the communication binding handshake code for connecting to the communication host. At this time, the communication slave only receives the relevant instructions sent by the communication host. Other communication hosts cannot communicate and control the communication slave due to different communication binding handshake codes. S3. If the currently connected communication host disconnects the communication connection, the communication slave still keeps working and broadcasts the communication protocol with the communication binding handshake code of the communication host connected after startup. When the broadcast is connected to the corresponding communication binding handshake code communication host, the communication connection is formally established and the control state is restored; S4. When a new communication host needs to be connected, the communication slave only needs to be turned off and then restarted. The communication slave will reset the communication binding handshake code of the communication protocol to the initial code, allowing other communication hosts to connect; S5. The communication slave device saves the communication binding handshake code of the communication host that has been connected for communication. When multiple communication hosts are opened at the same time, the communication host that was connected last time, that is, the communication host with the latest saved communication binding handshake code, is preferentially connected.

2. A communication method based on temporary binding of wireless communication devices according to claim 1, characterized in that: In step S2, after the communication host and the communication slave are connected, the communication slave will not be connected by other communication hosts. Even if the communication host is disconnected, the communication slave will not be connected by other communication hosts. The communication slave will be connected by any communication host only after it is restarted.

3. A communication method based on temporary binding of wireless communication devices according to claim 1, characterized in that: In step S2, after the communication slave is powered on, it allows the communication host matched by any communication protocol to connect. The communication slave is an open communication connection broadcast. After the communication host searches for the communication slave, it can directly establish a connection with the communication slave without the need for the communication slave to confirm the match.

4. A communication method based on temporary binding of wireless communication devices according to claim 2, characterized in that: In step S2, after the communication host is connected, it sends its own unique communication binding handshake code to the communication slave, and loads it into the communication protocol to complete the binding communication.

5. A communication method based on temporary binding of wireless communication devices according to claim 2, characterized in that: In step S2, after the communication slave is powered on and bound to the first communication host, other communication hosts cannot establish a connection with the bound communication slave. Even after the communication host is disconnected, other communication hosts still cannot connect to the communication slave. When the bound communication host re-enters the connection application, a connection can be established and the working status of the communication slave at this time can be obtained.

6. A communication method based on temporary binding of wireless communication devices according to claim 1, characterized in that: In step S4, the communication slave will restore the broadcast communication protocol after restarting and restarting, and restore the communication binding handshake code of the communication protocol to the initial code. At this time, the communication slave is allowed to establish a connection and bind with any communication host.

7. A communication method based on temporary binding of wireless communication devices according to claim 6, characterized in that: The communication slave can store the communication binding handshake code of the bound communication host inside. When the communication slave searches for multiple communication hosts after startup, it will preferentially connect to the bound communication host. When the communication slave searches for multiple bound communication hosts after startup, it will preferentially connect to the communication host bound last time.

8. A communication method based on temporary binding of wireless communication devices according to any one of claims 1 to 7, characterized in that: The communication host can read the communication slave information and upload it to the cloud server. The cloud server modifies the communication binding handshake code of the communication host through administrator authority, or temporarily grants the communication host administrator pass code, and generates an advanced communication protocol to delete or modify the communication binding handshake code information stored in the communication slave.