Wireless communication line switching method, system and application of mobile wireless access point

By constructing the mobile device as a single removable AP and a single STA, and using an algorithm to select the communication STA and the preferred STA, the problem of communication interruption during roaming handover of the mobile device is solved, and fast handover and high-quality data transmission are achieved.

CN118804155APending Publication Date: 2024-10-18EAST CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410477538.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the existing technology, wireless communication of mobile devices is interrupted during roaming switching, resulting in device loss, and it is difficult to achieve seamless roaming in devices with limited computing resources.

Method used

By constructing the mobile device as a single movable wireless access point AP and the fixed device as a single STA, an algorithm is used to independently select the communication STA, establish alternative links and sort them according to signal strength to achieve switching between the communication STA and the preferred STA. , ensuring the continuity of data transmission.

Benefits of technology

It realizes the rapid switching of communication lines of mobile devices during roaming, ensures the communication quality after switching, and realizes data transmission with zero delay and zero packet loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004800933750000011
    Figure HDA0004800933750000011
  • Figure HDA0004800933750000021
    Figure HDA0004800933750000021
  • Figure HDA0004800933750000022
    Figure HDA0004800933750000022
Patent Text Reader

Abstract

The invention discloses a wireless communication line switching method of a movable wireless access point. According to the method, firstly, wireless connection requests of stations are received, alternative links are established with the stations meeting conditions, and the stations are ranked according to signal strength; then, under the condition that the communication site is not determined, the site with the strongest signal is selected as the communication site, a transmission link is established, and meanwhile, a non-communication site list is updated; and then, the AP selects the site with the strongest signal from the updated list as the optimal site, and establishes an optimal link. And the AP decides whether to switch the preferred site or not by periodically detecting the signal strength of the preferred site and the non-communication site. Finally, the AP also detects the signal strength of the communication site and the preferred site to determine whether link switching is required. The invention further discloses a wireless communication line switching system for realizing the wireless communication line switching method and application of the method or the system, and the wireless communication line switching system and the method have wide application value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and relates to a wireless communication line switching method, system and application of a mobile wireless access point AP. Background Art

[0002] In a wireless local area network (WLAN), due to the limited coverage of a wireless access point (AP), when a station (STA) is far away from the currently connected AP, the wireless signal strength will become weaker. When the STA signal strength is lower than the preset signal strength, the existing wireless connection is disconnected first, and then the scanning mode is entered to search for available APs around, and finally the authentication and reassociation phase is performed to successfully establish a wireless connection with the new AP and complete the roaming switch of the wireless network. The "disconnect before connecting" network switching mechanism brings about the problem of time delay in network switching, and in this process, the wireless service communication has been interrupted, and the STA and AP cannot transmit data in both directions.

[0003] In the prior art, the position of the AP is fixed in a certain space, and the STA is in a mobile state. The roaming switching time of the wireless network is shortened by adding a switching preparation action on the mobile STA device side. However, the problem of interruption of wireless communication between the AP and the STA when the STA roams from one AP to another and loss of connection of the mobile device is still not solved.

[0004] For example, in the prior art CN107071840B, in order to achieve seamless roaming of mobile devices, the mobile devices are constructed into multiple STAs, each of which is connected to different wireless base stations (i.e., APs) and establishes corresponding channels. Thus, multiple channels are established in the mobile device to connect to different wireless base stations. The channels include a main channel and a neighbor channel. The main channel is a channel that is transmitting data in the mobile device, and the neighbor channel is a channel that is not transmitting data in the mobile device.

[0005] For example, in the prior art CN115209502B, in order to achieve seamless roaming of mobile devices, virtualization technology is used to virtualize multiple virtual network devices from actual physical devices, and the multiple virtual network devices are distinguished by different MAC addresses. Each real mobile client virtualizes at least two clients, that is, each real mobile client is virtually constructed as at least two STAs; each AP virtualizes at least two wireless service LANs, that is, each real AP is virtually constructed as at least two APs.

[0006] The above two Chinese invention patents realize seamless roaming of mobile devices / mobile clients between APs by constructing multiple STAs in the mobile devices / mobile clients, but they are difficult to transplant to mobile devices with limited computing resources. Summary of the invention

[0007] In order to solve the deficiencies of the prior art, the purpose of the present invention is to provide a communication line switching method, system and application of a mobile AP, by constructing a mobile device as a single AP and a fixed device as a single STA. The mobile AP can autonomously select the communication STA for data transmission through an algorithm, which is simple and easy to implement and can shorten the product development cost and time.

[0008] The first object of the present invention is to provide a communication line switching method for a mobile AP, the communication line switching method is applied to a mobile AP connected to a plurality of STAs fixed at positions beside a track, the track is used to regulate the running route of the mobile AP, and the mobile AP moves within the track. The track is generally a drivable path of the mobile AP, for example, a plane circular track or a space three-dimensional circular track, unless otherwise specified.

[0009] The method comprises:

[0010] Step 1: The mobile AP receives wireless connection requests sent by one or more neighboring STAs in real time, and establishes alternative links between the mobile AP and one or more STAs that meet the wireless connection request requirements (successfully connected) through the wireless connection requests of one or more STAs that meet the requirements, and sorts the non-communication STA device table between the successfully connected STA and the mobile AP according to the signal strength.

[0011] In step 1, the station that meets the wireless connection request requirements is first set as a non-communication STA, and the signal strength information connected to the wireless access point is sent to the wireless access point through the alternative link; the non-communication STA devices are sorted according to the connection signal strength between the mobile AP and one or more STAs;

[0012] Meeting the wireless connection request requirement means that when the station initiates a connection request, the service set identifier and password of the mobile wireless access point provided by the station are consistent with the service set identifier and password preset in the mobile wireless access point.

[0013] Step 2: When the communication STA is not set, the mobile AP selects a STA with the best signal strength as the communication STA according to the sorting result of the non-communication STA device table in step 1, determines the transmission link between the mobile AP and the communication STA, and updates the non-communication STA list and sorting.

[0014] In step 2, the transmission link realizes bidirectional transmission of device data between the mobile wireless access point AP and the communication station STA;

[0015] After the communication site is set, the device address information of other non-communication sites in the non-communication site device table and the signal strength between different non-communication sites and the mobile wireless access point are updated, and the non-communication sites are re-sorted according to the connection signal strength of the different non-communication sites.

[0016] Step 3: After the communication STA is set, the mobile AP determines a preferred STA according to the ranking result, determines the preferred link between the mobile AP and the preferred STA, and updates the non-communication STA list and ranking.

[0017] In step 3, the preferred link does not transmit device data, and is used for the mobile wireless access point to obtain the information frame of the device address and signal strength value carried by the preferred site;

[0018] After setting the preferred site, the device address information of other non-communication sites in the non-communication site device table and the signal strength between different non-communication sites and the mobile wireless access point are updated, and the non-communication sites are re-sorted according to the connection signal strength of different non-communication sites.

[0019] Step 4: The detection timer of the mobile AP performs a periodic time reporting task, and the mobile AP periodically detects the signal strength of the preferred STA and the non-communication STA, and determines whether to implement the switching of the preferred STA according to the detection result;

[0020] The periodic detection time interval in step 4 can be set according to actual application requirements.

[0021] Step 4 further includes the following steps:

[0022] Step 4-1, detecting whether the signal strength of the preferred site is less than a preset switching threshold, if it is less than the switching threshold, executing step 4-2; if it is greater than, not executing subsequent steps;

[0023] The switching threshold can be adjusted according to actual needs while meeting the communication quality requirements;

[0024] Step 4-2, compare the signal strength of the site with the largest signal strength in the non-communication site list with the signal strength of the preferred site, and determine whether the actual difference is greater than the preset difference. If the actual difference is greater than the preset difference, execute step 4-3; if less, do not execute subsequent steps;

[0025] The preset difference value can be set according to the requirement of switching sensitivity in practical applications;

[0026] Step 4-3: The mobile wireless access point disconnects the preferred link with the current preferred site, replaces the current preferred site with the site with the largest signal strength in the non-communication site list, and reconnects the preferred link.

[0027] Step 5: The switching timer of the mobile AP performs a periodic timing task, and the mobile AP periodically detects the signal strength of the preferred STA and the communication STA, and determines whether to implement the switching of the transmission link and the preferred link according to the detection result;

[0028] The periodic detection time interval in step 4 can be set according to actual application requirements.

[0029] Step five further includes the following steps:

[0030] Step 5-1, the mobile wireless access point detects the signal strength of the current transmission link and the preferred link at a set time interval;

[0031] The time interval can be set according to actual application requirements;

[0032] Step 5-2: If the signal strength of the current transmission link is less than the signal strength of the current preferred link, and the difference between the signal strength of the current transmission link and the signal strength of the current preferred link is greater than a preset value, the transmission link is exchanged with the preferred link, and the preferred site is exchanged with the communication site;

[0033] The preset value can be set according to the requirement of switching sensitivity in actual application.

[0034] The second object of the present invention is to provide a wireless communication line switching system for a mobile AP, the wireless communication line switching system comprising one or more STAs fixed at multiple positions beside the track and a mobile AP; the number of the mobile APs is 1; the mobile AP connected to the STAs fixed at multiple positions beside the track is provided with a communication line switching device, the communication line switching device comprising:

[0035] The initialization configuration module is used to initialize the mobile AP configuration and set the SSID and password of the mobile AP;

[0036] The receiving and sorting module can receive the wireless connection requests sent by one or more neighboring STAs in real time, establish alternative links through the wireless connection requests of one or more STAs that meet the requirements, and sort the non-communication STA device table.

[0037] Select the setting module. When the communication STA is not set, the mobile AP selects a communication STA according to the sorting result, determines the transmission link, and updates the non-communication STA list and sorting; after the communication STA is set, the mobile AP determines a preferred STA according to the sorting result, determines the preferred link, and updates the non-communication STA list and sorting.

[0038] The timing detection module is used for the detection timer of the mobile AP to perform periodic timing tasks to detect the signal strength of the preferred STA and the non-communication STA; and / or, the switching timer of the mobile AP is used to perform periodic timing tasks to detect the signal strength of the preferred STA and the communication STA.

[0039] The switching judgment module is used for the mobile AP to judge whether to implement the switching of the preferred STA based on the detection result; and / or, for the mobile AP to judge whether to implement the switching of the transmission link and the preferred link based on the detection result.

[0040] The mobile AP is deployed as a mobile device to achieve multiple mobile modes in the space range. The mobile mode, i.e., the running track, can be customized by the user, and the moving track can be a linear track or a circular track. According to the needs of the actual application scenario, multiple STAs are fixedly arranged in different spatial positions.

[0041] The present invention also provides the application of the above-mentioned switching method or the above-mentioned wireless communication line switching system in logistics express cross-belt sorting systems, intelligent modern medical logistics systems, circular stereoscopic parking garages, etc.

[0042] Compared with the prior art, the beneficial effects of the present invention include: the mobile AP receives wireless connection requests sent by multiple adjacent STAs in real time, establishes alternative links through the wireless connection requests of multiple STAs that meet the requirements, and sorts the non-communication STA device table. When the communication STA is not set, the mobile AP selects a communication STA according to the sorting result, determines the transmission link, and updates the non-communication STA list and sorting. After the communication STA is set, the mobile AP determines a preferred STA according to the sorting result, determines the preferred link, and updates the non-communication STA list and sorting. The detection timer of the mobile AP performs a periodic timing task, and the mobile AP detects the signal strength of the preferred STA and the non-communication STA, and determines whether to implement the switching of the preferred STA according to the detection result. The switching timer of the mobile AP performs a periodic timing task, and the mobile AP detects the signal strength of the preferred STA and the communication STA, and determines whether to implement the switching of the transmission link and the preferred link according to the detection result. As a result, the communication line of the device in the mobile state is quickly switched, and the communication quality after the switch is guaranteed, while achieving zero delay and zero packet loss for the mobile device to upload device data. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0044] Figure 1 It is a block diagram of a wireless network communication system in Embodiment 1 of the present invention.

[0045] Figure 2 The present invention is a flowchart of a method for switching a communication line of a mobile AP in the first embodiment of the present invention.

[0046] Figure 3 This is a functional module diagram of a communication line switching device for a mobile AP in Embodiment 2 of the present invention.

[0047] Figure 4 The figure is a schematic diagram of a preferred STA switching process of a mobile AP in the first embodiment of the present invention.

[0048] Figure 5 The present invention is a schematic diagram of a communication STA switching process of a mobile AP in the first embodiment of the present invention. DETAILED DESCRIPTION

[0049] The present invention is further described in detail with reference to the following specific examples and drawings. The process, conditions, experimental methods, etc. for implementing the present invention, except for the contents specifically mentioned below, are all common knowledge and common common sense in the art and are not particularly limited by the present invention.

[0050] The present invention provides a wireless communication line switching method for a mobile wireless access point. The method first establishes alternative links with sites that meet the conditions by receiving a wireless connection request from a site, and sorts these sites according to signal strength. Then, if the communication site is not determined, the site with the strongest signal is selected as the communication site, and a transmission link is established, and a list of non-communication sites is updated at the same time. Thereafter, the AP will select the site with the strongest signal from the updated list as the preferred site and establish a preferred link. By regularly detecting the signal strength of the preferred site and the non-communication site, the AP decides whether it is necessary to switch the preferred site. Finally, the AP will also detect the signal strength of the communication site and the preferred site to determine whether a link switch is required. The present invention also provides a wireless communication line switching system for implementing the above-mentioned wireless communication line switching method, as well as the application of the method or system, which has wide application value.

[0051] The present invention provides a wireless communication line switching method for a mobile wireless access point, the switching method comprising the following steps:

[0052] Step 1: The mobile wireless access point receives wireless connection requests sent by one or more sites in real time, establishes alternative links between the mobile wireless access point and one or more sites that meet the requirements of the wireless connection request, and sorts the successfully connected non-communication site equipment table according to the signal strength between the site and the mobile wireless access point;

[0053] Step 2: When the communication site is not set, the mobile wireless access point selects the site with the best signal strength as the communication site according to the sorting result of the non-communication site equipment table obtained in step 1, uses the wireless connection line between the mobile wireless access point and the communication site as the transmission link, and updates the list and sorting of the non-communication site equipment table;

[0054] Step 3: The mobile wireless access point selects the site with the best signal strength in the list as the preferred site according to the sorting result of the non-communication site equipment table list updated in step 2, takes the wireless connection line between the mobile wireless access point and the preferred site as the preferred link, and updates the non-communication site equipment table list and sorting;

[0055] Step 4: The mobile wireless access point periodically detects the signal strengths of the preferred site and the non-communication site obtained in step 3, and determines whether to switch the preferred site according to the detection result;

[0056] Step 5: The mobile wireless access point periodically detects the signal strength of the communication site obtained in step 2 and the preferred site obtained in step 3, and determines whether to switch the transmission link and the preferred link based on the detection result.

[0057] The present invention also provides a wireless communication line switching system for implementing the above-mentioned switching method, wherein the wireless communication line switching system comprises one or more fixed stations and movable wireless access points arranged beside the track; the movable wireless access point is provided with a communication line switching device, and the communication line switching device comprises: a receiving sorting module, a selection setting module, a timing detection module and a judgment switching module;

[0058] The receiving and sorting module is used to receive the wireless connection request of the site, establish an alternative link between the site and the mobile wireless access point, and sort the non-communication site equipment table;

[0059] The selection and setting module is used to select and set a communication site and a preferred site, and determine the corresponding transmission link and the preferred link;

[0060] The timing detection module is used to detect the signal strength of the non-communication site, the preferred site or the communication site according to a preset time interval;

[0061] The switching judgment module is used to judge whether it is necessary to switch the preferred site and / or switch the transmission link and the preferred link based on the signal strength of the non-communication site, the preferred site or the communication site obtained by detection.

[0062] The communication line switching device of the mobile wireless access point also includes an initialization configuration module; the initialization configuration module is used to initialize the configuration of the mobile wireless access point and set the service set identifier and password of the mobile wireless access point.

[0063] In addition to implementing the client and server in a purely computer-readable program code, the client and server can also implement the same functions in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a client and server can be considered as a hardware component, and the means for implementing various functions included therein can also be considered as a structure within the hardware component. Or even, the means for implementing various functions can be considered as both a software module for implementing the method and a structure within the hardware component.

[0064] It can be seen from the above description of the implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation method of the present application or some parts of the implementation method.

[0065] Each implementation in this specification is described in a progressive manner, and the same or similar parts between the various implementations can be referred to each other, and each implementation focuses on the differences from other implementations. In particular, for the implementation of the client and the server, both can refer to the introduction of the implementation of the aforementioned method for comparative explanation.

[0066] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0067] Example 1

[0068] This embodiment provides a method for switching a communication line of a mobile AP. The specific steps are as follows: Figure 2 As shown, the method includes:

[0069] Step 1: The mobile AP receives wireless connection requests sent by one or more neighboring STAs in real time, establishes an alternative link between the mobile AP and one or more STAs that meet the wireless connection request requirements through the wireless connection requests of one or more STAs that meet the requirements, and sorts the non-communication STA device table.

[0070] In step 1, the mobile AP sets one or more STAs that have successfully connected wirelessly as non-communication STAs. The non-communication STAs send the signal strength information of the currently connected AP to the AP through an alternative link. The mobile AP obtains relevant information of the non-communication STA through the alternative link, generates a non-communication STA device table, and sorts one or more non-communication STAs in the non-communication STA device table according to the signal strength connected to the AP.

[0071] The mobile AP is a wireless access point and a carrier for performing wireless communication functions. Each mobile AP has an identifier for STA identification, which is a service set identifier (full name: Service Set Identifier, abbreviated as SSID).

[0072] In this embodiment, for the security of the communication line, the authentication mode of the mobile AP is set to non-open authentication and a password is preset. When the STA initiates a connection request, if the SSID and password provided by the STA are consistent with the SSID and password preset by the mobile AP, the STA meets the requirements and successfully achieves wireless connection with the current mobile AP.

[0073] A mobile AP can accept wireless connection with multiple STAs and establish alternative links with multiple STAs respectively. The alternative link does not transmit device data, but is only used for the mobile AP to obtain the information frame of MAC information and signal strength value carried by the non-communication STA. The non-communication STA device table contains the MAC information of each non-communication STA and the signal strength between the corresponding STA and the current mobile AP. The signal strength (full name: Received Signal Strength Indication, referred to as RSSI) is used to describe the signal strength between the STA and the AP. The size of RSSI directly affects the quality and transmission rate of wireless data reception and transmission between the STA and the AP. The RSSI size is represented by a negative number. The larger the value, the better the network quality of the link. For example, in the non-communication STA device table generated by the mobile AP, the RSSI of STA1 is -30dBm and the RSSI of STA2 is -35dBm, which means that the network quality between STA1 and the mobile AP is higher than the network quality between STA2 and the mobile AP.

[0074] Furthermore, the mobile AP sorts the non-communication STAs according to the RSSI sizes.

[0075] Step 2. When the communication STA is not set, the mobile AP selects a communication STA according to the sorting result, determines the transmission link, and updates the non-communication STA list and sorting. On the basis of step 1, under the premise that the mobile AP has not determined the communication STA, the mobile AP selects the non-communication STA with the highest signal strength in the non-communication STA list as the communication STA, and establishes the wireless connection line between the mobile AP and the communication STA as the transmission link. The transmission link is responsible for the transmission of device data and signal strength information, and realizes the two-way transmission of device data between the mobile AP and the communication STA. After the mobile AP selects the communication STA, it updates the non-communication STA list, updates the MAC information of the non-communication STA and the signal strength between the corresponding STA and the current mobile AP, and sorts the non-communication STA list based on the signal strength.

[0076] Step three, after the communication STA is set, the mobile AP determines a preferred STA according to the sorting result, determines the preferred link, and updates the non-communication STA list and sorting. The preferred link does not transmit device data, and is only used for the mobile AP to obtain the information frame of the device address and signal strength value carried by the preferred STA. On the basis of step two, the mobile AP determines the communication STA, and the mobile AP selects the non-communication STA with the highest signal strength in the non-communication STA list as the preferred STA, and establishes the wireless connection line between the mobile AP and the preferred STA as the preferred link. After the mobile AP selects the preferred STA, it updates the non-communication STA list, updates the MAC information of the non-communication STA and the signal strength between the corresponding non-communication STA and the current mobile AP, and sorts the non-communication STA list based on the signal strength.

[0077] The switching of the mobile AP communication line only occurs in the preferred link, and the preferred link does not affect the data communication of the transmission link when the preferred STA switches. For example, the mobile AP has established a transmission link, a preferred link, and an alternative link with STA1, STA2, and STA3 respectively. When the preferred link switches from STA2 to STA3, the existence of the transmission link still supports the two-way transmission of device data between the mobile AP and STA1.

[0078] Step 4: The detection timer of the mobile AP performs a periodic time reporting task, and the mobile AP detects the signal strengths of the preferred STA and the non-communication STA, and determines whether to implement the switching of the preferred STA according to the detection result.

[0079] In this embodiment, the detection period of the detection timer of the mobile AP is set to 3S, that is, the mobile AP performs a signal strength detection on the signal strengths of the preferred STA and the non-communication STA every 3S.

[0080] The following is a detailed description of step 4. Please refer to Figure 4 , the step four includes sub-step 4-1, sub-step 4-2 and sub-step 4-3.

[0081] In sub-step 4-1, the mobile AP detects whether the signal strength of the preferred STA is less than a preset switching threshold.

[0082] If not, the action of switching the preferred STA will not be performed.

[0083] If so, it indicates that the signal strength of the current preferred STA is less than the switching threshold, and sub-step 4-2 is executed.

[0084] Generally speaking, WiFi signal strength is divided into 5 levels: excellent, good, fair, poor, and extremely poor. When the RSSI size is between -50 and -60dBm, the corresponding WiFi signal strength level is excellent; when the RSSI size is between -60 and -70dBm, the corresponding WiFi signal strength level is good. In this embodiment, the preset switching threshold is set to -60dBm. When the signal strength of the current preferred STA is less than the switching threshold, it means that the signal strength level of the preferred STA is not excellent, and sub-step 4-2 needs to be executed to determine whether to switch.

[0085] In sub-step 4-2, the mobile AP detects the signal strength of the non-communication STA ranked first in the non-communication STA list, calculates the difference between the signal strength of the non-communication STA ranked first and the signal strength of the preferred STA, and determines whether it is higher than a preset difference.

[0086] If not, the action of switching the preferred STA will not be performed.

[0087] If so, it indicates that the difference between the signal strength of the first-ranked non-communication STA and the signal strength of the preferred STA is higher than the preset difference, and sub-step 4-3 is executed.

[0088] The preset difference is a positive number. In this embodiment, the preset difference is set to 8dB. After obtaining the signal strength of the first-ranked non-communication STA and the signal strength of the preferred STA, compare the difference in signal strength between the two with 8dB to determine whether the difference is less than 8dB or greater than 8dB. For example, if the preset difference is set to 8dB, if the signal strength of the first-ranked non-communication STA is -60dBm, and if the current preferred STA signal strength is -78dBm, it indicates that the difference between the signal strength of the first-ranked non-communication STA and the preferred STA signal strength is 18dB, which is higher than the preset value. Sub-step 4-3 can be executed.

[0089] In sub-step 4-3, the mobile AP disconnects the wireless connection with the current preferred STA, that is, cuts off the preferred link, sets the first-ranked non-communication STA as the new preferred STA, and updates the link between the mobile AP and the new preferred STA to the preferred link.

[0090] In this embodiment, the mobile AP will switch the preferred STA only when both the judgment actions of sub-step 4-2 and sub-step 4-3 are satisfied and completed at the same time, which can ensure the wireless network communication quality after the preferred STA is switched.

[0091] Step 5: The switching timer of the mobile AP performs a periodic timing task, and the mobile AP detects the signal strength of the preferred STA and the communication STA, and determines whether to implement the switching of the transmission link and the preferred link according to the detection result.

[0092] In this embodiment, the detection period of the switching timer of the mobile AP is set to 1 second, that is, the mobile AP can perform a signal strength detection on the signal strengths of the preferred STA and the communication STA every 1 second.

[0093] The following is a detailed description of step 5. Please refer to Figure 5 , the step five includes sub-step 5-1, sub-step 5-2 and sub-step 5-3.

[0094] In sub-step 5-1, the mobile AP uses the switching timer to perform a periodic time reporting task, and detects the signal strength of the current transmission link and the preferred link according to the time interval set by the switching timer.

[0095] In sub-step 5-2, the mobile AP detects that the signal strength of the current transmission link is less than the signal strength of the current preferred link, and determines that the difference between the signal strength of the current transmission link and the signal strength of the current preferred link is greater than a preset value.

[0096] In sub-step 5-3, the mobile AP switches the current transmission link to the preferred link and sets the current communication STA as the preferred STA; the current preferred link is switched to the transmission link and the current preferred STA is set as the communication STA.

[0097] The preset value is a positive number. In this embodiment, the preset value is set to 3dB. After obtaining the signal strength of the first-ranked non-communication STA and the signal strength of the preferred STA, the difference in signal strength between the two is compared with 3dB to determine whether the difference is less than 3dB or greater than 3dB. For example, the preset difference is set to 3dB. If the signal strength of the current preferred link is -40dBm and the signal strength of the current transmission link is -51dBm, the difference between the signal strength of the current preferred link and the signal strength of the current transmission link is 11dB, which is higher than the preset value of 3dB. The switching operation of the transmission link and the preferred link can be performed.

[0098] The implementation of this embodiment is based on a wireless network communication system. Figure 1 , Figure 1 1 is a block diagram of a wireless network communication system in Embodiment 1 of the present invention. The wireless network communication system includes movable APs that can be wirelessly connected to each other and STAs that are fixed at multiple positions beside the track.

[0099] In the embodiment of the present invention, the AP is deployed as a mobile device to build a wireless network and provide access services to STAs through wireless media. STAs fixed at multiple locations beside the track can establish wireless connections with the mobile APs, and can establish communication lines for device data transmission with the mobile APs if the requirements are met.

[0100] The technical solution of the embodiment of the present invention is to establish an alternative link by establishing wireless connections between the mobile AP and different STAs with fixed positions. The mobile AP judges the quality of the wireless communication network between the non-communication STA and the AP based on the size of RSSI, and then determines a communication STA to establish a transmission link, which is used for device data transmission; and determines a preferred STA to establish a preferred link, which is responsible for switching. When the spatial position of the mobile AP changes, the RSSI between the mobile AP and the communication STA, preferred STA, and non-communication STA will change. Based on the change in the RSSI value, the mobile AP monitors and manages the communication STA, preferred STA, and non-communication STA by setting a fixed time interval through a timer.

[0101] Example 2

[0102] Reference Figure 3 , Figure 3 A functional module diagram of a communication line switching device for a mobile AP provided by the present invention, wherein the communication line switching device for a mobile AP is applied to a mobile AP connected to STAs fixed at multiple positions beside a track, and the device includes: a receiving sorting module, a selection setting module, a timing detection module and a judgment switching module.

[0103] The receiving and sorting module is used for the mobile AP to receive wireless connection requests sent by multiple neighboring STAs in real time, establish alternative links through the wireless connection requests of multiple STAs that meet the requirements, and sort the non-communication STA device table; and is used to sort the non-communication STA device table after selecting the communication STA and the preferred STA.

[0104] In this embodiment, the receiving sorting module is used to perform Figure 2 For steps 1, 2 and 3 in the above, the specific description of the receiving sorting module can refer to the description of steps 1, 2 and 3.

[0105] The selection and setting module is used for the mobile AP to select a communication STA and determine the transmission link according to the sorting result when the communication STA is not set; and is used for the mobile AP to determine a preferred STA and determine the preferred link according to the sorting result after the communication STA is set.

[0106] In this embodiment, the selection setting module is used to execute Figure 2 For the specific description of the acceptance sorting module, please refer to the description of step 2 and step 3.

[0107] The timing detection module is used for the detection timer of the mobile AP to perform periodic timing tasks and detect the signal strength of the preferred STA and the communication STA. In this embodiment, the timing detection module is used to perform Figure 2 For steps 4 and 5 in the above, reference can be made to the description of steps 4 and 5 for the specific description of the timing detection module.

[0108] The switching judgment module is used for the mobile AP to judge whether to implement the switching of the preferred STA based on the detection result; and is used for the mobile AP to judge whether to implement the switching of the transmission link and the preferred link based on the detection result. In this embodiment, the timing detection module is used to perform Figure 2 For steps 4 and 5 in the above, reference can be made to the description of steps 4 and 5 for the specific description of the timing detection module.

[0109] Please refer again Figure 3 , the device also includes: an initialization configuration module.

[0110] The initialization configuration module is used for initialization configuration of the mobile AP and setting the SSID and password of the AP.

[0111] In this embodiment, the initialization configuration module is used to execute Figure 2 For details about the initialization configuration module, refer to the description of step 1.

[0112] In summary, the present invention provides a communication line switching method and device for a mobile AP, and a spatial layout method of a mobile AP and multiple STAs. The communication line switching method is applied to a mobile AP connected to a plurality of STAs fixed at multiple positions beside a track, and the method includes: the mobile AP receives wireless connection requests sent by multiple adjacent STAs in real time, establishes an alternative link through the wireless connection requests of multiple STAs that meet the requirements, and sorts the non-communication STA device table. The mobile AP selects a communication STA and a preferred STA according to the sorting result, and determines the transmission link and the preferred link. The detection timer and switching timer of the mobile AP perform periodic timing tasks, and the mobile AP detects the signal strength of the communication STA, the preferred STA and the non-communication STA, and determines whether to implement the switching of the preferred STA and / or determines whether to implement the switching of the transmission link and the preferred link according to the detection result.

[0113] As a result, fast switching of the communication line of the mobile AP is achieved, that is, fast switching of the communication line of the device in the mobile state is achieved, and the communication quality after the switching is guaranteed, while zero delay and zero packet loss are achieved when the mobile device uploads device data.

[0114] Comparative Example 1

[0115] For example, in the prior art CN107071840B, in order to achieve seamless roaming of mobile devices, the mobile devices are constructed into multiple STAs, each STA is connected to a different wireless base station (ie AP), and corresponding channels are established respectively. Thus, multiple channels are established in the mobile device to connect to different wireless base stations respectively. Among them, the channels include a main channel and a neighbor channel, the main channel is a channel in the mobile device that is transmitting data, and the neighbor channel is a channel in the mobile device that is not transmitting data. This requires a lot of computer resources and cannot be implemented in mobile devices with limited resources.

[0116] Comparative Example 2

[0117] For example, in the prior art CN115209502B, in order to achieve seamless roaming of mobile devices, virtualization technology is used to virtualize multiple virtual network devices from actual physical devices, and the multiple virtual network devices are distinguished by different MAC addresses. Each real mobile client virtualizes at least two clients, that is, each real mobile client is virtually constructed as at least two STAs; each AP virtualizes at least two wireless service LANs, that is, each real AP is virtually constructed as at least two APs. This requires a lot of computer resources and cannot be implemented in mobile devices with limited resources.

[0118] The protection content of the present invention is not limited to the above embodiments. Without departing from the spirit and scope of the present invention, changes and advantages that can be thought of by those skilled in the art are included in the present invention and are protected by the attached claims.

Claims

1. A wireless communication line switching method for a mobile wireless access point, characterized in that: The switching method comprises the following steps: Step 1: The mobile wireless access point receives wireless connection requests sent by one or more sites in real time, establishes alternative links between the mobile wireless access point and one or more sites that meet the requirements of the wireless connection request, and sorts the successfully connected non-communication site equipment table according to the signal strength between the site and the mobile wireless access point; Step 2: When the communication site is not set, the mobile wireless access point selects the site with the best signal strength as the communication site according to the sorting result of the non-communication site equipment table obtained in step 1, uses the wireless connection line between the mobile wireless access point and the communication site as the transmission link, and updates the list and sorting of the non-communication site equipment table; Step 3: The mobile wireless access point selects the site with the best signal strength in the list as the preferred site according to the sorting result of the non-communication site equipment table list updated in step 2, takes the wireless connection line between the mobile wireless access point and the preferred site as the preferred link, and updates the non-communication site equipment table list and sorting; Step 4: The mobile wireless access point periodically detects the signal strengths of the preferred site and the non-communication site obtained in step 3, and determines whether to switch the preferred site according to the detection result; Step 5: The mobile wireless access point periodically detects the signal strength of the communication site obtained in step 2 and the preferred site obtained in step 3, and determines whether to switch the transmission link and the preferred link based on the detection result.

2. The switching method according to claim 1, characterized in that: In step 1, the station that meets the wireless connection request requirement is set as a non-communication station, and the signal strength information connected to the wireless access point is sent to the wireless access point through the alternative link; Meeting the wireless connection request requirement means that when the station initiates a connection request, the service set identifier and password of the mobile wireless access point provided by the station are consistent with the service set identifier and password preset in the mobile wireless access point.

3. The switching method according to claim 1, characterized in that: In step 2, the transmission link realizes bidirectional transmission of device data between the mobile wireless access point and the communication site; After the communication site is set, the device address information of other non-communication sites in the non-communication site device table and the signal strength between different non-communication sites and the mobile wireless access point are updated, and the non-communication sites are re-sorted according to the connection signal strength of the different non-communication sites.

4. The switching method according to claim 1, characterized in that: In step 3, the preferred link does not transmit device data, and is used for the mobile wireless access point to obtain the information frame of the device address and signal strength value carried by the preferred site; After setting the preferred site, the device address information of other non-communication sites in the non-communication site device table and the signal strength between different non-communication sites and the mobile wireless access point are updated, and the non-communication sites are re-sorted according to the connection signal strength of the different non-communication sites.

5. The switching method according to claim 1, characterized in that: Step 4 further includes the following steps: Step 4-1, detecting whether the signal strength of the preferred site is less than a preset switching threshold, if it is less than the switching threshold, executing step 4-2; if it is greater than, not executing subsequent steps; Step 4-2, compare the signal strength of the site with the largest signal strength in the non-communication site list with the signal strength of the preferred site, and determine whether the actual difference is greater than the preset difference. If the actual difference is greater than the preset difference, execute step 4-3; if less, do not execute subsequent steps; Step 4-3: The mobile wireless access point disconnects the preferred link with the current preferred site, replaces the current preferred site with the site with the largest signal strength in the non-communication site list, and reconnects the preferred link.

6. The switching method according to claim 1, characterized in that: Step five further includes the following steps: Step 5-1, the mobile wireless access point detects the signal strength of the current transmission link and the preferred link at a set time interval; Step 5-2: If the signal strength of the current transmission link is less than the signal strength of the current preferred link, and the difference between the signal strength of the current transmission link and the signal strength of the current preferred link is greater than a preset value, the transmission link and the preferred link are interchanged, and the preferred site and the communication site are interchanged.

7. A wireless communication line switching system of a mobile wireless access point implementing the switching method according to any one of claims 1 to 6, characterized in that: The wireless communication line switching system includes one or more fixed stations and movable wireless access points arranged beside the track; The mobile wireless access point is provided with a communication line switching device, and the communication line switching device comprises: a receiving sorting module, a selection setting module, a timing detection module and a judgment switching module; The receiving and sorting module is used to receive the wireless connection request of the site, establish an alternative link between the site and the mobile wireless access point, and sort the non-communication site equipment table; The selection and setting module is used to select and set a communication site and a preferred site, and determine the corresponding transmission link and the preferred link; The timing detection module is used to detect the signal strength of the non-communication site, the preferred site or the communication site according to a preset time interval; The switching judgment module is used to judge whether it is necessary to switch the preferred site and / or switch the transmission link and the preferred link based on the signal strength of the non-communication site, the preferred site or the communication site obtained by detection.

8. The wireless communication line switching system according to claim 7, characterized in that: The communication line switching device of the mobile wireless access point also includes an initialization configuration module; the initialization configuration module is used to initialize the configuration of the mobile wireless access point and set the service set identifier and password of the mobile wireless access point.

9. Application of the switching method as described in any one of claims 1 to 6, or the wireless communication line switching system as described in claim 7 or 8 in a logistics express cross-belt sorting system, an intelligent modern medical logistics system, and a circular stereoscopic parking garage.