Distance measurement method and data communication monitoring method and system
By using the clock information of synchronization frames and connection events in Bluetooth data communication, the local clock of the data monitoring end is calculated, and the receiving window is accurately opened, which solves the problem of high power consumption and monitoring errors caused by the large receiving window of the data monitoring end, and improves the efficiency Data communication stability.
Patent Information
- Application Number
- CN202411038634.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In Bluetooth data communication, it is difficult for the data monitoring end to accurately determine the data packet reception time of the first data sending end and the second data sending end, which leads to the need to open a larger receiving window, increases power consumption and is prone to monitoring errors, affecting data communication. stability.
Through the synchronization frame between the central node and the anchor node and the local data communication clock corresponding to the connection event expected to be monitored, the local data communication clock of the data monitoring end is calculated, and the receiving window is accurately opened for data communication monitoring, reducing the size of the receiving window. And improve the stability of monitoring.
It achieves accurate monitoring of data packets without opening a large receiving window, reduces power consumption, improves the stability of data communication monitoring, and improves the effect of data monitoring.
Smart Images

Figure CN118748781A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of electronic technology, and in particular to a distance measurement method and a data communication monitoring method and system. Background Art
[0002] In data communication such as Bluetooth, data communication is usually achieved by sending data packets between a first data transmitting end and a second data transmitting end, and a data monitoring end monitors the data communication between the first data transmitting end and the second data transmitting end by receiving data packets. However, the time when the data monitoring end first receives the data packets from the first data transmitting end and the second data transmitting end is usually uncertain, and it is necessary to open a larger receiving window to ensure that the data packets are received, resulting in high power consumption. At the same time, opening a larger receiving window is also prone to monitoring errors, resulting in failure to establish monitoring.
[0003] Therefore, how to improve the effect of data monitoring has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, one of the technical problems solved by the embodiments of the present disclosure is to provide a ranging method and a data communication monitoring method and system, which improve the effect of data communication monitoring.
[0005] In a first aspect, an embodiment of the present disclosure provides a ranging method, which is applied to a ranging system of a vehicle, wherein the ranging system is used to measure the distance between a mobile terminal and the vehicle, and the ranging system includes: a central node and an anchor node, wherein the central node and the anchor node are arranged at different positions of the vehicle, and the method includes: the mobile terminal establishes a communication connection with the central node, the central node sends a synchronization frame to the mobile terminal, and the synchronization frame is a local data communication clock of the central node; the central node sends a local data communication clock corresponding to a connection event that is expected to be monitored; the anchor node receives link information sent by the central node; the anchor node determines the local data communication clock of the anchor node corresponding to the connection event that is expected to be monitored based on the received synchronization frame and the local data communication clock of the central node corresponding to the connection event that is expected to be monitored, and opens a receiving window to receive a data packet at the local data communication clock of the anchor node corresponding to the connection event that is expected to be monitored, so as to perform data communication monitoring, wherein the data communication monitoring is established according to the link information; if the data packet monitored by the anchor node is a data packet sent by the mobile terminal, the anchor node reports the data packet and obtains a received signal strength indication according to the data packet to achieve ranging between the mobile terminal and the vehicle.
[0006] In a second aspect, an embodiment of the present disclosure provides a data communication monitoring method, which is applied to a data monitoring end, wherein a first data sending end and a second data sending end send data packets to each other to realize data communication, and the data monitoring end receives the data packet to realize data communication monitoring, and the method includes: receiving a synchronization frame sent by the first data sending end, wherein the synchronization frame is a local data communication clock of the first data sending end; calculating the total time taken for the synchronization frame to be transmitted from the first data sending end to the data monitoring end, and calculating the deviation of the data communication clock between the data monitoring end and the first data sending end based on the total time taken; receiving the local data communication clock of the first data sending end corresponding to the connection event expected to be monitored sent by the first data sending end; receiving link information sent by the first data sending end; calculating the local data communication clock of the data monitoring end corresponding to the connection event expected to be monitored based on the deviation of the data communication clock and the local data communication clock of the first data sending end corresponding to the connection event expected to be monitored, and opening a receiving window to receive data packets at the local data communication clock of the data monitoring end corresponding to the connection event expected to be monitored, so as to realize data communication monitoring, wherein the data communication monitoring is established based on the link information.
[0007] In a third aspect, an embodiment of the present disclosure provides a data communication monitoring system, comprising a first data sending end, a second data sending end and a data monitoring end, wherein the first data sending end and the second data sending end send data packets to each other to achieve data communication, and the data monitoring end receives the data packets to achieve data communication monitoring, and the first data sending end executes the method described in the first aspect.
[0008] Therefore, the embodiment of the present disclosure can obtain the local data communication clock of the data monitoring end corresponding to the connection event that is expected to be monitored, so as to accurately open a receiving window for data communication monitoring without opening a larger receiving window, thereby reducing power consumption and improving the stability of data communication monitoring, thereby improving the effect of data monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Hereinafter, some specific embodiments of the present disclosure will be described in detail in an exemplary and non-limiting manner with reference to the accompanying drawings. The same reference numerals in the accompanying drawings indicate the same or similar components or parts. It should be understood by those skilled in the art that these drawings are not necessarily drawn to scale. In the accompanying drawings:
[0010] Figure 1 This is a flow chart of a data communication monitoring method according to an embodiment of the present disclosure;
[0011] Figure 2 A schematic diagram of sending and receiving a data packet in Bluetooth data communication;
[0012] Figure 3 It is a flow chart of another data communication monitoring method according to an embodiment of the present disclosure;
[0013] Figure 4 This is a flow chart of a distance measurement method of a mobile terminal according to an embodiment of the present disclosure;
[0014] Figure 5 This is a flow chart of step P4 of a distance measurement method for a mobile terminal according to an embodiment of the present disclosure;
[0015] Figure 6 The present invention is a structural diagram of a data communication monitoring system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and in detail below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0017] In the following detailed description, reference is made to the accompanying drawings, which form a part of the detailed description and illustrate exemplary embodiments. In addition, it is to be understood that other embodiments can be utilized and structural and / or logical changes can be made without departing from the scope of the claimed subject matter.
[0018] In the following description, numerous details are set forth. However, it will be apparent to those skilled in the art that the embodiments herein can be practiced without these specific details. In some cases, known methods and devices are shown in block diagram form, rather than in detail, to avoid blurring the embodiments herein. References to "embodiment" or "one embodiment" or "some embodiments" throughout this specification mean that the specific features, structures, functions or characteristics described in conjunction with the embodiment are included in at least one embodiment herein. Therefore, the phrases "in an embodiment" or "in one embodiment" or "some embodiments" appearing throughout this specification do not necessarily refer to the same embodiment. In addition, in one or more embodiments, specific features, structures, functions or characteristics may be combined in any suitable manner. For example, the first embodiment may be combined with the second embodiment in any case where the specific features, structures, functions or characteristics associated with the two embodiments are not mutually exclusive.
[0019] As used in the description and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0020] The terms "coupled" and "connected" together with their derivatives may be used in this article to describe the functional or structural relationship between components. It should be understood that these terms are not intended to be synonymous with each other. On the contrary, in a particular embodiment, "connected" can be used to indicate that two or more elements are in direct physical, optical or electrical contact with each other. "Coupled" can be used to indicate that two or more elements are in direct or indirect (with other intermediate elements between them) physical or electrical contact with each other, and / or that two or more elements cooperate or interact with each other (e.g., as in a cause-and-effect relationship).
[0021] As used throughout the description herein and in the claims, a list of items connected by the term "at least one of" or "one or more of" may mean any combination of the listed items. For example, the phrase "at least one of A, B, or C" may mean A; B; C; A and B; A and C; B and C; or A, B, and C.
[0022] The term "circuit" or "module" may refer to one or more passive and / or active components that are arranged to cooperate with each other to provide a desired functionality. The term "signal" may refer to at least one current signal, voltage signal, or magnetic signal. The terms "substantially," "close," "approximately," "close to," and "approximately" generally refer to within + / - 10% of a target value.
[0023] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0024] In data communications such as Bluetooth, data communication is usually performed by sending data packets between a first data transmitting end and a second data transmitting end. A data monitoring end monitors the data communication between the first data transmitting end and the second data transmitting end. By monitoring, the first data packet and the second data packet respectively sent by the first data transmitting end and the second data transmitting end can be received to obtain effective monitoring information, such as a signal strength indication (Received Signal Strength Indication, RSSI).
[0025] Taking Bluetooth digital communication as an example, the first data transmitting end and the second data transmitting end are the central role and the peripheral role of data communication respectively. The data monitoring end monitors the data packets sent by the central role and the peripheral role of communication respectively.
[0026] The following specifically illustrates the implementation of data communication monitoring through a car digital key system.
[0027] As the popularity of car digital key systems in new energy vehicles increases, car digital key systems have become an important application scenario for data communication monitoring. In a typical application scenario, the car digital key system will install three or more anchor nodes (usually four anchor nodes) around the car body as data monitoring terminals, and install a central node in the central control position as the first data sending terminal. The digital key mobile terminal (for example, a mobile phone, a key, or other wearable device) serves as the second data sending terminal. The mobile terminal (second data sending terminal) and the central node (first data sending terminal) establish a connection and implement security authentication by sending data packets to each other. The anchor node (data monitoring terminal) monitors the data packets sent by the mobile terminal (second data sending terminal) and the central node (first data sending terminal), respectively, and reports the signal strength indication of the mobile terminal (second data sending terminal) transmitting the signal to the central node (first data sending terminal), and uses this as the basis for judging the distance measurement. The signal strength indication ranging work of the car digital key system, one of the commonly used schemes at present is the signal strength indication ranging based on Bluetooth.
[0028] Taking Bluetooth data communication as an example, the monitoring of data communication faces the problem of how to accurately, stably and quickly establish the monitoring of data packets sent by the anchor node (data monitoring end) to the mobile terminal (second data sending end) and the central node (first data sending end).
[0029] The current Bluetooth communication protocol includes frequency hopping algorithm 1 and frequency hopping algorithm 2. Since frequency hopping algorithm 1 and frequency hopping algorithm 2 are specified in the Bluetooth communication protocol, they will not be described here. The current monitoring method can only calculate the frequency point where link information (Link information) may be sent in the future for frequency hopping algorithm 1, and open a larger receiving window to receive data packets. If a data packet is received, it is determined that synchronization is achieved, and then the data packet is received according to a fixed period to achieve data communication monitoring.
[0030] However, the above-mentioned data communication monitoring requires a larger receiving window to receive data packets, resulting in higher power consumption. In addition, when the receiving window exceeds a connection interval (CI), at least two connection events (connection events) will be covered within the window range of the receiving window. When there are fewer available channels, it is easier for the frequency points of two adjacent connection events to be the same. In this way, the second connection event was originally expected to be monitored, but the previous connection event was received by mistake, resulting in a data monitoring error. Since the number of Bluetooth data communication frequencies is small, packets can still be received occasionally after this situation occurs. Therefore, this data communication monitoring error will not cause disconnection, resulting in a false connection state with a packet loss rate of more than 90%. This problem is particularly prone to occur when the connection interval is very small, such as when the connection interval is 7.5ms, this problem is very likely to occur.
[0031] In addition, for frequency hopping algorithm 2, the existing technology cannot realize data communication monitoring, resulting in poor security performance of Bluetooth connection.
[0032] In response to the above situation, the embodiment of the present disclosure can obtain the local data communication clock of the data monitoring end corresponding to the connection event that is expected to be monitored, so as to accurately open a receiving window for data communication monitoring without opening a larger receiving window, thereby reducing power consumption and improving the stability of data communication monitoring, thereby improving the effect of data communication monitoring.
[0033] The disclosed embodiment provides a data communication monitoring method, which is applied to a first data sending end and a data monitoring end. In the disclosed embodiment, the second data sending end and the first data sending end send data packets to each other to achieve data communication, and the data monitoring end receives the data packets to achieve data communication monitoring.
[0034] In the embodiment of the present disclosure, the data monitoring end executes steps S1 to S4 of the embodiment of the present disclosure, and the first data sending end executes steps T1 to T2 of the embodiment of the present disclosure to implement the data communication monitoring of the embodiment of the present disclosure. The second data sending end can be any device that can establish a communication connection with the first data sending end, and the data packets sent by the second data sending end can be received by the data monitoring end.
[0035] In the disclosed embodiment, the first data sending end and the second data sending end realize data communication (here, Bluetooth digital communication is taken as an example for explanation), and the first data sending end and the second data sending end respectively serve as the data communication central role and the data communication peripheral role in the Bluetooth data communication, and send data packets to each other to realize Bluetooth data communication.
[0036] For example, in the application scenario of a car digital key system, the first data sending end can be a central node of the vehicle's central control, the second data sending end can be a mobile terminal, and the data monitoring end can be an anchor node installed around the vehicle body.
[0037] For another example, in a smart home application scenario, the first data sending end may be a central control of an appliance in the smart home, the second data sending end may be a mobile terminal, and the data monitoring end may be an anchor node installed in the appliance.
[0038] In the application scenario of the digital key system for automobiles, the central node (first data transmitting end) can be used as a central role or a peripheral role in data communication in Bluetooth data communication; the mobile terminal (second data transmitting end) can also be used as a central role or a peripheral role in data communication in Bluetooth data communication. The central node (first data transmitting end) and the mobile terminal (second data transmitting end) send Bluetooth data packets to each other to realize Bluetooth data communication, and the anchor node (data listening end) listens to the data packets sent by the mobile terminal (second data transmitting end) and the central node (first data transmitting end), obtains the signal strength indication of the mobile terminal (second data transmitting end) transmitting the signal to the anchor node (data listening end), and uses this as the basis for judging the distance measurement.
[0039] For example, when the mobile terminal (second data transmitting end) acts as a data communication peripheral role in Bluetooth data communication, the power consumed by the mobile terminal (second data transmitting end) is lower, and an electronic car key can be used as the mobile terminal (second data transmitting end).
[0040] For example, when the mobile terminal (second data sending end) acts as the data communication central role in Bluetooth data communication, the power consumed by the mobile terminal (second data sending end) is higher, and a mobile phone can be used as the mobile terminal (second data sending end).
[0041] In the embodiment of the present disclosure, the first data sending end is selected as a data communication central role or a data communication peripheral role as required; correspondingly, the second data sending end is selected as a data communication peripheral role or a data communication central role.
[0042] See also Figure 1 The method of the embodiment of the present disclosure is applied to a data monitoring terminal and is described using Bluetooth data communication as an example. The method includes:
[0043] Step S1: Receive a synchronization frame sent by a first data sending end.
[0044] The synchronization frame includes the local Bluetooth clock T1 of the first data sending end.
[0045] In the disclosed embodiment, the data monitoring end establishes a Bluetooth connection with the first data sending end, and completes the necessary authentication process to confirm that the access device is a legitimate device.
[0046] See also Figure 2 In the disclosed embodiment, the local Bluetooth clock T1 of the first data sending end generates a synchronization frame, and establishes a corresponding relationship between the local Bluetooth clock T1 of the first data sending end and the system clock t1 of the first data sending end.
[0047] See also Figure 2 , the first data sending end sends the synchronization frame, and records the local clock time t2 when the first data sending end sends the synchronization frame; and the time t3 when the synchronization frame is transmitted to the data listening end. The time t3 when the synchronization frame is transmitted to the data listening end is fixed and can be obtained by measurement.
[0048] See also Figure 2 The data monitoring end receives the synchronization frame sent by the first data sending end, and records the time t4 when the data monitoring end receives the synchronization frame. The data monitoring end processes the received synchronization frame, establishes the local Bluetooth clock T2 of the data monitoring end and the corresponding system clock t5 of the data monitoring end.
[0049] Step S2: Calculate the total time taken for the synchronization frame to be transmitted from the first data transmitting end to the data listening end, and calculate the deviation Δt of the Bluetooth clock between the data listening end and the first data transmitting end according to the total time taken.
[0050] From the above clock relationship, it can be seen that the total time consumed for the synchronization frame to be transmitted from the first data sending end to the data listening end is t2-t1+t3+t5-t4.
[0051] Specifically, the deviation of the Bluetooth clock between the data listening terminal and the first data sending terminal is Δt=T2-(T1+t2-t1+t3+t5-t4), where T2 is the local Bluetooth clock of the data listening terminal, and T1+t2-t1+t3+t5-t4 is the local Bluetooth clock of the first data sending terminal corresponding to the local Bluetooth clock of the data listening terminal when the local Bluetooth clock of the data listening terminal is T2. Therefore, the deviation of the Bluetooth clock between the data listening terminal and the first data sending terminal can be obtained by using T2-(T1+t2-t1+t3+t5-t4).
[0052] Step S3: Receive the local Bluetooth clock T3 of the first data sending end corresponding to the connection event expected to be monitored and sent by the first data sending end.
[0053] A connection event is a process in which a first data sending end and a second data sending end in data communication send data packets to each other.
[0054] Step S4, receiving link information sent by the first data sending end.
[0055] The link information includes access code, crc init, channel map, tx / rx phy, and interval. For frequency hopping algorithm 1, it also includes unmap channel and hop inc. For frequency hopping algorithm 2, it also includes connection event count. The data monitoring end can establish data communication monitoring only after receiving the link information sent by the first data sending end.
[0056] See also Figure 2 , the local Bluetooth clock of the first data sending end corresponding to the connection event expected to be monitored is T3.
[0057] Optionally, the data listening end and the first data sending end can be connected via a wired or wireless method. Preferably, the data listening end and the first data sending end are connected via a wired method such as a CAN bus. Then, the synchronization frame in the above step S1, the local Bluetooth clock T3 in S3 and the link information in S4 can be sent by the first data sending end to the data listening end via a wired connection.
[0058] Step S5, calculate the local data communication clock of the data listening end corresponding to the connection event expected to be monitored according to the deviation Δt of the Bluetooth clock and the local Bluetooth clock T3 of the first data sending end corresponding to the connection event expected to be monitored, and open a receiving window to receive data packets at the local data communication clock of the data listening end corresponding to the connection event expected to be monitored to perform data communication monitoring, and the data communication monitoring is established according to the link information.
[0059] Specifically, the local data communication clock of the data listening end corresponding to the connection event expected to be monitored is: T3+Δt, wherein T3 is the local Bluetooth clock of the first data sending end corresponding to the connection event expected to be monitored, and Δt is the deviation of the Bluetooth clock between the data listening end and the first data sending end.
[0060] Furthermore, the data monitoring end cannot distinguish the source of the data by monitoring the data packets sent between the first data sending end and the second data sending end. The data monitoring end determines the source of the data packet by the characteristics of the data packet in the connection event.
[0061] If the first data sending end is a data communication central role and the second data sending end is a data communication peripheral role, if the received data packet is a data packet sent by the data communication peripheral role, the data packet is reported and a received signal strength indication is obtained according to the data packet to implement ranging.
[0062] If the first data sending end is a data communication peripheral role and the second data sending end is a data communication central role, if the received data packet is a data packet sent by the data communication central role, the data packet is reported and a received signal strength indication is obtained according to the data packet to implement ranging.
[0063] Therefore, the embodiment of the present disclosure can obtain the local data communication clock of the data monitoring end corresponding to the connection event that is expected to be monitored, so as to accurately open a receiving window for data communication monitoring without opening a larger receiving window, thereby reducing power consumption and improving the stability of data communication monitoring, thereby improving the effect of data monitoring.
[0064] In some other specific implementations of the present disclosure, the opening time of the receiving window is less than or equal to 7.5 ms.
[0065] The data monitoring end of the disclosed embodiment can accurately predict the occurrence time of the connection event expected to be monitored relative to the local time, that is, T3+Δt, so a receiving window is opened at T3+Δt, and the window size of the receiving window can be controlled within 7.5ms. Since the minimum interval of Bluetooth communication is 7.5ms, it means that it is impossible for two connection events to occur within the receiving range of a receiving window, which also avoids data communication monitoring errors caused by erroneously receiving the previous connection event. In addition, the smaller window size of the receiving window in the disclosed embodiment can further reduce power consumption.
[0066] In some other specific implementations of the present disclosure, the receiving window has a continuous receiving capability, and the continuous receiving capability is used to receive all data packets in a connection event, that is, the receiving window can receive both the first data packet appearing in the connection event and the second data packet appearing in the connection event. Therefore, in the application scenario of the automobile digital key system, no matter whether the mobile terminal is used as a data communication central role in Bluetooth data communication or as a data communication peripheral role in Bluetooth data communication, we can receive the data packets sent by it.
[0067] It should be noted that the synchronization frame or local Bluetooth clock T3 sent by the first data transmitting end in the embodiment of the present disclosure can be sent before or after the link information is sent. In other words, the above step S4 can be performed after steps S1 to S3, or before steps S1 to S3, and the embodiment of the present application does not limit this. Optionally, in order to save communication resources, the link information can also be set to be sent to the data listening end together with the synchronization frame or the local Bluetooth clock T3, that is, the above step S4 can be performed together with step S1 or step S3.
[0068] The disclosed embodiment also provides a data communication monitoring method, which is applied to a first data sending end.
[0069] See also Figure 3 , the method of the embodiment of the present disclosure includes:
[0070] Step Q1: Send a synchronization frame, which is the local Bluetooth clock of the first data sending end, and let the data listening end calculate the total time it takes for the synchronization frame to be transmitted from the first data sending end to the data listening end, and calculate the deviation of the Bluetooth clock between the data listening end and the first data sending end based on the total time.
[0071] Step Q2: Send link information.
[0072] The link information includes access code, crc init, channel map, tx / rx phy, and interval. For frequency hopping algorithm 1, it also includes unmap channel and hop inc. For frequency hopping algorithm 2, it also includes connection event count. The data monitoring end can establish data communication monitoring only after receiving the link information sent by the first data sending end.
[0073] Step Q3: Send the local Bluetooth clock of the first data sending end corresponding to the connection event expected to be monitored to the data monitoring end, and enable the data monitoring end to calculate the local Bluetooth clock of the data monitoring end corresponding to the connection event expected to be monitored based on the deviation of the Bluetooth clock and the local Bluetooth clock of the first data sending end corresponding to the connection event expected to be monitored, and open a receiving window to receive data packets at the local Bluetooth clock of the data monitoring end corresponding to the connection event expected to be monitored, so as to perform data communication monitoring, and the data communication monitoring is established according to the link information.
[0074] Optionally, the data listening end and the first data sending end can be connected via a wired or wireless method. Preferably, the data listening end and the first data sending end are connected via a wired method such as a CAN bus. Then, the synchronization frame in the above step S1, the local Bluetooth clock T3 in S3 and the link information in S4 can be sent by the first data sending end to the data listening end via a wired connection.
[0075] It should be noted that the synchronization frame or local Bluetooth clock T3 sent by the first data transmitting end in the embodiment of the present disclosure can be sent before or after the link information is sent. In other words, the above step Q2 can be performed after or before step Q1, and the embodiment of the present application does not limit this. Optionally, in order to save communication resources, the link information can also be set to be sent to the data listening end together with the synchronization frame or the local Bluetooth clock T3.
[0076] In the embodiment of the present disclosure, the first data sending end can be used as a data communication central role or a data communication peripheral role. The first data sending end and the data listening end are connected by wire or wirelessly, and the data listening end obtains the first data sending end as a data communication central role or a data communication peripheral role through the wire or wireless connection.
[0077] Specifically, the first data sending end and the data monitoring end are connected via a CAN bus, and the data monitoring end obtains, through the CAN bus, that the first data sending end is a data communication central role or a data communication peripheral role.
[0078] If the central node is a data communication central role and the mobile terminal is a data communication peripheral role, if the received data packet is a data packet sent by the data communication peripheral role, the data packet is reported and a received signal strength indication is obtained according to the data packet to realize the distance measurement between the mobile terminal and the vehicle.
[0079] If the central node is a data communication peripheral role and the mobile terminal is a data communication central role, if the received data packet is a data packet sent by the data communication central role, the data packet is reported and a received signal strength indication is obtained according to the data packet to realize the distance measurement between the mobile terminal and the vehicle.
[0080] The present disclosure also provides a distance measurement method, which is applied to a distance measurement system of a vehicle. The distance measurement system is used to measure the distance between a mobile terminal and a vehicle. The distance measurement system includes: a central node and an anchor node. The central node and the anchor node are arranged at different positions of the vehicle. Figure 4 , methods include:
[0081] Step P1: The mobile terminal establishes a communication connection with the central node, and the central node sends a synchronization frame to the mobile terminal. The synchronization frame is the local data communication clock of the central node.
[0082] Step P2: The central node sends the local data communication clock corresponding to the connection event that it expects to monitor.
[0083] Step P3: The anchor node receives the link information sent by the central node.
[0084] The link information includes access code, crc init, channel map, tx / rx phy, and interval. For frequency hopping algorithm 1, it also includes unmap channel and hop inc. For frequency hopping algorithm 2, it also includes connection event count. The data monitoring end can establish data communication monitoring only after receiving the link information sent by the first data sending end.
[0085] Step P4: The anchor node determines the local data communication clock of the anchor node corresponding to the connection event that is expected to be monitored based on the received synchronization frame and the local data communication clock of the central node corresponding to the connection event that is expected to be monitored, and opens a receiving window to receive data packets in the local data communication clock of the anchor node corresponding to the connection event that is expected to be monitored to perform data communication monitoring, which is established based on the link information.
[0086] Step P5: If the data packet monitored by the anchor node is a data packet sent by the mobile terminal, the anchor node reports the data packet and obtains a received signal strength indication according to the data packet to achieve ranging between the mobile terminal and the vehicle.
[0087] It should be noted that the synchronization frame or local Bluetooth clock T3 sent by the central node in the embodiment of the present disclosure can be sent before or after the link information is sent. In other words, the above step P3 can be performed after or before step P2, and the embodiment of the present application does not limit this. Optionally, in order to save communication resources, the link information can also be set to be sent to the data listening terminal together with the synchronization frame or the local Bluetooth clock T3.
[0088] The disclosed embodiment can obtain the local data communication clock of the anchor node corresponding to the connection event that is expected to be monitored, so as to accurately open a receiving window for data communication monitoring without opening a larger receiving window, thereby reducing power consumption and improving the stability of data communication monitoring, thereby improving the effect of data communication monitoring.
[0089] In some specific implementations of the embodiments of the present disclosure, see Figure 4 , step P4, comprising:
[0090] Step P41: Calculate the total time taken for the synchronization frame to be transmitted from the central node to the anchor node, and calculate the deviation of the data communication clock between the anchor node and the central node based on the total time taken.
[0091] Step P42: Calculate the local data communication clock of the anchor node corresponding to the connection event you want to monitor based on the deviation of the data communication clock and the local data communication clock of the central node corresponding to the connection event you want to monitor, and open a receiving window to receive data packets at the local data communication clock corresponding to the connection event you want to monitor to perform data communication monitoring. The data communication monitoring is established based on the link information.
[0092] The deviation of the local data communication clock of the anchor node corresponding to the connection event to be monitored and the data communication clock between the anchor node and the central node are as described above and will not be described in detail here.
[0093] Corresponding to the above method, see Figure 6 The disclosed embodiment also provides a data communication monitoring system, including a first data sending end, a second data sending end and a data monitoring end. The first data sending end and the second data sending end send data packets to each other to achieve data communication, and the data monitoring end receives the data packets to achieve data communication monitoring. The first data sending end performs steps T1-T2 of the above method, and the data monitoring end performs steps S1-S4 of the above method.
[0094] Thus far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.
[0095] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0096] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0097] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0098] For the convenience of description, the above device is described in terms of functions and is divided into various units and described separately. Of course, when implementing the present disclosure, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0099] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0100] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0101] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0102] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0103] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0104] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0105] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0106] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0107] It will be appreciated by those skilled in the art that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0108] The present disclosure may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present disclosure may also be practiced in distributed computing environments where transactions are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0109] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0110] The above description is only an embodiment of the present disclosure and is not intended to limit the present disclosure. For those skilled in the art, the present disclosure may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the scope of the claims of the present disclosure.
Claims
1. A distance measurement method, applied to a distance measurement system of a vehicle, the distance measurement system is used to measure the distance between a mobile terminal and the vehicle, the distance measurement system comprising: A central node and an anchor node, wherein the central node and the anchor node are arranged at different positions of the vehicle, and the method comprises: The mobile terminal establishes a communication connection with the central node, and the central node sends a synchronization frame to the mobile terminal, wherein the synchronization frame is a local data communication clock of the central node; The central node sends a local data communication clock corresponding to the connection event that is expected to be monitored; The anchor node receives the link information sent by the central node; The anchor node determines the local data communication clock of the anchor node corresponding to the connection event expected to be monitored according to the received synchronization frame and the local data communication clock of the central node corresponding to the connection event expected to be monitored, and opens a receiving window to receive data packets at the local data communication clock of the anchor node corresponding to the connection event expected to be monitored, so as to perform data communication monitoring, wherein the data communication monitoring is established according to the link information; If the data packet monitored by the anchor node is a data packet sent by the mobile terminal, the anchor node reports the data packet and obtains a received signal strength indication according to the data packet to achieve ranging between the mobile terminal and the vehicle.
2. The method according to claim 1, characterized in that The anchor node determines the local data communication clock of the anchor node corresponding to the connection event expected to be monitored according to the received synchronization frame and the local data communication clock of the central node corresponding to the connection event expected to be monitored, and opens a receiving window in the local data communication clock of the anchor node corresponding to the connection event expected to be monitored to monitor the link information sent by the central node, so as to monitor the data packets sent between the central node and the mobile terminal, including: Calculating the total time taken for the synchronization frame to be transmitted from the central node to the anchor node, and calculating the deviation of the data communication clock between the anchor node and the central node according to the total time taken; The local data communication clock of the anchor node corresponding to the connection event expected to be monitored is calculated based on the deviation of the data communication clock and the local data communication clock of the central node corresponding to the connection event expected to be monitored, and a receiving window is opened to receive data packets at the local data communication clock corresponding to the connection event expected to be monitored to perform data communication monitoring, and the data communication monitoring is established based on the link information.
3. The method according to claim 2, characterized in that The local data communication clock of the anchor node corresponding to the connection event expected to be monitored is: T3+Δt, wherein T3 is the local data communication clock of the central node corresponding to the connection event that is expected to be monitored, and Δt is the deviation of the data communication clock between the anchor node and the central node.
4. The method according to claim 3, characterized in that The deviation of the data communication clock between the anchor node and the central node is Δt=T2-(T1+t2-t1+t3+t5-t4), wherein T2 is the local data communication clock of the anchor node, T1 is the local data communication clock of the central node, t2 is the local clock time when the central node sends the synchronization frame, t1 is the system clock of the central node, t3 is the time when the synchronization frame is transmitted to the anchor node, t5 is the system clock of the anchor node, and t4 is the time when the anchor node receives the synchronization frame.
5. The method according to claim 1, characterized in that The opening time of the receiving window is less than or equal to 7.5 ms.
6. The method according to claim 5, characterized in that The receiving window has a continuous receiving capability, and the continuous receiving capability is used to receive all data packets in the connection event.
7. A data communication monitoring method, applied to a data monitoring end, wherein a first data sending end and a second data sending end send data packets to each other to achieve data communication, and the data monitoring end receives the data packets to achieve data communication monitoring, characterized in that: The method comprises: receiving a synchronization frame sent by the first data sending end, wherein the synchronization frame is a local data communication clock of the first data sending end; Calculating the total time taken for the synchronization frame to be transmitted from the first data transmitting end to the data listening end, and calculating the deviation of the data communication clock between the data listening end and the first data transmitting end according to the total time taken; Receiving a local data communication clock of the first data sending end corresponding to the connection event expected to be monitored and sent by the first data sending end; Receiving link information sent by the first data sending end; The local data communication clock of the data listening end corresponding to the connection event expected to be monitored is calculated based on the deviation of the data communication clock and the local data communication clock of the first data sending end corresponding to the connection event expected to be monitored, and a receiving window is opened at the local data communication clock of the data listening end corresponding to the connection event expected to be monitored to receive data packets for data communication monitoring, and the data communication monitoring is established based on the link information.
8. The method according to claim 7, characterized in that The local data communication clock of the data monitoring end corresponding to the connection event expected to be monitored is: T3+Δt, wherein T3 is the local data communication clock of the first data sending end corresponding to the connection event expected to be monitored, and Δt is the deviation of the data communication clock between the data monitoring end and the first data sending end.
9. The method according to claim 8, characterized in that The deviation of the data communication clock between the data listening end and the first data sending end is Δt=T2-(T1+t2-t1+t3+t5-t4), wherein T2 is the local data communication clock of the data listening end, T1 is the local data communication clock of the first data sending end, t2 is the local clock time when the first data sending end sends the synchronization frame, t1 is the system clock of the first data sending end, t3 is the time when the synchronization frame is transmitted to the data listening end, t5 is the system clock of the data listening end, and t4 is the time when the data listening end receives the synchronization frame.
10. The method according to claim 7, characterized in that The opening time of the receiving window is less than or equal to 7.5 ms.
11. The method according to claim 10, characterized in that The receiving window has a continuous receiving capability, and the continuous receiving capability is used to receive all data packets in the connection event.
12. The method according to claim 7, characterized in that The first data sending end is a central node of the vehicle's central control, the second data sending end is a mobile terminal, and the data monitoring end is an anchor node installed on the vehicle body; the data communication is low-power Bluetooth data communication, If the central node is a data communication central role and the mobile terminal is a data communication peripheral role, if the received data packet is a data packet sent by the data communication peripheral role, then the data packet is reported and a received signal strength indication is obtained according to the data packet to achieve ranging between the mobile terminal and the vehicle; If the central node is a data communication peripheral role and the mobile terminal is a data communication central role, if the received data packet is a data packet sent by the data communication central role, the data packet is reported and a received signal strength indication is obtained according to the data packet to achieve ranging between the mobile terminal and the vehicle.
13. A data communication monitoring system, comprising a first data sending end, a second data sending end and a data monitoring end, wherein the first data sending end and the second data sending end send data packets to each other to achieve data communication, and the data monitoring end receives the data packets to achieve data communication monitoring, and the first data sending end executes the method described in any one of claims 7 to 12.
Citation Information
Patent Citations
Method for measuring Tof and Tdoa in positioning system
CN106954188A
Positioning method, device and system, electronic equipment and storage medium
CN116055998A
Bluetooth ranging method, chip and system
CN117014800A
Data communication synchronization method, device and system
CN117241367A
Data communication monitoring method, device and system
CN117580130A
