CN106982442B - Method, device and system for wireless communication in tunnel - Google Patents

Method, device and system for wireless communication in tunnel Download PDF

Info

Publication number
CN106982442B
CN106982442B CN201610029941.7A CN201610029941A CN106982442B CN 106982442 B CN106982442 B CN 106982442B CN 201610029941 A CN201610029941 A CN 201610029941A CN 106982442 B CN106982442 B CN 106982442B
Authority
CN
China
Prior art keywords
network
network card
tunnel
wireless
network connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610029941.7A
Other languages
Chinese (zh)
Other versions
CN106982442A (en
Inventor
彭志远
马永超
李亚东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Digital Technology Co Ltd
Original Assignee
Shenzhen Launch Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Digital Technology Co Ltd filed Critical Shenzhen Launch Digital Technology Co Ltd
Priority to CN201610029941.7A priority Critical patent/CN106982442B/en
Publication of CN106982442A publication Critical patent/CN106982442A/en
Application granted granted Critical
Publication of CN106982442B publication Critical patent/CN106982442B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • H04W16/20Network planning tools for indoor coverage or short range network deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method, a device and a system for wireless communication in a tunnel, wherein the method comprises the steps that a tunnel robot controls a first network card and a first wireless Access Point (AP) to establish first wireless network connection, data is transmitted to a management server through the first wireless network connection, and a second network card is controlled to scan the AP; according to the preset route advancing, determining a second AP and a network switching point according to the advancing direction of the tunnel robot; when the tunnel robot is detected to reach the network switching point, controlling the second network card to establish second wireless network connection with the second AP, and disconnecting the first wireless network connection; and transmitting data to the management server through the second wireless network connection, and controlling the first network card to scan the AP. The invention realizes the network data transmission in the tunnel with low cost and can keep the timeliness and fluency of the data transmission.

Description

Method, device and system for wireless communication in tunnel
Technical Field
The present invention relates to the field of computer and wireless network technologies, and in particular, to a method, an apparatus, and a system for performing wireless communication in a tunnel.
Background
With the development of urban construction, urban electricity load is increased at a high speed, land resources are scarce, and residents have higher requirements on urban landscapes and living environments. The traditional urban overhead line power transmission mode is not in line with the urban development trend, and the use of a power tunnel as a channel for laying urban high-voltage cables has become the trend of urban development.
The operation environment in the electric power tunnel is complex, dark and moist, the circulation of air is not smooth, is unfavorable for maintainers to expand the work of patrolling and examining, for effectively monitoring environment parameter and cable situation in the tunnel, get rid of the potential safety hazard, the use of the robot of patrolling and examining in the tunnel becomes the necessary means of maintaining the safe operation in electric power tunnel. In order to ensure that the tunnel robot can normally communicate with the control center machine room in the whole tunnel, video images, voice, control instructions and environment monitoring data are transmitted to the control center machine room, the following two communication methods are mainly adopted in the prior art: 1. using a leakage cable to cover the tunnel, and radiating wireless signals to the outside through the cable slot; 2. and covering by using a micro-honeycomb combined networking mode.
However, the above-described first method is relatively high in signal attenuation when the distance is relatively long, and is also relatively high in communication cost because the leaky cable is expensive. The second method is calculated according to the flow, and the use cost is high. Therefore, the prior art has the defects of high manufacturing cost, unstable communication and the like.
Disclosure of Invention
The invention provides a method, a device and a system for wireless communication in a tunnel, which aim to solve the technical problems of high manufacturing cost, unstable communication and the like in the prior art, realize the network data transmission in the tunnel with low cost and can keep the timeliness and fluency of the data transmission.
The present invention provides a method of wireless communication within a tunnel, the method comprising: the tunnel robot controls the first network card to establish first wireless network connection with a first wireless Access Point (AP), transmits data to a management server through the first wireless network connection, and controls the second network card to scan the AP; according to the preset route advancing, determining a second AP and a network switching point according to the advancing direction of the tunnel robot; when the tunnel robot is detected to reach the network switching point, controlling the second network card to establish second wireless network connection with the second AP, and disconnecting the first wireless network connection; and transmitting the data to the management server through the second wireless network connection, and controlling the first network card to scan the AP.
The present invention provides an apparatus for wireless communication within a tunnel, the apparatus comprising: the network management module is used for controlling the first network card and the first wireless access point AP to establish a first wireless network connection; the data transmission module is used for transmitting data to the management server through the first wireless network connection; the network management module is also used for controlling the second network card to scan the AP; the advancing module is used for controlling the tunnel robot to advance according to a preset route; the determining module is used for determining a second AP and a network switching point according to the advancing direction of the tunnel robot; the detection module is used for detecting whether the tunnel robot reaches the network switching point; the network management module is further configured to control the second network card to establish a second wireless network connection with the second AP and disconnect the first wireless network connection when detecting that the tunnel robot reaches the network switching point; the data transmission module is further used for transmitting the data to the management server through the second wireless network connection; the network management module is further configured to control the first network card to scan the AP.
The present invention provides a system for wireless communication within a tunnel, the system comprising: the system comprises a tunnel robot, a plurality of wireless Access Points (AP), a switch and a management server; the tunnel robot is configured with a first network card and a second network card, and is used for controlling the first network card and the first AP to establish a first wireless network connection in a tunnel, transmitting data to a management server through the first wireless network connection, controlling the second network card to scan the AP, determining a second AP and a network switching point according to a preset route advancing direction and according to the advancing direction of the tunnel robot, when the tunnel robot is detected to reach the network switching point, controlling the second network card and the second AP to establish a second wireless network connection, disconnecting the first wireless network connection, transmitting the data to the management server through the second wireless network connection, and controlling the first network card to scan the AP; the APs are configured in the tunnel, each AP is connected with a directional antenna through a feeder line and is connected with the switch through an optical fiber trunk line, and the APs are used for establishing network connection with the management server configured outside the tunnel through the switch through the optical fiber trunk line and forwarding the data sent by the tunnel robot to the management server.
According to the embodiment of the invention, in the process of executing the inspection task along the preset route through the tunnel robot, the first network card and the second network card are used for respectively establishing network connection with a plurality of wireless access points along the route, and the newly established network connection is switched to transmit data to the management server.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for wireless communication in a tunnel according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of switching APs in a method for performing wireless communication in a tunnel according to a first embodiment of the present invention;
Fig. 3 is a schematic structural diagram of an apparatus for performing wireless communication in a tunnel according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for performing wireless communication in a tunnel according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a system for performing wireless communication in a tunnel according to a fourth embodiment of the present invention;
fig. 6 is an application environment diagram of a system for wireless communication in a tunnel according to a fourth embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more comprehensible, the technical solutions in the embodiments of the present invention will be clearly described in conjunction with the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart of a method for performing wireless communication in a tunnel according to a first embodiment of the present invention is provided, and the method can be applied to a tunnel robot in a system as shown in fig. 5, so as to implement data communication between the tunnel robot and an external server. As shown in fig. 1, the method comprises the steps of:
S201, a tunnel robot controls a first network card and a first wireless Access Point (AP) to establish first wireless network connection, transmits data to a management server through the first wireless network connection, and controls a second network card to continuously scan the AP;
the tunnel robot is provided with two wireless network cards, preferably, the software platform uses a Centos 7.0 operating system, and the wireless network configuration tool uses a wpa_supplicant open source tool. The first AP (Wireless Access Point ) may be the AP closest to the tunnel robot or the AP with the strongest signal.
Specifically, before the tunnel robot controls the first network card to establish a first wireless network connection with the first AP, the tunnel robot configures an IP address of the first network card according to a preset setting rule and a preset IP (Internet Protocol ) address, and configures an MAC (Media Access Control ) address of the first network card and an MAC address of the second network card at the same time, where the tunnel robot may set the MAC address of the first network card and the MAC address of the second network card to be consistent or inconsistent. After the tunnel robot enters the tunnel to reach the start point of the preset travel route, for example: the method comprises the steps of controlling a first network card to establish first wireless network connection with a first AP (access point) arranged near a preset route starting point by a tunnel portal or a first network switching point in a specified inspection tunnel section, and transmitting data, such as audio and video data of the shot tunnel condition, to a management server through the first wireless network connection after the network connection is established. And simultaneously, controlling the second network card to continuously scan the AP. It can be understood that the functions of the first network card and the second network card alternate, and when the first network card is used for accessing the wireless network for data transmission, the second network card is used for scanning the AP; and when the second network card is switched to be used for accessing the wireless network for data transmission, the first network card is utilized to scan the AP.
It should be noted that, before traveling according to the preset route, the tunnel robot may or may not have established the first wireless network connection with the first AP by using the first network card, and further, the step of controlling, by the tunnel robot, the first network card to establish the first wireless network connection with the first wireless access point AP may include: the tunnel robot advances according to a preset route, and when the tunnel robot is detected to reach a first network switching point in the preset route, whether the first network card is connected with a first wireless network is judged; if the first network card does not establish the first wireless network connection with the first AP, controlling the first network card to establish the first wireless network connection with the first AP; if the first network card establishes the first wireless network connection with the first AP, the first wireless network connection is maintained.
Or, the tunnel robot may have established a first wireless network connection with any AP (not limited to a first AP corresponding to a first network switching point designated in advance) by using the first network card before traveling according to a preset route, and the tunnel robot travels according to the preset route, and when detecting that the tunnel robot reaches the first network switching point in the preset route, determines whether the first network card has established the first wireless network connection with any AP; if the first network card does not establish the first wireless network connection with any AP, controlling the first network card to establish the first wireless network connection with the first AP; if the first network card establishes the first wireless network connection with any AP, the first wireless network connection is maintained.
The data communication is carried out through the double network cards, so that the time of network access can be saved. As shown in table 1 below, testing indicates that switching a wireless module from one AP to another AP is a hard handoff procedure, and when the wireless module is disconnected from an AP for signal quality reasons, the wireless module scans for and connects to the next AP, which is time consuming throughout the connection to the AP.
TABLE 1
Action Time consuming
Scanning for APs About 3000ms (milliseconds)
Establishing a connection with an AP About 1400ms, over 5000ms when unstable
Setting IP and updating routes About 1ms, neglect
Establishing a server connection About 40ms
The tunnel robot transmits audio and video streams, control instructions and other information have higher requirements on real-time performance and communication bandwidth, and tests show that the hard switching process is long in time consumption, the tunnel robot is easy to disconnect from a control center, and the reconnection process is long, so that the actual requirements cannot be met. The problem of real-time performance can be solved by alternately accessing the wireless network by utilizing the double network cards, and the timeliness and fluency of data transmission are maintained.
S202, advancing according to a preset advancing route, and determining a second AP and a network switching point according to the advancing direction of the tunnel robot;
the tunnel robot is provided with a network switching point list in which the positions of network switching points arranged on a preset travel route and APs corresponding to the network switching points are described. The AP corresponding to the network switching point is the AP closest to the network switching point.
The tunnel robot travels according to a preset travel route and determines a network switching point closest to the tunnel robot and an AP corresponding to the network switching point in the travel direction according to the travel direction and the position of each network switching point in the network switching point list, namely a second AP which needs to be accessed through a second network card.
Preferably, the network switching point is located in a signal overlapping area between two adjacent APs, and the specific position can be determined according to the signal intensity of the APs. Further, at least 2 network switching points are set between every two neighboring APs. When the number of network switching points is 2, as shown in fig. 2, it is preferable that 2 network switching points S1 and S2 are respectively disposed at both left and right sides of a center point between adjacent two APs (AP 1 and AP 2), and in order to prevent frequent switching of APs in a switching point area, since the highest speed of the robot reaches 2m/S (meters/second), and the time required for the wireless module to establish a connection with the AP is about 2 seconds, it is preferable that the distance between each two network switching points is set to at least 4 meters.
The location of each network switching point may be manually configured in the tunnel robot. As another embodiment of the present invention, the position of the network switching point may also be calculated by the tunnel robot according to its own travel speed, travel route, the position of each AP, and the signal strength of each AP according to a preset algorithm, and may be automatically configured. Specifically, before a tunnel monitoring task is executed, the tunnel robot advances according to a preset route, acquires identification information of APs arranged along the way, detects signal intensity change of the APs, time consumption of establishing network connection with the APs and self travelling speed, obtains a distance between the APs, a signal critical position between the APs and an optimal distance between network switching points according to a preset algorithm according to the acquired information, thereby determining the position of the network switching points, configuring the network switching points in the tunnel robot, and finally realizing full automation of network switching.
S203, when the tunnel robot is detected to reach a network switching point, controlling a second network card to establish second wireless network connection with a second AP, and disconnecting the first wireless network connection;
the tunnel robot detects the distance change between the tunnel robot and the network switching point in real time according to the advancing speed and the determined position of the network switching point closest to the tunnel robot in the advancing direction, and when the distance between the tunnel robot and the network switching point is detected to be 0, namely the tunnel robot reaches the network switching point, the tunnel robot controls a second network card and a second AP to establish second wireless network connection and disconnects the first wireless network connection.
As another embodiment of the present invention, the tunnel robot may further detect whether the tunnel robot reaches the network switching point according to a position change of the switching point indicator lamp closest to the tunnel robot in a running direction of a screen in the tunnel shot in real time, or the monitored strength of a broadcast signal sent from a switching point broadcasting device disposed at the network switching point.
S204, transmitting data to the management server through the second wireless network connection, and controlling the first network card to scan the AP.
And after the second network card and the second AP successfully establish the second wireless network connection, disconnecting the first wireless network connection, configuring the IP address of the second network card, and then transferring to continue to transmit data to the management server through the second wireless network connection according to the configured IP address, and controlling the first network card to start scanning the AP. Steps S202 to S204 are then repeated until the tunnel robot travels to the end of the preset travel route, then returns along the route, and steps S202 to S204 are repeated again on the way, thus reciprocating.
Further, if the second network card does not scan the second AP when the tunnel robot reaches the network switching point, the second network card is controlled to establish a second wireless network connection with the AP with the strongest signal in the traveling direction of the scanned tunnel robot. And simultaneously, sending alarm information to the management server to inform the management server that the second AP fails and cannot provide network connection. It will be appreciated that if the second network card does not scan other APs except the second AP, the tunnel robot keeps the first wireless network connection going on until the second network card scans the AP that can provide network connection and has the strongest signal in the traveling direction, and establishes the second wireless network connection with the AP.
Further, the time consumed by scanning and connecting the APs can be effectively reduced by using the dual network cards, but if the first network card and the second network card have different MAC addresses and IP addresses, disconnection and reconnection of communication between the tunnel robot and the management server of the control center can be caused, and the change of the IP address of the tunnel robot can increase the difficulty in distinguishing the management server. Therefore, as another embodiment of the present invention, the same MAC address and IP address are configured for the first network card and the second network card, so that for the protocol stack above the link layer, whichever network card performs data communication is regarded as the same network card, and the connection is not disconnected for reconnection. Specifically, before the tunnel robot controls the first network card to establish the first wireless network connection with the first AP, the tunnel robot may configure the MAC addresses of the first network card and the second network card to be consistent with each other when the MAC addresses of the first network card and the second network card are configured, where the tunnel robot may configure the MAC addresses of the first network card and the second network card according to the MAC addresses customized by the user, may also configure the MAC address of the second network card according to the real MAC address of the first network card, or may configure the MAC address of the first network card according to the real MAC address of the second network card. After the second network card is controlled to establish second wireless network connection with the second AP and disconnect the first wireless network connection, the tunnel robot sets the IP address of the second network card according to the IP address of the first network card, simultaneously clears the IP address of the first network card, and then transmits data to the management server through the second wireless network connection.
In practical application, the following 4 setting modes exist for the MAC address and the IP address of the first network card and the MAC address and the IP address of the second network card:
1. setting the MAC address of the first network card and the MAC address of the second network card to be consistent, and setting the IP address of the first network card and the IP address of the second network card to be inconsistent;
2. setting the MAC address of the first network card and the MAC address of the second network card to be inconsistent, and setting the IP address of the first network card and the IP address of the second network card to be consistent;
3. setting the MAC address of the first network card and the MAC address of the second network card to be consistent, and setting the IP address of the first network card and the IP address of the second network card to be consistent;
4. and setting the MAC address of the first network card and the MAC address of the second network card to be inconsistent, and setting the IP address of the first network card and the IP address of the second network card to be inconsistent.
The 3 rd setting mode is preferable.
To further illustrate the above method, referring to fig. 1 and 2, for example, the tunnel robot first configures the MAC address of the first network wlan0 and the MAC address of the second network wlan1 to be consistent, configures the IP address of the first network card according to a preset IP address, proceeds according to a preset route after entering the tunnel, and when reaching the first network switching point S1, if it is detected that the first network wlan0 does not establish a first wireless network connection with the first wireless access point AP1 routed at this time, controls wlan0 to establish a first wireless network connection with AP1, then transmits the captured audio and video data to the management server through the first wireless network connection, and simultaneously controls the second network wlan1 to scan the AP, and if wlan0 has already established the first wireless network connection with AP1, does not perform a network connection operation, and continues to proceed according to the preset route. And then, the tunnel robot continues to travel according to a preset route, when the tunnel robot is detected to reach a second network switching point S2, the wlan1 is controlled to establish second wireless network connection with an AP2 closest to the second network switching point S2 in the traveling direction, the first wireless network connection is disconnected after the connection is successful, the IP address of the wlan1 is configured to be consistent with the IP address of the wlan0, the IP address of the wlan0 is cleared, then the tunnel robot is switched to transmit shot audio and video data to a management server through the second wireless network connection, and the wlan0 is controlled to execute the task of scanning the AP, so that seamless soft switching among the APs is realized.
In the method for performing wireless communication in the tunnel provided by the embodiment of the invention, in the process of executing the inspection task along the preset route through the tunnel robot, the first network card and the second network card are utilized to respectively establish network connection with a plurality of wireless access points along the way, and the newly established network connection is switched to transmit data to the management server.
Referring to fig. 3, a schematic structural diagram of an apparatus for performing wireless communication in a tunnel according to a second embodiment of the present invention is shown, for convenience of explanation, only the portions related to the embodiment of the present invention are shown. The apparatus may be the main body of execution of the method for performing wireless communication in a tunnel provided by the embodiment shown in fig. 1, such as a tunnel robot or a module in the tunnel robot. The device mainly comprises the following modules and functions:
the network management module 401 is configured to control the first network card to establish a first wireless network connection with the first wireless access point AP;
A data transmission module 402, configured to transmit data to a management server through the first wireless network connection;
the network management module 401 is further configured to control the second network card to scan the AP;
a traveling module 403, configured to control the tunnel robot to travel according to a preset route;
a determining module 404, configured to determine, according to the direction in which the tunnel robot travels, a second AP and a network switching point;
a detection module 405, configured to detect whether the tunnel robot reaches the network switching point;
the network management module 401 is further configured to control the second network card to establish a second wireless network connection with the second AP and disconnect the first wireless network connection when detecting that the tunnel robot reaches the network switching point;
a data transmission module 402, configured to transmit the data to the management server through the second wireless network connection;
the network management module 401 is further configured to control the first network card to scan the AP.
It should be noted that, in the embodiment of the apparatus for performing wireless communication in a tunnel illustrated in fig. 3, the division of each functional module is merely illustrative, and in practical application, the above-mentioned functional allocation may be performed by different functional modules according to needs, for example, configuration requirements of corresponding hardware or convenience of implementation of software, that is, the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. In practical applications, the corresponding functional modules in the present embodiment may be implemented by corresponding hardware, or may be implemented by corresponding hardware executing corresponding software (each embodiment provided in the present specification may apply the above description principles, which will not be repeated herein). See the description of the embodiment of fig. 1 described above for additional details.
As can be seen from the device for performing wireless communication in a tunnel illustrated in fig. 3, in the process of performing a routing inspection task along a preset route by using the tunnel robot, network connection is respectively established by using the first network card and the second network card and a plurality of wireless access points along the way, and the newly established network connection is switched to transmit data to the management server.
Referring to fig. 4, a schematic structural diagram of an apparatus for performing wireless communication in a tunnel according to a third embodiment of the present invention is shown, for convenience of explanation, only the portions related to the embodiment of the present invention are shown. The apparatus may be a main body of execution of the method for performing wireless communication in a tunnel, such as a terminal device or a module in the terminal device, provided in the embodiment shown in fig. 1. On the basis of the device for wireless communication in a tunnel provided in the above-described second embodiment, unlike the second embodiment, in the present embodiment:
Further, the apparatus further comprises: a parameter configuration module 501, configured to set, according to a preset setting rule, a media access control MAC address of the first network card and a MAC address of the second network card to be consistent or inconsistent, and set an internet protocol IP address of the first network card;
the parameter configuration module 501 is further configured to set the IP address of the second network card to be consistent with the IP address of the first network card after the network management module 401 disconnects the first wireless network, and clear the IP address of the first network card.
Further, the network switching point is located in a signal overlapping area between two adjacent APs, a preset distance is set from a center point between the two adjacent APs, and the distance between each two adjacent network switching points is at least 4 meters.
Further, the network management module 401 is further configured to control the second network card to establish the second wireless network connection with the AP with the strongest signal in the scanned tunnel robot traveling direction if the second network card does not scan the second AP.
Further, the traveling module 403 controls the tunnel robot to travel according to a preset route, and when the detecting module 405 detects that the tunnel robot reaches a first network switching point in the preset route, the network management module 401 is further configured to determine whether the first network card has established a first wireless network connection with the first AP; if the first network card does not establish the first wireless network connection with the first AP, controlling the first network card to establish the first wireless network connection with the first AP; if the first network card establishes the first wireless network connection with the first AP, the first wireless network connection is maintained.
Further, the parameter configuration module 501 is further configured to calculate, according to a preset algorithm, a position of each network switching point according to a traveling speed, a traveling route, a position of each AP and a signal strength of each AP of the tunnel robot, and automatically configure the position in the tunnel robot. Specifically, before executing the tunnel monitoring task, the parameter configuration module 501 controls the tunnel robot to advance according to a preset route through the advancing module, acquires the identifier of each AP set along the way, detects the signal intensity change of each AP, the time consumption of establishing network connection with each AP and the self advancing speed, and then obtains the distance between each AP, the signal critical position between each AP and the distance between each network switching point according to the acquired information and a preset algorithm, thereby determining the position of each network switching point, configuring the position in the tunnel robot, and finally realizing the full automation of network switching.
Further, the detection module 405 is further configured to detect whether the tunnel robot reaches the network switching point according to a position change of a switching point indicator lamp closest to the tunnel in a moving direction of a picture in the tunnel shot in real time, or an monitored strength of a broadcast signal sent by a switching point broadcasting device disposed at the network switching point.
As can be seen from the device for performing wireless communication in a tunnel illustrated in fig. 4, in the process of performing a routing inspection task along a preset route by using the tunnel robot, network connection is respectively established by using the first network card and the second network card and a plurality of wireless access points along the way, and the newly established network connection is switched to transmit data to the management server. Further, by setting the MAC address and the IP address of the dual network card to be consistent, disconnection and reconnection caused by switching network connection by using different MAC addresses and IP addresses can be avoided, the distinguishing difficulty of the management server is reduced, and the timeliness and fluency of data transmission are further improved.
Referring to fig. 5, a fourth embodiment of the present invention provides a system for wireless communication in a tunnel. As shown in fig. 5, the system includes: tunnel robot 101, a plurality of wireless access points AP102, switch 103, and management server 104.
The tunnel robot 101 is internally configured with a first network card and a second network card, and is configured to control the first network card and the first AP to establish a first wireless network connection in a tunnel, transmit data to the management server 104 through the first wireless network connection, control the second network card to scan the AP102, determine the second AP and a network switching point according to a preset route traveling direction and according to a traveling direction of the tunnel robot 101, and when detecting that the tunnel robot 101 reaches the network switching point, control the second network card and the second AP to establish a second wireless network connection, disconnect the first wireless network connection, transmit data to the management server 104 through the second wireless network connection, and control the first network card to scan the AP102.
The multiple APs 102 are configured inside the tunnel, the signal quality of the signal coverage overlapping area between two adjacent APs 102 meets a preset communication standard, the multiple APs 102 are connected with the directional antenna through a feeder line and are respectively connected with the switch 103 through an optical fiber trunk line, and are used for establishing network connection with the management server 104 configured outside the tunnel through the switch 103 through the optical fiber trunk line, and forwarding data sent by the tunnel robot 101 to the management server 104.
Specifically, referring to fig. 6, a plurality of APs 102 are disposed in a tunnel, each AP102 is connected to a switch 103 through an optical fiber trunk, data sent by a tunnel robot 101 is forwarded to a management server 104 outside the tunnel through the switch 103, and the management server 104 reports the received data to a power management system 105 based on a remote communication protocol via a power private network, so that each management platform of the power management system 105 processes the data.
Each AP102 is connected to a directional antenna through a feeder line, and transmits and receives radio frequency signals through the directional antenna, so that the radio frequency signals cover the whole tunnel. When the APs are laid out in the tunnel, in order to ensure the communication quality requirement, the signal quality of the overlapping area of the signal coverage of the adjacent APs needs to be in accordance with the preset standard.
Preferably, the whole tunnel is divided into a plurality of tunnel segments according to preset distances, a tunnel robot 101 is configured in each tunnel segment, the tunnel robot 101 is used for circularly executing the inspection task in the tunnel segment to which the tunnel robot belongs, and the tunnel pictures in the tunnel segment to which the tunnel robot belongs are shot and sent to the management server 104 through the wireless network established with each AP 102.
Because the tunnel robot 101 transmits audio and video streams, control instructions and other information have higher requirements on real-time performance and communication bandwidth, the time for switching wireless networks by using a single network card is longer, the tunnel robot 101 is easy to disconnect from a control center, and the reconnection process is longer, so that the actual requirements cannot be met. In order to solve the above-mentioned real-time problem and maintain the timeliness and fluency of data transmission, each tunnel robot 101 is internally configured with a first network card and a second network card. Also, preferably, the software platform uses the Centos 7.0 operating system and the wireless network configuration tool uses the wpa_supplicant open source tool.
When the tunnel robot 101 starts to perform the inspection task, the internet protocol IP address of the first network card, the media access control MAC address of the first network card, and the MAC address of the second network card are configured first, and the tunnel robot 101 may set the MAC address of the first network card and the MAC address of the second network card to be consistent or inconsistent. When the tunnel robot 101 enters the tunnel to reach the start point of the preset travel route, for example: the tunnel portal, or the first network switching point in the specified inspection tunnel section, controls the first network card to establish a first wireless network connection with the first AP arranged near the start point of the preset route, and transmits data, such as audio and video data of the condition in the photographed tunnel, to the management server 104 through the first wireless network connection after the network connection is successfully established. Meanwhile, the second network card is controlled to continuously scan the AP102.
The tunnel robot 101 is provided with a network switching point list in which the positions of network switching points arranged on a preset travel route and APs corresponding to the network switching points are described. The AP corresponding to the network switching point is the AP closest to the network switching point. The tunnel robot 101 determines, while traveling according to a preset traveling route, a network switching point closest to itself in the traveling direction and an AP corresponding to the network switching point, that is, a second AP to be accessed through a second network card, according to the traveling direction and the position of each network switching point in the network switching point list.
The tunnel robot 101 detects the distance change between itself and the network switching point in real time according to the travelling speed and the determined position of the network switching point closest to itself in the travelling direction, and when detecting that the distance between itself and the network switching point is 0 or close to 0, controls the second network card to establish the second wireless network connection with the second AP, disconnects the first wireless network connection, configures the IP address of the second network card, and then transmits data to the management server 104 through the second wireless network connection, and controls the first network card to scan the AP. Then the tunnel robot 101 continues to travel, determines a next network switching point and a corresponding AP according to the traveling direction, and when detecting that the tunnel robot reaches the next network switching point, controls the first network card to establish network connection with the AP corresponding to the network switching point, disconnects the second wireless network connection, transmits data to the management server 104 through the established network connection, and simultaneously controls the second network card to scan the AP, so that the tunnel robot is circulated until reaching the end point of the preset route, returns along the route, and continues repeating the above operation on the way.
Further, if the second network card does not scan the second AP when the tunnel robot 101 reaches the network switching point, the tunnel robot 101 controls the second network card to establish a second wireless network connection with the AP with the strongest signal in the scanned travelling direction, and at the same time, sends an alarm message to the management server 104 to notify the management server 104 that the second AP fails, and cannot provide network connection. It will be appreciated that if the second network card does not scan other APs except the second AP, the tunnel robot 101 keeps the first wireless network connection going until the second network card scans the AP that can provide the network connection and has the strongest signal in the traveling direction, and establishes the second wireless network connection with the AP.
Further, in order to avoid disconnection and reconnection of communication between the tunnel robot 101 and the management server 104 of the control center due to the first network card and the second network card having different MAC addresses and IP addresses, and an increase in difficulty in distinguishing the management server 104 due to a change in the IP address of the tunnel robot 101, in this embodiment, the first network card and the second network card have the same MAC address and IP address. Specifically, before the tunnel robot controls the first network card to establish the first wireless network connection with the first AP, the tunnel robot may configure the MAC addresses of the first network card and the second network card to be consistent with each other when the MAC addresses of the first network card and the second network card are configured, where the tunnel robot may configure the MAC addresses of the first network card and the second network card according to the MAC addresses customized by the user, may also configure the MAC address of the second network card according to the real MAC address of the first network card, or may configure the MAC address of the first network card according to the real MAC address of the second network card. After the second network card and the second AP are controlled to successfully establish the second wireless network connection and disconnect the first network connection, the tunnel robot 101 sets the IP address of the second network card according to the IP address of the first network card, clears the IP address of the first network card, and then transmits data to the management server through the second wireless network connection. In this way, any network card that performs data communication is regarded as the same network card for the protocol stack above the link layer, and the connection is not disconnected and reconnection is performed.
In practical application, the following 4 setting modes exist for the MAC address and the IP address of the first network card and the MAC address and the IP address of the second network card:
1. setting the MAC address of the first network card and the MAC address of the second network card to be consistent, and setting the IP address of the first network card and the IP address of the second network card to be inconsistent;
2. setting the MAC address of the first network card and the MAC address of the second network card to be inconsistent, and setting the IP address of the first network card and the IP address of the second network card to be consistent;
3. setting the MAC address of the first network card and the MAC address of the second network card to be consistent, and setting the IP address of the first network card and the IP address of the second network card to be consistent;
4. and setting the MAC address of the first network card and the MAC address of the second network card to be inconsistent, and setting the IP address of the first network card and the IP address of the second network card to be inconsistent.
The 3 rd setting mode is preferable.
Further, the system further comprises: the multiple network switching point indicating devices are used for assisting the tunnel robot 101 to determine network switching points, each network switching point indicating device is respectively arranged in a signal overlapping area between two adjacent APs in the tunnel, and is at a position which is a preset distance from a center point between the two adjacent APs, and the distance between two adjacent network switching point labels is at least 4 meters. For example, as shown in fig. 3, if two network switching point indicating devices are provided between two adjacent APs 1 and 2, the two network switching point indicating devices are provided at the left and right sides S1 and S2 of the center point between the two adjacent APs 1 and 2, respectively.
In particular, the network switch point device may include, but is not limited to: switch point indicator lights or switch point broadcasters. The switch point indicator lamp may be disposed at a position corresponding to a position of a network switch point recorded in the network switch point list, for example: on a wall body at a corresponding position in a tunnel and on the ground, the tunnel robot 101 can analyze the distance between itself and the switching point indicator lamp closest to itself in the travelling direction according to the position change of the switching point indicator lamp in the picture in the tunnel photographed in real time, so as to determine whether a network switching point is reached, and determine what network switching point and corresponding AP are reached according to the travelling log and the network switching point list. Or, the switching point broadcasting device sends the wireless broadcast containing the information of the network switching point within a preset range (for example, 0.5 m) by using the short-range communication technologies such as bluetooth, wireless fidelity, etc., when the tunnel robot 101 monitors the wireless broadcast sent by the switching point broadcasting device, it can determine whether the network switching point is reached according to the change of the intensity of the broadcast signal, and determine the AP corresponding to the currently reached network switching point according to the network switching point information carried in the broadcast signal and the preset network switching point list.
In the system for performing wireless communication in the tunnel provided by the embodiment of the application, the plurality of wireless access points are arranged in the tunnel, the tunnel robot establishes network connection with the plurality of wireless access points along the way by using the first network card and the second network card alternately in the process of executing the inspection task along the preset route, and switches the newly established network connection to transmit data to the management server.
In the embodiments provided in the present application, it should be understood that the disclosed method, apparatus and system may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present invention is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present invention.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The foregoing describes a method, apparatus and system for wireless communication in a tunnel according to the present invention, and those skilled in the art should not understand the present invention to limit the scope of the present invention.

Claims (10)

1. A method of wireless communication within a tunnel, the method comprising:
The tunnel robot controls the first network card to establish first wireless network connection with a first wireless Access Point (AP), transmits data to a management server through the first wireless network connection, and controls the second network card to scan the AP;
according to the preset route advancing, determining a second AP and a network switching point according to the advancing direction of the tunnel robot; the position of the network switching point is automatically configured after the tunnel robot calculates and determines according to a preset algorithm according to the self travelling speed, the travelling route, the position of each AP and the signal intensity of each AP;
when the tunnel robot is detected to reach the network switching point, controlling the second network card to establish second wireless network connection with the second AP, and disconnecting the first wireless network connection;
and transmitting the data to the management server through the second wireless network connection, and controlling the first network card to scan the AP.
2. The method of claim 1, wherein the tunneling robot controlling the first network card to establish the first wireless network connection with the first wireless access point AP comprises:
according to a preset setting rule, setting the Media Access Control (MAC) address of the first network card and the MAC address of the second network card to be consistent or inconsistent, and setting the Internet Protocol (IP) address of the first network card;
Said disconnecting said first wireless network connection and said transmitting said data to said management server over said second wireless network connection comprises:
setting the IP address of the second network card to be consistent with the IP address of the first network card;
and clearing the IP address of the first network card.
3. A method according to claim 1 or 2, wherein the network switching points are located in a signal overlap region between two adjacent APs, at a preset distance from a center point between two adjacent APs, and the distance between each two adjacent network switching points is at least 4 meters.
4. The method of claim 3, wherein the controlling the second network card to establish a second wireless network connection with the second access point comprises:
and if the second network card does not scan the second AP, controlling the second network card to establish the second wireless network connection with the AP with the strongest signal in the travelling direction of the scanned tunnel robot.
5. An apparatus for wireless communication within a tunnel, the apparatus comprising:
the network management module is used for controlling the first network card and the first wireless access point AP to establish a first wireless network connection;
The data transmission module is used for transmitting data to the management server through the first wireless network connection;
the network management module is also used for controlling the second network card to scan the AP;
the advancing module is used for controlling the tunnel robot to advance according to a preset route;
the determining module is used for determining a second AP and a network switching point according to the advancing direction of the tunnel robot; the position of the network switching point is automatically configured after the tunnel robot calculates and determines according to a preset algorithm according to the self travelling speed, the travelling route, the position of each AP and the signal intensity of each AP;
the detection module is used for detecting whether the tunnel robot reaches the network switching point;
the network management module is further configured to control the second network card to establish a second wireless network connection with the second AP and disconnect the first wireless network connection when detecting that the tunnel robot reaches the network switching point;
the data transmission module is further used for transmitting the data to the management server through the second wireless network connection;
the network management module is further configured to control the first network card to scan the AP.
6. The apparatus of claim 5, wherein the apparatus further comprises:
the parameter configuration module is used for setting the Media Access Control (MAC) address of the first network card and the MAC address of the second network card to be consistent or inconsistent according to a preset setting rule, and setting the Internet Protocol (IP) address of the first network card;
the parameter configuration module is further configured to set an IP address of the second network card to be consistent with an IP address of the first network card after the network management module disconnects the first wireless network, and clear the IP address of the first network card.
7. The apparatus of claim 6, wherein the network switch point is located in a signal overlap region between two neighboring APs, a preset distance from a center point between two neighboring APs, and a distance between each two neighboring APs is at least 4 meters.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
and the network management module is further configured to control the second network card to establish the second wireless network connection with the AP with the strongest signal in the traveling direction of the scanned tunnel robot if the second network card does not scan the second AP.
9. A system for wireless communication within a tunnel, the system comprising: the system comprises a tunnel robot, a plurality of wireless Access Points (AP), a switch and a management server;
the tunnel robot is configured with a first network card and a second network card, the tunnel robot is used for controlling the first network card and the first AP to establish a first wireless network connection in a tunnel, transmitting data to a management server through the first wireless network connection, controlling the second network card to scan the AP, advancing according to a preset route, determining a second AP and a network switching point according to the advancing direction of the tunnel robot, wherein the position of the network switching point is determined by the tunnel robot according to the advancing speed, the advancing route, the position of each AP and the signal intensity of each AP, calculating according to a preset algorithm, automatically configuring, and controlling the second network card and the second AP to establish a second wireless network connection when the tunnel robot reaches the network switching point, disconnecting the first wireless network connection, transmitting the data to the management server through the second wireless network connection, and controlling the first network card to scan the AP;
The APs are configured in the tunnel, each AP is connected with a directional antenna through a feeder line and is connected with the switch through an optical fiber trunk line, and the APs are used for establishing network connection with the management server configured outside the tunnel through the switch through the optical fiber trunk line and forwarding the data sent by the tunnel robot to the management server.
10. The system of claim 9, wherein the system further comprises: and the network switching point indicating devices are respectively arranged in signal overlapping areas between two adjacent APs in the tunnel and are positioned at preset distances from the central point between the two adjacent APs.
CN201610029941.7A 2016-01-15 2016-01-15 Method, device and system for wireless communication in tunnel Active CN106982442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610029941.7A CN106982442B (en) 2016-01-15 2016-01-15 Method, device and system for wireless communication in tunnel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610029941.7A CN106982442B (en) 2016-01-15 2016-01-15 Method, device and system for wireless communication in tunnel

Publications (2)

Publication Number Publication Date
CN106982442A CN106982442A (en) 2017-07-25
CN106982442B true CN106982442B (en) 2023-09-26

Family

ID=59340139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610029941.7A Active CN106982442B (en) 2016-01-15 2016-01-15 Method, device and system for wireless communication in tunnel

Country Status (1)

Country Link
CN (1) CN106982442B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107734583A (en) * 2017-10-16 2018-02-23 中国恩菲工程技术有限公司 Control method, device and the mobile device that access point AP switches in sub-terrain mines
CN110896570B (en) * 2018-09-13 2021-11-09 武汉斗鱼网络科技有限公司 Bullet screen linking method and mobile terminal
CN109729322B (en) * 2019-02-20 2024-04-16 重庆工程职业技术学院 Visual monitoring system and method for coal mine
CN110602714B (en) * 2019-07-29 2022-06-14 广东工业大学 Wireless ad hoc network signal transmission method suitable for tunnel environment operation of explosive-handling robot
CN111148170A (en) * 2019-12-26 2020-05-12 苏宁智能终端有限公司 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium
CN111510885B (en) * 2020-04-16 2022-05-17 合肥工大高科信息科技股份有限公司 Roaming switching system and method of wireless fidelity network
CN113825212B (en) * 2020-06-19 2023-05-02 阿里巴巴集团控股有限公司 Network access method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394364A (en) * 2008-10-30 2009-03-25 西安电子科技大学 MIPv6 seamless switching method based on dual network cards
CN103002574A (en) * 2012-09-28 2013-03-27 华北电力大学 System and method for positioning inspection robot in cable tunnel on basis of wireless network
CN103118098A (en) * 2013-01-25 2013-05-22 清华大学 Forecast based multi-connection mobile terminal interface switching method
CN104066207A (en) * 2014-05-29 2014-09-24 浙江大学 802.11 wireless access network based on virtualization technology
CN104936254A (en) * 2015-06-11 2015-09-23 浙江大学 Wireless network seamless transfer method and device based on software-defined network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8028082B2 (en) * 2008-10-03 2011-09-27 Cisco Technology, Inc. Location based multicast policies

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394364A (en) * 2008-10-30 2009-03-25 西安电子科技大学 MIPv6 seamless switching method based on dual network cards
CN103002574A (en) * 2012-09-28 2013-03-27 华北电力大学 System and method for positioning inspection robot in cable tunnel on basis of wireless network
CN103118098A (en) * 2013-01-25 2013-05-22 清华大学 Forecast based multi-connection mobile terminal interface switching method
CN104066207A (en) * 2014-05-29 2014-09-24 浙江大学 802.11 wireless access network based on virtualization technology
CN104936254A (en) * 2015-06-11 2015-09-23 浙江大学 Wireless network seamless transfer method and device based on software-defined network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种电力隧道巡检管控系统的设计与实现;姚灏;江冬娜;;移动通信(第22期) *
姚灏 ; 江冬娜 ; .一种电力隧道巡检管控系统的设计与实现.移动通信.2014,(22),第3-4节. *

Also Published As

Publication number Publication date
CN106982442A (en) 2017-07-25

Similar Documents

Publication Publication Date Title
CN106982442B (en) Method, device and system for wireless communication in tunnel
CN108768494B (en) Relay measurement and control method for unmanned aerial vehicle
US7561898B2 (en) Apparatus and method for registering wireless terminals with access point through wireless network
CN106954236B (en) method for controlling wireless terminal to roam seamlessly and wireless access point
KR101795679B1 (en) Access point initiated neighbor report request
KR20060117188A (en) Method for scanning channel in a mesh network and channel scan system
US20060264212A1 (en) Method and system for a roam-less mobile unit
CN205545955U (en) System for radio communication carries out in tunnel
KR20160141829A (en) Method of controlling handover in mobile communication networks and apparatus and system emplementing the method
CN104333914A (en) Method and equipment of establishing Mesh link
CN106686607B (en) Communication network, service access method and related device
KR20130020919A (en) Method for managing a wireless telecommunication network
WO2014029870A2 (en) Fast switching method, system and client in wireless communication system
CN104126322A (en) Channel switchover method, device and equipment
GB2561721A (en) Terminal apparatus, communication system, and connection - destination selection method
US9693204B2 (en) System and method for conveying information using broadcast frames
CN106210625A (en) The transmission method of a kind of video data, device and system
CN105101426A (en) Device-to-device resource allocation information processing method, device and system
CN106105380B (en) Data forwarding control method, system, controller and access device
JP6145879B2 (en) Radio communication system, radio communication system control method, program, and radio base station apparatus
CN115002845B (en) Method and device for cell switching
Mouton et al. On the evaluation of make-before-break handovers in urban WiFi networks for moving vehicles
CN115866651A (en) WAPI network lossless roaming method and system suitable for power inspection unmanned aerial vehicle
KR20120100432A (en) Apparatus and method for controlling relay station mode of a mobile station in a communication system
CN105188052A (en) Method and system for accessing to network, and wireless access point

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: B501, Building F2, TCL Science Park, No. 1001, Zhongshanyuan Road, Shuguang Community, Xili Street, Nanshan District, Shenzhen City, Guangdong Province, 518000

Patentee after: LAUNCH DIGITAL TECHNOLOGY Co.,Ltd.

Address before: 518000 Third Floor, Fengyun Building, Galaxy, No. 5 Xinxi Road, North District, Nanshan High-tech Park, Shenzhen City, Guangdong Province

Patentee before: LAUNCH DIGITAL TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address