Method and device for identifying adjacent locomotives
By introducing a UWB positioning module into the wireless communication unit of the locomotive, combining signal strength and positioning data, identifying adjacent locomotives and automatically establishing wireless link connections, the problem of not being able to automatically establish connections in wireless reconnection communications is solved, and data transmission efficiency and stability are improved.
Patent Information
- Application Number
- CN202311331847.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-13
- Publication Date
- 2025-04-15
AI Technical Summary
In wireless reconnection communication, it is impossible to automatically establish a wireless link connection in the workshop, resulting in inefficient data transmission.
By setting up a UWB positioning module in the wireless communication unit of the locomotive, combining signal strength and positioning data, adjacent locomotives are identified and wireless link connections are automatically established.
Automatic establishment and stable connection of wireless links are realized, data transmission rate is improved, and the risk of signal jitter and positioning accuracy is reduced.
Smart Images

Figure CN119835603A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail transit wireless reconnection communication, and in particular to a method and device for identifying adjacent locomotives. Background Art
[0002] See also Figure 1 , Figure 1 This is a schematic diagram of the composition of a heavy-load freight locomotive and trailer. In the field of heavy-load freight locomotives, for the requirements of power supplement and system redundancy, two power locomotives need to be connected by couplers and operated in multiple units to drive a series of unpowered trailers behind them.
[0003] The communication between two power locomotives is generally carried out by WTB (Wire Train Bus). With the development of wireless technology, the security, reliability and throughput of wireless communication are constantly improving. The solution of using wireless links instead of WTB buses to carry the data exchange between locomotives has been increasingly used. The specific solution is: on the premise of retaining the coupler between the two locomotives, wireless technologies such as WiFi are used to replace the WTB bus to achieve wireless reconnection and complete the wireless transmission of data between locomotives, effectively solving the problem of easy wear and poor contact of physical cables, and also greatly improving the data transmission rate.
[0004] However, since the source of wireless signals cannot be determined when they propagate in space, when one locomotive is about to connect to another locomotive, it must first search for signals of available wireless access points in the surrounding area. However, it is impossible to determine which wireless access point belongs to the other locomotive that is reconnected to this locomotive, resulting in the inability to automatically establish a wireless link. Summary of the invention
[0005] The present invention provides a method and device for identifying adjacent locomotives, which are used to solve the technical problem that a connection cannot be automatically established when a wireless link carries data for interaction between inspection vehicles.
[0006] In a first aspect, the present invention provides a method for identifying adjacent locomotives, wherein a wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive compartment, and a UWB positioning module is provided on the wireless communication unit; the method comprises:
[0007] S1, in response to a key insertion signal, the first locomotive switches from the AP mode to the STA mode;
[0008] S2, in the STA mode, the first wireless communication unit group on the same side of the first locomotive automatically obtains access point information and its signal strength on the corresponding channel, and integrates the access point information and its signal strength to obtain a list to be tested; the access point information includes: the encoded locomotive ID, the wireless communication unit ID and its position information on the locomotive;
[0009] S3, obtaining, through the UWB positioning module of any wireless communication unit in the first wireless communication unit group, the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any wireless communication unit;
[0010] S4, determining an angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between two wireless communication units to be tested in the wireless communication unit group to be tested;
[0011] S5, determining the number of target wireless communication unit groups from a plurality of wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle;
[0012] S6, if the number of target wireless communication unit groups is 0 or greater than 1, return to step S2; if the number of target wireless communication unit groups is 1, the first wireless communication unit group automatically connects to the target communication unit group on the corresponding channel.
[0013] Optionally, step S2 includes:
[0014] S21, the first wireless communication unit group automatically obtains the access point information and its signal strength on the corresponding channel respectively, and integrates the access point information and its signal strength to obtain an initial list;
[0015] S22, reversely analyzing the access point information in the initial list, and determining the locomotive ID of the locomotive in the locomotive ID by removing the data in the initial list that cannot be reversely analyzed;
[0016] S23, matching the signal strength corresponding to the removed locomotive ID, and filtering the access point information according to the signal strength to obtain the list to be tested.
[0017] Optionally, step S23 includes:
[0018] Matching the signal strength corresponding to the removed locomotive ID to obtain a second list, and classifying the second list according to the locomotive ID to determine and delete the unpaired locomotive ID;
[0019] Filter the list data of the wireless communication units on the same side belonging to the same locomotive ID from the second list to obtain a third list;
[0020] The locomotive ID data whose signal strength average value corresponding to the locomotive ID is less than the signal threshold are eliminated from the third list to obtain the list to be tested.
[0021] Optionally, step S5 includes:
[0022] S51, respectively determining whether the first distance and the second distance satisfy a preset distance constraint condition; if not, eliminating the wireless communication unit group to be tested;
[0023] S52, determining whether the angle satisfies a preset angle constraint condition; if not, eliminating the wireless communication unit group to be tested; if so, defining the wireless communication unit group to be tested as the target communication unit group.
[0024] In a second aspect, the present invention provides an adjacent locomotive identification device, wherein a wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive compartment, and a UWB positioning module is provided on the wireless communication unit; comprising:
[0025] a response module, configured to switch the first locomotive from the AP mode to the STA mode in response to the key insertion signal;
[0026] a module for acquiring a list to be tested, configured to automatically acquire access point information and signal strengths of the first wireless communication unit group on the same side of the first locomotive on the corresponding channel in the STA mode, and integrate the access point information and signal strengths to obtain a list to be tested; the access point information includes: an encoded locomotive ID, a wireless communication unit ID and its position information on the locomotive;
[0027] a distance determination module, configured to obtain, through the UWB positioning module of any wireless communication unit in the first wireless communication unit group, the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any of the wireless communication units;
[0028] An angle determination module, used to determine the angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between two wireless communication units to be tested in the wireless communication unit group to be tested;
[0029] a target number determination module, configured to determine the number of target wireless communication unit groups from a plurality of wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle;
[0030] The identification module executes the above if the number of target wireless communication unit groups is 0 or greater than 1; if the number of target wireless communication unit groups is 1, the first wireless communication unit group automatically connects to the target communication unit group on the corresponding channel respectively.
[0031] Optionally, the to-be-tested list acquisition module includes:
[0032] an initial list acquisition submodule, configured to automatically acquire the access point information and its signal strength on the corresponding channels respectively through the first wireless communication unit group, and integrate the access point information and its signal strength to obtain an initial list;
[0033] A removal submodule, configured to reversely parse the access point information in the initial list, and determine to remove the data that cannot be reversely parsed in the initial list and the locomotive ID of the locomotive ID;
[0034] The submodule for obtaining the list to be tested is used to match the signal strength corresponding to the removed locomotive ID, and filter the access point information according to the signal strength to obtain the list to be tested.
[0035] Optionally, the to-be-tested list acquisition submodule includes:
[0036] A matching unit, used for matching the signal strengths corresponding to the removed locomotive IDs to obtain a second list, and classifying the second list according to the locomotive IDs to determine and delete unpaired locomotive IDs;
[0037] A third list acquisition unit, used for filtering the list data of the wireless communication units on the same side belonging to the same locomotive ID from the second list to obtain a third list;
[0038] The elimination unit is used to eliminate the locomotive ID data in the third list, if the average signal strength value corresponding to the locomotive ID is less than the signal threshold, to obtain the list to be tested.
[0039] Optionally, the target number determination module includes:
[0040] A first judgment submodule, respectively judging whether the first distance and the second distance satisfy a preset distance constraint condition; if not, eliminating the wireless communication unit group to be tested;
[0041] The second judgment submodule is used to judge whether the angle meets the preset angle constraint condition; if not, the wireless communication unit group to be tested is eliminated; if yes, the wireless communication unit group to be tested is defined as the target communication unit group.
[0042] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are performed.
[0043] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.
[0044] It can be seen from the above technical solutions that the present invention has the following advantages:
[0045] The present invention provides a method and device for identifying adjacent locomotives, wherein a wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive compartment, and a UWB positioning module is provided on the wireless communication unit; the method comprises: S1, in response to a key insertion signal, a first locomotive is converted from an AP mode to a STA mode; S2, in the STA mode, a first wireless communication unit group on the same side of the first locomotive automatically obtains access point information and its signal strength on a corresponding channel, and integrates the access point information and its signal strength to obtain a list to be tested; the access point information comprises: a locomotive ID, a wireless communication unit ID and its position information on the locomotive; S3, through the UWB positioning module of any wireless communication unit in the first wireless communication unit group, Obtain the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any of the wireless communication units; S4, determine the angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between two of the wireless communication units to be tested in the wireless communication unit group to be tested; S5, determine the number of target wireless communication unit groups from multiple wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle; S6, if the number of target wireless communication unit groups is 0 or greater than 1, return to step S2; if the number of target wireless communication unit groups is 1, the first wireless communication unit groups automatically connect to the target communication unit groups on the corresponding channels respectively.
[0046] The information such as locomotive ID, wireless communication unit ID and its position on the locomotive is encoded and embedded into the access point information broadcast outward. The first locomotive can determine the locomotive information, wireless communication unit ID and position based on the received access point information, and through the signal strength information, it can be determined which locomotive's two wireless communication units are closest to this locomotive.
[0047] At the same time, by adding a UWB positioning module to the wireless communication unit, the distance between the wireless communication unit of the first locomotive and the wireless communication units of other locomotives can be accurately calculated, thereby eliminating locomotives on adjacent tracks or at a long distance.
[0048] In summary, by combining the signal strength of the wireless communication unit with the positioning data, the technical problem that the wireless link cannot automatically establish a connection when carrying the inspection vehicle interaction data is solved, and the problem of large signal strength jitter caused by wireless signal jumping is further eliminated. At the same time, the signal strength is used to compensate for the problem that the UWB positioning results may be affected by rainy and snowy weather and obstruction by objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0050] Figure 1 This is a schematic diagram of the composition of a heavy-load freight locomotive and trailer;
[0051] Figure 2 A flowchart of an embodiment of a method for identifying adjacent locomotives according to the present invention;
[0052] Figure 3 It is a schematic diagram of an existing wireless reconnection network system;
[0053] Figure 4 A schematic diagram of a locomotive wireless reconnection system with an additional UWB positioning module according to an embodiment of the present invention;
[0054] Figure 5 This is a schematic diagram of positioning calculation;
[0055] Figure 6 It is a structural block diagram of an embodiment of a device for identifying adjacent locomotives of the present invention. DETAILED DESCRIPTION
[0056] The embodiment of the present invention provides a method and device for identifying adjacent locomotives, which are used to solve the technical problem that a connection cannot be automatically established when a wireless link carries data for interaction between inspection vehicles.
[0057] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described below are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] For example, see Figure 2 , Figure 2FIG. 1 is a flow chart of an embodiment of a method for identifying adjacent locomotives of the present invention. Figure 3 Schematic diagram of an existing wireless reconnection network system, in an embodiment of the present invention, a wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive workshop, and a UWB positioning module is provided on the wireless communication unit; the method includes:
[0059] S1, in response to a key insertion signal, the first locomotive switches from the AP mode to the STA mode;
[0060] See also Figure 4 , Figure 4 This is a schematic diagram of a locomotive wireless reconnection system with a UWB positioning module added to an embodiment of the present invention. In the embodiment of the present invention, the four wireless communication units on locomotive A (i.e., the first locomotive) and locomotive B are powered on and in the initial state, they are all configured in AP mode to broadcast access point information. After locomotive B slowly approaches locomotive A and physically connects the two locomotives with a coupler to complete the coupler connection, the driver boards locomotive A and inserts the key at the driver's console. After the wireless communication unit of locomotive A detects the key insertion signal, it automatically switches to STA mode.
[0061] It should be noted that the use of UWB wireless technology for spatial positioning of equipment is currently the most accurate wireless positioning method, with a positioning accuracy generally within 30 to 50 cm.
[0062] Wireless reconnection refers to the process of establishing a data communication link between two locomotives through wireless means when two locomotives are reconnected and marshaled together, replacing the original wired link.
[0063] S2, in the STA mode, the first wireless communication unit group on the same side of the first locomotive automatically obtains access point information and its signal strength on the corresponding channel, and integrates the access point information and its signal strength to obtain a list to be tested; the access point information includes: the encoded locomotive ID, the wireless communication unit ID and its position information on the locomotive;
[0064] Specifically, step S2 includes:
[0065] S21, the first wireless communication unit group automatically obtains the access point information and its signal strength on the corresponding channel respectively, and integrates the access point information and its signal strength to obtain an initial list;
[0066] S22, reversely analyzing the access point information in the initial list, and determining the locomotive ID of the locomotive in the locomotive ID by removing the data in the initial list that cannot be reversely analyzed;
[0067] S23, matching the signal strength corresponding to the removed locomotive ID, and filtering the access point information according to the signal strength to obtain the list to be tested.
[0068] It should be noted that in the embodiment of the present invention, signal strength refers to received signal strength, indicating the signal strength at a certain location within the coverage of the wireless network, and is the value of the signal strength transmitted by the antenna after a period of transmission path loss and obstacle attenuation.
[0069] In an embodiment of the present invention, the step S23 includes: matching the signal strength corresponding to the removed locomotive ID to obtain a second list, and classifying the second list according to the locomotive ID to determine and delete unpaired locomotive IDs; filtering the list data of the wireless communication units on the same side belonging to the same locomotive ID from the second list to obtain a third list; and eliminating the locomotive ID data in the third list, whether the average signal strength corresponding to the locomotive ID is less than the signal threshold, to obtain the list to be tested.
[0070] In a specific implementation, the wireless communication units A-1 and A-2 of the first wireless communication unit on locomotive A automatically search for access point information and signal strength on channel 1 and channel 2 respectively, and obtain an access point information list respectively, which are then merged to obtain an initial list, wherein the access point information is composed of the following data in a certain encoding method: the locomotive ID, the wireless communication unit ID and its position on the locomotive.
[0071] Then, the access point information in the initial list is reverse parsed to obtain the locomotive ID, wireless communication unit ID and its position on the locomotive, and the data that cannot be parsed in the initial list and the ID of locomotive A are removed, and the wireless signal strength corresponding to the remaining locomotive ID is added, and the second list is obtained after integration. Then, the data in the second list is classified according to the locomotive ID, and the locomotive ID category with only one data is deleted. For each locomotive ID with 2 or more data, only the 2 data with the largest signal strength belonging to the wireless communication unit on the same side of the locomotive are retained to obtain the third list. The data in the third list is classified again according to the locomotive ID. Each locomotive ID corresponds to 2 data, which is called 1 group. If the average signal strength of the 2 data in a group is less than the threshold (such as -60dBm), the group of data is deleted; if the average signal strength of the 2 data in a group is greater than the threshold (such as -60dBm), the group of data is retained, thereby obtaining the list to be tested.
[0072] S3, obtaining, through the UWB positioning module of any wireless communication unit in the first wireless communication unit group, the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any wireless communication unit;
[0073] S4, determining an angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between two wireless communication units to be tested in the wireless communication unit group to be tested;
[0074] S5, determining the number of target wireless communication unit groups from a plurality of wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle;
[0075] Specifically, step S5 includes:
[0076] S51, respectively determining whether the first distance and the second distance satisfy a preset distance constraint condition; if not, eliminating the wireless communication unit group to be tested;
[0077] S52, determining whether the angle satisfies a preset angle constraint condition; if not, eliminating the wireless communication unit group to be tested; if so, defining the wireless communication unit group to be tested as the target communication unit group.
[0078] In the embodiment of the present invention, the data in the list to be tested are classified according to the locomotive ID. Each locomotive ID corresponds to 2 pieces of data, which is called a group. For each group of data (assuming that the data corresponds to the two wireless communication units B-1 and B-2), the distance from B-1 and B-2 to A-1 is obtained through the UWB positioning module, and is set as L A1B1 With L A1B2 , while L B1B2 is a known fixed value. If the following two constraints are met at the same time, this set of data is retained, otherwise it is deleted, thereby obtaining the target wireless communication unit group, where the first condition is the distance constraint, namely:
[0079] 0 <L A1B1 <L T ;
[0080] 0 <L A1B2 <L T ;
[0081] The second condition is the angle constraint, namely:
[0082] Theta min <∠A <Theta max ;
[0083] Where cosA=(L A1B1 2 +L A1B2 2 -L B1B2 2 ) / (2*L A1B1 *LA1B2 ), L T Theta is the maximum distance between the wireless communication units of the coupled locomotives, which can be 2m; min Theta is the minimum value of ∠A, which can be 10 degrees; max is the maximum value of ∠A, which can be 45 degrees; see the specific positioning calculation diagram Figure 5 .
[0084] S6, if the number of target wireless communication unit groups is 0 or greater than 1, return to step S2; if the number of target wireless communication unit groups is 1, the first wireless communication unit group automatically connects to the target communication unit group on the corresponding channel.
[0085] In an embodiment of the present invention, if the number of target communication unit groups is 0, return to step S2; if the number of groups = 1, execute the first wireless communication unit group to automatically connect to the target communication unit group on the corresponding channel; if the number of target communication unit groups is 0, return to step S2 and warn the driver.
[0086] It should be noted that the wireless communication technology between locomotives is not limited to a certain type of standard, and can be WiFi, LTEV2X, LTE D2D, Bluetooth and other feasible wireless technologies.
[0087] In some optional embodiments, the wireless positioning technology may not be limited to UWB. The UWB positioning module may be integrated into the locomotive wireless communication module or may be used as an independent module to connect to the locomotive wireless communication unit through a serial port or a network port to exchange data.
[0088] In an identification method for adjacent locomotives provided in an embodiment of the present invention, a wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive compartment, and a UWB positioning module is provided on the wireless communication unit; the method comprises: S1, in response to a key insertion signal, the first locomotive switches from AP mode to STA mode; S2, in the STA mode, the first wireless communication unit group on the same side of the first locomotive automatically obtains access point information and its signal strength on the corresponding channel respectively, and integrates the access point information and its signal strength to obtain a list to be tested; the access point information comprises: locomotive ID, wireless communication unit ID and its position information on the locomotive; S3, through the UWB positioning module of any wireless communication unit in the first wireless communication unit group , obtain the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any of the wireless communication units; S4, determine the angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between two of the wireless communication units to be tested in the wireless communication unit group to be tested; S5, determine the number of target wireless communication unit groups from multiple wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle; S6, if the number of target wireless communication unit groups is 0 or greater than 1, return to step S2; if the number of target wireless communication unit groups is 1, the first wireless communication unit groups automatically connect to the target communication unit groups on the corresponding channels respectively.
[0089] The information such as locomotive ID, wireless communication unit ID and its position on the locomotive is encoded and embedded into the access point information broadcast outward. The first locomotive can determine the locomotive information, wireless communication unit ID and position based on the received access point information, and through the signal strength information, it can be determined which locomotive's two wireless communication units are closest to this locomotive.
[0090] At the same time, by adding a UWB positioning module to the wireless communication unit, the distance between the wireless communication unit of the first locomotive and the wireless communication units of other locomotives can be accurately calculated, thereby eliminating locomotives on adjacent tracks or at a long distance.
[0091] In summary, by combining the signal strength of the wireless communication unit with the positioning data, the technical problem that the wireless link cannot automatically establish a connection when carrying the inspection vehicle interaction data is solved, and the problem of large signal strength jitter caused by wireless signal jumping is further eliminated. At the same time, the signal strength is used to compensate for the problem that the UWB positioning results may be affected by rainy and snowy weather and obstruction by objects.
[0092] For example 2, please refer to Figure 6 , Figure 6The structural block diagram of an embodiment of the identification device for adjacent locomotives of the present invention is as follows: a wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive compartment, and a UWB positioning module is provided on the wireless communication unit; the wireless communication unit comprises:
[0093] A response module 201, configured to switch the first locomotive from the AP mode to the STA mode in response to a key insertion signal;
[0094] The test list acquisition module 202 is used for, in the STA mode, the first wireless communication unit group on the same side of the first locomotive automatically acquires access point information and its signal strength on the corresponding channel respectively, and integrates the access point information and its signal strength to obtain a test list; the access point information includes: the encoded locomotive ID, the wireless communication unit ID and its position information on the locomotive;
[0095] The distance determination module 203 is used to obtain the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any of the wireless communication units through the UWB positioning module of any of the wireless communication units in the first wireless communication unit group;
[0096] An angle determination module 204, used to determine the angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between the two wireless communication units to be tested in the wireless communication unit group to be tested;
[0097] A target number determination module 205, configured to determine the number of target wireless communication unit groups from a plurality of wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle;
[0098] Identification module 206, if the number of target wireless communication unit groups is 0 or greater than 1, executes the above; if the number of target wireless communication unit groups is 1, the first wireless communication unit group automatically connects to the target communication unit group on the corresponding channel respectively.
[0099] In an optional embodiment, the to-be-tested list acquisition module 202 includes:
[0100] an initial list acquisition submodule, configured to automatically acquire the access point information and its signal strength on the corresponding channels respectively through the first wireless communication unit group, and integrate the access point information and its signal strength to obtain an initial list;
[0101] A removal submodule, configured to reversely parse the access point information in the initial list, and determine to remove the data that cannot be reversely parsed in the initial list and the locomotive ID of the locomotive ID;
[0102] The submodule for obtaining the list to be tested is used to match the signal strength corresponding to the removed locomotive ID, and filter the access point information according to the signal strength to obtain the list to be tested.
[0103] In an optional embodiment, the to-be-tested list acquisition submodule includes:
[0104] A matching unit, used for matching the signal strengths corresponding to the removed locomotive IDs to obtain a second list, and classifying the second list according to the locomotive IDs to determine and delete unpaired locomotive IDs;
[0105] A third list acquisition unit, used for filtering the list data of the wireless communication units on the same side belonging to the same locomotive ID from the second list to obtain a third list;
[0106] The elimination unit is used to eliminate the locomotive ID data in the third list, if the average signal strength value corresponding to the locomotive ID is less than the signal threshold, to obtain the list to be tested.
[0107] In an optional embodiment, the target number determination module 205 includes:
[0108] A first judgment submodule, respectively judging whether the first distance and the second distance satisfy a preset distance constraint condition; if not, eliminating the wireless communication unit group to be tested;
[0109] The second judgment submodule is used to judge whether the angle meets the preset angle constraint condition; if not, the wireless communication unit group to be tested is eliminated; if yes, the wireless communication unit group to be tested is defined as the target communication unit group.
[0110] Embodiment 3: The embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of a method for identifying adjacent locomotives in any embodiment.
[0111] Embodiment 4: The embodiment of the present invention further provides a computer storage medium on which a computer program is stored. When the computer program is executed by the processor, the steps of a method for identifying adjacent locomotives in any embodiment are implemented.
[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0113] In the several embodiments provided in the present application, it should be understood that the methods, devices, electronic devices and storage media disclosed in the present invention can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a readable storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0117] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for identifying adjacent locomotives, characterized in that: A wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive workshop, and a UWB positioning module is provided on the wireless communication unit; the method includes: S1, in response to a key insertion signal, the first locomotive switches from the AP mode to the STA mode; S2, in the STA mode, the first wireless communication unit group on the same side of the first locomotive automatically obtains access point information and its signal strength on the corresponding channel, and integrates the access point information and its signal strength to obtain a list to be tested; the access point information includes: the encoded locomotive ID, the wireless communication unit ID and its position information on the locomotive; S3, obtaining, through the UWB positioning module of any wireless communication unit in the first wireless communication unit group, the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any wireless communication unit; S4, determining an angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between two wireless communication units to be tested in the wireless communication unit group to be tested; S5, determining the number of target wireless communication unit groups from a plurality of wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle; S6, if the number of target wireless communication unit groups is 0 or greater than 1, return to step S2; if the number of target wireless communication unit groups is 1, the first wireless communication unit group automatically connects to the target communication unit group on the corresponding channel.
2. The method for identifying adjacent locomotives according to claim 1, characterized in that: The step S2 comprises: S21, the first wireless communication unit group automatically obtains the access point information and its signal strength on the corresponding channel respectively, and integrates the access point information and its signal strength to obtain an initial list; S22, reversely analyzing the access point information in the initial list, and determining the locomotive ID of the locomotive in the locomotive ID by removing the data in the initial list that cannot be reversely analyzed; S23, matching the signal strength corresponding to the removed locomotive ID, and filtering the access point information according to the signal strength to obtain the list to be tested.
3. The method for identifying adjacent locomotives according to claim 2, characterized in that: The step S23 comprises: Matching the signal strengths corresponding to the removed locomotive IDs to obtain a second list, and classifying the second list according to the locomotive IDs to determine and delete unpaired locomotive IDs; Filter the list data of the wireless communication units on the same side belonging to the same locomotive ID from the second list to obtain a third list; The locomotive ID data whose signal strength average value corresponding to the locomotive ID is less than the signal threshold are eliminated from the third list to obtain the list to be tested.
4. The method for identifying adjacent locomotives according to claim 1, characterized in that: The step S5 comprises: S51, respectively determining whether the first distance and the second distance satisfy a preset distance constraint condition; if not, eliminating the wireless communication unit group to be tested; S52, determining whether the angle satisfies a preset angle constraint condition; if not, eliminating the wireless communication unit group to be tested; if so, defining the wireless communication unit group to be tested as the target communication unit group.
5. A device for identifying adjacent locomotives, characterized in that: A wireless communication unit group consisting of two wireless communication units is provided on the reconnection end of the locomotive workshop, and a UWB positioning module is provided on the wireless communication unit; including: a response module, configured to switch the first locomotive from the AP mode to the STA mode in response to the key insertion signal; a module for acquiring a list to be tested, configured to automatically acquire access point information and signal strengths of the first wireless communication unit group on the same side of the first locomotive on the corresponding channel in the STA mode, and integrate the access point information and signal strengths to obtain a list to be tested; the access point information includes: an encoded locomotive ID, a wireless communication unit ID and its position information on the locomotive; a distance determination module, configured to obtain, through the UWB positioning module of any wireless communication unit in the first wireless communication unit group, the first distance and the second distance from the wireless communication unit group to be tested of all the locomotive IDs in the list to be tested to any of the wireless communication units; An angle determination module, used to determine the angle formed by the wireless communication unit and the wireless communication unit to be tested according to the first distance, the second distance, and the distance between two wireless communication units to be tested in the wireless communication unit group to be tested; a target number determination module, configured to determine the number of target wireless communication unit groups from a plurality of wireless communication unit groups to be tested in the list to be tested according to the first distance, the second distance and the angle; The identification module executes the above if the number of target wireless communication unit groups is 0 or greater than 1; if the number of target wireless communication unit groups is 1, the first wireless communication unit group automatically connects to the target communication unit group on the corresponding channel respectively.
6. The adjacent locomotive identification device according to claim 5, characterized in that: The test list acquisition module includes: an initial list acquisition submodule, configured to automatically acquire the access point information and its signal strength on the corresponding channels respectively through the first wireless communication unit group, and integrate the access point information and its signal strength to obtain an initial list; A removal submodule, configured to reversely parse the access point information in the initial list, and determine to remove the data that cannot be reversely parsed in the initial list and the locomotive ID of the locomotive ID; The submodule for obtaining the list to be tested is used to match the signal strength corresponding to the removed locomotive ID, and filter the access point information according to the signal strength to obtain the list to be tested.
7. The adjacent locomotive identification device according to claim 6, characterized in that: The test list acquisition submodule includes: A matching unit, used for matching the signal strengths corresponding to the removed locomotive IDs to obtain a second list, and classifying the second list according to the locomotive IDs to determine and delete unpaired locomotive IDs; A third list acquisition unit, used for filtering the list data of the wireless communication units on the same side belonging to the same locomotive ID from the second list to obtain a third list; The elimination unit is used to eliminate the locomotive ID data in the third list, if the average signal strength value corresponding to the locomotive ID is less than the signal threshold, to obtain the list to be tested.
8. The adjacent locomotive identification device according to claim 5, characterized in that: The target number determination module includes: A first judgment submodule, respectively judging whether the first distance and the second distance satisfy a preset distance constraint condition; if not, eliminating the wireless communication unit group to be tested; The second judgment submodule is used to judge whether the angle meets the preset angle constraint condition; if not, the wireless communication unit group to be tested is eliminated; if yes, the wireless communication unit group to be tested is defined as the target communication unit group.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 4 is executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 4 is performed.