Disclosure of Invention
The embodiment of the invention provides a wireless communication system and a wireless communication method, which can avoid the phenomenon of data packet loss and reduce the packet loss rate of data.
In a first aspect, an embodiment of the present invention provides a wireless communication system, including: the system comprises a mobile terminal, a first switch and at least one group of Access Point (AP) base stations;
a second switch and at least two clients are arranged in the mobile terminal;
the second switch forms at least two communication links with the AP base station through the at least two clients respectively;
the second switch is used for acquiring original data, copying the original data to obtain mirror image data, and sending the original data and the mirror image data to the AP base station through the at least two communication links respectively;
the AP base station is used for sending mirror image data and original data to the first switch;
the first switch is used for uploading the first received data to an upper layer and discarding the subsequent received data.
In a second aspect, an embodiment of the present invention further provides a wireless communication method, including:
a second switch in the mobile terminal forms at least two communication links with the AP base station through at least two clients respectively; the at least two clients are arranged in the mobile terminal;
the second switch acquires original data, copies the original data to obtain mirror image data, and sends the original data and the mirror image data to the AP base station through the at least two communication links respectively;
the AP base station sends the mirror image data and the original data to a first switch;
and the first switch uploads the data received firstly to an upper layer and discards the data received subsequently.
In a third aspect, an embodiment of the present invention further provides a wireless communication system, including: the system comprises a mobile terminal, a first switch and at least one group of AP base stations; a second switch and at least two clients are arranged in the mobile terminal;
the second switch forms at least two communication links with the AP base station through the at least two clients respectively;
the second switch is used for acquiring data and sending the data to the AP base station through the at least two communication links;
the AP base station is used for sending the received data to the first switch;
and the first switch is used for uploading the received data to an upper layer.
In a fourth aspect, an embodiment of the present invention further provides a wireless communication method, including:
a second switch in the mobile terminal forms at least two communication links with the AP base station through at least two clients respectively;
the second switch acquires data and sends the data to the AP base station through the at least two communication links;
the AP base station sends the received data to the first switch;
and the first switch uploads the received data to an upper layer.
According to the technical scheme provided by the embodiment of the invention, at least two clients are arranged on the mobile terminal, so that two communication links can be formed between the mobile terminal and the AP base station, when one client fails, data transmission is not influenced, the second switch in the mobile terminal copies original data to obtain mirror image data, the original data and the mirror image data are sent to the first switch through the AP base station based on the two communication links, the first switch discards subsequently received data and the first switch receives the first data and the second data, the phenomenon of data packet loss can be avoided, and the packet loss rate of the data is reduced.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
In modern manufacturing workshops, subways, airports, warehouses and other occasions, in order to save labor and improve working efficiency, a moving end capable of moving automatically is introduced to assist manual work, for example, an Automated Guided Vehicle (AGV) can travel along a specified guide path, and has safety protection and various transfer functions. However, the mobile terminal capable of moving automatically cannot be equipped with a wired ethernet network, and communication must be achieved wirelessly. In the wireless roaming process of the mobile terminal, the phenomenon of packet loss is easily caused by electromagnetic interference or building shielding and the like. Therefore, a highly reliable wireless non-switching system needs to be built to guarantee the service demand.
In the related art, as shown in fig. 1, fig. 1 is a wireless Local Area Network (LAN) communication network, where at most one AP base station is connected to one client at the same time, and there is only one copy of data in the data transmission process. When the client fails, data cannot be transmitted because no client device can be switched. In addition, data is easily subjected to electromagnetic interference or building shielding in the transmission process, data redundancy does not exist, and the phenomenon of packet loss is easily caused, so that the packet loss rate is high, and the communication quality is influenced.
In the future, intelligent factories can be built without leaving intelligent networks accessed by various communication modes, and Wireless Local Area Network (WLAN) technology is developed under the 802.11 standard and can provide wireless network services anytime and anywhere, so that the wiring cost is greatly reduced. However, the WLAN technology is used in an industrial scenario, and there are some problems that are difficult to overcome, for example, the communication quality may be interfered, resulting in a high communication packet loss rate. For occasions with high requirements on wireless availability, such as subways, AGVs, traveling cranes, stereoscopic warehouses, port machines and the like, where mobile devices need to communicate, a highly reliable industry-WLAN solution is needed.
The EOE technology is a new generation of industrial ethernet communication technology developed under the 802.3 standard system, and one of the core technologies thereof is that data frames are transmitted in a network in a multipath manner. A plurality of transmission paths are established between a source address and a target address by building a composite (spider web) type topological network, one data frame is copied into a plurality of frames and is transmitted to the target address along different paths, the target node only stores (or forwards) the frames which arrive preferentially, and all the frames which arrive later are discarded. The second of the EOE core technology is a two-channel mechanism, a network is divided into two channels (real-time channel/non-real-time channel) according to different requirements of services on network transmission timeliness in one network, the two channels are isolated from each other, large-flow data in the non-real-time channel cannot influence control data in the real-time channel, the transmission delay of the real-time channel is less than 3 microseconds, and the real-time channel has the worst communication mechanism.
The technical solution provided in the embodiment of the present invention applies the EOE technology to wireless local area network communication, and may be specifically applied to communication between a mobile terminal and an AP base station, and fig. 2 is a two-way transmission frame diagram. Wherein EOE RedBox is an EOE switch. Based on a two-way transmission framework, an embodiment of the present invention provides a schematic structural diagram of a wireless communication system, as shown in fig. 3a, the system may be applied in a scenario of wireless communication, and optionally, the system may be applied in a scenario of wireless communication performed in an indoor space such as a production shop, a stereoscopic warehouse, and the like.
As shown in fig. 3a, the system provided by the embodiment of the present invention includes: a mobile terminal 110, a first switch 120 and at least one set of access point AP base stations 130.
The mobile terminal 110 is provided with a second switch 111 and at least two clients 112; the second switch 111 establishes connection with the AP base station 130 through at least two clients 112, respectively, to form at least two communication links; the second switch 111 is configured to acquire original data, copy the original data to obtain mirror image data, and send the original data and the mirror image data to the AP base station 130 through at least two communication links, respectively; the AP base station 130 is configured to send the mirror image data and the original data to the first switch 120; the first switch 120 is configured to upload first received data to an upper layer, and discard subsequently received data.
In the embodiment of the present invention, the first switch 120 and the second switch 111 may both be EOE (Ethernet over Ethernet, next generation communication technology) switches. The mobile end 110 may be a mobile device, and optionally, the mobile device may be an automated guided vehicle. The number of the group of AP base stations is not limited, and when the system includes a group of AP base stations, the group of AP base stations includes all the AP base stations.
In the embodiment of the present invention, optionally, two clients are provided in the mobile terminal, the number of groups of the AP base station may be one or two, and the second switch in the mobile terminal establishes a connection with the AP base station through the two clients to form two communication links.
In the embodiment of the present invention, when the mobile terminal is provided with two clients, all AP base stations may also be divided into one group, and each AP is provided with two working frequency bands. The two clients are connected with the AP base station through two working frequency bands to form two communication links, wherein each working frequency band can correspond to one communication link, and communication from the Client end to the AP end is achieved through the two communication links.
In the embodiment of the present invention, the system provided in the embodiment of the present invention is illustrated in the communication process, as shown in fig. 3a, two sets of AP base stations, which may be AP1 and AP2, are deployed at the wireless terminal, and two clients, which may be Client1 and Client2, are disposed in the mobile terminal. The Client1 is connected with the AP1, the Client2 is connected with the AP2, and therefore the second switch is correspondingly connected with the two groups of AP base stations through the Client1 and the Client2 to form two communication links. Take the data from the Client end to the AP end as an example in the uplink direction. And a second switch (EOE RedBox) in the mobile terminal copies the accessed data A into data A ', and the data A' are completely the same mutual backup redundancy. Data A is transmitted between the Client1 and the AP1, data A' is transmitted between the Client2 and the AP2, and the frequency band (2.4G/5.8G) adopted between the Client and the AP can be selected at will (in the embodiment of the invention, one path of 2.4G and one path of 5.8G are taken as examples). The AP1 and the AP2 send the received data to the first switch, the first switch checks the data A or A 'which arrives first without errors and forwards the data A or A' upwards, and the redundant copies received subsequently are discarded, namely, as long as one copy of the data can be obtained, the communication is qualified.
Therefore, two client sides are arranged on the mobile terminal to form two communication links, when one client side fails, the other client side can be used, normal communication is guaranteed, in addition, in the wireless communication process, data transmission has redundant copies, and the packet loss rate is greatly reduced. The adopted 'dual-path' and 'dual-channel' communication mechanisms can be used as an evolution enhancement technology of the wireless local area network, and compared with 4G/5G, leaky-wave cables and other wireless communication technologies, the high-reliability industrial wireless local area network can be realized by utilizing the existing mature wireless local area network products.
It should be noted that the wireless communication system shown in fig. 3a is not limited to the above-mentioned devices, the system shown in fig. 3a is only an example, and the wireless communication system may further include other devices, for example, a camera device for capturing images, obtaining image data, and sending the image data to the second switch, and may further include devices such as a controller and a server.
According to the technical scheme provided by the embodiment of the invention, at least two clients are arranged on the mobile terminal, so that two communication links can be formed between the mobile terminal and the AP base station, when one client fails, data transmission is not influenced, the second switch in the mobile terminal copies original data to obtain mirror image data, the original data and the mirror image data are sent to the first switch through the AP base station based on the two communication links, the first switch discards subsequently received data and the first switch receives the first data and the second data, the phenomenon of data packet loss can be avoided, and the packet loss rate of the data is reduced.
In one implementation manner of the embodiment of the present invention, the number of the clients is two, and all the AP base stations are divided into two groups; the two clients establish connection with the two corresponding groups of AP base stations to form two communication links; and each client corresponds to each group of AP base stations one to one. Optionally, the working frequency bands of the two clients are different and the same as the working frequency bands of the corresponding AP base stations, and the two groups of AP base stations are distributed in a cross manner. For example, as shown in fig. 3b, two of the overlay layer EOE Server (EOE Server) and the ethernet switch form a ring network. The Analog Controller (AC) Controller, server and AP base station normally access both switches. The wireless network access layer consists of an EOE RedBox switch and two clients (Client ends), wherein the EOE RedBox is respectively connected with the clients 1 and 2 in an uplink manner and is connected with the PLC and the camera device (video camera) in a downlink manner.
The mobile terminal 1 is provided with two Client terminals, namely Client1 and Client2, and the covered AP base stations are divided into two groups, wherein the group 1 is named by SSID1, and the group 2 is named by SSID 2. Client1 operates in 2.4G band and only connects with SSID1 for roaming handover between AP base stations in group 1. Client2 operates in the 5.8G band and only connects to SSID2 for roaming handover between AP base stations in group 2. One communication link is formed by the Client1 and the AP base station in the group 1, and the other communication link is formed by the Client2 and the AP base station in the group 2. Wherein the AP base stations of group 1 and group 2 are cross distributed. For example, the case where the AP base stations of group 1 and group 2 are cross-distributed may be SSID1, SSID2, SSID1, SSID2, SSID1, SSID2 … …. When the mobile terminal 1 moves, the Client1 and the Client2 can not have roaming switching actions at the same time, so that normal communication is ensured.
In one implementation manner of the embodiment of the present invention, the number of the clients is two; all AP base stations are divided into a group; each AP base station is configured with two working frequency bands which are different; and the two clients are respectively connected with the AP base station through the corresponding two working frequency bands to form two communication links. Optionally, the working frequency bands of the two clients are different and are correspondingly the same as the two working frequency bands configured by the AP base station; in two adjacent AP base stations, the coverage areas of the second operating frequency band of one base station and the first operating frequency band of the other base station are adjacent and do not overlap.
For example, as shown in fig. 3b, the mobile terminal 2 is provided with two clients, namely Client1 and Client2, all AP base stations are named by SSID1, each AP base station is configured with two working frequency bands, namely a 2.4G frequency band and a 5.8G frequency band, the Client1 can be connected to the 2.4G frequency band of each AP base station, the Client2 can be connected to the 5.8G frequency band of each AP, the Client1 forms a communication link with the AP base station through the 2.4G frequency band, and the Client2 forms another communication link with the AP base station through the 5.8G frequency band.
The coverage range (power adjustment) of different frequency bands of each AP base station is adjusted, so that an overlapping area covered by a 5.8G frequency band and an area covered by a 2.4G frequency band between two adjacent AP base stations are separated. When the mobile terminal 2 moves, it can support the Client1 and the Client2 to connect to the same AP base station at the same time, because the overlapping coverage ranges of the 2.4G frequency band and the 5.8G frequency band between adjacent AP base stations are different, it can be realized that the Client1 and the Client2 do not have roaming switching actions at the same time, thereby ensuring normal communication and avoiding the phenomenon of communication interruption.
In the related art, when a mobile terminal moves, a client needs to switch between different base stations, the switching is time-consuming, and a network is unavailable in the switching process, so that high-quality data transmission cannot be guaranteed. In the embodiment of the invention, the AP base stations are grouped, so that the clients correspond to the grouped AP base stations, and the grouped AP base stations are distributed in a cross way, so that two clients on the mobile terminal do not simultaneously perform switching actions, namely Client1 switches among the AP base stations in the group 1, and Client2 switches among the AP base stations in the group 2, therefore, for the application of the mobile terminal, at least one communication link is in a connected state at every moment, the network is available, and high-quality data transmission can be ensured. Or the embodiment of the invention divides the AP base station into a group, sets two working frequency bands for the AP base station, and forms two communication links with the AP base station by two clients based on the two working frequency bands, and the coverage ranges of the two working frequency bands are not overlapped; in the moving process of the mobile terminal, two clients can always keep a communication link in a connected state, and the transmission of data is not interrupted.
In an implementation manner of the embodiment of the present invention, optionally, the number of the clients is two; all AP base stations are divided into one group or two groups, and the two clients are provided with the same working frequency band. For example, as shown in fig. 3b, the mobile terminal is provided with two clients, i.e., Client1 and Client2, and both Client1 and Client2 may be set to have the same frequency in the 5.8G band (or 2.4G band). Specifically, when the AP base stations are divided into a group, the working frequency band of each AP base station may be set to only a 5.8G frequency band or a 2.4G frequency band, and the working frequency band of the AP base station may also be set to two working frequency bands, which are a 5.8G frequency band and a 2.4G frequency band, respectively. When the AP base stations are divided into two groups, the operating frequency band of one group of AP base stations is 5.8G frequency band, and the operating frequency band of the other group of AP base stations is 2.4G frequency band. Therefore, two communication links can be formed with the AP base station by arranging the two clients in the mobile terminal, and the communication timeliness of data can be ensured.
In this embodiment of the present invention, as shown in fig. 3a, a wireless communication system provided in this embodiment of the present invention includes a mobile terminal 110, a first switch 120, and at least one group of AP base stations 130; a second switch 111 and at least two clients 112 are arranged in the mobile terminal 110; the second switch 111 establishes connection with the AP base station 130 through the at least two clients 112, respectively, to form at least two communication links; the second switch 111 is further configured to acquire data and send the data to the AP base station 130 through the at least two communication links; the AP base station 130 is further configured to send the received data to the first switch 120; the first switch 120 is further configured to upload the received data to an upper layer.
In the related art, when the mobile terminal has access to both video data and control data, the video data occupying large bandwidth resources may affect the timeliness of control data transmission.
According to the embodiment of the invention, the mobile terminal is provided with the two client sides, two communication links can be established with the AP base station, two channels can be adopted for data transmission, efficient data transmission can be ensured, and when the mobile terminal has both video transmission requirements and PLC (programmable logic controller) and other control communication requirements, the two-channel (multi-network integration) communication link is an effective means for ensuring timeliness of control data.
Fig. 4 is a flowchart of a wireless communication method according to an embodiment of the present invention, and as shown in fig. 4, a technical solution according to an embodiment of the present invention includes:
s410: a second switch in the mobile terminal forms at least two communication links with the AP base station through at least two clients respectively; the at least two clients are arranged in the mobile terminal.
S420: and the second switch acquires original data, copies the original data to obtain mirror image data, and sends the original data and the mirror image data to the AP base station through the at least two communication links respectively.
S430: and the AP base station sends the mirror image data and the original data to a first switch.
S440: and the first switch uploads the data received firstly to an upper layer and discards the data received subsequently.
Optionally, the number of the clients is two, and all the AP base stations are divided into two groups;
the two clients establish connection with the two corresponding groups of AP base stations to form two communication links; and each client corresponds to each group of AP base stations one to one.
Optionally, the working frequency bands of the two clients are different and the same as the working frequency bands of the corresponding AP base stations, and the two groups of AP base stations are distributed in a cross manner.
Optionally, the number of the clients is two; all AP base stations are divided into a group;
each AP base station is configured with two working frequency bands which are different;
and the two clients are respectively connected with the AP base station through the corresponding two working frequency bands to form two communication links.
Optionally, the working frequency bands of the two clients are different and are correspondingly the same as the two working frequency bands configured by the AP base station;
in two adjacent AP base stations, the coverage areas of the second operating frequency band of one base station and the first operating frequency band of the other base station are adjacent and do not overlap.
Optionally, the image is captured by a camera device to obtain image data, and the image data is sent to the second switch.
Optionally, the number of the clients is two;
all AP base stations are divided into one group or two groups, and the two clients are provided with the same working frequency band.
According to the technical scheme provided by the embodiment of the invention, at least two clients are arranged on the mobile terminal, so that two communication links can be formed between the mobile terminal and the AP base station, when one client fails, data transmission is not influenced, the second switch in the mobile terminal copies original data to obtain mirror image data, the original data and the mirror image data are sent to the first switch through the AP base station based on the two communication links, the first switch discards subsequently received data and the first switch receives the first data and the second data, the phenomenon of data packet loss can be avoided, and the packet loss rate of the data is reduced.
Fig. 5 is a flowchart of a wireless communication method according to an embodiment of the present invention, and as shown in fig. 5, a technical solution according to an embodiment of the present invention includes:
s510: and the second switch in the mobile terminal forms at least two communication links with the AP base station through at least two clients respectively.
S520: and the second switch acquires data and sends the data to the AP base station through the at least two communication links.
S530: and the AP base station sends the received data to the first switch.
S540: and the first switch uploads the received data to an upper layer.
According to the technical scheme provided by the embodiment of the invention, the mobile terminal is provided with the two client sides, so that two communication links can be established with the AP base station, two channels can be adopted for data transmission, the efficient transmission of data can be ensured, and when the mobile terminal has the video transmission requirements and the control communication requirements of a PLC (programmable logic controller) and the like, the two-channel (multi-network integration) communication link is an effective means for ensuring the timeliness of the control data.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.