Method and System for Automatically Converting Wireless Communication Frequency Points between Master and Slave Devices
By selecting the master device with the best communication quality for frequency conversion by slave devices, parallel communication and interference problems of wireless devices are solved, parallel communication and information interaction between master and slave devices are realized, and efficient wireless communication solutions are provided.
Patent Information
- Application Number
- CN202310057762.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-17
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2043-01-17
AI Technical Summary
Traditional wireless communication methods between multiple wireless devices cannot realize parallel communication between master and slave devices, and wireless interference is easily generated at the same frequency point.
The slave device sends network access request information to the master device through the default transmission frequency point, receives the response information of the master device, selects the master device with the best communication quality as the response master device, stores its receiving frequency point and send frequency point to the local memory, and uses different frequencies for parallel communication. The receiving frequency point and send frequency point between the master and slave device are two frequency bands, realizing information interaction and parallel communication between the master and slave device.
It effectively solves the wireless interference problem between the master and slave devices during communication, and realizes parallel communication between the master and slave devices. The slave device has a monitoring function and can receive information from the master device in real time to provide information support for parallel communication between the master and slave devices.
Smart Images

Figure CN116193529B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technologies, and particularly to a method and system for automatically switching wireless communication frequency points between a master device and a slave device. Background Art
[0002] In the traditional wireless communication method between multiple wireless devices, a relatively single frequency point is used for communication. When in an application scenario where a single master device manages the communication of multiple controlled devices, especially when the number of controlled devices exceeds 50 - 100, the wireless network will be occupied. As a result, in a single-frequency point communication solution, the master device and the controlled devices can only be in a master-slave mode, and it is impossible to achieve parallel communication. At the same time, once the master device fails, the controlled devices it manages will be unable to communicate with the controlled devices remotely, losing the advantages of wireless communication. There is a solution that uses two master devices to achieve multi-frequency point interaction, which not only increases the cost but also increases the difficulty of the layout of the on-site network environment.
[0003] Moreover, at present, wireless unlicensed frequency bands, such as WIFI and Bluetooth, all use the 2.4G frequency band, and each wireless device uses the same frequency point as the main communication frequency point, resulting in easy formation of wireless interference between many wireless devices. For an Internet of Things communication network, these interferences are fatal.
[0004] Therefore, it is necessary to solve the problem that the traditional wireless communication method between multiple wireless devices cannot achieve parallel communication between the master device and the slave device, and is prone to wireless interference in the case of the same frequency point. Summary of the Invention
[0005] To solve the problem that the traditional wireless communication method between multiple wireless devices cannot achieve parallel communication between the master device and the slave device, and is prone to wireless interference in the case of the same frequency point, the present application relates to a method for automatically switching wireless communication frequency points between a master device and a slave device, including:
[0006] When the slave device is powered on for the first time, it sends an access request message to the master device through the default sending frequency point;
[0007] The slave device determines whether it receives response messages returned by at least one master device through the default receiving frequency point;
[0008] If the slave device receives response messages returned by at least one master device, it further determines whether the number of received response messages is greater than one;
[0009] If the number of received response messages is greater than one, the slave device selects the master device with the best communication quality as the response master device according to the communication quality data of the response messages, and stores the receiving frequency point and the sending frequency point of the response master device in the local memory;
[0010] After accessing the network, the slave device determines its own working state;
[0011] When the slave device is in the data sending state, the slave device calls the receiving frequency point for responding to the master device stored in the local memory, uses the receiving frequency point for responding to the master device as the sending frequency point of the slave device, and sends data to the responding master device through the sending frequency point of the slave device;
[0012] When the slave device is in the listening state, the slave device switches to the receiving frequency point of the slave device to listen for data.
[0013] A node automatic conversion wireless communication frequency point system includes:
[0014] Multiple master devices;
[0015] Multiple slave devices, each slave device is communicatively connected to each master device and is used to execute the method for automatically converting the wireless communication frequency points between the master and slave devices.
[0016] A method for automatically converting the wireless communication frequency points between the master and slave devices sends an access request message to the master device through a default sending frequency point and receives a response message from the master device, realizing the information interaction between the master and slave devices, and further realizing the parallel communication mode between the master control device and the slave control device. When multiple master device responses are obtained, the slave device selects the master device with the best communication quality as the responding master device according to the communication quality data of the response message, stores the receiving frequency point and the sending frequency point of the responding master device in the local memory, and the master device and the slave device use different frequency receiving frequency points and sending frequency points for the parallel communication mode, effectively solving the problem of wireless interference during communication between the master device and the slave device, and the slave device has a listening function and can receive the information of the master device in real time, including the receiving frequency point and the sending frequency point information of the master device with the best communication quality, providing information for the real-time parallel communication between the master device and the slave device. Brief Description of the Drawings
[0017] Figure 1 It is a flowchart of the method for automatically converting the wireless communication frequency points between the master and slave devices provided by an embodiment of the present application.
[0018] Figure 2 It is a connection diagram of the node automatic conversion wireless communication frequency point system provided by an embodiment of the present application.
[0019] Reference Numerals: 100 - Master device; 200 - Slave device. Detailed Description of the Embodiment
[0020] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0021] The present application provides a method for automatically switching wireless communication frequency points between a master device and a slave device.
[0022] As Figure 1 shown, in an embodiment of the present application, a method for automatically switching wireless communication frequency points between a master device and a slave device includes:
[0023] S100. When the slave device is powered on for the first time, it sends a network access request message to the master device through the default transmission frequency point.
[0024] S200. The slave device determines whether it receives response messages returned by at least one master device through the default reception frequency point.
[0025] S210. If the slave device receives response messages returned by at least one master device, it further determines whether the number of received response messages is greater than one.
[0026] S211. If the number of received response messages is greater than one, the slave device selects the master device with the best communication quality as the response master device according to the communication quality data of the response messages, and stores the reception frequency point and transmission frequency point of the response master device in the local memory.
[0027] S300. After network access, the slave device determines its own working state.
[0028] S310. When the slave device is in the data sending state, the slave device calls the reception frequency point of the response master device stored in the local memory, uses the reception frequency point of the response master device as the transmission frequency point of the slave device, and sends data to the response master device through the transmission frequency point of the slave device.
[0029] S320. When the slave device is in the listening state, the slave device switches to the reception frequency point of the slave device to listen for data.
[0030] Specifically, by sending the network access request information to the master device through the default sending frequency point and receiving the response information of the master device, the information interaction between the master and slave devices is realized, and then the parallel communication mode between the master control device and the slave control device is realized. When multiple master device responses are obtained, the slave device selects the master device with the best communication quality as the response master device according to the communication quality data of the response information, and stores the receiving frequency point and the sending frequency point of the response master device in the local memory. The master device and the slave device use different frequency receiving frequency points and sending frequency points for parallel communication, effectively solving the problem of wireless interference during communication between the master device and the slave device. Moreover, the slave device has a monitoring function and can receive the information of the master device in real time, including the receiving frequency point and the sending frequency point information of the master device with the best communication quality, providing information for the real-time parallel communication between the master device and the slave device.
[0031] The method for automatically switching the wireless communication frequency points of the master-slave devices involved in this application realizes the parallel communication between the master control device and the slave control device through the interactive response between the master device and the slave device. Moreover, the receiving frequency point and the sending frequency point between the master device and the slave device are two frequency bands, effectively solving the problem of wireless interference during communication between the master device and the slave device. The slave device has a monitoring function and can receive the information of the master device in real time, providing information for the real-time parallel communication between the master device and the slave device.
[0032] In an embodiment of the present application, after S200, the method for automatically switching the wireless communication frequency points of the master-slave devices further includes:
[0033] S220, if no response information returned by any master device is received, the slave device switches to another default sending frequency point, sends the network access request information to the master device through the other default sending frequency point, and returns to determine whether the slave device receives at least one response information returned by the master device through the default receiving frequency point.
[0034] Specifically, the "information" is transmitted by being carried by electromagnetic waves. Since electromagnetic waves of different frequency bands are used, the "information" carried by these electromagnetic waves will not be interfered. The waveforms of these electromagnetic waves are sine waves or waveforms superimposed by sine waves, rather than other waveforms such as sawtooth waves. When the slave device receives the response of the master device, there may be no response from the master device. Then, the sending frequency point is switched to continue sending the network access request information, and it is re-determined whether at least one response information returned by the master device is received.
[0035] The method for processing the master device response involved in this application is mainly determined by the slave device receiving the response information of the master device through the receiving frequency point. At the same time, the slave device has multiple sending frequency points. Therefore, even if the network access request sent by one sending frequency point is not responded by the master device, another sending frequency point can be switched.
[0036] In an embodiment of the present application, after the S210, the method for the master-slave devices to automatically switch the wireless communication frequency points further includes:
[0037] S212, if the received response information is equal to one, the slave device uses the master device corresponding to the response information as the response master device, stores the receiving frequency point and the sending frequency point of the response master device in the local memory, and after executing the network access, the subsequent slave device executes S300 to determine its own working state.
[0038] Specifically, when receiving the response from the master device, the slave device may receive a response from one master device. Then, the slave device uses this master device as the response master device, and stores the receiving frequency point and the sending frequency point information sent by the master device itself during the response in the local memory of the slave device. After executing the network access, the subsequent slave device determines its own working state.
[0039] The method for processing the response from the master device involved in the present application is mainly determined by the response information received by the slave device through the receiving frequency point. When only one response from the master device is received, the slave device does not need to switch the sending frequency point, nor does it need to send the request for network access information again. It only needs to store the receiving frequency point and the sending frequency point information sent by the master device itself in the local memory of the slave device and perform network access.
[0040] In an embodiment of the present application, the S320 includes:
[0041] S321, when the slave device is in the listening state, determine whether at least one active call message sent by the master device is received.
[0042] S322, if at least one active call message sent by the master device is received, the slave device further determines whether the received active call message is greater than one.
[0043] S323, if the received active call message is greater than one, the slave device selects the master device with the best communication quality as the new response master device according to the communication quality data of the active call message, updates the receiving frequency point and the sending frequency point of the new response master device in the local memory, replaces the receiving frequency point and the sending frequency point of the original response master device, and executes S300 for the slave device to determine its own working state.
[0044] Specifically, when the slave device is in the listening state, it will receive the information of the master device's active call. The active call information of the master device includes its own real-time receiving frequency point and transmitting frequency point. When the slave device receives multiple master devices or a master device different from the master device currently communicating and responding, the slave device selects the master device with the best communication quality as the new responding master device based on the communication quality data of the active call information, and updates the receiving frequency point and transmitting frequency point of the new responding master device to the local memory, replacing the receiving frequency point and transmitting frequency point of the original responding master device, so as to ensure the best communication quality between the slave device and the master device.
[0045] The method for the slave device to update the communication connection of the responding master device involved in this application mainly listens to the active call of the master device, and based on the listening result, selects the master device with the best communication quality as the new responding master device, so that the slave device can achieve high-quality communication with the responding master device.
[0046] In an embodiment of the present application, the S211 includes:
[0047] S211a, obtaining the signal strength of each response message and calculating the signal-to-noise ratio of each response message.
[0048] S211b, screening out the response messages with a signal strength greater than 5 dbm and a signal-to-noise ratio greater than -100 dbm as alternative response messages.
[0049] S211c, sorting the alternative response messages, generating a sorted ranking list of alternative response messages and storing it in the local memory. Among them, the greater the signal strength and the greater the signal-to-noise ratio, the higher the sorting ranking in the sorted ranking list of alternative response messages.
[0050] S211d, using the master device corresponding to the response message with the sorting ranking of 1 as the responding master device.
[0051] Specifically, during each listening process, the slave device will generate a sorted ranking list of alternative response messages. The slave device will update this sorted ranking list of alternative response messages during each listening process. The slave device will not only change the sorting ranking of the master device's response message according to the real-time listening information, but also exclude the offline master device.
[0052] Optionally, when determining the ranking of the response information of each master device, it is determined according to the communication quality score. The larger the communication quality score, the higher the ranking, and the higher the priority of being selected as the response master device. A signal strength weight can be assigned to the signal strength in advance, and a signal-to-noise ratio weight can be assigned to the signal-to-noise ratio in advance, and the sum of the signal strength weight and the signal-to-noise ratio weight is 1. The calculation formula for the communication quality score of a response information is: communication quality score = W1×K1 + W2×K2, where W1 is the signal strength weight, K1 is the signal strength of this response information, W2 is the signal-to-noise ratio weight, and K2 is the signal-to-noise ratio of this response information.
[0053] For example, through calculation, the communication quality score of a response information = 0.4×signal strength + 0.6×signal-to-noise ratio. The larger the result value, the higher the ranking, where the sum of the weights of the signal strength and the signal-to-noise ratio is 1.
[0054] The method for ranking the alternative response master devices involved in this application is to screen the signal strength greater than 5 dbm and the signal-to-noise ratio greater than -100 dbm as the alternative response master devices, and calculate the comprehensive influence of the signal strength and the signal-to-noise ratio by assigning different weights to the signal strength and the signal-to-noise ratio. Selecting the comprehensive influence of the signal strength and the signal-to-noise ratio as the ranking of the response master device is beneficial for the slave device to select the master device with high communication quality.
[0055] In an embodiment of the present application, the method for automatically switching the wireless communication frequency point between the master and slave devices further includes:
[0056] S400, when the slave device is powered on again after a power failure, retrieve the alternative response information ranking table in the local memory, send an access request according to the order of the ranking, determine the response information of the master device, and actively access the network.
[0057] Specifically, the slave device will store the received frequency point and the transmitted frequency point information of the response master device in real time according to the listening result. When the slave device is powered off, the received frequency point and the transmitted frequency point information of the response master device will not be lost. When the slave device is powered on, the slave device will retrieve the received frequency point and the transmitted frequency point information of the response master device from the local memory and make a call according to this information to send an information request to access the network.
[0058] The method for the slave device to re-access the network after a power failure involved in this application realizes re-accessing the network quickly by relying on the received frequency point and the transmitted frequency point information of the response master device stored in the local memory of the device to send an access request information. Such an access method reduces the access time. Because the slave device uses multiple transmitted frequency points of its own to send access request information, which takes a long time.
[0059] In an embodiment of the present application, the method for automatically switching the wireless communication frequency point between the master and slave devices further includes:
[0060] S110, the interval between the receiving frequency point of the master device and the transmitting frequency point of the master device is greater than or equal to a preset frequency point interval.
[0061] Specifically, the receiving frequency point of the slave device is the transmitting frequency point of the master device, and the transmitting frequency point of the slave device is the receiving frequency point of the master device. Among them, the receiving frequency point of the slave device is pre-set, and at the same time, the receiving frequency point of the slave device is also the monitoring frequency point in the monitoring state. It can be seen that to separate the transmitting frequency point and the receiving frequency point of the master device by the preset frequency point interval to prevent wireless communication from being interfered, the transmitting frequency point and the receiving frequency point of the slave device are also separated by the preset frequency point interval.
[0062] The interval between the receiving frequency point of the master device and the transmitting frequency point of the master device involved in this application is greater than or equal to the preset frequency point interval, so that the mutual response between the master device and the slave device will not be interfered.
[0063] In an embodiment of this application, the method for automatically converting the wireless communication frequency points of the master-slave devices further includes:
[0064] 500, when the slave device is powered on again after a power outage, call the master device to request network access according to the receiving frequency point and transmitting frequency point for responding to the master device stored in the local memory.
[0065] Specifically, the slave device adjusts its own transmitting frequency point by retrieving the receiving frequency point and transmitting frequency point information for responding to the master device stored in the local memory before the power outage, so as to quickly access and respond to the master device.
[0066] The quick access and response of the slave device involved in this application to the master device after a power outage is realized by retrieving the receiving frequency point and transmitting frequency point information for responding to the master device stored in the local memory before the power outage.
[0067] In an embodiment of this application, the method for automatically converting the wireless communication frequency points of the master-slave devices further includes:
[0068] S600, after network access, group the slave device and the master device in units of regions according to the pre-configured region attribution.
[0069] Specifically, after the slave device is grouped with the master device, it will both monitor the information in the network and act as a communication node, and send the detected working information to the responding master device through its own transmitting frequency point. In these two working modes, the receiving frequency point and the transmitting frequency point need to be switched with each other.
[0070] The slave device involved in this application will switch the receiving frequency point and the transmitting frequency point back and forth to monitor the network and feedback the working information to the responding master device, so as to realize the parallel communication mode between the master control device and the slave control device.
[0071] The present application provides a node automatic conversion wireless communication frequency point system.
[0072] As Figure 2 shown, in an embodiment of the present application, the node automatic conversion wireless communication frequency point system includes a plurality of master devices 100 and a plurality of slave devices 200. Each slave device 200 is communicatively connected to each master device 100 and is used to execute the method for automatic conversion of wireless communication frequency points between master and slave devices.
[0073] It should be noted that, for the sake of concise writing, the master devices 100 and the slave devices 200 are only numbered in this embodiment and will not be repeatedly numbered in the aforementioned method for automatic conversion of wireless communication frequency points between master and slave devices.
[0074] Specifically, each master device 100 corresponds to at least one slave device 200 and forms an information interaction network within a certain range. The internal core of the interaction network is the automatic conversion of wireless communication frequency points between master and slave devices.
[0075] A node automatic conversion wireless communication frequency point system involved in the present application executes a method for automatic conversion of wireless communication frequency points between master and slave devices.
[0076] The technical features of the above-described embodiments can be combined arbitrarily, and there is no limitation on the execution order of the method steps. For the sake of concise description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.
[0077] The above-described embodiments only represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method for automatically switching wireless communication frequency points between a master device and a slave device, characterized in that, Including: When the slave device is powered on for the first time, it sends an access request message to the master device through the default sending frequency point. The slave device determines whether it receives response messages returned by at least one master device through the default receiving frequency point. If the slave device receives response messages returned by at least one master device, the slave device further determines whether the number of received response messages is greater than one. If the number of received response messages is greater than one, the slave device selects the master device with the best communication quality as the responding master device according to the communication quality data of the response messages, and stores the receiving frequency point and the sending frequency point of the responding master device in the local memory. After accessing the network, the slave device determines its own working state. When the slave device is in the data sending state, the slave device calls the receiving frequency point of the responding master device stored in the local memory, uses the receiving frequency point of the responding master device as the sending frequency point of the slave device, and sends data to the responding master device through the sending frequency point of the slave device. When the slave device is in the listening state, the slave device switches to the receiving frequency point of the slave device to listen for data. Wherein, when the slave device is in the listening state, the slave device switches to the receiving frequency point of the slave device to listen for data, including: when the slave device is in the listening state, it determines whether it receives active call messages sent by at least one master device. If the slave device receives active call messages sent by at least one master device, the slave device further determines whether the number of received active call messages is greater than one. If the number of received active call messages is greater than one, the slave device selects the master device with the best communication quality as the new responding master device according to the communication quality data of the active call messages, and updates the receiving frequency point and the sending frequency point of the new responding master device in the local memory, replacing the receiving frequency point and the sending frequency point of the original responding master device. Execute the slave device to determine its own working state.
2. The method for automatically switching the wireless communication frequency point between the master device and the slave device according to claim 1, characterized in that After the slave device determines whether it receives response messages returned by at least one master device through the default receiving frequency point, the method further includes: If the slave device does not receive any response messages returned by the master device, the slave device switches to another default sending frequency point and sends an access request message to the master device through the other default sending frequency point. Return to the slave device to determine whether it receives response messages returned by at least one master device through the default receiving frequency point.
3. The method for automatically switching the wireless communication frequency points between the master device and the slave device according to claim 1, characterized in that, After the slave device further determines whether the number of received response messages is greater than one, the method further includes: If the number of received response messages is equal to one, the slave device uses the master device corresponding to the response message as the responding master device, and stores the receiving frequency point and the sending frequency point of the responding master device in the local memory. After executing the access to the network, the subsequent slave device determines its own working state.
4. The method for automatically switching the wireless communication frequency points between the master device and the slave device according to claim 1, characterized in that: The slave device selects the master device with the best communication quality as the responding master device according to the communication quality data of the response messages, including: Obtain the signal strength of each response message and calculate the signal-to-noise ratio of each response message. Screen out the response messages with a signal strength greater than 5dbm and a signal-to-noise ratio greater than -100dbm as alternative response messages. Sort the alternative response information, generate a ranking list of the sorted alternative response information, and store it in the local memory; the greater the signal strength and the signal-to-noise ratio, the higher the ranking in the ranking list of the alternative response information. Use the master device corresponding to the response information with a ranking of 1 as the response master device.
5. The method for automatically switching the wireless communication frequency points between the master device and the slave device according to claim 4, wherein The method further includes: When the slave device is powered on again after a power outage, retrieve the ranking list of the sorted alternative response information in the local memory, send an access request according to the order of the rankings, determine the response information of the master device, and actively access the network.
6. The method for automatically switching the wireless communication frequency points between the master device and the slave device according to claim 1, wherein The interval between the receiving frequency point of the master device and the transmitting frequency point of the master device is greater than or equal to a preset frequency point interval.
7. The method for automatically switching the wireless communication frequency points between the master and slave devices according to claim 1, wherein The method further includes: When the slave device is powered on again after a power outage, call the master device to request access to the network according to the receiving frequency point and the transmitting frequency point of the response master device stored in the local memory.
8. The method for automatically switching the wireless communication frequency points between the master device and the slave device according to claim 1, wherein The method further includes: After accessing the network, group the slave device and the master device in units of regions according to the pre-configured region attribution.
9. A node automatic conversion wireless communication frequency point system, characterized in that, It includes: Multiple master devices; Multiple slave devices, each slave device is communicatively connected to each master device and is used to execute the method for automatically switching the wireless communication frequency points of the master-slave devices according to any one of claims 1 to 8.
Citation Information
Patent Citations
Multiport communication method, device and system based on radio-frequency transmission
CN105338477A
Communication networking method and communication system
CN111343697A
Ad hoc network anti-interference method based on interference perception and application
CN114845411A