Ranging method, device, equipment, storage medium and program product
By time-sharing multiplexing ranging sessions and priority management between ultra-wideband base stations and UWB tags, the problem of low positioning accuracy of unmanned card-collection vehicles in port environments is solved, the ranging success rate is improved, and the positioning accuracy is enhanced. .
Patent Information
- Application Number
- CN202411267497.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-11-08
AI Technical Summary
In a port environment, the satellite signal occlusion caused by the shore bridge occlusion during driving of unmanned locked vehicles leads to a reduced positioning accuracy. The current ultra-wideband UWB distance measurement method has a low ranging success rate.
By time-sharing multiplexing ranging sessions between ultra-wideband base stations and multiple UWB tags, avoiding signal collision interference caused by multiple tags at the same time in range measurement sessions, periodic connection and priority management mechanism are adopted to ensure that each tag is in Range measurement is carried out within different time periods to improve the success rate of distance measurement.
It effectively reduces the distance measurement failure caused by signal collision interference, improves the distance measurement success rate of unmanned vehicle positioning, and enhances positioning accuracy.
Smart Images

Figure CN118921624A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of positioning technology, and in particular to a ranging method, device, equipment, storage medium and program product. Background Art
[0002] Ports are transport hubs with water-land transport equipment and conditions for ships to enter, exit and berth safely. They are also gathering points and hubs for water-land transport, distribution centers for industrial and agricultural products and foreign trade import and export materials, and places for ships to berth, load and unload goods, get on and off passengers, and replenish supplies. Among them, quay cranes and unmanned container trucks (i.e., unmanned container trucks) are important equipment in ports. Quay cranes, also known as shore container cranes and bridge cranes, are equipment used to load and unload containers on ships at the shore. Unmanned container trucks are used to transfer goods (such as containers) at ports. To achieve automatic driving control of unmanned container trucks, it is necessary to determine the position of unmanned container trucks. At present, the global navigation satellite system (GNSS) is mainly used in ports to locate unmanned container trucks. However, unmanned container trucks may be located under the quay crane during driving. Due to the obstruction of the quay crane itself, there is a serious obstruction of satellite signals under the quay crane, which can easily cause large positioning deviations during vehicle driving.
[0003] In order to improve the positioning accuracy of unmanned trucks, a solution has been proposed to use ultra-wideband (UWB) wireless communication technology to locate unmanned trucks. The specific implementation method is: set up several base stations at the port, and set a UWB tag in each unmanned truck. When a UWB tag enters the signal coverage range of any base station, any base station calculates the distance between the UWB tag and the base station by exchanging information with the UWB tag, and transmits the calculated distance to the background server, so that the background server can locate the unmanned truck where the UWB tag is located based on the distance between the base station and the UWB tag calculated by multiple base stations. However, this solution is prone to ranging failure, resulting in a low success rate of ranging. Summary of the invention
[0004] In view of the above problems, the present application provides a ranging method, device, equipment, storage medium and program product to improve the success rate of ranging. The specific scheme is as follows:
[0005] In a first aspect, the present application provides a ranging method for an ultra-wideband base station, the method comprising:
[0006] Establishing a connection with at least one ultra-wideband tag within the signal coverage of the ultra-wideband base station; different ultra-wideband tags are located on different unmanned truck containers;
[0007] Periodically perform a ranging session with the at least one ultra-wideband tag to determine the distance between each ultra-wideband tag and the ultra-wideband base station; wherein, in different time periods of each ranging cycle, perform a ranging session with different ultra-wideband tags.
[0008] In a possible implementation, establishing a connection with at least one ultra-wideband tag that enters a signal coverage range of the ultra-wideband base station includes:
[0009] Obtaining a first notification message sent by a background server, wherein the first notification message carries first information, wherein the first information indicates that a first ultra-wideband tag enters a signal coverage range of the ultra-wideband base station; the first ultra-wideband tag is: any ultra-wideband tag that enters a signal coverage range of the ultra-wideband base station and has not established a connection with the ultra-wideband base station;
[0010] In response to the first notification message, if the number of ultra-wideband tags that have accessed the ultra-wideband base station is less than a target number, a connection with the first ultra-wideband tag is established.
[0011] In a possible implementation, the first notification message further carries second information, where the second information represents the priority of the first ultra-wideband tag;
[0012] The method further comprises:
[0013] If the number of ultra-wideband tags that have accessed the ultra-wideband base station is equal to the target number, determining an ultra-wideband tag with the lowest priority that has accessed the ultra-wideband base station;
[0014] If the priority of the first ultra-wideband tag is higher than the priority of the ultra-wideband tag with the lowest priority, disconnect the ultra-wideband tag with the lowest priority from the ultra-wideband base station, and establish a connection with the first ultra-wideband tag.
[0015] In a possible implementation, before establishing a connection with the first ultra-wideband tag, the method further includes:
[0016] receiving an access request sent by the first ultra-wideband tag;
[0017] Monitoring whether each ultra-wideband tag that has accessed the ultra-wideband base station in the current ranging cycle has completed the ranging session;
[0018] Correspondingly, after all ultra-wideband tags that have accessed the ultra-wideband base station in the current ranging cycle have completed the ranging session, a connection with the first ultra-wideband tag is established.
[0019] In a possible implementation, the method further includes:
[0020] Obtaining a second notification message sent by the background server, where the second notification message carries third information, and the third information indicates that the first ultra-wideband tag leaves the signal coverage range of the ultra-wideband base station;
[0021] In response to the second communication message, disconnecting from the first ultra-wideband tag.
[0022] In a possible implementation, the method further includes:
[0023] Extend the ranging period;
[0024] Alternatively, shorten the duration of the ranging session with each UWB tag;
[0025] Alternatively, the ranging period is kept unchanged, and the duration of the ranging session with each UWB tag is kept unchanged.
[0026] A third aspect of the present application provides a computer program product, comprising computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements the ranging method of the first aspect or any implementation manner of the first aspect.
[0027] A fourth aspect of the present application provides an electronic device, comprising at least one processor and a memory connected to the processor, wherein:
[0028] The memory is used to store computer programs;
[0029] The processor is used to execute the computer program so that the electronic device can implement the ranging method of the first aspect or any implementation manner of the first aspect.
[0030] In a fifth aspect, the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can use the ranging method of the first aspect or any implementation of the first aspect.
[0031] By means of the above technical scheme, the ranging method, device, equipment, storage medium and program product provided by the present application are used for an ultra-wideband base station, wherein the ultra-wideband base station establishes a connection with at least one ultra-wideband tag that enters its signal coverage range, and different ultra-wideband tags are located on different unmanned trucks; the ultra-wideband base station periodically conducts a ranging session with the above at least one ultra-wideband tag to determine the distance between each ultra-wideband tag and the ultra-wideband base station; wherein, in different time periods of each ranging cycle, the ultra-wideband base station conducts ranging sessions with different ultra-wideband tags. That is to say, when the ultra-wideband base station establishes a connection with multiple ultra-wideband tags, it assigns each ultra-wideband tag to a different time period within the same cycle for ranging sessions, thereby avoiding the situation where multiple ultra-wideband tags simultaneously conduct ranging sessions with the same ultra-wideband base station, resulting in collision and interference of ranging signals, and reducing the probability of ranging failure caused by collision and interference of ranging signals, thereby improving the ranging success rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0033] Figure 1 A schematic diagram of a ranging session between a UWB tag and a UWB base station provided in this application;
[0034] Figure 2 A flowchart of an implementation of the ranging method provided in this application;
[0035] Figure 3 A flowchart for implementing the establishment of a connection with at least one ultra-wideband tag that enters the signal coverage range of an ultra-wideband base station provided by the present application;
[0036] Figure 4 A schematic diagram of the structure of the distance measuring device provided in this application;
[0037] Figure 5 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION
[0038] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0039] The embodiments of the present application are described below in conjunction with the accompanying drawings. Those skilled in the art will appreciate that, with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0040] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0041] Ultra-wideband UWB wireless communication technology is different from traditional data carriers. It uses extremely narrow pulses in the nanosecond range to transmit data. Therefore, UWB signals have extremely high time resolution, making them suitable for applications in the field of high-precision positioning. The most widely used ranging methods in UWB technology are Time of Flight (TOF) and Time Difference of Arrival (TDOA). The TDOA method requires strict time synchronization and is relatively expensive. However, TOF technology does not require time synchronization and has the advantages of low cost and easy implementation while ensuring accuracy.
[0042] The ultra-wideband UWB wireless communication system at the port includes several UWB base stations distributed under the quay cranes, and UWB tags (or UWB chips) installed on each unmanned container truck. Each unmanned container truck is equipped with a UWB tag. The signal coverage of adjacent UWB base stations overlaps.
[0043] After the power switch of each UWB base station is turned on, the microcontroller unit (MCU) program is started to initialize the UWB base station. The initialization includes but is not limited to: the duration T of each ranging session between the UWB base station and each tag, and the maximum number of simultaneous UWB tag connections N. After the UWB base station is initialized, it is in the ranging signal receiving state to establish a ranging session with the UWB tag. After the UWB tag is powered on, the UWB tag will be in the ranging signal transmission state, and the duration T of each ranging session with the UWB base station will be set. After entering the signal coverage range of the UWB base station, it will establish a connection with the UWB base station and try to establish a ranging session with the UWB base station.
[0044] After the UWB tag establishes a ranging session with the UWB base station, bilateral two-way ranging will be performed between the UWB tag and the UWB base station, and the ranging results will be returned to the UWB tag. Since a UWB tag (for ease of description and distinction, recorded as the first UWB tag) can have a ranging session with multiple UWB base stations at the same time, the first UWB tag can simultaneously receive ranging results corresponding to the first UWB tag sent by multiple UWB base stations, so that the first UWB tag can calculate the position of the first UWB tag (that is, the position of the unmanned truck where the first UWB tag is located) based on the positions of the multiple UWB base stations and the measured distances between the multiple UWB base stations and the first UWB tag.
[0045] like Figure 1 As shown, it is a schematic diagram of a ranging session between a UWB tag and a UWB base station provided in an embodiment of the present application. The process of a ranging session between a UWB tag and a UWB base station includes: the UWB tag broadcasts a ranging frame, which contains a session ID, ranging parameters and a local timestamp of the UWB tag (i.e., the time when the UWB tag broadcasts the ranging frame, denoted as t1). After receiving the ranging frame sent by the UWB tag, the base station verifies the ranging frame based on the session ID and ranging parameters. If the verification is successful, the time when the ranging frame is received locally (denoted as t2) and the time recorded in the ranging frame (i.e., t1) are recorded. Then, a response frame is wirelessly fed back to the UWB tag and the time when the response frame is sent is recorded (denoted as t3). The response frame indicates in an agreed format that the UWB base station has received the ranging frame from the UWB self-tag. After receiving the response frame fed back by the UWB base station, the UWB tag records the time when the response frame is received (recorded as t4), processes the response frame, and sends the obtained response frame to the UWB base station. The response frame contains the session ID, ranging parameters and the local timestamp of the UWB tag (i.e., the time when the UWB sends the response frame, recorded as t5), and the time when the response frame is received (i.e., t4). After receiving the response frame, the UWB base station records the time when the response frame is received (recorded as t6) and the time when the UWB tag receives the response frame (i.e., t4), as well as the time when the UWB sends the response frame (i.e., t5). Afterwards, the distance between the UWB tag and the UWB base station is calculated using bilateral two-way ranging at the UWB base station, completing a round of bilateral two-way ranging.
[0046] Figure 1In the calculation, T1 represents the time difference between the UWB base station receiving the ranging frame and sending the response frame, that is, T1=t3-t2, T2 represents the time difference between the UWB tag transmitting the ranging frame and receiving the response frame, that is, T2=t4-t1, and the time difference between T2 and T1 should be twice the signal flight time between the UWB base station and the UWB tag (recorded as T0); T3 represents the time difference between the UWB tag receiving the response frame and sending the response frame, that is, T3=t5-t4, T4 represents the time difference between the UWB base station transmitting the response frame and receiving the response frame, that is, T4=t6-t3, and the time difference between T4 and T3 should be twice the signal flight time between the UWB base station and the UWB tag. Therefore, the specific calculation method for the ranging result between the tag and the base station is:
[0047] From the unilateral two-way ranging method, we can get:
[0048] T0=(T2- T1) / 2 (1)
[0049] T0=(T4- T3) / 2 (2)
[0050] Based on formulas (1) and (2), according to the principle of bilateral two-way ranging, in one round of bilateral two-way ranging, the average flight time of the signal from the UWB tag to the UWB base station is:
[0051] T0=(T2×T4-T1×T3) / (T2+T4+T1+T3) (3)
[0052] The distance d between the UWB base station and the UWB tag is:
[0053] d = c × T0 (4)
[0054] Where c is the speed of light.
[0055] The inventor of the present application has found that during the above-mentioned ranging session, if the signals of multiple UWB tags reach a UWB base station at the same time, the ranging signals will collide and interfere with each other, resulting in ranging failure and a low ranging success rate. In order to improve the ranging success rate, the present application scheme is proposed.
[0056] The ranging method provided in this application is applicable to any UWB base station, such as Figure 2 As shown, a flowchart of an implementation of the ranging method provided by the present application may include:
[0057] Step S201: establishing a connection with at least one ultra-wideband tag within the signal coverage of an ultra-wideband base station; different ultra-wideband tags are located on different unmanned truck container vehicles, that is, each unmanned truck container vehicle is equipped with a UWB tag.
[0058] When there are at least two UWB tags within the signal coverage of the UWB base station, the UWB base station establishes connections with the at least two UWB tags in sequence.
[0059] Step S202: periodically perform ranging sessions with at least one of the above-mentioned ultra-wideband tags to determine the distance between each ultra-wideband tag and the ultra-wideband base station; wherein, in different time periods of each ranging cycle, ranging sessions are performed with different ultra-wideband tags.
[0060] That is to say, in each ranging cycle, the UWB base station performs ranging sessions with the at least one UWB tag in sequence, and performs ranging sessions with only one UWB tag in each time period.
[0061] The duration of ranging sessions allocated by the UWB base station to different UWB tags is equal.
[0062] Optionally, the period for the UWB base station to communicate with the at least one UWB tag is fixed, that is, no matter how the number of UWB tags accessed by the UWB base station changes, the period for the UWB base station to perform ranging sessions with each UWB tag remains unchanged.
[0063] As an example, the duration of the ranging session between the UWB base station and each UWB tag also remains unchanged. That is, no matter how the number of UWB tags accessed by the UWB base station changes, the period and duration of the ranging session between the UWB base station and each UWB tag remain unchanged.
[0064] As an example, as the number of UWB tags accessed by the UWB base station increases, the duration of the ranging session between the UWB base station and each UWB tag gradually shortens. When the number of UWB tags accessed by the UWB base station reaches the maximum value, the duration of the ranging session between the UWB base station and each UWB tag is the shortest, but it will not affect the ranging session between the UWB base station and the UWB tag. For example, assuming that the period of communication between the UWB base station and the at least one UWB tag is P, and the UWB base station has established a connection with M UWB tags, the duration of the ranging session between the UWB base station and each UWB tag is: P / M; when M is the maximum number of UWB tags that the UWB base station can access, the duration of the ranging session between the UWB base station and each UWB tag can be the minimum duration required for the UWB base station to have a ranging session with a UWB tag.
[0065] Optionally, the period for the UWB base station to communicate with the at least one UWB tag is not fixed, but is related to the number of the at least one UWB tag. For example, assuming that the UWB base station has established a connection with M UWB tags, and the duration of the ranging session allocated to each UWB tag is T, then the period for the ranging session between the UWB base station and the M UWB tags is: T×M. It can be seen that in the present application, the period for the UWB base station to communicate with the at least one UWB tag is positively correlated with the number of the at least one UWB tag, that is, the more UWB tags connected to the UWB base station, the longer the period for the UWB base station to interact with each UWB tag connected to the UWB base station. In this example, the duration T for the ranging session allocated to each UWB tag of the UWB base station is fixed, and the duration T can be the minimum duration required for the UWB base station to conduct a ranging session with a UWB tag.
[0066] In the ranging method provided by the present application, when the UWB base station establishes a connection with multiple UWB tags, it assigns each UWB tag to a different time period within the same cycle for a ranging session, that is, multiple UWB tags time-share one UWB base station for a ranging session, thereby avoiding a situation where multiple UWB tags simultaneously conduct a ranging session with the same UWB base station, resulting in mutual collision and interference of ranging signals, and reducing the probability of ranging failure caused by mutual collision and interference of ranging signals, thereby improving the ranging success rate.
[0067] In an optional embodiment, a flowchart for implementing the above-mentioned establishment of a connection with at least one ultra-wideband tag within the signal coverage range of the ultra-wideband base station is as follows: Figure 3 As shown, it may include:
[0068] Step S301: obtaining a first notification message sent by a background server, wherein the first notification message carries first information, and the first information indicates that a first ultra-wideband tag enters a signal coverage range of an ultra-wideband base station.
[0069] The first ultra-wideband tag is any ultra-wideband tag that enters the signal coverage of the ultra-wideband base station and has not established a connection with the ultra-wideband base station. The first ultra-wideband tag may enter the signal coverage of multiple UWB base stations at the same time, and the multiple UWB base stations will all receive a notification message sent by the background server to inform the multiple UWB base stations that the first ultra-wideband tag has entered its signal coverage.
[0070] Optionally, the unmanned truck container vehicle where the first ultra-wideband tag is located is equipped with a global satellite navigation module in addition to the UWB tag, so as to locate the unmanned truck container vehicle through the global satellite navigation module. Although the positioning error of the unmanned truck container vehicle is large when it is under the quay crane, this application does not use this positioning as the positioning result of the unmanned truck container vehicle, but as a rough positioning result of the unmanned truck container vehicle, and then starts precise UWB positioning based on the rough positioning result.
[0071] Based on this, the first information can be determined by the background according to the position of the unmanned truck container vehicle determined by the global satellite navigation module on the unmanned truck container vehicle where the first ultra-wideband tag is located, as well as the position of the ultra-wideband base station and its signal coverage. Optionally, after the global satellite navigation module on the unmanned truck container vehicle where the first ultra-wideband tag is located determines the position of the unmanned truck container vehicle, it sends the position to the background server. The background server records the positions of each base station deployed in the port and the signal coverage of each base station. Therefore, according to the positions of each base station and the signal coverage of each base station, it can be determined whether the position of the unmanned truck container vehicle determined by the global satellite navigation module has entered the signal coverage of a certain UWB base station. If the position of the unmanned truck container vehicle enters the signal coverage of any UWB base station, a notification message can be sent to any UWB base station to inform any UWB base station that a certain UWB tag has entered its signal coverage. The background server can also send a notification message to the UWB tag to inform it that it has entered the signal coverage of any of the above-mentioned UWB tags.
[0072] For any UWB base station, if multiple UWB tags enter its signal coverage at the same time, the background server can send notification messages to any UWB base station in sequence, each time informing the UWB base station that a UWB tag has entered the signal coverage of any UWB base station. The notification messages sent to any UWB base station at different times inform the UWB base station that different UWB tags have entered its signal coverage.
[0073] Step S302: In response to the first notification message, if the number of ultra-wideband tags that have accessed the ultra-wideband base station is less than the target number, a connection with the first ultra-wideband tag is established.
[0074] The target number is the maximum number of UWB tags that the UWB base station can access.
[0075] After receiving the notification message, the UWB base station can calculate the session ID according to the identification information of the UWB base station and the identification information of the UWB tag, and then after establishing a connection with the UWB tag, it can conduct a ranging session with the UWB tag according to the session ID.
[0076] Similarly, after receiving the notification message, the UWB tag can also calculate the session ID based on the identification information of the UWB base station and the identification information of the UWB tag, and then after establishing a connection with the UWB base station, it can conduct a ranging session with the UWB base station based on the session ID. For the specific ranging session process, please refer to the aforementioned embodiment, which will not be repeated here. The UWB tag and the UWB base station calculate the session ID in the same way, so the session IDs calculated by the two are the same.
[0077] After establishing a connection with the first ultra-wideband tag, the period of the ranging session with each connected UWB tag may be updated or not, and the duration of the ranging session with each connected UWB tag may be updated or not. Whether to update the ranging session period and the duration for the ranging session is determined according to a preset rule.
[0078] Optionally, when the ranging cycle is variable, the ranging cycle may be extended, in which case the duration of the ranging session with each UWB tag remains unchanged.
[0079] Optionally, when the ranging cycle remains unchanged but the ranging session duration is variable, the duration of the ranging session with each ultra-wideband tag may be shortened.
[0080] Optionally, when both the ranging cycle and the ranging session duration remain unchanged, the ranging cycle may be kept unchanged, and the duration of the ranging session with each ultra-wideband tag may be kept unchanged.
[0081] This application sets the maximum number of UWB tags that a UWB base station can access, thereby avoiding ranging failures caused by too many UWB tags accessing the UWB base station, and further improving the ranging success rate.
[0082] Further, if the number of ultra-wideband tags that have accessed the ultra-wideband base station is equal to the target number, establishing a connection with the first ultra-wideband tag may be prohibited.
[0083] In an optional embodiment, the first notification message also carries second information, which represents the priority of the first ultra-wideband tag. The priority can be pre-set by relevant personnel according to needs, or can be temporarily set by relevant personnel according to real-time conditions.
[0084] Further, if the number of ultra-wideband tags that have accessed the ultra-wideband base station is equal to the target number, determining the ultra-wideband tag with the lowest priority that has accessed the ultra-wideband base station;
[0085] If the priority of the first ultra-wideband tag is higher than the priority of the ultra-wideband tag with the lowest priority, the connection between the ultra-wideband tag with the lowest priority and the ultra-wideband base station is disconnected, and a connection with the first ultra-wideband tag is established.
[0086] That is to say, this application sets a priority for each UWB tag. When a new UWB tag enters the signal coverage of any UWB base station, if the number of ultra-wideband tags that have been connected to any UWB base station has reached the maximum number of UWB tags that can be connected, the priority of the new UWB tag will be compared with the priority of the UWB tag with the lowest priority among the UWB tags that have been connected to any UWB base station. If the comparison result indicates that the new UWB tag has a higher priority, the connection between the ultra-wideband tag with the lowest priority and the ultra-wideband base station will be disconnected, and a connection will be established with the new UWB tag. This ensures that the unmanned container truck with a higher priority UWB tag can operate immediately and effectively.
[0087] Furthermore, if the comparison result indicates that the priority of the new UWB tag is lower than or equal to the priority of the UWB tag with the lowest priority among the UWB tags that have been connected to any UWB base station, then the connection between the ultra-wideband tag with the lowest priority and the ultra-wideband base station is prohibited, and establishment of a connection with the new UWB tag is prohibited.
[0088] In an optional embodiment, before establishing the connection with the first ultra-wideband tag, the following steps may also be included:
[0089] An access request sent by a first ultra-wideband tag is received.
[0090] Monitor whether all ultra-wideband tags that have been connected to the ultra-wideband base station in the current ranging cycle have completed the ranging session;
[0091] Correspondingly, after all ultra-wideband tags that have accessed the ultra-wideband base station in the current ranging cycle have completed the ranging session, a connection with the first ultra-wideband tag is established.
[0092] That is to say, when a new UWB tag accesses a UWB base station, it cannot affect the ranging sessions of the UWB tags that have already accessed the UWB base station.
[0093] In an optional embodiment, the ranging method provided by the present application may further include:
[0094] A second notification message sent by the background server is obtained, where the second notification message carries third information, and the third information indicates that the first ultra-wideband tag leaves the signal coverage range of the ultra-wideband base station.
[0095] Optionally, the global satellite navigation module on the unmanned container truck where the first ultra-wideband tag is located can locate the unmanned container truck to determine whether the positioning result is within the signal coverage range of the ultra-wideband base station. If not, it means that the first ultra-wideband tag has left the signal coverage range of the ultra-wideband base station. Otherwise, it means that the first ultra-wideband tag is still within the signal coverage range of the ultra-wideband base station.
[0096] In response to the second communication message, disconnecting from the first ultra-wideband tag.
[0097] If the first ultra-wideband tag leaves the signal coverage of the ultra-wideband base station, it means that the distance measurement of the first ultra-wideband tag can no longer be performed, so the connection with the first ultra-wideband tag is disconnected.
[0098] Furthermore, the period of the ranging session with each connected UWB tag may be updated or not, and the duration of the ranging session with each connected UWB tag may be updated or not. Whether to update the ranging session period and the duration for the ranging session is determined according to a preset rule.
[0099] Optionally, when the ranging cycle is variable, the ranging cycle may be shortened, in which case the duration of the ranging session with each UWB tag remains unchanged.
[0100] Optionally, when the ranging cycle remains unchanged but the ranging session duration is variable, the duration of the ranging session with each ultra-wideband tag may be extended.
[0101] Optionally, when both the ranging cycle and the ranging session duration remain unchanged, the ranging cycle may be kept unchanged, and the duration of the ranging session with each ultra-wideband tag may be kept unchanged.
[0102] Corresponding to the method embodiment, the present application also provides a distance measuring device, which is applied to an ultra-wideband base station. A structural schematic diagram of the distance measuring device provided in the embodiment of the present application is as follows: Figure 4 As shown, it may include:
[0103] Connecting module 401 and ranging module 402;
[0104] The connection module 401 is used to establish a connection with at least one ultra-wideband tag within the signal coverage of the ultra-wideband base station; different ultra-wideband tags are located on different unmanned truck containers;
[0105] The ranging module 402 is used to periodically perform a ranging session with the at least one UWB tag to determine the distance between each UWB tag and the UWB base station; wherein, in different time periods of each ranging cycle, ranging sessions are performed with different UWB tags.
[0106] The ranging device provided in the embodiment of the present application enables the UWB base station to assign each UWB tag to a different time period within the same cycle for ranging sessions when establishing connections with multiple UWB tags, that is, multiple UWB tags time-share one UWB base station for ranging sessions, thereby avoiding the situation where multiple UWB tags simultaneously conduct ranging sessions with the same UWB base station, resulting in ranging signals colliding and interfering with each other, reducing the probability of ranging failure caused by ranging signals colliding and interfering with each other, thereby improving the ranging success rate.
[0107] In an optional embodiment, when the connection module 401 establishes a connection with at least one ultra-wideband tag that enters the signal coverage range of the ultra-wideband base station, it is used to:
[0108] Obtaining a first notification message sent by a background server, wherein the first notification message carries first information, wherein the first information indicates that a first ultra-wideband tag enters a signal coverage range of the ultra-wideband base station; the first ultra-wideband tag is: any ultra-wideband tag that enters a signal coverage range of the ultra-wideband base station and has not established a connection with the ultra-wideband base station;
[0109] In response to the first notification message, if the number of ultra-wideband tags that have accessed the ultra-wideband base station is less than a target number, a connection with the first ultra-wideband tag is established.
[0110] In an optional embodiment, the first notification message further carries second information, where the second information represents the priority of the first ultra-wideband tag;
[0111] The connection module 401 is also used for:
[0112] If the number of ultra-wideband tags that have accessed the ultra-wideband base station is equal to the target number, determining an ultra-wideband tag with the lowest priority that has accessed the ultra-wideband base station;
[0113] If the priority of the first ultra-wideband tag is higher than the priority of the ultra-wideband tag with the lowest priority, disconnect the ultra-wideband tag with the lowest priority from the ultra-wideband base station, and establish a connection with the first ultra-wideband tag.
[0114] In an optional embodiment, before establishing the connection with the first ultra-wideband tag, the connection module 401 is further configured to:
[0115] receiving an access request sent by the first ultra-wideband tag;
[0116] Monitoring whether each ultra-wideband tag that has accessed the ultra-wideband base station in the current ranging cycle has completed the ranging session;
[0117] Correspondingly, the connection module 401 establishes a connection with the first ultra-wideband tag after all ultra-wideband tags that have connected to the ultra-wideband base station in the current ranging cycle have completed the ranging session.
[0118] In an optional embodiment, the connection module 401 is further used for:
[0119] Obtaining a second notification message sent by the background server, where the second notification message carries third information, and the third information indicates that the first ultra-wideband tag leaves the signal coverage range of the ultra-wideband base station;
[0120] In response to the second communication message, disconnecting from the first ultra-wideband tag.
[0121] In an optional embodiment, the connection module 401 is further used for:
[0122] Extend the ranging period;
[0123] Alternatively, shorten the duration of the ranging session with each UWB tag;
[0124] Alternatively, the ranging period is kept unchanged, and the duration of the ranging session with each UWB tag is kept unchanged.
[0125] The present application also provides an electronic device in an embodiment. Figure 5 As shown, it shows a structural schematic diagram of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application is a UWB base station. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0126] like Figure 5 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 to a random access memory (RAM) 503. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 503. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0127] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a memory card, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 5 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0128] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any ranging method provided in the embodiment of the present application.
[0129] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any ranging method provided in the embodiment of the present application.
[0130] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0131] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0132] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. Professionals and technicians may use different methods to implement the described functions for each specific solution, but such implementation should not be considered beyond the scope of this application.
[0133] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0134] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0135] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A distance measurement method, It is characterized in that For an ultra-wideband base station, the method comprises: Establishing a connection with at least one ultra-wideband tag within the signal coverage of the ultra-wideband base station; different ultra-wideband tags are located on different unmanned truck containers; Periodically perform a ranging session with the at least one ultra-wideband tag to determine the distance between each ultra-wideband tag and the ultra-wideband base station; wherein, in different time periods of each ranging cycle, perform a ranging session with different ultra-wideband tags.
2. The method according to claim 1, It is characterized in that The establishing a connection with at least one ultra-wideband tag that enters the signal coverage range of the ultra-wideband base station includes: Obtaining a first notification message sent by a background server, wherein the first notification message carries first information, wherein the first information indicates that a first ultra-wideband tag enters a signal coverage range of the ultra-wideband base station; the first ultra-wideband tag is: any ultra-wideband tag that enters a signal coverage range of the ultra-wideband base station and has not established a connection with the ultra-wideband base station; In response to the first notification message, if the number of ultra-wideband tags that have accessed the ultra-wideband base station is less than a target number, a connection with the first ultra-wideband tag is established.
3. The method according to claim 2, It is characterized in that The first notification message also carries second information, where the second information represents the priority of the first ultra-wideband tag; The method further comprises: If the number of ultra-wideband tags that have accessed the ultra-wideband base station is equal to the target number, determining an ultra-wideband tag with the lowest priority that has accessed the ultra-wideband base station; If the priority of the first ultra-wideband tag is higher than the priority of the ultra-wideband tag with the lowest priority, disconnect the ultra-wideband tag with the lowest priority from the ultra-wideband base station, and establish a connection with the first ultra-wideband tag.
4. The method according to claim 2 or 3, It is characterized in that Before establishing the connection with the first ultra-wideband tag, the method further includes: receiving an access request sent by the first ultra-wideband tag; Monitoring whether each ultra-wideband tag that has accessed the ultra-wideband base station in the current ranging cycle has completed the ranging session; Correspondingly, after all ultra-wideband tags that have accessed the ultra-wideband base station in the current ranging cycle have completed the ranging session, a connection with the first ultra-wideband tag is established.
5. The method according to claim 2 or 3, It is characterized in that Also includes: Obtaining a second notification message sent by the background server, where the second notification message carries third information, and the third information indicates that the first ultra-wideband tag leaves the signal coverage range of the ultra-wideband base station; In response to the second communication message, disconnecting from the first ultra-wideband tag.
6. The method according to claim 2 or 3, It is characterized in that Also includes: Extend the ranging period; Alternatively, shorten the duration of the ranging session with each UWB tag; Alternatively, the ranging period is kept unchanged, and the duration of the ranging session with each UWB tag is kept unchanged.
7. A distance measuring device, It is characterized in that Used in an ultra-wideband base station, the device comprises: A connection module, used to establish a connection with at least one ultra-wideband tag within the signal coverage of the ultra-wideband base station; different ultra-wideband tags are located on different unmanned truck containers; The ranging module is used to periodically perform a ranging session with the at least one ultra-wideband tag to determine the distance between each ultra-wideband tag and the ultra-wideband base station; wherein, the ranging session is performed with different ultra-wideband tags in different time periods of each ranging cycle.
8. A computer program product, It is characterized in that The method comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the distance measurement method according to any one of claims 1 to 6.
9. An electronic device, It is characterized in that The electronic device comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the ranging method according to any one of claims 1 to 6.
10. A computer storage medium, It is characterized in that The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the ranging method as described in any one of claims 1 to 6.
