Disclosure of Invention
Because the existing method has the above problems, embodiments of the present invention are directed to providing a positioning system and method based on a wireless local area network WLAN.
In a first aspect, an embodiment of the present invention provides a positioning system based on a wireless local area network WLAN, including: a ground subsystem and a vehicle-mounted subsystem;
the ground subsystem, comprising: a ground server and a trackside AP;
the on-board subsystem includes: the system comprises a vehicle-mounted host, a vehicle-mounted WLAN access unit and a vehicle-mounted mobile communication unit, wherein the vehicle-mounted WLAN access unit and the vehicle-mounted mobile communication unit are connected with the vehicle-mounted host;
the train-mounted WLAN access unit is used for acquiring broadcast information of the trackside AP and a corresponding RSSI value by scanning broadcast of the trackside AP at intervals of a preset time period during the running of a train and sending the broadcast information to the train-mounted host, wherein the broadcast information of the trackside AP comprises an MAC address of the trackside AP;
the vehicle-mounted host is used for sending the train number of the train, the received broadcast information of the trackside AP and the corresponding RSSI value to the ground server through a mobile communication network by using the vehicle-mounted mobile communication unit;
the ground server is used for acquiring the position of the train corresponding to the received train number in the train running line according to the received train number, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and a local database, and sending the position of the train corresponding to the train number in the train running line to the vehicle-mounted mobile communication unit through a mobile communication network, wherein the position of each trackside AP in the train running line corresponding to the RSSI value of each trackside AP and the MAC value of each trackside AP are stored in the local database;
and the vehicle-mounted host is also used for receiving the position of the train corresponding to the train number sent by the ground server in the train running line through a mobile communication network by using the vehicle-mounted mobile communication unit.
Optionally, the on-board host is specifically used for
Filtering the acquired broadcasting information of the trackside AP, and only keeping the latest broadcasting information of the trackside AP and the corresponding RSSI value of the same MAC;
and the train number of the train, the broadcasting information of the retained trackside AP after filtering and the corresponding RSSI value are sent to the ground server by the vehicle-mounted mobile communication unit through a mobile communication network.
Optionally, the ground server, in particular for
Searching whether the local database stores the MAC address in the received broadcast information of the trackside AP or not, and filtering the broadcast information of the trackside AP corresponding to the MAC address which is not searched in the local database in the received broadcast information of the trackside AP and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position of the MAC address in the one piece of broadcast information left after filtering, which corresponds to the train running line in the local database, as the position of the train corresponding to the received train number in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
according to the found position of the selected RSSI value in the local database corresponding to the train operation line, judging the logic position of the line and then performing weighted calculation on the position to obtain the position of the train corresponding to the received train number in the train operation line;
and sending the position of the train corresponding to the train number in the train running line to the vehicle-mounted mobile communication unit through a mobile communication network.
Optionally, the system further comprises: a mobile device carried by a user;
the mobile equipment is used for scanning the broadcast of the trackside AP by using the WLAN of the mobile equipment, acquiring the broadcast information of the trackside AP and a corresponding RSSI value, and sending the identification of the mobile equipment, the acquired broadcast information of the trackside AP and the corresponding RSSI value to the ground server through a mobile communication network;
the ground server is also used for
And acquiring the position of the mobile equipment corresponding to the received identifier of the mobile equipment in the train running line according to the received identifier of the mobile equipment, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and a local database, and transmitting the position of the mobile equipment corresponding to the identifier of the mobile equipment in the train running line to the mobile equipment through a mobile communication network.
Optionally, the ground server is further specifically used for
Searching whether a local database stores the received MAC address in the broadcasting information of the trackside AP sent by the mobile equipment, and filtering the received broadcasting information of the trackside AP corresponding to the MAC address which is not searched in the local database in the broadcasting information of the trackside AP sent by the mobile equipment and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position, corresponding to the train running line, of the MAC address in the one piece of broadcast information left after filtering in a local database as the position, corresponding to the received identifier of the mobile device, of the mobile device in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
according to the found position of the selected RSSI value in the local database corresponding to the train running line, judging the logical position of the line and then performing weighted calculation on the position to obtain the position of the mobile equipment corresponding to the received identification of the mobile equipment in the train running line;
and sending the position of the mobile equipment corresponding to the identification of the mobile equipment in the train running line to the mobile equipment through a mobile communication network.
In a second aspect, an embodiment of the present invention provides a positioning method based on the above positioning system based on a wireless local area network WLAN, including:
during the running of a train, a vehicle-mounted WLAN access unit acquires broadcast information of a trackside AP and a corresponding RSSI value by scanning the broadcast of the trackside AP every a preset time period and sends the broadcast information to a vehicle-mounted host, wherein the broadcast information of the trackside AP comprises an MAC address of the trackside AP;
the vehicle-mounted host machine sends the train number of the train, the received broadcast information of the trackside AP and the corresponding RSSI value to a ground server through a mobile communication network by using a vehicle-mounted mobile communication unit;
the ground server acquires the position of the train corresponding to the received train number in the train running line according to the received train number, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and a local database, and sends the position of the train corresponding to the train number in the train running line to the vehicle-mounted mobile communication unit through a mobile communication network, wherein the position of the RSSI value of each trackside AP in the train running line corresponding to the train running line and the MAC value of each trackside AP are stored in the local database;
and the vehicle-mounted host computer receives the position of the train corresponding to the train number sent by the ground server in the train running line through a mobile communication network by using the vehicle-mounted mobile communication unit.
Optionally, the vehicle-mounted host sends the train number of the train, the received broadcast information of the trackside AP and the corresponding RSSI value to the ground server through the mobile communication network by using the vehicle-mounted mobile communication unit, and includes:
filtering the acquired broadcasting information of the trackside AP, and only keeping the latest broadcasting information of the trackside AP and the corresponding RSSI value of the same MAC;
and the train number of the train, the broadcasting information of the trackside AP reserved after filtering and the corresponding RSSI value are sent to a ground server by the vehicle-mounted mobile communication unit through a mobile communication network.
Optionally, the obtaining, by the ground server, a position of the train in the train operation route corresponding to the received train number according to the received train number, the MAC address and the corresponding RSSI value in the broadcast information of the trackside AP, and the local database includes:
searching whether the local database stores the MAC address in the received broadcast information of the trackside AP or not, and filtering the broadcast information of the trackside AP corresponding to the MAC address which is not searched in the local database in the received broadcast information of the trackside AP and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position of the MAC address in the one piece of broadcast information left after filtering, which corresponds to the train running line in the local database, as the position of the train corresponding to the received train number in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
and judging the logic position of the line according to the position of the searched selected RSSI value in the local database corresponding to the train running line, and then performing weighted calculation on the position to obtain the position of the train corresponding to the received train number in the train running line.
Optionally, the method further comprises:
the mobile equipment scans the broadcast of the trackside AP by using the WLAN of the mobile equipment, acquires the broadcast information of the trackside AP and a corresponding RSSI value, and sends the identification of the mobile equipment, the acquired broadcast information of the trackside AP and the corresponding RSSI value to the ground server through a mobile communication network;
and the ground server acquires the position of the mobile equipment corresponding to the received identification of the mobile equipment in the train running line according to the received identification of the mobile equipment, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and the local database, and sends the position of the mobile equipment corresponding to the identification of the mobile equipment in the train running line to the mobile equipment through a mobile communication network.
Optionally, the obtaining, by the ground server, a position of the mobile device in the train operation route, where the mobile device corresponds to the received identifier of the mobile device, according to the received identifier of the mobile device, the MAC address and the corresponding RSSI value in the broadcast information of the trackside AP, and the local database includes:
searching whether a local database stores the received MAC address in the broadcasting information of the trackside AP sent by the mobile equipment, and filtering the received broadcasting information of the trackside AP corresponding to the MAC address which is not searched in the local database in the broadcasting information of the trackside AP sent by the mobile equipment and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position, corresponding to the train running line, of the MAC address in the one piece of broadcast information left after filtering in a local database as the position, corresponding to the received identifier of the mobile device, of the mobile device in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
and judging the logic position of the line according to the position of the searched selected RSSI value in the local database corresponding to the train running line, and then performing weighted calculation on the position to obtain the position of the mobile equipment corresponding to the received identification of the mobile equipment in the train running line.
According to the technical scheme, the positioning system and the positioning method based on the WLAN, provided by the embodiment of the invention, can realize the auxiliary positioning of the train by using the broadcast information of the trackside communication AP of the train operation line without adding extra equipment beside the track, and can accurately position the train as long as the trackside AP can send the broadcast even under the condition of the fault of a train signal system or the fault of a train-ground communication network.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram illustrating a positioning system based on a wireless local area network WLAN according to an embodiment of the present invention. As shown in fig. 1, a positioning system based on a wireless local area network WLAN of this embodiment is characterized by including: a ground subsystem and a vehicle-mounted subsystem;
the ground subsystem, comprising: ground servers and trackside APs (wireless access points);
the on-board subsystem includes: the system comprises a vehicle-mounted host, a vehicle-mounted WLAN access unit and a vehicle-mounted mobile communication unit, wherein the vehicle-mounted WLAN access unit and the vehicle-mounted mobile communication unit are connected with the vehicle-mounted host;
the vehicle-mounted WLAN access unit is used for acquiring broadcast information of a trackside AP and a corresponding RSSI (received signal strength indication) value by scanning broadcast of the trackside AP at intervals of a preset time period during running of a train and sending the broadcast information to the vehicle-mounted host, wherein the broadcast information of the trackside AP comprises an MAC (media access control) address of the trackside AP;
the vehicle-mounted host is used for sending the train number of the train, the received broadcast information of the trackside AP and the corresponding RSSI value to the ground server through a mobile communication network by using the vehicle-mounted mobile communication unit;
the ground server is used for acquiring the position of the train corresponding to the received train number in the train running line according to the received train number, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and a local database, and sending the position of the train corresponding to the train number in the train running line to the vehicle-mounted mobile communication unit through a mobile communication network, wherein the position of each trackside AP in the train running line corresponding to the RSSI value of each trackside AP and the MAC value of each trackside AP are stored in the local database;
and the vehicle-mounted host is also used for receiving the position of the train corresponding to the train number sent by the ground server in the train running line through a mobile communication network by using the vehicle-mounted mobile communication unit.
In specific application, the trackside APs are trackside APs used by a train signal system or a train communication system and are arranged at intervals along the running direction of a tunnel train, generally 2 AP communication areas adjacent to one AP can cover the AP, and even if 1 AP in a line summary fails, two adjacent APs can still completely cover a train running line.
It can be understood that during the operation of the train, the trackside APs start the broadcasting function, the broadcasting information contains the MAC addresses of the trackside APs, and the MAC address of each trackside AP is uniquely determined.
The mobile communication network refers to a public mobile communication network adopting a cellular networking structure, and data communication can be performed by using the network.
It can be understood that, for the situation that the vehicle-mounted existing vehicle-mounted WLAN access unit cannot acquire the MAC address and RSSI information of the trackside AP in real time, an independent vehicle-mounted WLAN access unit needs to be installed on the train, so that the newly installed vehicle-mounted WLAN access unit can scan and acquire the MAC and RSSI information of the trackside AP in real time and send the MAC and RSSI information to the vehicle-mounted host.
In a specific application, the vehicle-mounted mobile communication unit can access a mobile communication network for data communication between the vehicle-mounted host and the ground server.
The positioning system based on the wireless local area network WLAN realizes that the train can be positioned in an auxiliary mode by using the broadcast information of the train operation line trackside communication AP under the condition that extra equipment is not needed to be added beside the track, and can be used for accurately positioning the train as long as the trackside AP can send the broadcast even under the condition that a train signal system fails or a train-ground communication network fails.
Further, on the basis of the above embodiments, the on-board host may be specifically used for
Filtering the acquired broadcasting information of the trackside AP, and only keeping the latest broadcasting information of the trackside AP and the corresponding RSSI value of the same MAC;
and the train number of the train, the broadcasting information of the retained trackside AP after filtering and the corresponding RSSI value are sent to the ground server by the vehicle-mounted mobile communication unit through a mobile communication network.
It can be understood that the obtained broadcast information of the trackside AP is filtered, and only the latest broadcast information of the trackside AP and the corresponding RSSI value of the same MAC are retained, so that the position of the train corresponding to the received train number, which is finally obtained by the ground server, in the train running line is more accurate.
Further, on the basis of the above embodiments, the ground server may be specifically used for
Searching whether the local database stores the MAC address in the received broadcast information of the trackside AP or not, and filtering the broadcast information of the trackside AP corresponding to the MAC address which is not searched in the local database in the received broadcast information of the trackside AP and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position of the MAC address in the one piece of broadcast information left after filtering, which corresponds to the train running line in the local database, as the position of the train corresponding to the received train number in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
according to the found position of the selected RSSI value in the local database corresponding to the train operation line, judging the logic position of the line and then performing weighted calculation on the position to obtain the position of the train corresponding to the received train number in the train operation line;
and sending the position of the train corresponding to the train number in the train running line to the vehicle-mounted mobile communication unit through a mobile communication network.
In specific application, the broadcast information of the AP used for the trackside communication on the train operation line can be collected in advance for calibration. Recording all the acquired AP broadcast information and corresponding received RSSI values at intervals of a distance, such as 1-2 meters generally, along the central line of the running line, and storing the position on the line corresponding to the RSSI value of each trackside AP and the MAC address of the AP on a local database of a ground server for position query. The RSSI value of the AP is collected and calibrated, converted into a data table and stored in a local database of a ground server, and the position information can be obtained by quickly looking up the table during the operation.
It can be understood that, according to the train traveling direction, there are two positions where the trackside AP receives the same RSSI value, one is located at the uplink position of the trackside AP and the other is located at the downlink position of the trackside AP. Then, the positions of the plurality of searched selected RSSI values in the local database corresponding to the train operation route are searched, and the positions are weighted and calculated after the logical positions of the routes are judged, for example: the line positions X1 and X2 with the maximum RSSI value are used as reference and compared with the line positions corresponding to the rest RSSIs, the group of line positions with the maximum superposition or approach are weighted according to the RSSI values from large to small to calculate the line position values X, y and z (the first 3), the weights are respectively 6, 3 and 1, and less than 3 are calculated according to the weights 6 and 3. The calculation formula of the position L in the train running line is as follows:
(first 3) or
(the first 2).
Therefore, the embodiment can calculate relatively accurate position information through logic according to the characteristic of cross coverage of the trackside AP.
Further, on the basis of the above embodiment, the system of this embodiment may further include: a mobile device carried by a user, refer to fig. 2;
the mobile equipment is used for scanning the broadcast of the trackside AP by using the WLAN of the mobile equipment, acquiring the broadcast information of the trackside AP and a corresponding RSSI value, and sending the identification of the mobile equipment, the acquired broadcast information of the trackside AP and the corresponding RSSI value to the ground server through a mobile communication network;
correspondingly, the ground server is also used for
And acquiring the position of the mobile equipment corresponding to the received identifier of the mobile equipment in the train running line according to the received identifier of the mobile equipment, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and a local database, and transmitting the position of the mobile equipment corresponding to the identifier of the mobile equipment in the train running line to the mobile equipment through a mobile communication network.
It can be understood that, in this embodiment, the display device carried by the mobile device may display the position of the mobile device in the train operation line, where the position corresponds to the identifier of the mobile device sent by the ground server.
It can be understood that, the system according to this embodiment uses the mobile device with WLAN function to assist positioning of the mobile device through the broadcast information of the train operation line trackside communication AP, so as to realize indirect accurate positioning of people or vehicles without adding any other device beside the track. Even if the train signal system fails or the train-ground communication network fails, as long as the trackside AP can send broadcasts, the system can be used for accurately positioning the mobile equipment carried by the user.
Furthermore, the ground server can be specifically used for
Searching whether a local database stores the received MAC address in the broadcasting information of the trackside AP sent by the mobile equipment, and filtering the received broadcasting information of the trackside AP corresponding to the MAC address which is not searched in the local database in the broadcasting information of the trackside AP sent by the mobile equipment and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position, corresponding to the train running line, of the MAC address in the one piece of broadcast information left after filtering in a local database as the position, corresponding to the received identifier of the mobile device, of the mobile device in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
according to the found position of the selected RSSI value in the local database corresponding to the train running line, judging the logical position of the line and then performing weighted calculation on the position to obtain the position of the mobile equipment corresponding to the received identification of the mobile equipment in the train running line;
and sending the position of the mobile equipment corresponding to the identification of the mobile equipment in the train running line to the mobile equipment through a mobile communication network.
Specifically, the principle is the same as the principle that the position of the mobile device corresponding to the received identifier of the mobile device in the train operation line is obtained by judging the logical position of the line and then performing weighted calculation on the logical position of the line according to the position of the searched selected RSSI value in the local database corresponding to the train operation line.
Therefore, the embodiment can calculate relatively accurate position information through logic according to the characteristic of cross coverage of the trackside AP.
Further, on the basis of the above embodiment, the ground subsystem may further include: a ground display device connected to the ground server, refer to fig. 2;
the ground display device is configured to display a position of the train in the train running route corresponding to the received train number acquired by the ground server, and/or display a position of the mobile device in the train running route corresponding to the identifier of the received mobile device acquired by the ground server.
It can be understood that the ground display device is used for displaying the position of the train in the train running line corresponding to the received train number acquired by the ground server, so that ground dispatching commanders can use the train, and the ground display device is used for displaying the position of the mobile device in the train running line corresponding to the received mobile device identification acquired by the ground server, so that the rapid command and dispatching can be facilitated, and the failure recovery efficiency can be improved.
Further, on the basis of the above embodiment, the vehicle-mounted subsystem may include: an in-vehicle display device connected to the in-vehicle host, refer to fig. 2;
and the vehicle-mounted display equipment is used for displaying the position of the train corresponding to the train number sent by the ground server and received by the vehicle-mounted host computer in the train running line.
It can be understood that the train position display device is used for displaying the train position in the train running line corresponding to the train number sent by the ground server and received by the vehicle-mounted host computer, and the train position display device can update the train position and is used for displaying the train position under the fault emergency condition.
The positioning system based on the wireless local area network WLAN of the embodiment can realize the auxiliary positioning of the train/personnel by using the broadcast information of the train operation line trackside communication AP without adding extra equipment beside the track, and can accurately position the train/personnel by using the system as long as the trackside AP can send the broadcast even under the condition of the fault of a train signal system or the fault of a train-ground communication network.
Fig. 3 is a flowchart illustrating a positioning method based on the positioning system based on the wireless local area network WLAN according to the embodiment shown in fig. 1 or 2 according to an embodiment of the present invention. As shown in fig. 3, the simulation test method of the present embodiment includes:
s1, during the running of the train, the vehicle-mounted WLAN access unit scans the broadcast of the trackside AP every preset time period, acquires the broadcast information of the trackside AP and the corresponding RSSI value and sends the broadcast information to the vehicle-mounted host, wherein the broadcast information of the trackside AP comprises the MAC address of the trackside AP.
It can be understood that during the operation of the train, the trackside APs start the broadcasting function, the broadcasting information contains the MAC addresses of the trackside APs, and the MAC address of each trackside AP is uniquely determined.
It can be understood that, for the situation that the vehicle-mounted existing vehicle-mounted WLAN access unit cannot acquire the MAC address and RSSI information of the trackside AP in real time, an independent vehicle-mounted WLAN access unit needs to be installed on the train, so that the newly installed vehicle-mounted WLAN access unit can scan and acquire the MAC and RSSI information of the trackside AP in real time and send the MAC and RSSI information to the vehicle-mounted host.
And S2, the vehicle-mounted host sends the train number of the train, the received broadcast information of the trackside AP and the corresponding RSSI value to the ground server through the mobile communication network by using the vehicle-mounted mobile communication unit.
The mobile communication network refers to a public mobile communication network adopting a cellular networking structure, and data communication can be performed by using the network.
In a specific application, the vehicle-mounted mobile communication unit can access a mobile communication network for data communication between the vehicle-mounted host and the ground server.
And S3, the ground server acquires the position of the train corresponding to the received train number in the train running line according to the received train number, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and a local database, and sends the position of the train corresponding to the train number in the train running line to the vehicle-mounted mobile communication unit through a mobile communication network, wherein the position of each trackside AP in the train running line corresponding to the RSSI value of each trackside AP and the MAC value of each trackside AP are stored in the local database.
And S4, the vehicle-mounted host computer receives the position of the train corresponding to the train number sent by the ground server in the train running line through a mobile communication network by using the vehicle-mounted mobile communication unit.
The positioning method based on the wireless local area network WLAN of the embodiment realizes that the train can be positioned in an auxiliary mode by using the broadcast information of the train operation line trackside communication AP under the condition that extra equipment is not needed to be added beside the track, and can be used for accurately positioning the train by using the system as long as the trackside AP can send the broadcast even under the condition that a train signal system fails or a train-ground communication network fails.
Further, on the basis of the foregoing embodiment, the step S2 may include:
filtering the acquired broadcasting information of the trackside AP, and only keeping the latest broadcasting information of the trackside AP and the corresponding RSSI value of the same MAC;
and the train number of the train, the broadcasting information of the trackside AP reserved after filtering and the corresponding RSSI value are sent to a ground server by the vehicle-mounted mobile communication unit through a mobile communication network.
It can be understood that the obtained broadcast information of the trackside AP is filtered, and only the latest broadcast information of the trackside AP and the corresponding RSSI value of the same MAC are retained, so that the position of the train corresponding to the received train number, which is finally obtained by the ground server, in the train running line is more accurate.
Further, on the basis of the foregoing embodiment, the step S3, where the obtaining, by the ground server, the position of the train in the train operation route corresponding to the received train number according to the received train number, the MAC address and the corresponding RSSI value in the broadcast information of the trackside AP and the local database, may include:
searching whether the local database stores the MAC address in the received broadcast information of the trackside AP or not, and filtering the broadcast information of the trackside AP corresponding to the MAC address which is not searched in the local database in the received broadcast information of the trackside AP and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position of the MAC address in the one piece of broadcast information left after filtering, which corresponds to the train running line in the local database, as the position of the train corresponding to the received train number in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
and judging the logic position of the line according to the position of the searched selected RSSI value in the local database corresponding to the train running line, and then performing weighted calculation on the position to obtain the position of the train corresponding to the received train number in the train running line.
In specific application, the method of the embodiment can collect the broadcast information of the AP used for the trackside communication on the train operation line in advance and carry out calibration. Recording all the acquired AP broadcast information and corresponding received RSSI values at intervals of a distance, such as 1-2 meters generally, along the central line of the running line, and storing the position on the line corresponding to the RSSI value of each trackside AP and the MAC address of the AP on a local database of a ground server for position query. The RSSI value of the AP is collected and calibrated, converted into a data table and stored in a local database of a ground server, and the position information can be obtained by quickly looking up the table during the operation.
It can be understood that, according to the train traveling direction, there are two positions where the trackside AP receives the same RSSI value, one is located at the uplink position of the trackside AP and the other is located at the downlink position of the trackside AP. Then, the positions of the plurality of searched selected RSSI values in the local database corresponding to the train operation route are searched, and the positions are weighted and calculated after the logical positions of the routes are judged, for example: the line positions X1 and X2 with the maximum RSSI value are used as reference and compared with the line positions corresponding to the rest RSSIs, the group of line positions with the maximum superposition or approach are weighted according to the RSSI values from large to small to calculate the line position values X, y and z (the first 3), the weights are respectively 6, 3 and 1, and less than 3 are calculated according to the weights 6 and 3. The calculation formula of the position L in the train running line is as follows:
(first 3) or
(the first 2).
Therefore, the embodiment can calculate relatively accurate position information through logic according to the characteristic of cross coverage of the trackside AP.
Further, on the basis of the above embodiment, the method according to this embodiment may further include, not shown in the figure:
the mobile equipment scans the broadcast of the trackside AP by using the WLAN of the mobile equipment, acquires the broadcast information of the trackside AP and a corresponding RSSI value, and sends the identification of the mobile equipment, the acquired broadcast information of the trackside AP and the corresponding RSSI value to the ground server through a mobile communication network;
and the ground server acquires the position of the mobile equipment corresponding to the received identification of the mobile equipment in the train running line according to the received identification of the mobile equipment, the MAC address in the broadcast information of the trackside AP, the corresponding RSSI value and the local database, and sends the position of the mobile equipment corresponding to the identification of the mobile equipment in the train running line to the mobile equipment through a mobile communication network.
It can be understood that, in this embodiment, the display device carried by the mobile device may display the position of the mobile device in the train operation line, where the position corresponds to the identifier of the mobile device sent by the ground server.
It can be understood that, the method described in this embodiment uses the mobile device with WLAN function to assist positioning of the mobile device through the broadcast information of the train operation line trackside communication AP, so as to realize indirect accurate positioning of people or vehicles without adding any other device beside the track. Even if the train signal system fails or the train-ground communication network fails, as long as the trackside AP can send a broadcast, the method of the present embodiment can be used to accurately locate the mobile device carried by the user.
Further, the acquiring, by the ground server, the position of the mobile device corresponding to the received identifier of the mobile device in the train operation route according to the received identifier of the mobile device, the MAC address and the corresponding RSSI value in the broadcast information of the trackside AP, and the local database may include:
searching whether a local database stores the received MAC address in the broadcasting information of the trackside AP sent by the mobile equipment, and filtering the received broadcasting information of the trackside AP corresponding to the MAC address which is not searched in the local database in the broadcasting information of the trackside AP sent by the mobile equipment and the corresponding RSSI value;
if one piece of broadcast information is left after filtering, taking the position, corresponding to the train running line, of the MAC address in the one piece of broadcast information left after filtering in a local database as the position, corresponding to the received identifier of the mobile device, of the mobile device in the train running line;
if a plurality of pieces of broadcast information are left after filtering, sorting RSSI values corresponding to the broadcast information left after filtering according to the sizes, and selecting the broadcast information of the trackside AP corresponding to a preset number of RSSI values with the maximum RSSI values;
searching the position of the selected RSSI value in the local database corresponding to the train operation line;
and judging the logic position of the line according to the position of the searched selected RSSI value in the local database corresponding to the train running line, and then performing weighted calculation on the position to obtain the position of the mobile equipment corresponding to the received identification of the mobile equipment in the train running line.
Specifically, the principle is the same as the principle that the position of the mobile device corresponding to the received identifier of the mobile device in the train operation line is obtained by judging the logical position of the line and then performing weighted calculation on the logical position of the line according to the position of the searched selected RSSI value in the local database corresponding to the train operation line.
Therefore, the embodiment can calculate relatively accurate position information through logic according to the characteristic of cross coverage of the trackside AP.
Further, on the basis of the foregoing embodiment, the method according to this embodiment may further include:
and the ground display equipment displays the position of the train corresponding to the received train number in the train running line acquired by the ground server, and/or displays the position of the mobile equipment corresponding to the received mobile equipment identification in the train running line acquired by the ground server.
It can be understood that the ground display device is used for displaying the position of the train in the train running line corresponding to the received train number acquired by the ground server, so that ground dispatching commanders can use the train, and the ground display device is used for displaying the position of the mobile device in the train running line corresponding to the received mobile device identification acquired by the ground server, so that the rapid command and dispatching can be facilitated, and the failure recovery efficiency can be improved.
Further, on the basis of the foregoing embodiment, the method according to this embodiment may further include:
and the vehicle-mounted display equipment displays the position of the train corresponding to the train number sent by the ground server and received by the vehicle-mounted host computer in the train running line.
It can be understood that the train position display device is used for displaying the train position in the train running line corresponding to the train number sent by the ground server and received by the vehicle-mounted host computer, and the train position display device can update the train position and is used for displaying the train position under the fault emergency condition.
The positioning method based on the wireless local area network WLAN of the embodiment realizes that the train/personnel can be positioned in an auxiliary way by utilizing the broadcast information of the train operation line trackside communication AP under the condition that no additional equipment is added beside the track, and can be used for accurately positioning the train/personnel as long as the trackside AP can send the broadcast even under the condition that a train signal system has a fault or a train-ground communication network has a fault.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is to be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.