Data processing method, electronic device and storage medium
By dynamically adjusting the state information reporting frequency of the sensing device, the problem of poor flexibility in reporting information when the carrier position and state changes in the prior art is solved, and the real-time and accuracy of data transmission are improved.
Patent Information
- Application Number
- CN202011035104.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-09-27
AI Technical Summary
When existing vehicle-mounted or ship-mounted radio direction finding equipment regularly reports geographical location information and carrier motion status information, it has poor flexibility and cannot adapt to changes in carrier position and state.
By receiving the current status information reported by the sensing device, the reporting frequency of the next status information is determined using the current and previous status information, and the reporting frequency is dynamically adjusted to adapt to the changes in the position and motion state of the carrier.
It realizes flexible reporting frequency adjustment of status information, and improves the real-time data transmission efficiency and accuracy of the equipment under different carrier motion conditions.
Smart Images

Figure CN114286281B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communications, and in particular to a data processing method, an electronic device, and a storage medium. Background Art
[0002] Existing vehicle-mounted or ship-mounted radio direction-finding equipment needs to be supported by geographic location information and carrier motion status information to correct the direction it is testing. The traditional method is to regularly report the geographic location information obtained from the GPS module and the carrier motion status information obtained from the electronic compass to the background server for processing.
[0003] However, since the geographical location information and the movement status information of the carrier do not change regularly over time, the existing method of regularly reporting the geographical location information and the movement status information of the carrier has poor flexibility. Summary of the invention
[0004] In order to solve the problem of poor flexibility in the existing method of regularly reporting geographic location information and carrier motion status information, the present application provides a data processing method, an electronic device and a storage medium, which are as follows:
[0005] In a first aspect, a data processing method is provided, comprising:
[0006] Receive current status information reported by sensor devices;
[0007] Determine the reporting frequency of the next state information by using the current state information and the previous state information;
[0008] The reporting frequency of the next state information is sent to the sensor device, so that the sensor device reports the next state information according to the reporting frequency.
[0009] Optionally, the state information includes at least one of position information and motion information.
[0010] Optionally, when the status information includes the location information, determining a reporting frequency of next status information by using the current status information and the previous status information includes:
[0011] Using the current position information and the previous position information, determining whether the moving carrier of the sensor device is displaced, wherein the previous position information belongs to the previous state information;
[0012] When the moving carrier is displaced, the current displacement distance is calculated, and the reporting frequency corresponding to the current displacement distance is used as the reporting frequency of the next position information by using the preset corresponding relationship between the displacement distance and the reporting frequency.
[0013] Optionally, the location information includes longitude information and latitude information.
[0014] The step of using the current position information and the previous position information to determine whether the moving carrier of the sensor device is displaced includes:
[0015] Determine whether the current longitude information is the same as the previous longitude information, and / or whether the current latitude information is the same as the previous latitude information, the previous longitude information and the previous latitude information belonging to the previous location information;
[0016] When the current longitude information is different from the previous longitude information, and / or the current latitude information is different from the previous latitude information, determining that the motion carrier of the sensor device is displaced;
[0017] When the moving carrier is displaced, the current displacement distance is calculated, and the reporting frequency corresponding to the current displacement distance is used as the reporting frequency of the next position information by using the preset corresponding relationship between the displacement distance and the reporting frequency, including:
[0018] Determine a current longitude distance according to the current longitude information and the previous longitude information, and determine a current latitude distance according to the current latitude information and the previous latitude information;
[0019] The current displacement distance is determined according to the current longitude distance and the current latitude distance, and the reporting frequency corresponding to the current displacement distance is used as the reporting frequency of the next position information by using the preset correspondence between the displacement distance and the reporting frequency.
[0020] Optionally, when the state information includes the motion information, determining a reporting frequency of next state information by using the current state information and the previous state information includes:
[0021] Using the current motion information and the previous motion information, determining whether the motion state of the motion carrier of the sensor device has changed, the previous motion information belonging to the previous state information;
[0022] When the motion state of the motion carrier changes, the current change amplitude is calculated, and the reporting frequency corresponding to the current change amplitude is used as the reporting frequency of the next motion information by using the preset corresponding relationship between the change amplitude and the reporting frequency.
[0023] Optionally, the motion information includes an angle parameter,
[0024] The using the current state information and the previous state information to determine the reporting frequency of the next state information includes:
[0025] Using the current angle parameter and the previous angle parameter, determining whether the motion state of the motion carrier of the sensor device has changed, the previous angle parameter belonging to the previous motion information;
[0026] When the motion state of the motion carrier changes, the current angle change amplitude is calculated, and the reporting frequency corresponding to the current angle change amplitude is used as the reporting frequency of the next motion information by using the preset corresponding relationship between the change amplitude and the reporting frequency.
[0027] Optionally, the angle parameters include heading angle, pitch angle and roll angle,
[0028] The step of using the current angle parameter and the previous angle parameter to determine whether the motion state of the motion carrier of the sensor device has changed includes:
[0029] Determine whether each of three groups of angles is the same, the three groups of angles comprising a current heading angle and a previous heading angle, a current pitch angle and a previous pitch angle, and a current roll angle and a previous roll angle, the previous heading angle, the previous pitch angle, and the previous roll angle belonging to the previous angle parameter;
[0030] When any of the three groups of angles are different, it is determined that the motion state of the motion carrier of the sensor device has changed;
[0031] The method of calculating the current angle change amplitude when the motion state of the motion carrier changes, and using a preset correspondence between the change amplitude and the reporting frequency to use the reporting frequency corresponding to the current angle change amplitude as the reporting frequency of the next motion information includes:
[0032] Determine a current heading angle change amplitude using the current heading angle and the previous heading angle, determine a current pitch angle change amplitude using the current pitch angle and the previous pitch angle, and determine a current roll angle change amplitude using the current roll angle and the previous roll angle;
[0033] The current angle change amplitude is determined by using the current heading angle change amplitude, the current pitch angle change amplitude and the current roll angle change amplitude, and the reporting frequency corresponding to the current angle change amplitude is used as the reporting frequency of the next motion information by using the preset correspondence between the change amplitude and the reporting frequency.
[0034] Optionally, after sending the reporting frequency of the next state information motion parameter to the sensor device so that the sensor device reports the next state information according to the reporting frequency, the method further includes:
[0035] Acquire the wireless signal of the target under test;
[0036] Determine the intermediate coordinate value of the measured target in the coordinate system of the moving carrier where the sensor device is located by using the wireless signal;
[0037] The target coordinate value of the measured target in the geographic coordinate system is determined by using the current state information and the intermediate coordinate value.
[0038] Optionally, the using the wireless signal to determine the intermediate coordinate value of the measured target in the coordinate system of the moving carrier where the sensor device is located includes:
[0039] A spatial spectrum direction finding algorithm or a coherent interference direction finding algorithm is used to determine the intermediate coordinate value of the measured target corresponding to the wireless signal in the coordinate system of the moving carrier where the sensor device is located.
[0040] Optionally, the determining the target coordinate value of the measured target in the geographic coordinate system by using the current state information and the intermediate coordinate value includes:
[0041] Determine the current coordinate value of the moving carrier of the sensor device in the geographic coordinate system by using the current state information;
[0042] The target coordinate value of the measured target in the geographic coordinate system is determined by using the current coordinate value and the intermediate coordinate value.
[0043] In a second aspect, an electronic device is provided, including a processor, a sensor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; wherein:
[0044] Sensors, used to collect status information;
[0045] Memory, used to store computer programs;
[0046] A processor is used to execute the method steps described in any one of the first aspects by running a program stored in a memory.
[0047] A third aspect provides a storage medium, characterized in that the storage medium includes a stored program, wherein when the program is run, the method steps described in any one of the first aspects are executed.
[0048] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art:
[0049] In the embodiment of the present application, since the reporting frequency of the next state information can be determined according to the current state information and the previous state information, the embodiment of the present application can flexibly determine the reporting frequency of different state information. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0052] Figure 1 A flow chart of a data processing method provided in an embodiment of the present application;
[0053] Figure 2 Another flow chart of a data processing method provided in an embodiment of the present application;
[0054] Figure 3 Another flow chart of a data processing method provided in an embodiment of the present application;
[0055] Figure 4 Another flow chart of a data processing method provided in an embodiment of the present application;
[0056] Figure 5 Another flow chart of a data processing method provided in an embodiment of the present application;
[0057] Figure 6 Another flow chart of a data processing method provided in an embodiment of the present application;
[0058] Figure 7 Another flow chart of a data processing method provided in an embodiment of the present application;
[0059] Figure 8 A structural schematic diagram of a data processing method provided in an embodiment of the present application;
[0060] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0062] The embodiment of the present invention provides a data processing method, such as Figure 1 As shown, the method is applied to an electronic device, and the method may include the following steps:
[0063] Step 101: Receive current status information reported by a sensor device.
[0064] In practical applications, the state information includes at least one of position information and motion information.
[0065] Exemplarily, when the state information includes location information, the sensing device may be a global navigation satellite sensor (GPS), and the location information is determined by the GPS.
[0066] Step 102: Determine the reporting frequency of the next state information by using the current state information and the previous state information.
[0067] In the embodiment of the present application, the electronic device stores the previous state information, and after receiving the current state information, the stored previous state information can be obtained.
[0068] It is understandable that after determining the reporting frequency of the next state information according to the current state information and the previous state information, the previous state information is saved instead of the current state information, that is, the saved previous state information is deleted and the current state information is saved.
[0069] It should be noted that, when the previous status information is the first status information and the current status information is the second status information, the reporting frequency of the first status information and the second status information may be a pre-specified reporting frequency.
[0070] In practical applications, the pre-specified reporting frequency may be an empirical value, or may be pre-set by a user, or may be determined based on an empirical value, which is not limited in the embodiments of the present application.
[0071] Step 103: Send the reporting frequency of the next state information to the sensor device, so that the sensor device reports the next state information according to the reporting frequency.
[0072] In the embodiment of the present application, since the reporting frequency of the next state information can be determined according to the current state information and the previous state information, the embodiment of the present application can flexibly determine the reporting frequency of different state information.
[0073] Based on the above embodiment, when the state information includes location information, the embodiment of the present invention provides another data processing method, such as Figure 2 As shown, step 102 may include the following steps:
[0074] Step 201: Use the current position information and the previous position information to determine whether the moving carrier of the sensor device is displaced, wherein the previous position information belongs to the previous state information.
[0075] Step 202: When the moving carrier is displaced, the current displacement distance is calculated, and the reporting frequency corresponding to the current displacement distance is used as the reporting frequency of the next position information by using the preset corresponding relationship between the displacement distance and the reporting frequency.
[0076] In the embodiment of the present application, a correspondence between the displacement distance and the reporting frequency is preset. Therefore, according to the different current displacement distances determined, the reporting frequency of the next position information can be flexibly determined, so that the faster the moving carrier moves, the higher the reporting frequency of the position information can be.
[0077] In actual implementation, the correspondence between the displacement distance and the reporting frequency can be set by setting multiple thresholds. For example, when the displacement distance is not greater than the first displacement distance threshold, the reporting frequency is the first frequency; when the displacement distance is greater than the first displacement distance threshold and not greater than the second displacement distance threshold, the reporting frequency is the second frequency, wherein the first displacement distance threshold is less than the second displacement distance threshold, and the first frequency is greater than the second frequency.
[0078] In the embodiment of the present application, the location information may include longitude information and latitude information. Accordingly, Figure 3 As shown, step 102 may include the following steps:
[0079] Step 301: determine whether the current longitude information is the same as the previous longitude information, and / or whether the current latitude information is the same as the previous latitude information, and the previous longitude information and the previous latitude information belong to the previous location information;
[0080] Step 302: when the current longitude information is different from the previous longitude information, and / or the current latitude information is different from the previous latitude information, determine the current longitude distance according to the current longitude information and the previous longitude information, and determine the current latitude distance according to the current latitude information and the previous latitude information;
[0081] Step 303: determine the current displacement distance according to the current longitude distance and the current latitude distance, and use the preset correspondence between the displacement distance and the reporting frequency to use the reporting frequency corresponding to the current displacement distance as the reporting frequency of the next position information.
[0082] In the embodiment of the present application, when determining the current displacement distance according to the current longitude distance and the current latitude distance, there are the following two implementation methods:
[0083] One method is to use the Pythagorean theorem of a right triangle to determine the current displacement distance based on the current longitude distance and the current latitude distance;
[0084] Another method is to use the larger distance between the current longitude displacement distance and the current latitude displacement distance as the current displacement distance.
[0085] Based on the above embodiment, when the state information includes motion information, the embodiment of the present invention provides another data processing method, such as Figure 4 As shown, step 102 may include the following steps:
[0086] Step 401: using the current motion information and the previous motion information, determine whether the motion state of the motion carrier of the sensor device has changed, and the previous motion information belongs to the previous state information;
[0087] Step 402: When the motion state of the motion carrier changes, the current change amplitude is calculated, and the reporting frequency corresponding to the current change amplitude is used as the reporting frequency of the next motion information by using the preset corresponding relationship between the change amplitude and the reporting frequency.
[0088] In the embodiment of the present application, a correspondence between the change amplitude and the reporting frequency is preset. Therefore, according to the different current change amplitudes determined, the reporting frequency of the next motion information can be flexibly determined, so that the faster the moving carrier moves, the higher the reporting frequency of the status information can be.
[0089] In actual implementation, the correspondence between the change amplitude and the reporting frequency can be set by setting multiple thresholds. For example, when the change amplitude is not greater than the first change threshold, the reporting frequency is the first frequency; when the change amplitude is greater than the first change threshold and not greater than the second change threshold, the reporting frequency is the second frequency, wherein the first change threshold is less than the second change threshold, and the first frequency is greater than the second frequency.
[0090] In the embodiment of the present application, the motion information includes angle parameters, such as Figure 5 As shown, step 102 may include the following steps:
[0091] Step 501: using the current angle parameter and the previous angle parameter, determine whether the motion state of the motion carrier of the sensor device has changed, the previous angle parameter belonging to the previous motion information;
[0092] Step 502: When the motion state of the motion carrier changes, the current angle change amplitude is calculated, and the reporting frequency corresponding to the current angle change amplitude is used as the reporting frequency of the next motion information by using the preset corresponding relationship between the change amplitude and the reporting frequency.
[0093] In the embodiment of the present application, the angle parameters include heading angle, pitch angle and roll angle, such as Figure 6 As shown, step 102 may include the following steps:
[0094] Step 601, determining whether each of the three groups of angles is the same, the three groups of angles including the current heading angle and the previous heading angle, the current pitch angle and the previous pitch angle, and the current roll angle and the previous roll angle, the previous heading angle, the previous pitch angle, and the previous roll angle belonging to the previous angle parameter;
[0095] Step 602: when any of the three angle groups are different, the current heading angle and the previous heading angle are used to determine the current heading angle change range, the current pitch angle and the previous pitch angle are used to determine the current pitch angle change range, and the current roll angle and the previous roll angle are used to determine the current roll angle change range;
[0096] Step 603: Determine the current angle change amplitude using the current heading angle change amplitude, the current pitch angle change amplitude, and the current roll angle change amplitude, and use the preset correspondence between the change amplitude and the reporting frequency to use the reporting frequency corresponding to the current angle change amplitude as the reporting frequency for the next motion information.
[0097] In an embodiment of the present application, when determining the current angle change amplitude based on the current heading angle change amplitude, the current pitch angle change amplitude and the current roll angle change amplitude, the largest change value among the current heading angle change value, the current pitch angle change value and the current roll angle change value can be used as the current angle change value.
[0098] Of course, the above method of determining the current angle change amplitude based on the current heading angle change amplitude, the current pitch angle change amplitude and the current roll angle change amplitude is only an optional implementation method of the embodiment of the present application, and the embodiment of the present application is not limited to this.
[0099] The present application embodiment provides another data processing method, such as Figure 7 As shown, the following steps may be included:
[0100] Step 701: Acquire the wireless signal of the target under test.
[0101] It can be understood that a direction-finding antenna array can be installed in the moving carrier of the sensor device, and the direction-finding antenna array can receive the wireless signal transmitted by the target to be measured, wherein the target to be measured is separated from the moving carrier device by a first distance, and the first distance enables the direction-finding antenna array to receive the wireless signal transmitted by the target to be measured.
[0102] Step 702: Use wireless signals to determine the intermediate coordinate value of the target under test in the coordinate system of the moving carrier where the sensor device is located.
[0103] In practical applications, a spatial spectrum direction finding algorithm or a coherent interference direction finding algorithm can be used to determine the intermediate coordinate value of the target to be measured corresponding to the wireless signal in the coordinate system of the moving carrier where the sensor device is located.
[0104] Step 703: Determine the target coordinate value of the measured target in the geographic coordinate system using the current state information and the intermediate coordinate value.
[0105] After the target coordinate value of the measured target in the geographic coordinate system is determined, the measured target can be displayed on an electronic map using the target coordinate value.
[0106] like Figure 8 As shown, step 703 may include the following steps:
[0107] Step 801: using the current state information, determine the current coordinate value of the moving carrier of the sensor device in the geographic coordinate system;
[0108] Step 802: Determine the target coordinate value of the measured target in the geographic coordinate system using the current coordinate value and the intermediate coordinate value.
[0109] The implementation of step 703 is described below by taking the state information including the heading angle, the pitch angle and the roll angle as an example:
[0110] Horizontal azimuth angle of the target being measured: θ0=θ1+θ2(θ0≤360)
[0111] θ0=θ1+θ2-360(θ0≤360)
[0112] The pitch azimuth of the target being measured:
[0113]
[0114]
[0115] Roll azimuth of the target being measured: ω0=ω1+ω2(-90≤ω0≤90);
[0116] ω0=ω1+ω2-90(ω0≥90);
[0117] ω0=ω1+ω2+90 (ω0≤-90);
[0118] Among them, θ0 is the horizontal azimuth angle of the target being measured, θ1 is the horizontal angle of the target being measured in the vehicle coordinate system, and θ2 is the current heading angle; is the pitch azimuth of the target being measured, is the pitch angle of the target under test in the vehicle coordinate system, is the current pitch angle; ω0 is the roll azimuth angle of the target being measured, ω1 is the heading roll angle of the target being measured in the vehicle coordinate system, and ω2 is the current roll angle.
[0119] The present application also provides an electronic device, such as Fig. 9 As shown, it includes a processor 901, a communication interface 902, a memory 903, a communication bus 904 and a sensor 905, wherein the processor 901, the communication interface 902, the memory 903 and the sensor 905 communicate with each other through the communication bus 904.
[0120] Sensor 905, used to collect status information;
[0121] Memory 903, used for storing computer programs;
[0122] The processor 901 is used to implement the method steps in the above embodiments when executing the program stored in the memory 903.
[0123] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0124] The communication interface is used for communication between the above terminal and other devices.
[0125] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0126] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0127] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the data processing method described in any one of the above embodiments.
[0128] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0129] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
[0130] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A data processing method, characterized in that: include: Receive current status information reported by sensor devices; Determine the reporting frequency of the next state information by using the current state information and the previous state information; Sending the reporting frequency of the next state information to the sensor device, so that the sensor device reports the next state information according to the reporting frequency; After sending the reporting frequency of the next state information motion parameter to the sensor device so that the sensor device reports the next state information according to the reporting frequency, the method further includes: Acquire the wireless signal of the target under test; Determine the intermediate coordinate value of the measured target in the coordinate system of the moving carrier where the sensor device is located by using the wireless signal; Determine the target coordinate value of the measured target in the geographic coordinate system by using the current state information and the intermediate coordinate value; The method of using the wireless signal to determine the intermediate coordinate value of the measured target in the coordinate system of the moving carrier where the sensor device is located includes: Determine the intermediate coordinate value of the measured target corresponding to the wireless signal in the coordinate system of the moving carrier where the sensor device is located by using a spatial spectrum direction finding algorithm or a coherent interference direction finding algorithm; The step of determining the target coordinate value of the measured target in the geographic coordinate system by using the current state information and the intermediate coordinate value includes: Determine the current coordinate value of the moving carrier of the sensor device in the geographic coordinate system by using the current state information; The target coordinate value of the measured target in the geographic coordinate system is determined by using the current coordinate value and the intermediate coordinate value.
2. The method according to claim 1, characterized in that The state information includes at least one of position information and motion information.
3. The method according to claim 2, characterized in that When the state information includes the location information, determining the reporting frequency of the next state information by using the current state information and the previous state information includes: Using the current position information and the previous position information, determining whether the moving carrier of the sensor device is displaced, wherein the previous position information belongs to the previous state information; When the moving carrier is displaced, the current displacement distance is calculated, and the reporting frequency corresponding to the current displacement distance is used as the reporting frequency of the next position information by using the preset corresponding relationship between the displacement distance and the reporting frequency.
4. The method according to claim 3, characterized in that The position information includes longitude information and latitude information, and the use of the current position information and the previous position information to determine whether the moving carrier of the sensor device is displaced includes: Determine whether the current longitude information is the same as the previous longitude information, and / or whether the current latitude information is the same as the previous latitude information, the previous longitude information and the previous latitude information belonging to the previous location information; When the current longitude information is different from the previous longitude information, and / or the current latitude information is different from the previous latitude information, determining that the motion carrier of the sensor device is displaced; When the moving carrier is displaced, the current displacement distance is calculated, and the reporting frequency corresponding to the current displacement distance is used as the reporting frequency of the next position information by using the preset corresponding relationship between the displacement distance and the reporting frequency, including: Determine a current longitude distance according to the current longitude information and the previous longitude information, and determine a current latitude distance according to the current latitude information and the previous latitude information; The current displacement distance is determined according to the current longitude distance and the current latitude distance, and the reporting frequency corresponding to the current displacement distance is used as the reporting frequency of the next position information by using the preset correspondence between the displacement distance and the reporting frequency.
5. The method according to claim 2, characterized in that: When the state information includes the motion information, the using the current state information and the previous state information to determine the reporting frequency of the next state information includes: Using the current motion information and the previous motion information, determining whether the motion state of the motion carrier of the sensor device has changed, the previous motion information belonging to the previous state information; When the motion state of the motion carrier changes, the current change amplitude is calculated, and the reporting frequency corresponding to the current change amplitude is used as the reporting frequency of the next motion information by using the preset corresponding relationship between the change amplitude and the reporting frequency.
6. The method according to claim 5, characterized in that The motion information includes an angle parameter, and the using the current state information and the previous state information to determine the reporting frequency of the next state information includes: Using the current angle parameter and the previous angle parameter, determining whether the motion state of the motion carrier of the sensor device has changed, the previous angle parameter belonging to the previous motion information; When the motion state of the motion carrier changes, the current angle change amplitude is calculated, and the reporting frequency corresponding to the current angle change amplitude is used as the reporting frequency of the next motion information by using the preset corresponding relationship between the change amplitude and the reporting frequency.
7. The method according to claim 6, characterized in that The angle parameters include heading angle, pitch angle and roll angle, and the use of the current angle parameters and the previous angle parameters to determine whether the motion state of the motion carrier of the sensor device has changed includes: Determine whether each of three groups of angles is the same, the three groups of angles comprising a current heading angle and a previous heading angle, a current pitch angle and a previous pitch angle, and a current roll angle and a previous roll angle, the previous heading angle, the previous pitch angle, and the previous roll angle belonging to the previous angle parameter; When any of the three groups of angles are different, it is determined that the motion state of the motion carrier of the sensor device has changed; The method of calculating the current angle change amplitude when the motion state of the motion carrier changes, and using a preset correspondence between the change amplitude and the reporting frequency to use the reporting frequency corresponding to the current angle change amplitude as the reporting frequency of the next motion information includes: Determine a current heading angle change amplitude using the current heading angle and the previous heading angle, determine a current pitch angle change amplitude using the current pitch angle and the previous pitch angle, and determine a current roll angle change amplitude using the current roll angle and the previous roll angle; The current angle change amplitude is determined by using the current heading angle change amplitude, the current pitch angle change amplitude and the current roll angle change amplitude, and the reporting frequency corresponding to the current angle change amplitude is used as the reporting frequency of the next motion information by using the preset correspondence between the change amplitude and the reporting frequency.
8. An electronic device comprising a processor, a sensor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface, and the memory communicate with each other via a communication bus; wherein: Sensors, used to collect status information; Memory, used to store computer programs; A processor, configured to execute the method steps of any one of claims 1 to 7 by running a program stored in a memory.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the method steps of any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Vehicle positioning system and vehicle position reporting method and device thereof
CN102572682A
Geographical location information acquiring method based on MLS
CN105571593A
Positioning processing method and system
CN106507311A
Position information reporting method and device
CN108900976A
Method, equipment and storage medium for acquiring variation range of attitude angle
CN109387205A
