A mobile ranging method and application suitable for smart devices

Through the wireless communication and measurement module of smart devices, a system of multivariate equations is established to determine the distance between devices, which solves the problems of inaccurate ranging and reliance on specialized systems in the existing technology, and achieves accurate ranging and low cost in various scenarios. Ranging.

CN111770482BActive Publication Date: 2024-09-06戴建荣 +2
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010533305.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-12
Publication Date
2024-09-06
Estimated Expiration
2040-06-12

AI Technical Summary

Technical Problem

Existing mobile ranging methods cannot accurately measure the distance between two smart devices, especially in the case of unknown devices and open scenarios. They are difficult to apply to scenarios such as infectious disease monitoring, and rely on specialized systems, resulting in high costs and insufficiency. flexible.

Method used

Through the wireless communication module, ranging module and direction finding module of the smart device, the moving distance and direction are continuously measured, a multivariate equation system is established, and the distance between the devices is determined by solving, achieving accurate ranging without the need for a specialized system.

Benefits of technology

It achieves accurate distance measurement between smart devices, reduces the cost of ranging, is suitable for complex indoor and outdoor scenes, such as infectious disease monitoring and car navigation, and improves the calculation accuracy of contact distance and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111770482B
    Figure CN111770482B
Patent Text Reader

Abstract

The present invention discloses a mobile distance measurement method and application applicable to smart devices, and relates to the field of mobile distance measurement. The method comprises: after a first device establishes a short-distance communication connection with a second device, the first device continuously measures a first moving distance, a first moving direction, and a received signal power for multiple times, and saves the first moving distance, the first moving direction, the received signal power, and the first measurement time obtained in each measurement; the first device receives the second moving distance, the second moving direction, the second measurement time, and the transmitted signal power of the second device sent by the second device after each measurement through the short-distance communication connection with the second device; the first device determines the distance between the first and second devices in each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power, and the received signal power.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile ranging, and in particular to a mobile ranging method and application suitable for smart devices. Background Art

[0002] Mobile ranging refers to measuring the distance between the measuring device and the object being measured when the two are in a moving state. This type of technology has been widely used in fields such as traffic navigation and geographic measurement. Its latest application is in the medical field, where it is used to determine the contact relationship of infectious diseases, and then reconstruct the transmission chain to identify the source of infection and all contacts.

[0003] Most of the existing mobile phone software can only accurately determine that the user has been in a certain area, but cannot determine the contact distance between people. Therefore, it cannot determine the contact between susceptible people and infected people, and it also has limited help for disease prevention and control departments to reconstruct the chain of infection. Only a few software can measure the distance between two smart devices by measuring the changes in the Bluetooth signals of nearby smart devices. However, the Bluetooth signals emitted by different smart devices are not the same, and the reflection, scattering, and diffraction of Bluetooth signals are greatly affected by the surrounding environment. Walls, doors, windows, and human bodies will affect the transmission of Bluetooth signals. If accurate ranging is to be achieved, it is necessary to pre-calibrate different smart devices and different ranging environments separately, and establish signal transmission attenuation models separately. However, for unknown devices and open scenarios (such as infectious disease contact and autonomous driving), there is obviously no condition for pre-calibration and pre-modeling. Therefore, software like TraceTogether cannot accurately measure the distance between two smart devices.

[0004] Existing mobile ranging methods, whether indoors or outdoors, require the pre-deployment of special systems, such as satellite positioning systems, radar navigation systems, and indoor navigation systems, in order to accurately measure distance. The system investment cost is high and it is not flexible enough. Once it is out of the range of the system deployment, it cannot be measured, so it is difficult to apply it to scenarios where the contact distance between people needs to be measured. For example, when it is applied to scenarios such as infectious disease monitoring, it is difficult to accurately evaluate interpersonal contact. Summary of the invention

[0005] The embodiments of the present invention provide a mobile ranging method and application suitable for smart devices. By using only the functional modules that come standard with the smart devices, the distance between two smart devices can be accurately measured. This solves the problem that the existing technology relies on a dedicated system when accurately measuring the distance between two smart devices. By applying the method to scenarios such as infectious disease monitoring, the problem of infectious disease tracing is solved.

[0006] According to an embodiment of the present invention, a mobile ranging method applicable to a smart device is provided, the method comprising:

[0007] After the first device establishes a short-range communication connection with the second device, the first device continuously measures the first moving distance, the first moving direction, and the received signal power for multiple times, and saves the first moving distance, the first moving direction, the received signal power, and the first measurement time obtained in each measurement;

[0008] The first device receives the second moving distance, the second moving direction, the transmission signal power, and the second measurement time sent by the second device after each measurement through a short-range communication connection with the second device;

[0009] The first device determines the distance between the first and second devices at each measurement based on the first and second moving distances, the first and second moving directions, the first and second measuring times, the transmitted signal power and the received signal power.

[0010] Preferably, the first device measures the first moving distance using a distance measuring module; and the first device measures the first moving direction using a direction finding module.

[0011] Preferably, the first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power and the received signal power, including:

[0012] For any measurement, the first device determines whether the first and second moving directions are parallel according to the first and second moving distances and the first and second moving directions of the measurement;

[0013] If it is determined that the first and second moving directions are not parallel, a geometric figure is formed by two end points of the first moving distance, two end points of the second moving distance, and the intersection of the extension lines of the first and second moving distances in the first and second moving directions, and a multivariate equation group about the geometric figure is established according to the cosine relationship of a triangle, the collinear relationship of three points, the sine theorem of a triangle, the vertex angle relationship of a quadrilateral, and the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group;

[0014] If it is determined that the first and second moving directions are parallel, a geometric figure is formed by the two endpoints of the first moving distance and the two endpoints of the second moving distance, and a group of multivariate equations about the geometric figure is established based on the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, the angle relationship of similar triangles, and the inverse proportional relationship between the received signal power and the square of the distance, and the direct proportional relationship between the received signal power and the transmitted signal power, so that the distance between the first and second devices can be determined by solving the group of equations.

[0015] Preferably, the first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power and the received signal power, including:

[0016] When the second moving distances obtained by continuous multiple measurements are all 0, the first device determines whether its own moving direction is on a straight line according to the two first moving directions obtained by two continuous measurements;

[0017] If it is determined that the moving direction is not in a straight line, a geometric figure is formed by the three endpoints of the two first moving distances obtained by the most recent two measurements and the point where the second device is located, and a multivariate equation group about the geometric figure is established according to the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, and the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group;

[0018] If it is determined that the moving direction is on a straight line, a geometric figure is formed by the three endpoints of the two first moving distances obtained from the most recent two measurements and the point where the second device is located, and a group of multivariate equations about the geometric figure is established based on the sine theorem of triangles, the relationship between the vertex angles of triangles, the inverse proportional relationship between the received signal power and the square of the distance, and the direct proportional relationship between the received signal power and the transmitted signal power, so that the distance between the first and second devices can be determined by solving the group of equations.

[0019] Preferably, the first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power and the received signal power, including:

[0020] When the first moving distances obtained by multiple consecutive measurements are all 0, the first device determines whether the moving direction of the second device is on a straight line according to two second moving directions obtained by two consecutive measurements;

[0021] If it is determined that the moving direction of the second device is not in a straight line, a geometric figure is formed by the three endpoints of the two second moving distances obtained by the most recent two measurements and the point where the first device is located, and a multivariate equation group about the geometric figure is established according to the sine theorem of a triangle, the relationship between the vertex angles of a quadrilateral, and the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group;

[0022] If it is determined that the moving direction of the second device is on a straight line, a geometric figure is formed by the three endpoints of the two second moving distances obtained from the most recent two measurements and the point where the first device is located, and a group of multivariate equations about the geometric figure is established based on the sine theorem of triangles, the relationship between the vertex angles of triangles, and the inverse proportional relationship between the received signal power and the square of the distance, and the direct proportional relationship between the received signal power and the transmitted signal power, so that the distance between the first and second devices can be determined by solving the group of equations.

[0023] Preferably, when it is necessary to connect and measure distance between multiple devices, there are at least three connection modes: decentralized connection, centralized connection and chain connection.

[0024] In the decentralized connection mode, the first device and the second device are any two devices among a plurality of devices;

[0025] In the centralized connection mode, the first device is a central device placed at a fixed location, and the second device is any one of multiple devices connected to the central device;

[0026] In the chain connection mode,

[0027] The first device and the second device are respectively any adjacent upstream device and downstream device among multiple devices connected in a chain, or the first device is the head device among multiple devices connected in a chain, and the second device is a newly added device connected to the head device, or the first device is a newly added device connected to the terminal device, and the second device is the terminal device among multiple devices connected in a chain, wherein any one of the multiple devices connected in a chain only receives data from its connected upstream device.

[0028] According to an embodiment of the present invention, a disease risk assessment method based on mobile ranging is provided, the method comprising:

[0029] After the first device establishes a short-range communication connection with the second device, the first device continuously measures the first moving distance, the first moving direction, and the received signal power for multiple times, and saves the first moving distance, the first moving direction, the received signal power, and the first measurement time obtained in each measurement;

[0030] The first device receives, through a short-range communication connection with the second device, a second moving distance, a second moving direction, a second measurement time and a transmission signal power of the second device sent by the second device after each measurement;

[0031] The first device determines the distance between the first and second devices at each measurement based on the first and second moving distances, the first and second moving directions, the first and second measuring times, the transmitted signal power, and the received signal power;

[0032] The first device sends the distance between the first and second devices at each measurement to the server, so that when the user of the second device is confirmed as an infected user, the server determines the infection risk value of the user of the first device based on the distance between the first and second devices at each measurement and the first measurement time.

[0033] Preferably, the disease risk value P of the user to whom the first device belongs is 染病 Determined by the following formula:

[0034]

[0035] Among them, a i and t i are the disease risk coefficient and exposure duration of the i-th contact range respectively.

[0036] In the decentralized connection mode, the first device and the second device are any two devices among a plurality of devices;

[0037] In the centralized connection mode, the first device is a central device placed at a fixed location, and the second device is any one of multiple devices connected to the central device;

[0038] In the chain connection mode,

[0039] The first device and the second device are respectively any adjacent upstream device and downstream device among multiple devices connected in a chain, or the first device is the head device among multiple devices connected in a chain, and the second device is a newly added device connected to the head device, or the first device is a newly added device connected to the terminal device, and the second device is the terminal device among multiple devices connected in a chain, wherein any one of the multiple devices connected in a chain only receives data from its connected upstream device.

[0040] According to an embodiment of the present invention, a disease risk assessment system based on mobile ranging is provided, the system comprising a first device, a second device, and a server, wherein:

[0041] The second device is used to measure the second moving distance and the second moving direction for multiple times continuously after establishing a short-range communication connection with the first device, and send the second moving distance, the second moving direction, the second measurement time and the transmission signal power obtained in each measurement to the first device;

[0042] The first device is used to measure the first moving distance, the first moving direction and the received signal power for multiple consecutive times after establishing a short-range communication connection with the second device, and save the first moving distance, the first moving direction, the received signal power and the first measurement time obtained in each measurement; receive the second moving distance, the second moving direction, the second measurement time and the transmitted signal power of the second device sent by the second device after each measurement through the short-range communication connection with the second device; determine the distance between the first and second devices at each measurement based on the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power and the received signal power; and transmit the distance between the first and second devices at each measurement to the server;

[0043] The server is used to determine the disease risk value of the user belonging to the first device according to the distance between the first and second devices and the first measurement time during each measurement when the user belonging to the second device is confirmed as an infected user.

[0044] Preferably, the first device has a first distance measuring module for measuring a first moving distance and a first direction measuring module for measuring a first moving direction; the second device has a second distance measuring module for measuring a second moving distance and a second direction measuring module for measuring a second moving direction.

[0045] Preferably, the disease risk value P of the user to whom the first device belongs is 染病 Determined by the following formula:

[0046]

[0047] Among them, a i and t i are the disease risk coefficient and exposure duration of the i-th contact range respectively.

[0048] In the decentralized connection mode, the first device and the second device are any two devices among a plurality of devices;

[0049] In the centralized connection mode, the first device is a central device placed at a fixed location, and the second device is any one of multiple devices connected to the central device;

[0050] In the chain connection mode,

[0051] The first device and the second device are respectively any adjacent upstream device and downstream device among multiple devices connected in a chain, or the first device is the head device among multiple devices connected in a chain, and the second device is a newly added device connected to the head device, or the first device is a newly added device connected to the terminal device, and the second device is the terminal device among multiple devices connected in a chain, wherein any one of the multiple devices connected in a chain only receives data from its connected upstream device.

[0052] The present invention provides a mobile distance measurement method and application applicable to smart devices. The method uses a wireless communication module, a distance measurement module (such as a pedometer, a range meter, etc.) for measuring the moving distance of the smart device, and a direction measurement module (such as an electronic compass, a three-axis accelerometer sensor, a gyroscope, etc.) for measuring the moving direction of the smart device to comprehensively measure the distance between two smart devices. The method does not require a special navigation system, which greatly reduces the distance measurement cost, and does not rely on the absolute measurement of signal strength. The method is applicable to various complex indoor and outdoor scenarios that require distance measurement and calculation of approach time, such as (1) car navigation, calculating the distance and time between cars in areas with poor signals; (2) assisting epidemiological analysis by effectively calculating the contact distance and contact time between people in a crowd; and (3) other scenarios that require mobile distance measurement. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 is a schematic flow chart of a mobile ranging method applicable to a smart device provided by an embodiment of the present invention;

[0054] Figure 2 is a schematic flow chart of a disease risk assessment method based on mobile ranging provided by an embodiment of the present invention;

[0055] Figure 3 It is a structural schematic diagram of a disease risk assessment system based on mobile ranging provided by an embodiment of the present invention;

[0056] Figure 4 is a schematic structural diagram of a first device provided by an embodiment of the present invention;

[0057] Figure 5 It is a schematic diagram of the interaction between the server and two smart devices A and B in the system;

[0058] Figure 6 It is a schematic diagram of two devices moving in different directions;

[0059] Figure 7 It is a schematic diagram in which both devices are moving and moving in the same or opposite directions;

[0060] Figure 8It is a schematic diagram in which only one of the two devices moves and the movement directions are different;

[0061] Fig. 9 This is a schematic diagram in which only one of the two devices moves and the moving directions are the same. DETAILED DESCRIPTION

[0062] The embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. It should be understood that the embodiments described below are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0063] Example 1

[0064] Figure 1 is a schematic flow chart of a mobile ranging method applicable to a smart device provided by an embodiment of the present invention, such as Figure 1 As shown, the method may include:

[0065] Step S101: After the first device establishes a short-range communication connection with the second device, the first device measures the first moving distance (i.e., the moving distance of the first device itself), the first moving direction (i.e., the moving direction of the first device itself), and the received signal power (i.e., the power of the signal received from the second device measured by the first device after the second device transmits a signal) multiple times in succession, and saves the first moving distance, first moving direction, received signal power, and first measurement time obtained each time.

[0066] The short-range communication connection may be a Bluetooth connection, an NFC connection, a WIFI connection, etc., and the present invention preferably uses a Bluetooth connection. The process of establishing a short-range communication connection between the first and second devices through interactive authentication can be carried out using existing technologies, which will not be described in detail here. It should be noted that the two devices exchange their respective device identifications when establishing a communication connection, so that the device itself can understand which other device is communicating with it in short-range.

[0067] The first device can use its own ranging module to measure the first moving distance, and the ranging module can be a pedometer, a range meter, etc.; it can use its own direction finding module to measure the first moving direction, and the direction finding module can be an electronic compass, a three-axis accelerometer sensor, a gyroscope, etc.; it can use its own wireless communication module to measure the received signal power, and this signal is transmitted by the second device.

[0068] Similarly, the second device can use its own ranging module to measure the second moving distance, and can use its own direction finding module to measure the second moving direction, wherein the ranging module of the second device can be a pedometer, a range meter, etc., and the direction finding module of the second device can be an electronic compass, a three-axis accelerometer sensor, a gyroscope, etc.

[0069] Step S102: The first device receives, through a short-range communication connection with the second device, a second moving distance (i.e., the moving distance of the second device itself), a second moving direction (i.e., the moving direction of the second device itself), a transmitted signal power (i.e., the transmitted signal power of the second device), and a second measurement time sent by the second device after each measurement.

[0070] Step S103: The first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power and the received signal power of the received signal.

[0071] Generally, based on the first and second measurement times, it can be determined whether the moving distance and the moving direction are the data of the measurement or not, and the contact time of the users to whom the first and second devices belong.

[0072] In the first embodiment, both the first and second devices move, and the step S103 may include: for any measurement, such as the second measurement and subsequent measurements, the first device determines whether the first and second moving directions are parallel based on the first and second moving distances and the first and second moving directions of the current measurement; if it is determined that the first and second moving directions are not parallel, a geometric figure is formed by the two end points of the first moving distance, the two end points of the second moving distance, and the intersection points of the extension lines of the first and second moving distances in the first and second moving directions, and a triangle cosine relationship, a three-point collinear relationship, a triangle sine theorem, a quadrilateral vertex angle relationship, and a received signal power and a distance. A multivariate equation group about the geometric figure is established based on the inverse proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group; if it is determined that the first and second moving directions are parallel, a geometric figure is formed by the two endpoints of the first moving distance and the two endpoints of the second moving distance, and according to the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, the angle relationship of similar triangles, as well as the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, a multivariate equation group about the geometric figure is established, so as to determine the distance between the first and second devices by solving the equation group.

[0073] In a second embodiment, the first terminal moves, and the second terminal is placed in a fixed position or does not move for a short period of time. At this time, the step S103 may include: when the second moving distances obtained by multiple consecutive measurements (for example, three times) are all 0, the first device determines whether its own moving direction is on a straight line based on the two first moving directions obtained by two consecutive measurements (for example, the two most recent measurements); if it is determined that its own moving direction is not on a straight line, a geometric figure is formed by the three endpoints of the two first moving distances obtained by the most recent two measurements and the point where the second device is located, and a multivariate equation group about the geometric figure is established according to the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, and the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group; if it is determined that its own moving direction is on a straight line, a geometric figure is formed by the three endpoints of the two first moving distances obtained by the most recent two measurements and the point where the second device is located, and a multivariate equation group about the geometric figure is established according to the sine theorem of triangles, the relationship between the vertex angles of triangles, and the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group.

[0074] In a third embodiment, the second terminal moves, and the first terminal is placed in a fixed position or does not move for a short period of time. At this time, the step S103 may include: when the first moving distances obtained by multiple consecutive measurements (for example, three times) are all 0, the first device determines whether the moving direction of the second device is on a straight line based on the two second moving directions obtained by two consecutive measurements (for example, the two most recent measurements); if it is determined that the moving direction of the second device is not on a straight line, a geometric figure is formed by the three endpoints of the two second moving distances obtained by the most recent two measurements and the point where the first device is located, and a multivariate equation group about the geometric figure is established according to the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, and the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group; if it is determined that the moving direction of the second device is on a straight line, a geometric figure is formed by the three endpoints of the two second moving distances obtained by the most recent two measurements and the point where the first device is located, and a multivariate equation group about the geometric figure is established according to the sine theorem of triangles, the relationship between the vertex angles of triangles, and the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group.

[0075] Similarly, the second terminal may also determine the distance between the first and second devices in a manner substantially the same as that of the first terminal in the first to third embodiments, which will not be described in detail herein.

[0076] Furthermore, the first terminal may determine the contact time with the second terminal according to the first measurement time and the distance between the first and second devices during each measurement, and display the distance and contact time between the first and second devices determined during each measurement.

[0077] In Example 1, if the devices in the system are connected in pairs in a decentralized manner, that is, they are connected to each other in a decentralized manner, then the first device and the second device are any two devices among the multiple devices; if the devices in the system are connected in a centralized manner, then the first device is a central device placed at a fixed position, and the second device is any one of the multiple devices connected to the central device; if the devices in the system are connected in an end-to-end manner, that is, they are connected in a chain connection manner, then the first device and the second device are respectively any adjacent upstream device and downstream device among the multiple devices connected in the chain, or the first device is the head end device among the multiple devices connected in a chain manner, and the second device is a newly added device connected to the head end device, or the first device is a newly added device connected to the terminal device, and the second device is the terminal device among the multiple devices connected in a chain manner, wherein any one of the multiple devices connected in the chain only receives data from the upstream device to which it is connected.

[0078] It should be pointed out that the second terminal can also determine the distance between the first and second devices in basically the same way as the first terminal, and upload it to the server, so that the server can more accurately determine the distance between the first and second devices based on the distance between the first and second devices determined by the first device and the distance between the first and second devices determined by the second device.

[0079] Example 2

[0080] Figure 2 It is an application of a mobile ranging method provided by an embodiment of the present invention, that is, a disease risk assessment method based on mobile ranging, such as Figure 2 As shown, the method may include:

[0081] Step S101: After establishing a short-range communication connection with a second device, the first device measures a first moving distance, a first moving direction, and a received signal power for multiple times in succession, and saves the first moving distance, the first moving direction, the received signal power, and the first measurement time obtained each time.

[0082] Step S102: The first device receives, through a short-range communication connection with the second device, a second moving distance, a second moving direction, a second measurement time, and a transmission signal power of the second device sent by the second device after each measurement.

[0083] Step S103: The first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measuring times, the transmitted signal power and the received signal power.

[0084] The implementation steps from step S101 to step S103 are the same as those in Example 1 and will not be repeated here.

[0085] Step S104: The first device sends the distance between the first and second devices during each measurement to the server, so that when the user of the second device is confirmed as an infected user, the server determines the infection risk value of the user of the first device based on the distance between the first and second devices during each measurement and the first measurement time.

[0086] The disease risk value P of the user to whom the first device belongs 染病 Determined by the following formula:

[0087]

[0088] Among them, a i and t i are the disease risk coefficient and exposure duration of the i-th contact range respectively.

[0089] Furthermore, the first device can obtain the exposure distance, exposure duration, and disease risk value from the server and display them on a display screen.

[0090] It should be pointed out that the two devices exchange their respective device identifications when establishing a communication connection. In this way, on the one hand, the device itself can understand which other device is communicating with it at close range. On the other hand, the corresponding relationship between the device and the user is pre-established in the server, so that the users to whom the two devices communicating at close range belong can be determined, thereby achieving the purpose of rapid tracing and rapid identification of users who may be infected.

[0091] In Example 2, if the devices in the system are connected in pairs in a decentralized manner, that is, they are connected to each other in a decentralized manner, then the first device and the second device are any two devices among the multiple devices; if the devices in the system are connected in a centralized manner, then the first device is a central device placed at a fixed position, and the second device is any one of the multiple devices connected to the central device; if the devices in the system are connected in an end-to-end manner, that is, they are connected in a chain connection manner, then the first device and the second device are respectively any adjacent upstream device and downstream device among the multiple devices connected in the chain, or the first device is the head end device among the multiple devices connected in a chain manner, and the second device is a newly added device connected to the head end device, or the first device is a newly added device connected to the terminal device, and the second device is the terminal device among the multiple devices connected in a chain manner, wherein any one of the multiple devices connected in the chain only receives data from the upstream device to which it is connected.

[0092] It should be pointed out that the second terminal can also determine the distance between the first and second devices in basically the same way as the first terminal, and upload it to the server, so that the server can more accurately determine the distance between the first and second devices based on the distance between the first and second devices determined by the first device and the distance between the first and second devices determined by the second device.

[0093] Example 3

[0094] Figure 3 FIG. 1 is a schematic diagram of a structure of a disease risk assessment based on mobile ranging provided by an embodiment of the present invention, such as Figure 3 As shown, the system may include a first device, a second device, and a server, wherein:

[0095] The second device is used to measure the second moving distance and the second moving direction for multiple times continuously after establishing a short-range communication connection with the first device, and send the second moving distance, the second moving direction, the second measurement time and the transmission signal power obtained in each measurement to the first device;

[0096] The first device is used to measure the first moving distance, the first moving direction and the received signal power for multiple consecutive times after establishing a short-range communication connection with the second device, and save the first moving distance, the first moving direction, the received signal power and the first measurement time obtained in each measurement; receive the second moving distance, the second moving direction, the second measurement time and the transmitted signal power of the second device sent by the second device after each measurement through the short-range communication connection with the second device; determine the distance between the first and second devices at each measurement based on the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power and the received signal power; and transmit the distance between the first and second devices at each measurement to the server;

[0097] The server is used to determine the disease risk value of the user belonging to the first device according to the distance between the first and second devices and the first measurement time during each measurement when the user belonging to the second device is confirmed as an infected user.

[0098] Among them, Figure 4 As shown, the first device may include:

[0099] A measurement module, configured to, after establishing a short-range communication connection with a second device, cause the first device to continuously measure a first moving distance, a first moving direction, and a received signal power for multiple times, and save the first moving distance, the first moving direction, the received signal power, and the first measurement time obtained in each measurement;

[0100] An acquisition module, configured to receive, through a short-range communication connection between the first device and the second device, a second moving distance, a second moving direction, a second measurement time, and a transmission signal power of the second device sent by the second device after each measurement;

[0101] The distance determination module is used to determine the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measuring times, the transmitted signal power and the received signal power.

[0102] Among them, the short-range communication connection can be a Bluetooth connection, an NFC connection, a WIFI connection, etc. The process of establishing a short-range communication connection between the first and second devices through interactive authentication can adopt existing technologies and will not be repeated here. It should be pointed out that the two devices exchange their respective device identifications when establishing a communication connection. In this way, on the one hand, the device itself can understand which other device is communicating with it at short distance. On the other hand, the corresponding relationship between the device and the user is pre-established in the server, and the user to whom the two devices in short-range communication belong can be determined, thereby achieving the purpose of rapid tracing and rapid identification of users who may be infected.

[0103] Among them, the measurement module includes a first ranging module for measuring a first moving distance of the first device, and a first direction finding module for measuring a first moving direction of the first device. The first ranging module of the first device can be a pedometer, a range meter, etc., and the first direction finding module of the first device can be an electronic compass, a three-axis accelerometer sensor, a gyroscope, etc.

[0104] Generally, based on the first and second measurement times, it can be determined whether the moving distance and the moving direction are the data of the measurement or not, and the contact time of the users to whom the first and second devices belong.

[0105] In a scenario where both the first and second devices are moving, the distance determination module of the first device is specifically used to: for any measurement, such as the second measurement and subsequent measurements, determine whether the first and second moving directions are parallel based on the first and second moving distances and the first and second moving directions of this measurement; if it is determined that the first and second moving directions are not parallel, form a geometric figure by the two endpoints of the first moving distance, the two endpoints of the second moving distance, and the intersection of the extension lines of the first and second moving distances in the first and second moving directions, and based on the cosine relationship of a triangle, the collinearity relationship of three points, the sine theorem of a triangle, the vertex angle relationship of a quadrilateral, and the square of the received signal power and the distance An inverse proportional relationship between the received signal power and the transmitted signal power is established to establish a multivariate equation group about the geometric figure, so as to determine the distance between the first and second devices by solving the equation group; if it is determined that the first and second moving directions are parallel, a geometric figure is formed by the two endpoints of the first moving distance and the two endpoints of the second moving distance, and according to the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, the angle relationship of similar triangles, as well as the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, a multivariate equation group about the geometric figure is established to determine the distance between the first and second devices by solving the equation group.

[0106] In a scenario where the first device moves and the second device is placed in a fixed position or has not moved for a short period of time, the distance determination module of the first device is specifically used to: when the second moving distances measured for multiple consecutive times (for example, three times) are all 0, determine whether the own moving direction is on a straight line based on the two first moving directions measured twice in a row (for example, the two most recent times); if it is determined that the own moving direction is not on a straight line, form a geometric figure with the three endpoints of the two first moving distances measured twice most recently and the point where the second device is located, and based on the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, and the inverse square relationship between the received signal power and the distance. , a proportional relationship between the received signal power and the transmitted signal power, a multivariate equation group about the geometric figure is established, so as to determine the distance between the first and second devices by solving the equation group; if it is determined that the moving direction itself is on a straight line, a geometric figure is formed by the three endpoints of the two first moving distances obtained by the most recent two measurements and the point where the second device is located, and according to the sine theorem of triangles, the relationship between the vertex angles of triangles, the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, a multivariate equation group about the geometric figure is established, so as to determine the distance between the first and second devices by solving the equation group.

[0107] In a scenario where the first device moves and the second device is placed in a fixed position or has not moved for a short period of time, the distance determination module of the first device is specifically used to: when the first moving distances measured for multiple consecutive times (for example, three times) are all 0, determine whether the moving direction of the second device is on a straight line according to two second moving directions measured twice in a row (for example, the two most recent times); if it is determined that the moving direction of the second device is not on a straight line, form a geometric figure with the three endpoints of the two second moving distances measured twice most recently and the point where the first device is located, and according to the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, and the inverse proportional relationship between the received signal power and the square of the distance, A multivariate equation group about the geometric figure is established based on the proportional relationship between the received signal power and the transmitted signal power, so as to determine the distance between the first and second devices by solving the equation group; if it is determined that the moving direction of the second device is on a straight line, a geometric figure is formed by the three endpoints of the two second moving distances obtained by the most recent two measurements and the point where the first device is located, and according to the sine theorem of triangles, the relationship between the vertex angles of triangles, the inverse proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, a multivariate equation group about the geometric figure is established, so as to determine the distance between the first and second devices by solving the equation group.

[0108] The disease risk value P of the user to whom the first device belongs 染病 Determined by the following formula:

[0109]

[0110] Among them, a i and t i are the disease risk coefficient and exposure duration of the i-th contact range respectively.

[0111] In the system, if the devices in the system are connected in pairs in a decentralized manner, that is, they are connected to each other in a decentralized manner, then the first device and the second device are any two devices among the multiple devices; if the devices in the system are connected in a centralized manner, then the first device is a central device placed at a fixed position, and the second device is any one of the multiple devices connected to the central device; if the devices in the system are connected in an end-to-end manner, that is, they are connected in a chain connection manner, then the first device and the second device are respectively any adjacent upstream device and downstream device among the multiple devices connected in the chain, or the first device is the head end device among the multiple devices connected in a chain manner, and the second device is a newly added device connected to the head end device, or the first device is a newly added device connected to the terminal device, and the second device is the terminal device among the multiple devices connected in a chain manner, wherein any one of the multiple devices connected in the chain only receives data from the upstream device to which it is connected.

[0112] It should be pointed out that the structure of the second device can be consistent with that of the first device, so that it has the ability to realize the same function as the first device, so that the second device can determine the distance between the first and second devices in the same way as the first device, for example, after establishing a short-range communication connection with the first device, the second device continuously measures its own second moving distance, second moving direction and received signal power for multiple times, and saves the second moving distance, second moving direction, received signal power and second measurement time obtained each time; through the short-range communication connection with the first device, the second device receives the first moving distance, first moving direction, first measurement time and transmitted signal power of the first device sent by the first device after each measurement; determines the distance between the first and second devices at each measurement based on the first and second moving distances, first and second moving directions, first and second measurement times, transmitted signal power of the first device and received signal power obtained by the second device; sends the distance between the first and second devices at each measurement to the server, so that the server can more accurately determine the distance between the first and second devices based on the distance between the first device and the distance between the first device and the second device determined by the second device, and when the user to which one of the devices belongs is confirmed as an infected user, the infection risk value of the user to which the other device belongs will be more accurately determined.

[0113] Example 4

[0114] Smart devices usually have modules for wireless communication with other smart devices around them. Currently, commonly used wireless communication technologies include mobile communication signals, mobile hotspots, WIFI, and Bluetooth. Based on such technologies, the existing public algorithms can be used to roughly determine the distance change between two smart devices based on the strength of the communication signal, but the distance between them cannot be accurately determined.

[0115] If it is a mobile smart device, it will also integrate a module for measuring and recording its own moving distance and moving direction. If it is a smart phone, a pedometer can be used to measure the moving distance. If it is an autonomous car, an odometer can be used to measure the moving distance. For the convenience of description, the pedometer, odometer and other distance measurement modules are collectively referred to as distance measurement modules below. The direction of movement is generally measured with an electronic compass. However, the electronic compass can only measure two-dimensional directions in the horizontal plane (i.e., east, west, south, and north). If you want to measure the three-dimensional direction, you can use a three-axis accelerometer or a gyroscope. Based on the existing functions of mobile smart devices, you can know the changes in the moving distance and moving direction of the smart device carrier over time. For the convenience of description, the modules that measure direction, such as electronic compasses, three-axis accelerometer sensors, and gyroscopes, are collectively referred to as direction finding modules below.

[0116] The above modules and modules can measure the distance between two mobile smart devices, or the distance between a mobile device and a fixed device. Measurement steps: 1). If it is a mobile smart device, use the distance measurement module to continuously measure and record the moving distance; 2). Use the direction finding module to record the moving direction synchronously with the distance measurement module; 3). Using the wireless communication module, one smart device can measure the wireless signal strength of another, and at the same time send a communication request to the other device, which contains its own unique number (ID number). The other responds. If it is the first communication, send back its own ID number. If it is a mobile smart device, and it is the second and subsequent communications, send the transmission signal strength of its own wireless signal module, the distance it has moved since the last communication, and the direction of movement; 4). Through two or three consecutive measurements, calculate the distance between the two smart devices at each measurement. The measurement can be completed by one device or two devices. The measurement method of two devices can reduce measurement errors.

[0117] Figure 5 It is a schematic diagram of the interaction between the server and two smart devices A and B in the system, such as Figure 5 As shown, the steps include:

[0118] Certification stage:

[0119] (1) Assume that smart device A initiates a connection request and applies to connect to smart device B. If it is the first time to connect, verification is required. If it has been verified before, the smart device can connect automatically.

[0120] (2) Smart device B returns connection verification information (if it has been verified before, this step is omitted).

[0121] (3) Smart device A is authenticated and a connection is established between the two smart devices.

[0122] Interaction phase:

[0123] (4) After establishing a connection, smart devices A and B send their current transmission signal strength, moving distance, and moving direction to each other. They also measure the received signal strength, moving distance, and moving direction. Based on the transmission signal strength, receiving signal strength, moving distance, and moving direction of the two devices, the contact distance and contact time between smart devices A and B are calculated.

[0124] (5) As long as the two are within the connection range (about 100 meters), they send information to each other every certain period of time (assuming 3 seconds) and repeat the calculation.

[0125] (6) The two devices will continue to interact and calculate for a certain period of time until one party actively terminates it or there is no data interaction for a certain period of time or the communication range is exceeded, then the interaction is automatically terminated.

[0126] Upload data stage:

[0127] (7) After the interaction is terminated, device A sends the contact distance and time between device A and device B to the server.

[0128] (8) After the interaction is terminated, device B sends the contact distance and time between device B and device A to the server.

[0129] In summary, the present invention can determine whether the designated devices are close or far away by judging the strength of the wireless signal, and the moving distance and direction of the device can be known through the distance measurement module and direction finding module of the device. The combination of the three can achieve accurate distance measurement, that is, accurately measure the distance between two devices, without the need to arrange a special system, and is suitable for various indoor and outdoor places. If the smart device is worn on a person or animal, or fixed in a specific place, it can be judged whether a person, animal, or place is in contact based on the measurement interval; based on the distance measurement time point, the contact time can be calculated.

[0130] Below through Figures 6 to 9 Provide detailed explanation.

[0131] 1. Device connection and signal acquisition.

[0132] 1. System installation and equipment connection

[0133] The system includes a server and smart terminals A and B. After A and B are connected, the two parties communicate once every certain time interval to obtain the other party's transmission signal strength, displacement distance, and direction, and calculate together to obtain the contact distance and time of each other. After the two devices are connected, the server receives the data uploaded by the two devices, and comprehensively analyzes and stores the data uploaded by the two devices. The server will store all the data between the devices for analyzing the contact distance and contact time between smart devices.

[0134] (1) System installation

[0135] The system is installed in smart devices in the form of an APP, without the need for specially customized hardware devices. It is necessary to obtain the wireless connection, ranging module and direction finding module permissions of the smart device to record the signal strength, moving distance and moving direction measured by itself and sent by other smart devices.

[0136] (2) Equipment connection

[0137] Smart devices are connected through wireless signals, such as mobile communication signals, wireless wifi signals, Bluetooth communications, etc. Through wireless signal connection, distance data and direction data can be transmitted to each other, as well as signal strength detection.

[0138] Taking the Bluetooth module as an example, a Bluetooth module can connect to multiple Bluetooth devices at the same time, and data transmission can be carried out between the main device and other devices at any time. The device can choose other devices to access. Typically, it can quickly switch between devices in a rotating manner. First, if the smart device is connected for the first time, it is necessary to obtain the authorization of the other party to establish a connection. After the connection is established, data transmission between two devices does not require repeated authorization. When the device is connected within a certain range, the system (APP on the smart device) sends its own transmission wireless signal strength, moving distance and moving direction information to the connected devices one by one at regular intervals in a carousel manner, and also receives these three information sent by other devices. Finally, the contact distance and time between the two devices are calculated on the smart device.

[0139] 2. Signal acquisition and processing

[0140] The smart device contains a wireless communication module, including an operator signal 3 / 4 / 5G module, a wireless WIFI module, a Bluetooth module, etc., and provides a function of detecting signal strength, etc. in the system.

[0141] The number of steps of smart devices is acquired by using an accelerometer module. The number of steps of the user is acquired by analyzing the values ​​recorded by the accelerometer module of the smart device. The step counting algorithm mainly stores the square root of the three-direction acceleration values ​​each time as basic information. This basic information is a waveform. The number of steps is determined by the number of peaks. In addition, an algorithm is added to determine whether it is a walking step. The number of steps is obtained and multiplied by the step-to-distance conversion coefficient to calculate the distance. The step-to-distance conversion coefficient is initialized according to the user's personal information (age, height, gender), and then the user is asked to walk a known distance to further determine the accuracy.

[0142] At present, almost all smart devices are equipped with an "electronic compass". The "electronic compass" is a sensor that can respond to magnetic fields and is a magnetic field measurement device based on the "Hall effect" principle. In various map apps, this function is used to indicate the direction. Moreover, the "electronic compass" does not require the smart device to be placed horizontally. It will automatically get the indicated direction according to the status of the mobile phone. The present invention can read the program interface of the smart device to obtain the direction information.

[0143] After an intelligent device obtains the signal strength, displacement distance and displacement direction of other devices, it also measures the received signal strength, displacement distance and displacement direction. Based on the transmitted signal strength, received signal strength and the displacement distance and displacement direction of the two devices, the contact distance, displacement direction and speed can be calculated through an algorithm. It is defined that the two devices are in contact when they stay within a certain distance. The contact time can be calculated by counting the time when the two devices do not exceed the distance range.

[0144] 3. Summary and analysis of contact data

[0145] Through the wireless communication module, ranging module and direction-finding module of the smart device, the signal strength attenuation degree (transmitted signal strength, compared with received signal strength), moving distance and moving direction information are obtained. Through the algorithm, the system can calculate the real-time distance and movement trend of the two. The system summarizes the data measured by each device, which can be further analyzed to help practical work, such as the movement judgment of different vehicles in autonomous driving, the avoidance of ship-to-ship movement in ocean voyages, and the calculation of the relative distance between people.

[0146] This application is based on the Bluetooth Class A protocol, and two smart devices can exchange data within a range of 100 meters. After the first connection, at regular intervals (assuming 3 seconds), the information of the other party's transmitted signal strength, displacement distance, and displacement direction, as well as the information of its own received signal strength, displacement distance, and displacement direction, can be obtained. The contact distance of the two smart devices and the stay time within the close contact distance (assuming it is defined as 1 meter) can be calculated through the algorithm.

[0147] When the interaction between two devices is terminated, the interaction information between the two devices will be uploaded to the server. The server will summarize the uploaded data of each device, analyze it to obtain more complete information on close contact distance and close contact time, and further calculate the infection risk value P infection. The management department can use P infection to determine the infection risk of close contacts.

[0148] Assuming that the user of a smart device is infected user A, the infection risk of exposed user B who has had close contact with A is calculated as:

[0149] Disease risk value P 染病 Determined by the following formula:

[0150] P 染病 =a 染病 ×t a +b 染病 ×t b +…

[0151] Among them, a 染病 and b 染病 The coefficients are the risk coefficients of infection within different contact ranges, which are obtained by fitting the actual data (number of contacts and infection ratio); a , t b and time are the duration of exposure in different exposure ranges. 染病 It can help us determine the infection risk of close contacts.

[0152] At the same time, based on the information calculated by the server, the management department can also send reminders in time to remind the public to effectively prevent the epidemic when it finds that quarantined or infected people have gone out or interacted with data with other devices.

[0153] 2. Application scenarios and calculation methods of two-dimensional interval distance.

[0154] 1. The conversion relationship between signal strength and signal power.

[0155] The positions of the two devices are represented by the symbol Pij, and the signal strengths of each measurement are represented by Rij, where i is the device number, taking values of 1 or 2, and j is the measurement number, taking values of 1, 2, 3, …. For example, R11 represents the signal strength measured for the first time by the first device, and this signal is transmitted by the second device. Another example, R23 represents the signal strength measured for the third time by the second device, and this signal is transmitted by the first device. The signal strength can be directly obtained by the intelligent device, and there is a logarithmic relationship between the signal strength and the signal power. To make the equations for calculating the distance concise, first calculate the signal power Iij according to the following formula based on the signal strength R, and then list Iij in the equations. The signal power is divided into the transmitted signal power and the received signal power. The transmitted signal power is Iijt, and the received signal power is Iijr. The subscripts t and r represent the transmitting device and the receiving device respectively.

[0156] From the signal strength that can be obtained by the intelligent device, according to the formula: R = 10lgI, the signal strength R can be converted into the signal power I.

[0157] The received power I(d) at a distance d from the transmitting end follows the following Friis propagation formula, where It is the signal power at the transmitting end, Ir is the signal power at the receiving end, Gt is the transmitting gain, Gr is the receiving gain, and d is the propagation distance.

[0158]

[0159] It can be seen that the received signal power is inversely proportional to the square of the distance and directly proportional to the transmitted signal power.

[0160] 2. Explanation of subsequent diagrams and formula variables:

[0161] In the following diagrams, the solid lines are known quantities, and the dashed lines are variables to be solved:

[0162] In each of the following schematic diagrams, the distance and direction (P11P12 and P21P22) that the known devices move between two measurements, the received signal power measured by the first device, and the transmitted signal power received are known. The transmitted signal powers measured for the first and second times (I11t and I12t), and the received signal powers (I11r and I12r) are known. Find the distances P11P21 and P12P22 between the two devices at the first measurement and the second measurement.

[0163] If the moving directions of the two devices are not parallel, extend the line segment P12P11 and the line segment P22P21, and the two extended lines intersect at point P00, then <P12P00P22 is the known angle.

[0164] Between the two measurements, the states of the two intelligent devices have the following several combined situations.

[0165] a. Both devices are moving. In this case, the distance between them can be calculated using the two measurement results.

[0166] b. One is moving and the other is stationary. In this case, another move is required to make a third measurement.

[0167] c. If both devices are stationary, measurement can only be performed when at least one device moves and the situation changes to situation a or situation b.

[0168] The following is a detailed explanation of these three situations.

[0169] 3. Both devices are moving.

[0170] Both devices are moving, and the interval distance can be calculated using the two measurement results. There are two cases: the first is that the moving directions are different, and the second is that the moving directions are the same or opposite.

[0171] (1) Different moving directions, such as Figure 6 As shown, P11 and P12 are the positions of the first person (first device) during two measurements, and P21 and P22 are the positions of the second person (second device) during two measurements.

[0172] According to the geometric figure formed by P11, P12, P21, P22 and P00, the distance between P11 and P21 in the first measurement and the distance between P12 and P22 in the second measurement can be calculated. The details are as follows:

[0173] According to the trigonometric cosine relationship, the following four equations can be obtained:

[0174] cos(∠P12P00P22)=[(P11P00) 2 +(P21P00) 2 -(P11P21) 2 ] / [2*(P11P00)*(P21P00)]

[0175] cos(∠P12P00P22)=[(P12P00) 2 +(P22P00) 2 -(P12P22) 2 ] / [2*(P12P00)*(P22P00)]

[0176] cos(∠P12P00P22)=[(P11P00) 2 +(P22P00) 2 -(P11P22) 2 ] / [2*(P11P00)*(P22P00)]

[0177] cos(∠P12P00P22)=[(P12P00) 2 +(P21P00) 2 -(P12P21) 2 ] / [2*(P12P00)*(P21P00)]

[0178] According to the collinear relationship of the three points, the following two equations can be obtained:

[0179] P12P11+P11P00=P12P00

[0180] P22P21+P21P00=P22P00

[0181] Using the triangle sine theorem, we can get 4 consecutive equations:

[0182]

[0183]

[0184]

[0185]

[0186] The following five equations can be listed using the relationship between the vertex angles of a quadrilateral:

[0187] ∠P11P12P21+∠P21P12P22=∠P11P12P22

[0188] ∠P12P22P11+∠P11P22P21=∠P12P22P21

[0189] ∠P22P21P12+∠P12P21P11=∠P22P21P11

[0190] ∠P21P11P22+∠P22P11P12=∠P21P11P12

[0191] ∠P11P12P22+∠P12P22P21+∠P22P21P11+∠P21P11P12=360°

[0192] The received signal power is inversely proportional to the distance and directly proportional to the transmitted signal power. Iijr is the signal power at the receiving end, and Iijt is the signal power at the transmitting end, satisfying the following formula:

[0193]

[0194] From the above, we can see that there are 8 length variables that need to be determined (P11P00, P12P00, P21P00, P22P00, P11P21, P11P22, P12P21, P12P22), and there are 12 angle variables that need to be determined (∠P11P12P21, ∠P21P12P22, ∠P11P12P22, ∠P12P22P11, ∠P11P22P21, ∠P12P22P21, ∠P22P21P12, ∠P12P21P11, ∠P22P21P11, ∠P21P11P22, ∠P22P11P12, ∠P21P11P12).

[0195] There are 4 equations based on the cosine theorem; there are 2 equations based on the collinear relationship of three points; there are 4 equations based on the sine theorem, and because they are continuous equations, they are equivalent to 8 independent equations; there are 5 equations based on the relationship between the vertex angles of a quadrilateral; there is 1 equation based on the relationship between signal power changes, a total of 20 equations.

[0196] A system of 20 independent equations can be solved to determine 20 variables.

[0197] (2) The moving directions are the same or opposite, such as Figure 7 As shown, P11 and P12 are the positions of the first person (first device) during two measurements, and P21 and P22 are the positions of the second person (second device) during two measurements.

[0198] There are 4 length variables and 12 angle variables that need to be determined, and at least 16 independent equations are required to solve them.

[0199] and Figure 6 Similar to the embodiment, for 4 triangles, 4 consecutive equations can be listed according to the sine theorem, which is equivalent to 8 independent equations; 5 equations can be listed according to the vertex angle relationship of the quadrilateral; there is 1 equation listed according to the signal power change relationship.

[0200] In addition, using the relationship that similar triangles have equal angles, we can list the following two equations:

[0201] ∠P11P12P21=∠P12P21P22

[0202] ∠P11P22P21=∠P12P11P22

[0203] There are 16 independent equations in total in the four types of equations. The system of equations consisting of 16 independent equations can be solved to determine 16 variables.

[0204] If the movement directions are opposite and collinear, it is similar to the above situation and the solution is simpler.

[0205] 4. One unit is moving and the other one remains stationary, so a third measurement is required.

[0206] (1) Take the case where the first mobile device moves three times in different lines as an example. Figure 8 As shown, P11, P12, and P13 are the positions of the first person (first device) during three measurements, and P21 is the position of the second person (second device) when it is stationary.

[0207] Assume that the first device P1 makes a measurement at the starting position P11, then moves to position P12 to make a second measurement, and then moves to position P13 to make a third measurement. The known conditions include the distances of the two movements (P11P12 and P12P13), the angle between the two movement directions (∠P11P12P13), and the signal power of the three measurements (I11, I12, I13). It is necessary to determine the distance between the two devices during the three measurements (P11P21, P12P21, and P13P21).

[0208] According to the sine theorem, four consecutive equations can be listed:

[0209]

[0210]

[0211]

[0212]

[0213] The following five equations can be listed using the relationship between the vertex angles of a quadrilateral:

[0214] ∠P11P12P21+∠P21P12P13=∠P11P12P13

[0215] ∠P12P13P11+∠P11P13P21=∠P12P13P21

[0216] ∠P13P21P12+∠P12P21P11=∠P13P21P11

[0217] ∠P21P11P13+∠P13P11P12=∠P21P11P12

[0218] ∠P11P12P13+∠P12P13P21+∠P13P21P11+∠P21P11P12=360°

[0219] The received signal power is inversely proportional to the distance and directly proportional to the transmitted signal power. Iijr is the signal power at the receiving end, and Iijt is the signal power at the transmitting end. The following two equations can be obtained:

[0220]

[0221]

[0222] From the above, we can see that there are 4 length variables that need to be determined (P11P21, P11P13, P12P21, P13P21); there are 11 angle variables that need to be determined (∠P11P12P21, ∠P21P12P13, ∠P12P13P11, ∠P11P13P21, ∠P12P13P21, ∠P13P21P12, ∠P12P21P11, ∠P13P21P11, ∠P21P11P13, ∠P13P11P12, ∠P21P11P12). There are a total of 15 variables that need to be determined.

[0223] Four equations are listed based on the sine theorem. Since they are consecutive equations, they are equivalent to eight independent equations. Five equations are listed based on the relationship between the vertex angles of the quadrilateral. Two equations are listed based on the relationship between the signal power changes, for a total of 15 equations.

[0224] A system of 15 independent equations can be solved to determine 15 variables.

[0225] (2) For example, the first mobile device moves three times, and two of the moves are in the same line and in the same or opposite directions. Figure 8 As shown, P11, P12, and P13 are the positions of the first person (first device) during three measurements, and P21 is the position of the second person (second device) when it is stationary.

[0226] According to the sine theorem, we can list three consecutive equations:

[0227]

[0228]

[0229]

[0230] The following two equations can be listed using the relationship between the vertex angles of the three triangles:

[0231] ∠P11P12P21+∠P21P12P13=180°

[0232] ∠P12P21P11+∠P13P21P12=∠P13P21P11

[0233] Assuming that the signal power of three measurements is inversely proportional to the square of the distance, the following two equations can be obtained:

[0234]

[0235]

[0236] From the above, we can see that there are 3 length variables that need to be determined (P11P21, P12P21, P13P21); there are 7 angle variables that need to be determined (∠P11P12P21, ∠P21P12P13, ∠P12P13P21, ∠P13P21P12, ∠P12P21P11, ∠P13P21P11, ∠P21P11P12). There are a total of 9 variables that need to be determined.

[0237] According to the sine theorem, three consecutive equations are listed; according to the relationship between the vertex angles of the triangle, two equations are listed; according to the relationship between the signal power changes, two equations are listed, a total of 10 equations. The system of equations consisting of 10 equations can be solved to determine 9 variables.

[0238] (3) If the device that moved first does not move, but the other device moves, this can be converted to a situation where both devices are moving and calculated.

[0239] 5. Both devices are different.

[0240] You need to wait until at least one device moves, and then both devices move, or one device moves while the other does not move, before you can measure.

[0241] The calculation method of three-dimensional interval distance is more complicated than that of two-dimensional case. The basic idea can refer to the calculation method of two-dimensional plane, derive the formula with the knowledge of solid geometry, and establish a new method, so as to extend the two-dimensional method to three-dimensional.

[0242] The present invention can be applied to distance measurement between multiple devices, including the following situations:

[0243] 1. Perform individual measurements between two devices in a decentralized manner.

[0244] If there are N devices in a certain area, each device will establish a connection with the other N-1 devices to communicate, send and receive the moving distance, moving direction, transmission and reception signal power, and calculate the distance between the devices, and further calculate the infection risk value P based on the distance between them. 染病 .

[0245] There is a problem of real-time signal reception for multiple devices. Assume that there are N devices in total, and the N devices are connected to each other. Device A has established a connection with other N-1 devices. The device needs to communicate three times to establish a connection. It needs to establish connections with other devices one by one. Starting from the time of establishing a connection with each device, it will interact with data once every certain time (for example, 2 seconds), measure and send its own data, and receive data sent by other devices at the same time. The wireless communication technology takes 6ms for a single transmission of less than 20Byte data. At a time interval of 2 seconds, it can support simultaneous connection of more than 300 devices.

[0246] When the number of devices that need to be connected (N-1) is greater than the maximum number of devices M that device A can connect to, at least two methods can be used to handle it. The first method is to further increase the data communication interval, thereby increasing M so that (N-1) is less than or equal to M. The advantage of this method is that the data of each smart device can be stored only on the device itself, realizing decentralized storage, which can better protect user privacy in some applications.

[0247] Another way is that device A selects M devices with the strongest signals from (N-1) devices to establish a connection and perform pairwise distance measurement; other devices also use the same method to select several devices with the strongest signals to perform pairwise distance measurement. When other conditions remain unchanged, the closer the distance, the stronger the signal, so each device measures the device closest to itself. When M is large enough (such as 50), the devices measured by each device will have an intersection, and each device will upload its measured data to the server. The server conducts a comprehensive analysis of all the data and can obtain the distance between all devices.

[0248] 2. Chain connection method distance measurement

[0249] Assume that there are N devices, and the devices are connected in a chain manner. The i-th device (i=2,3,…,N-1) only receives information sent by the i-1 device, and only sends its own information to the i+1-th device. The i-th device calculates its own and the i-1-th device's location information, and further calculates the values ​​in specific scenarios, such as the distance between the car and the car in front while driving and whether it is safe (calculating the braking distance based on the current vehicle speed and combining it with the actual measured distance).

[0250] In this way, in addition to sending the moving distance, moving direction, and transmission signal power, communication between devices also needs to record and send their own device ID (the device's unique hardware code, most of which come with the factory), as well as the device ID of the receiving data.

[0251] For example, when there are only two devices A and B, they establish a connection. Whoever inquires about establishing a connection first is the sender, assuming that A sends data to B. When the third device C approaches, the third device C determines whether to establish a connection with device A or device B by receiving signal power, and establishes a connection with the device with stronger received signal power. If a connection is established with device A, A has sent data to B, and C, as the upper-level device of A, sends data to A; if a connection is established with device B, B has received data from A, and C, as the lower-level device of B, receives data sent by B.

[0252] If there are already N devices, when the N+1th device joins, it will query the existing devices when establishing a connection. When it finds the top or end device (a device that only receives data or only sends data), it compares the received signal strength measured by itself and establishes a connection with the device with the strongest received signal strength as its upper or lower device.

[0253] This method can know the distance and direction between two devices, upload the data to the server for comprehensive analysis, and know the relationship between all devices. This method of connecting multiple devices can reduce the calculation amount of a single device and reduce the performance requirements of the device.

[0254] At the same time, by applying this method to car driving, the distance S between the front and rear vehicles can be obtained. Based on the current speed V, it is calculated whether the distance S is a safe distance. If the distance S is less than the safe distance, a prompt can be given or even automatic braking can be triggered.

[0255] 3. Central equipment connection method distance measurement

[0256] A central device collects data, and other devices send data to it. The central device calculates the distance and direction between it and each other device. Based on the distance and direction between the central device and other devices, a two-dimensional distribution map within an area can be calculated, and the distance and direction between devices can be further calculated. The measurement method of the central device and each other device is as described above.

[0257] This method can be applied to large-scale conferences, large-scale events and other occasions.

[0258] The present invention relies on intelligent devices, is easy and quick to install and use, has low cost, does not require additional customized intelligent devices, and can be applied to application scenarios that require accurate calculation of the distance between people and between people and objects under motion conditions, with high data accuracy and precision.

[0259] Although the present invention is described in detail above, the present invention is not limited thereto, and those skilled in the art can make various modifications based on the principles of the present invention. Therefore, all modifications made based on the principles of the present invention should be understood to fall within the protection scope of the present invention.

Claims

1. A mobile ranging method suitable for smart devices, characterized in that: The method comprises: After the first device establishes a short-range communication connection with the second device, the first device continuously measures the first moving distance, the first moving direction, and the received signal power for multiple times, and saves the first moving distance, the first moving direction, the received signal power, and the first measurement time obtained in each measurement; The first device receives, through a short-range communication connection with the second device, a second moving distance, a second moving direction, a second measurement time and a transmission signal power of the second device sent by the second device after each measurement; The first device determines the distance between the first and second devices at each measurement based on the first and second moving distances, the first and second moving directions, the first and second measuring times, the transmitted signal power, and the received signal power; The first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power, and the received signal power, including: Based on a first moving distance and a first moving direction measured by the first device at a first measuring time and a second moving distance and a second moving direction measured by the second device at a second measuring time, forming a geometric figure related to an end point of the first moving distance and an end point of the second moving distance to establish an equation about the geometric figure; Based on the inversely proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, an equation for the received and transmitted signal power is established; Forming a multivariate equation system by using the equation about the geometric figure and the equation about the power of the transmitted and received signals, and determining the distance between the first and second devices by solving the multivariate equation system; Among them, in a decentralized connection mode, the first device and the second device are any two devices among multiple devices; in a centralized connection mode, the first device is a central device placed at a fixed position, and the second device is any one of multiple devices connected to the central device; in a chain connection mode, the first device and the second device are respectively any adjacent upstream device and downstream device among multiple devices connected in a chain, or, the first device is the head device among multiple devices connected in a chain manner, and the second device is a newly added device connected to the head device, or, the second device is the terminal device among multiple devices connected in a chain manner, and the first device is a newly added device connected to the terminal device, wherein any one of the multiple devices connected in a chain only receives data from its connected upstream device.

2. The method according to claim 1, characterized in that The first device measures a first moving distance using a distance measurement module; The first device measures a first moving direction using a direction finding module.

3. The method according to claim 1, characterized in that: The forming of a geometric figure related to an endpoint of the first moving distance and an endpoint of the second moving distance based on a first moving distance and a first moving direction measured by the first device at a first measuring time and a second moving distance and a second moving direction measured by the second device at a second measuring time to establish an equation about the geometric figure comprises: For any measurement, the first device determines whether the first and second moving directions are parallel according to the first and second moving distances and the first and second moving directions of the measurement; If it is determined that the first and second moving directions are not parallel, a geometric figure is formed by two end points of the first moving distance, two end points of the second moving distance, and intersection points of extension lines of the first and second moving distances in the first and second moving directions, and multiple equations about the geometric figure are established based on a triangle cosine relationship, a three-point collinearity relationship, a triangle sine theorem, and a quadrilateral vertex angle relationship; If it is determined that the first and second moving directions are parallel, a geometric figure is formed by the two endpoints of the first moving distance and the two endpoints of the second moving distance, and multiple equations about the geometric figure are established based on the sine theorem of triangles, the relationship between the vertex angles of quadrilaterals, and the angle relationship of similar triangles.

4. The method according to claim 1, characterized in that: The forming of a geometric figure related to an endpoint of the first moving distance and an endpoint of the second moving distance based on a first moving distance and a first moving direction measured by the first device at a first measuring time and a second moving distance and a second moving direction measured by the second device at a second measuring time to establish an equation about the geometric figure comprises: When the second moving distances obtained by continuous multiple measurements are all 0, the first device determines whether its own moving direction is on a straight line according to the two first moving directions obtained by two continuous measurements; If it is determined that the moving direction is not in a straight line, a geometric figure is formed by the three endpoints of the two first moving distances obtained by the most recent two measurements and the point where the second device is located, and multiple equations about the geometric figure are established based on the sine theorem of triangles and the relationship between the vertex angles of quadrilaterals; If it is determined that the moving direction is on a straight line, a geometric figure is formed by the three endpoints of the two first moving distances obtained from the most recent two measurements and the point where the second device is located, and multiple equations about the geometric figure are established based on the sine theorem of triangles and the relationship between the vertex angles of triangles.

5. The method according to claim 1, characterized in that The forming of a geometric figure related to an endpoint of the first moving distance and an endpoint of the second moving distance based on a first moving distance and a first moving direction measured by the first device at a first measuring time and a second moving distance and a second moving direction measured by the second device at a second measuring time to establish an equation about the geometric figure comprises: When the first moving distances obtained by multiple consecutive measurements are all 0, the first device determines whether the moving direction of the second device is on a straight line according to two second moving directions obtained by two consecutive measurements; If it is determined that the moving direction of the second device is not in a straight line, a geometric figure is formed by the three endpoints of the two second moving distances obtained by the most recent two measurements and the point where the first device is located, and multiple equations about the geometric figure are established based on the sine theorem of triangles and the relationship between the vertex angles of quadrilaterals; If it is determined that the moving direction of the second device is on a straight line, a geometric figure is formed by the three endpoints of the two second moving distances obtained from the most recent two measurements and the point where the first device is located, and multiple equations about the geometric figure are established based on the sine theorem of triangles and the relationship between the vertex angles of triangles.

6. A disease risk assessment method based on mobile ranging, characterized in that: The method comprises: After the first device establishes a short-range communication connection with the second device, the first device continuously measures the first moving distance, the first moving direction, and the received signal power for multiple times, and saves the first moving distance, the first moving direction, the received signal power, and the first measurement time obtained in each measurement; The first device receives, through a short-range communication connection with the second device, a second moving distance, a second moving direction, a second measurement time and a transmission signal power of the second device sent by the second device after each measurement; The first device determines the distance between the first and second devices at each measurement based on the first and second moving distances, the first and second moving directions, the first and second measuring times, the transmitted signal power, and the received signal power; The first device sends the distance between the first and second devices at each measurement to the server, so that when the user of the second device is confirmed as an infected user, the server determines the infection risk coefficient and exposure duration of the user of the first device and the user of the second device in each contact range according to the distance between the first and second devices at each measurement and the first measurement time, and further determines the infection risk value of the user of the first device according to the infection risk coefficient and exposure duration of the user of the first device and the user of the second device in each contact range; The first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power, and the received signal power, including: Based on a first moving distance and a first moving direction measured by the first device at a first measuring time and a second moving distance and a second moving direction measured by the second device at a second measuring time, forming a geometric figure related to an end point of the first moving distance and an end point of the second moving distance to establish an equation about the geometric figure; Based on the inversely proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, an equation for the received and transmitted signal power is established; Forming a multivariate equation system by using the equation about the geometric figure and the equation about the power of the transmitted and received signals, and determining the distance between the first and second devices by solving the multivariate equation system; Among them, in a decentralized connection mode, the first device and the second device are any two devices among multiple devices; in a centralized connection mode, the first device is a central device placed at a fixed position, and the second device is any one device among multiple devices connected to the central device; in a chain connection mode, the first device and the second device are respectively any adjacent upstream device and downstream device among multiple devices connected in a chain, or, the first device is the head device among multiple devices connected in a chain manner, and the second device is a newly added device connected to the head device, or, the second device is the terminal device among multiple devices connected in a chain manner, and the first device is a newly added device connected to the terminal device, wherein any one device among multiple devices connected in a chain only receives data from its connected upstream device.

7. The method according to claim 6, characterized in that The disease risk value P of the user to whom the first device belongs 染病 Determined by the following formula: Among them, a i and t i are the disease risk coefficient and exposure duration of the i-th contact range respectively.

8. A disease risk assessment system based on mobile ranging, characterized in that: The system includes a first device, a second device, and a server, wherein: The second device is used to measure the second moving distance and the second moving direction for multiple times continuously after establishing a short-range communication connection with the first device, and send the second moving distance, the second moving direction, the second measurement time and the transmission signal power obtained in each measurement to the first device; The first device is used to measure the first moving distance, the first moving direction and the received signal power for multiple consecutive times after establishing a short-range communication connection with the second device, and save the first moving distance, the first moving direction, the received signal power and the first measurement time obtained in each measurement; receive the second moving distance, the second moving direction, the second measurement time and the transmitted signal power of the second device sent by the second device after each measurement through the short-range communication connection with the second device; determine the distance between the first and second devices at each measurement based on the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power and the received signal power; and transmit the distance between the first and second devices at each measurement to the server; The server is configured to determine, when the user to which the second device belongs is confirmed as an infected user, the infection risk coefficient and exposure duration of the user to which the first device belongs and the user to which the second device belongs in each contact range according to the distance between the first and second devices at each measurement and the first measurement time, and further determine the infection risk value of the user to which the first device belongs according to the infection risk coefficient and exposure duration of the user to which the first device belongs and the user to which the second device belongs in each contact range; The first device determines the distance between the first and second devices at each measurement according to the first and second moving distances, the first and second moving directions, the first and second measurement times, the transmitted signal power, and the received signal power, including: Based on a first moving distance and a first moving direction measured by the first device at a first measuring time and a second moving distance and a second moving direction measured by the second device at a second measuring time, forming a geometric figure related to an end point of the first moving distance and an end point of the second moving distance to establish an equation about the geometric figure; Based on the inversely proportional relationship between the received signal power and the square of the distance, and the proportional relationship between the received signal power and the transmitted signal power, an equation for the received and transmitted signal power is established; Forming a multivariate equation system by using the equation about the geometric figure and the equation about the power of the transmitted and received signals, and determining the distance between the first and second devices by solving the multivariate equation system; Among them, in a decentralized connection mode, the first device and the second device are any two devices among multiple devices; in a centralized connection mode, the first device is a central device placed at a fixed position, and the second device is any one device among multiple devices connected to the central device; in a chain connection mode, the first device and the second device are respectively any adjacent upstream device and downstream device among multiple devices connected in a chain, or, the first device is the head device among multiple devices connected in a chain manner, and the second device is a newly added device connected to the head device, or, the second device is the terminal device among multiple devices connected in a chain manner, and the first device is a newly added device connected to the terminal device, wherein any one device among multiple devices connected in a chain only receives data from its connected upstream device.

9. The system according to claim 8, characterized in that The disease risk value P of the user to whom the first device belongs 染病 Determined by the following formula: Among them, a i and t i are the disease risk coefficient and exposure duration of the i-th contact range respectively.

Citation Information

Patent Citations

  • Method for positioning mobile intelligent devices within short distance

    CN103776447A

  • Close-distance positioning method and system and terminal device

    CN108260112A

  • Disease prediction method, device, medium and electronic equipment

    CN108986921A

  • Low-power Bluetooth signal ranging-based loss search method and system

    CN109752708A

  • KR20200047457A