Power consumption measurement method, system, transmitting device, processing device and storage medium
By configuring a multi-channel independent power consumption measurement architecture and time alignment processing for the satellite positioning device, the problem of the inability to measure multiple power consumption channels in parallel in the existing technology is solved, realizing the synchronous measurement and integration of multiple power consumption data channels, and improving the accuracy and consistency of power consumption measurement.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ALLYSTAR TECH SHENZHEN CO LTD
- Filing Date
- 2026-04-08
- Publication Date
- 2026-07-21
AI Technical Summary
Existing power consumption measurement schemes for satellite positioning equipment cannot simultaneously complete the parallel power consumption measurement of multiple independent power supply channels or multiple functional modules, resulting in the inability to accurately collect and analyze the power consumption distribution of different functional modules inside the equipment.
A multi-channel power consumption measurement architecture is adopted. By configuring a corresponding power consumption measurement device for each power-consuming device, a one-to-one independent measurement architecture is constructed. The data is uploaded in parallel through a data bus. The sending device determines the data packet sending order according to the device number, and the processing device performs time alignment processing to realize the synchronous measurement and integration of multi-channel power consumption data.
It enables simultaneous, independent, and accurate acquisition and measurement of power consumption from multiple power-consuming devices, ensuring the stability and integrity of data transmission. It provides time consistency and data validity of multi-channel power consumption data, and supports accurate analysis and evaluation of multi-channel power consumption of satellite positioning devices.
Smart Images

Figure CN122430873A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power consumption measurement technology, and in particular to power consumption measurement methods, systems, transmitting devices, processing devices, and storage media. Background Technology
[0002] Satellite positioning equipment has been widely used in many fields such as vehicle navigation, Internet of Things terminals, and wearable positioning devices. Its power consumption performance directly determines the device's battery life, power supply design, and overall reliability, and is a core technical indicator in the research and development and performance optimization of satellite positioning terminals.
[0003] In the power consumption testing and evaluation of satellite positioning equipment, it is necessary to accurately collect and analyze the power consumption distribution of different functional modules and under different working conditions within the equipment, so as to provide data support for module power consumption control, power management strategy optimization, and low-power algorithm design.
[0004] Most existing power consumption measurement schemes for satellite positioning equipment adopt a single-channel acquisition and measurement architecture, which can only realize single-point detection of the overall power consumption of the equipment, and cannot simultaneously complete the parallel power consumption measurement of multiple independent power supply channels or multiple functional modules. Summary of the Invention
[0005] This application provides a power consumption measurement method, system, transmitting device, processing device, and storage medium, which can perform multi-channel power consumption measurement when measuring the power consumption of various power-consuming devices in a satellite positioning device.
[0006] To achieve the above objectives, this application adopts the following technical solution: In a first aspect, a power consumption measurement method is provided. This method is applied to a transmitting device in a satellite positioning device, which further includes a processing device, a data bus, multiple power-consuming devices, and multiple power consumption measurement devices. Each power consumption measurement device measures the power consumption of one power-consuming device. Each power consumption measurement device is connected to the data bus, which is also connected to the transmitting device. The transmitting device is also connected to the processing device. The method includes: the transmitting device receiving measurement data packets collected by each of the multiple power consumption measurement devices; the measurement data including the device number of the power consumption measurement device, the power consumption measurement value, and the power consumption measurement time; the transmitting device determining whether the number of measurement data packets received at the same time is multiple; if the number of measurement data packets received at the same time is multiple, the transmitting device determining the transmission order of the multiple measurement data packets received at the same time based on the device number in the multiple measurement data packets received at the same time; and the transmitting device transmitting the multiple measurement data packets received at the same time to the processing device based on the transmission order.
[0007] Based on this scheme, a one-to-one independent measurement architecture is constructed by configuring a corresponding power consumption measurement device for each power-consuming device in the satellite positioning system. This hardware-level approach ensures that the power consumption of multiple power-consuming devices can be collected simultaneously and independently. Each power consumption measurement device uploads a data packet carrying the device number, power consumption measurement value, and measurement time in parallel via a data bus, providing basic hardware and transmission support for multi-channel power consumption measurement. The transmitting device identifies the scenario of concurrent data transmission by judging the number of measurement data packets received at the same time and determines the orderly transmission order based on the device number in the data packet. This effectively avoids conflicts and errors caused by simultaneous transmission of multiple data packets, ensuring that all measurement data can be transmitted completely and orderly to the subsequent processing device.
[0008] In conjunction with the first aspect, in some embodiments of the first aspect, when the number of measurement data packets received at the same time is multiple, the transmitting device determines the transmission order of the multiple measurement data packets received at the same receiving time based on the device number in the multiple measurement data packets received at the same receiving time, including: sorting the device numbers in the multiple measurement data packets received at the same receiving time to obtain a sorting result of the multiple device numbers; and using the sorting result of the multiple device numbers as the transmission order of the multiple measurement data packets received at the same receiving time.
[0009] By sorting the device numbers in multiple measurement data packets received at the same time and using the sorting result as the sending order of the corresponding measurement data packets, the normalization and orderly scheduling of the data packet sending order can be achieved when multiple power measurement data are transmitted concurrently. This avoids data conflicts, packet loss, and timing disorder caused by simultaneous transmission of multiple data, ensuring the stability, integrity, and timing consistency of multi-channel power measurement data transmission, and providing a reliable data foundation for subsequent processing devices to perform time alignment processing.
[0010] Secondly, a power consumption measurement method is provided, which is applied to a processing unit in a satellite positioning device. The satellite positioning device further includes a transmitting unit, a data bus, multiple power-consuming devices, and multiple power consumption measurement devices. Each power consumption measurement device is used to measure the power consumption of a power-consuming device. Each power consumption measurement device is connected to the data bus, and the data bus is also connected to the transmitting unit. The transmitting unit is also connected to the processing unit. The method includes: the processing unit acquiring measurement data packets from the multiple power consumption measurement devices of the transmitting unit; the processing unit performing time alignment processing on the measurement data packets of the multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time in multiple power consumption acquisition times; the set of power consumption measurement values includes multiple power consumption measurement values, and each power consumption measurement value corresponds to one power consumption measurement device.
[0011] The processing device performs time alignment processing on the received multi-channel measurement data packets, integrates the power consumption data corresponding to different power consumption measurement devices at the same measurement time into a set of power consumption measurement values, thereby completely obtaining the power consumption information of multiple power-consuming devices in the same time dimension, and finally realizing the synchronous measurement and effective integration of the power consumption of multiple power-consuming devices of the satellite positioning device.
[0012] In conjunction with the second aspect, in some embodiments of the second aspect, the processing device performs time alignment processing on the measurement data packets of multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time among multiple power consumption acquisition times, including: determining a target power consumption measurement device among the multiple power consumption measurement devices; the target power consumption measurement device is the power consumption measurement device with the smallest measurement interval among the multiple power consumption measurement devices, the measurement interval being the duration between power consumption measurement times in two adjacent measurement data packets acquired by the power consumption measurement device, and the multiple power consumption acquisition times being the power consumption measurement times in the multiple power consumption measurement data packets acquired by the target power consumption measurement device; for each power consumption measurement device to be aligned among the multiple power consumption measurement devices to be aligned, according to the power consumption measurement times in the multiple measurement data packets acquired by the power consumption measurement device to be aligned, the power consumption measurement values in the multiple measurement data packets acquired by the power consumption measurement device to be aligned are time aligned with the power consumption measurement values in the multiple measurement data packets acquired by the target power consumption measurement device to obtain a set of power consumption measurement values for each power consumption acquisition time among the multiple power consumption acquisition times.
[0013] This technical solution uses the measurement time of the target power consumption measuring device with the smallest measurement interval as the unified power consumption acquisition time. The power consumption measurement values of other power consumption measuring devices to be aligned are time-aligned with it. This can unify the power consumption measurement data of multiple channels with different sampling frequencies and acquisition times under the same time reference, eliminate the differences in the time dimension of each measurement data, and achieve accurate time synchronization and normalization integration of multiple power consumption data. This allows for the accurate acquisition of complete power consumption information of all power-consuming devices at each unified acquisition time, improving the time consistency and data validity of multi-channel power consumption measurement results.
[0014] In conjunction with the second aspect, in some embodiments of the second aspect, based on the power measurement times in the multiple measurement data packets collected by the power measurement device to be aligned, the power measurement values in the multiple measurement data packets collected by the power measurement device to be aligned are time-aligned with the power measurement values in the multiple measurement data packets collected by the target power measurement device to obtain a set of power measurement values for each power acquisition time among the multiple power acquisition times. This includes: for each measurement data packet collected by the power measurement device to be aligned, determining the offset time between the power measurement time in the measurement data packet and the target power acquisition time; the target power acquisition time is the power acquisition time with the shortest time interval between the power measurement time in the measurement data packet and the power measurement time in the multiple power acquisition times; aligning the power measurement values in the measurement data packet with the target power acquisition time according to the offset time corresponding to the measurement data packet to obtain a set of power measurement values for each power acquisition time among the multiple power acquisition times.
[0015] This technical solution calculates the offset time between the power measurement time of the power measurement device to be aligned and the nearest target power acquisition time, and aligns the corresponding power measurement value to the target power acquisition time based on the offset time. This enables fine-grained time alignment of multi-channel power measurement data even when the sampling times of various measurement devices are inconsistent. It effectively reduces data errors caused by asynchronous sampling times, improves the matching accuracy and fusion reliability of multi-channel power data under a unified time reference, and provides accurate and reliable data support for the precise analysis and evaluation of multi-channel power consumption of satellite positioning devices.
[0016] In conjunction with the second aspect, in some embodiments of the second aspect, aligning the power consumption measurement value in the measurement data packet with the target power consumption acquisition time according to the offset duration corresponding to the measurement data packet to obtain a power consumption measurement value set for each power consumption acquisition time among multiple power consumption acquisition times includes: when the offset duration corresponding to the measurement data packet is greater than a preset duration threshold, determining the interpolated power consumption measurement value corresponding to the measurement data packet based on interpolation and the power consumption measurement value in the measurement data packet; aligning the interpolated power consumption measurement value with the target power consumption acquisition time to obtain a power consumption measurement value set for each power consumption acquisition time among multiple power consumption acquisition times; when the offset duration corresponding to the measurement data packet is less than or equal to the preset duration threshold, aligning the power consumption measurement value in the measurement data packet with the target power consumption acquisition time to obtain a power consumption measurement value set for each power consumption acquisition time among multiple power consumption acquisition times.
[0017] This technical solution sets a preset duration threshold. For measurement data packets with an offset duration greater than the threshold, it uses interpolation to calculate the corresponding interpolated power consumption measurement value. For measurement data packets with an offset duration less than or equal to the threshold, it directly performs alignment processing. It can adaptively select an appropriate alignment method according to the degree of offset at the measurement time. While ensuring the time alignment accuracy of multi-channel power consumption measurement data, it reduces unnecessary interpolation calculations, and balances the accuracy and processing efficiency of power consumption data alignment. This effectively improves the rationality and reliability of time alignment processing for multi-channel power consumption data.
[0018] Thirdly, a power consumption measurement system is provided, deployed in a satellite positioning device. The system includes a transmitting device, a processing device, a data bus, multiple power-consuming devices, and multiple power consumption measurement devices. Each power consumption measurement device measures the power consumption of one power-consuming device. Each power consumption measurement device is connected to the data bus, which is also connected to the transmitting device. The transmitting device is also connected to the processing device. The method includes: the transmitting device receiving measurement data packets collected by each of the multiple power consumption measurement devices; the measurement data includes the device number of the power consumption measurement device, the power consumption measurement value, and the power consumption measurement time; the transmitting device determining whether the number of measurement data packets received at the same time is multiple; if the number of measurement data packets received at the same time is multiple, the transmitting device determining the transmission order of the multiple measurement data packets received at the same reception time based on the device number in the multiple measurement data packets received at the same reception time; the transmitting device sending the multiple measurement data packets received at the same reception time to the processing device based on the transmission order; the processing device performing time alignment processing on the measurement data packets of the multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time among the multiple power consumption acquisition times; the set of power consumption measurement values includes multiple power consumption measurement values, with each power consumption measurement value corresponding to one power consumption measurement device.
[0019] By configuring a dedicated power consumption measurement device for each power-consuming device in the satellite positioning system, a one-to-one independent measurement architecture is constructed. This hardware-level approach ensures that the power consumption of multiple power-consuming devices can be collected simultaneously and independently. Each power consumption measurement device uploads a data packet carrying the device number, power consumption measurement value, and measurement time in parallel via a data bus, providing the basic hardware and transmission support for multi-channel power consumption measurement. The transmitting device identifies the scenario of concurrent data transmission by judging the number of measurement data packets received at the same time and determines the ordered transmission sequence based on the device number in the data packet. This effectively avoids conflicts and errors caused by simultaneous transmission of multiple data, ensuring that all measurement data can be transmitted completely and orderly to the subsequent processing device. The processing device performs time alignment processing on the received multi-channel measurement data packets, integrating the power consumption data corresponding to different power consumption measurement devices at the same measurement time into a set of power consumption measurement values. This allows for the complete acquisition of power consumption information of multiple power-consuming devices in the same time dimension, ultimately achieving synchronous measurement and effective integration of the power consumption of multiple power-consuming devices in the satellite positioning system.
[0020] Fourthly, a transmitting device or processing device is provided, the transmitting device or processing device comprising: a processor coupled to a memory for storing programs or instructions, wherein when the programs or instructions are executed by the processor, the device causes the device to perform the method described in the first aspect and any possible implementation thereof.
[0021] Fifthly, a processing apparatus is provided, the transmitting or processing apparatus comprising: a processor coupled to a memory for storing programs or instructions, wherein when the programs or instructions are executed by the processor, the apparatus causes the apparatus to perform the method described in the second aspect and any possible implementation thereof.
[0022] In a sixth aspect, a computer-readable storage medium is provided, having stored thereon a computer program or instructions, characterized in that, when the computer program or instructions are executed, they cause a computer to perform the methods described in the first aspect and any possible implementation thereof, and the methods described in the second aspect and any possible implementation thereof.
[0023] The technical effects of any one of the fourth to sixth aspects can be found in the technical effects of the different embodiments of the first aspect described above, and will not be repeated here. Attached Figure Description
[0024] Figure 1 A schematic diagram of the structure of a satellite positioning device provided in this application; Figure 2 A flowchart illustrating a power consumption measurement method provided in this application; Figure 3This is a schematic diagram of the structure of a transmitting or processing device provided in this application. Detailed Implementation
[0025] In the description of this application, unless otherwise stated, "multiple" means two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of a single item or a plurality of items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0026] Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0027] In this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being better or more advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
[0028] It is understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It is understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0029] It is understood that in this application, "when," "if," and "if" all refer to the corresponding processing that will be carried out under certain objective circumstances, and are not limited to a specific time, nor do they require that there must be a judgment action when implemented, nor do they imply any other limitations.
[0030] It is understood that some optional features in the embodiments of this application can be implemented independently in certain scenarios without relying on other features, such as the current solution on which they are based, to solve the corresponding technical problems and achieve the corresponding effects. Alternatively, they can be combined with other features as needed in certain scenarios. Correspondingly, the apparatus given in the embodiments of this application can also implement these features or functions, which will not be elaborated here.
[0031] In this application, unless otherwise specified, the same or similar parts between the various embodiments can be referred to each other. In the various embodiments and implementation methods of the various embodiments in this application, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments and between the implementation methods of the various embodiments are consistent and can be mutually referenced. The technical features in different embodiments and between the implementation methods of the various embodiments can be combined according to their inherent logical relationships to form new embodiments, implementation methods, implementation methods, or implementation approaches. The following embodiments of this application do not constitute a limitation on the scope of protection of this application.
[0032] Satellite positioning equipment has been widely used in many fields such as vehicle navigation, Internet of Things terminals, and wearable positioning devices. Its power consumption performance directly determines the device's battery life, power supply design, and overall reliability, and is a core technical indicator in the research and development and performance optimization of satellite positioning terminals.
[0033] In the power consumption testing and evaluation of satellite positioning equipment, it is necessary to accurately collect and analyze the power consumption distribution of different functional modules and under different working conditions within the equipment, so as to provide data support for module power consumption control, power management strategy optimization, and low-power algorithm design.
[0034] Most existing power consumption measurement schemes for satellite positioning equipment adopt a single-channel acquisition and measurement architecture, which can only realize single-point detection of the overall power consumption of the equipment, and cannot simultaneously complete the parallel power consumption measurement of multiple independent power supply channels or multiple functional modules.
[0035] To address the aforementioned problems, this application provides a power consumption measurement method applied to a satellite positioning device. The satellite positioning device includes a processing unit, a transmitting unit, a data bus, multiple power-consuming devices, and multiple power consumption measurement devices. Each power consumption measurement device measures the power consumption of one power-consuming device. Each power consumption measurement device is connected to the data bus, which is also connected to the transmitting unit. The transmitting unit is also connected to the processing unit. The method includes: the transmitting unit receiving measurement data packets collected by each of the multiple power consumption measurement devices; the measurement data includes the device number of the power consumption measurement device, the power consumption measurement value, and the power consumption measurement time; the transmitting unit determining whether the number of measurement data packets received at the same time is multiple; if the number of measurement data packets received at the same time is multiple, the transmitting unit determining the transmission order of the multiple measurement data packets received at the same reception time based on the device number in the multiple measurement data packets received at the same reception time; the transmitting unit transmitting the multiple measurement data packets received at the same reception time to the processing unit based on the transmission order; the processing unit performing time alignment processing on the measurement data packets from the multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time among the multiple power consumption acquisition times; the set of power consumption measurement values includes multiple power consumption measurement values, with each power consumption measurement value corresponding to one power consumption measurement device.
[0036] Based on this scheme, a one-to-one independent measurement architecture is constructed by configuring a corresponding power consumption measurement device for each power-consuming device in the satellite positioning device. This hardware-level approach ensures that the power consumption of multiple power-consuming devices can be collected simultaneously and independently. Each power consumption measurement device uploads a data packet carrying the device number, power consumption measurement value, and measurement time in parallel via a data bus, providing basic hardware and transmission support for multi-channel power consumption measurement. The transmitting device identifies the scenario of concurrent data transmission by judging the number of measurement data packets received at the same time and determines the orderly transmission order based on the device number in the data packet. This effectively avoids conflicts and errors caused by simultaneous transmission of multiple data, ensuring that all measurement data can be transmitted completely and orderly to the subsequent processing device. The processing device performs time alignment processing on the received multi-channel measurement data packets, integrating the power consumption data corresponding to different power consumption measurement devices at the same measurement time into a set of power consumption measurement values. This allows for the complete acquisition of power consumption information of multiple power-consuming devices in the same time dimension, ultimately achieving synchronous measurement and effective integration of the power consumption of multiple power-consuming devices in the satellite positioning device.
[0037] Figure 1 This is a schematic diagram of the architecture of a satellite positioning device provided in this application. The technical solutions of the embodiments of this application can be applied to... Figure 1 The satellite positioning device shown, such as Figure 1As shown, the satellite positioning device 10 includes a processing device 101, a transmitting device 102, a data bus 103, multiple power-consuming devices 104, and multiple power consumption measuring devices 105.
[0038] Among them, a power consumption measuring device 105 is used to measure the power consumption of a power-consuming device 104. Each power consumption measuring device 105 is connected to a data bus 103, which is also connected to a transmitting device 102, which is also connected to a processing device 101.
[0039] The processing device 101 and the transmitting device 102 are used to execute the power consumption measurement method provided in this application. For a detailed description, please refer to the relevant description in the following section of the specific embodiments of this application.
[0040] The data bus 103 is a parallel or serial communication line used in satellite positioning equipment for transmitting data between chips, modules, and peripherals. As an information transmission channel of the hardware system, it realizes data interaction and instruction transmission between processors, storage devices, interface circuits, and external devices. It is the core hardware path to ensure that the functional components work together and complete information exchange.
[0041] The power-consuming device 104 is a device that consumes electrical energy in the satellite positioning device 10. It can be various functional modules in the satellite positioning device 10. For example, the power-consuming device 104 can be a radio frequency module, a satellite signal receiving module, or a satellite signal decoding module. Of course, the power-consuming device 104 can also be other modules. This application does not make any specific restrictions on this.
[0042] The power consumption measurement device 105 is a high-precision power supply measurement instrument. By connecting a precision sampling resistor or a current probe in series, it captures the transient current and voltage of the power-consuming device 104 in different working states such as capture, tracking, and standby in real time, and obtains dynamic power consumption data through high-speed sampling and calculation.
[0043] In the above connection relationship, a wired connection or a wireless connection can be used, and the embodiments of this application do not limit the connection.
[0044] Figure 2 A flowchart illustrating a power consumption measurement method provided in this application is shown below. Figure 2 As shown, the method includes the following steps: S201, The transmitting device receives the measurement data packets collected by each of the multiple power consumption measuring devices.
[0045] The measurement data includes the device number of the power consumption measurement device, the power consumption measurement value, and the power consumption measurement time.
[0046] The device number can be 01, 02, 03, etc., or it can be A, B, C, etc. This application does not impose any specific restrictions on this.
[0047] As one possible implementation, after the power consumption measuring device measures a power consumption value from the power-consuming module, it encapsulates the device number, the power consumption value, and the measurement time into a measurement data packet and sends it to the transmitting device via the data bus. Correspondingly, the transmitting device receives the measurement data packet from the power consumption measuring device via the data bus.
[0048] S202, The transmitting device determines whether there are multiple measurement data packets received at the same time.
[0049] As one possible implementation, after receiving each measurement data packet, the transmitting device determines whether other measurement data packets have been received at the same time.
[0050] If other measurement data packets are received at the same time, it is determined that the number of measurement data packets received at the same time is multiple.
[0051] If it is determined that there are multiple measurement data packets received at the same time, the transmitting device performs S203.
[0052] If no other measurement data packets are received at the same time, the number of measurement data packets received at the same time is determined to be 1.
[0053] If it is determined that the number of measurement data packets received at the same time is 1, the transmitting device sends the measurement data packet to the processing device.
[0054] S203. When multiple measurement data packets are received at the same time, the transmitting device determines the transmission order of the multiple measurement data packets received at the same time based on the device number in the multiple measurement data packets received at the same time.
[0055] As one possible implementation, when multiple measurement data packets are received at the same time, the transmitting device sorts the device numbers in the multiple measurement data packets received at the same receiving time to obtain a sorting result of multiple device numbers; the sorting result of multiple device numbers is used as the transmission order of the multiple measurement data packets received at the same receiving time.
[0056] As an example, if multiple measurement data packets are received at the same time, and the device numbers of the multiple measurement data packets are 01, 02, and 03 respectively, the sending device will sort 01, 02, and 03, and the sorting result will be 01, 02, and 03.
[0057] The transmitting device uses 01, 02, and 03 as the transmission order for multiple measurement data packets, that is, it first sends the measurement data packet corresponding to 01, then sends the measurement data packet corresponding to 02, and finally sends the measurement data packet corresponding to 03.
[0058] It should be noted that this example sorts the devices in ascending order of their device numbers. In other embodiments, the devices may be sorted in descending order of their device numbers. This application does not impose any specific restrictions on this.
[0059] Based on this possible implementation, by sorting the device numbers in multiple measurement data packets received at the same time and using the sorting result as the sending order of the corresponding measurement data packets, it is possible to achieve standardized and orderly scheduling of data packet sending order when multiple power measurement data are transmitted concurrently. This avoids data conflicts, packet loss, and timing disorder caused by simultaneous transmission of multiple data, ensuring the stability, integrity, and timing consistency of multi-channel power measurement data transmission, and providing a reliable data foundation for subsequent processing devices to perform time alignment processing.
[0060] S204. The transmitting device sends multiple measurement data packets received at the same receiving time to the processing device based on the transmitting order.
[0061] As one possible implementation, taking the sorting result as 01, 02, 03 as an example, the transmitting device first sends the measurement data packet corresponding to 01, then sends the measurement data packet corresponding to 02, and finally sends the measurement data packet corresponding to 03.
[0062] S205. The processing device performs time alignment processing on the measurement data packets of multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time in multiple power consumption acquisition times.
[0063] The power consumption measurement set includes multiple power consumption measurement values, with each power consumption measurement value corresponding to a power consumption measurement device.
[0064] As one possible implementation, firstly, the processing device determines a target power consumption measuring device among multiple power consumption measuring devices; the target power consumption measuring device is the power consumption measuring device with the smallest measurement interval among the multiple power consumption measuring devices, the measurement interval is the duration between the power consumption measurement moments in two adjacent measurement data packets collected by the power consumption measuring device, and the multiple power consumption acquisition moments are the power consumption measurement moments in the multiple power consumption measurement data packets collected by the target power consumption measuring device.
[0065] As an example, for each of the multiple power consumption measurement devices, the processing device determines the duration between power consumption measurement moments in two adjacent measurement data packets collected by the power consumption measurement device, and identifies the power consumption measurement device with the shortest duration as the target power consumption measurement device.
[0066] The processing device uses the power measurement time in the measurement data packet collected by the target power consumption measurement device as the power acquisition time.
[0067] Secondly, for each of the multiple power measurement devices to be aligned, the processing device aligns the power measurement values in the multiple measurement data packets collected by the power measurement device to be aligned with the power measurement values in the multiple measurement data packets collected by the target power measurement device according to the power measurement time in the multiple measurement data packets collected by the power measurement device to be aligned, so as to obtain the power measurement value set of each power acquisition time in the multiple power acquisition time.
[0068] As an example, in the first step, for each of the multiple measurement data packets collected by the power consumption measurement device to be aligned, the processing device determines the offset time between the power consumption measurement time in the measurement data packet and the target power consumption acquisition time; the target power consumption acquisition time is the power consumption acquisition time with the shortest time interval between the multiple power consumption acquisition times and the power consumption measurement time in the measurement data packet.
[0069] Specifically, the processing device finds the power acquisition time with the shortest time interval between multiple power acquisition times and the power measurement times in the measurement data packet, and uses this power acquisition time as the target power acquisition time.
[0070] The processing device determines the duration between the power consumption measurement time and the target power consumption acquisition time, and uses this duration as the offset duration.
[0071] The second step involves the processing device aligning the power consumption measurement values in the measurement data packet with the target power consumption acquisition time based on the offset duration corresponding to the measurement data packet, thereby obtaining a set of power consumption measurement values for each power consumption acquisition time among multiple power consumption acquisition times.
[0072] Specifically, the processing device determines whether the offset duration corresponding to the measurement data packet is greater than a preset duration threshold.
[0073] When the offset duration corresponding to the measurement data packet is greater than the preset duration threshold, the processing device determines the interpolated power measurement value corresponding to the measurement data packet based on the interpolation method and the power measurement value in the measurement data packet. Then, the interpolated power measurement value is aligned with the target power acquisition time to obtain the power measurement value set for each power acquisition time among multiple power acquisition times.
[0074] For example, the processing device determines the interpolated power measurement value corresponding to the target power acquisition time by interpolation based on the power measurement value and power measurement time in the measurement data packet, as well as the power measurement value and power measurement time in the previous measurement data packet, and aligns the interpolated power measurement value with the target power acquisition time.
[0075] It should be noted that the specific scheme for determining the interpolated power consumption measurement value by interpolation method can refer to existing schemes, and will not be described in detail here.
[0076] When the offset duration corresponding to the measurement data packet is less than or equal to the preset duration threshold, the processing device aligns the power consumption measurement value in the measurement data packet with the target power consumption acquisition time to obtain a set of power consumption measurement values for each power consumption acquisition time among multiple power consumption acquisition times.
[0077] Understandably, when the offset duration corresponding to the measurement data packet is less than or equal to the preset duration threshold, the processing device directly aligns the power consumption measurement value in the measurement data packet with the target power consumption acquisition time.
[0078] After performing the above processing on each measurement data packet collected by each power consumption measurement device, the processing device can obtain the power consumption measurement value set for each power consumption acquisition time in multiple power consumption acquisition times.
[0079] Based on this specific solution, the technical solution sets a preset duration threshold. For measurement data packets with an offset duration greater than the threshold, interpolation is used to calculate the corresponding interpolated power consumption measurement value. For measurement data packets with an offset duration less than or equal to the threshold, alignment processing is performed directly. This solution can adaptively select an appropriate alignment method according to the degree of offset at the measurement time. While ensuring the time alignment accuracy of multi-channel power consumption measurement data, it reduces unnecessary interpolation calculations, thus balancing the accuracy and processing efficiency of power consumption data alignment. This effectively improves the rationality and reliability of time alignment processing for multi-channel power consumption data.
[0080] Based on this exemplary solution, the technical solution calculates the offset time between the power measurement time of the power measurement device to be aligned and the nearest target power acquisition time, and aligns the corresponding power measurement value to the target power acquisition time according to the offset time. This enables fine-grained time alignment of multi-channel power measurement data even when the sampling times of various measurement devices are inconsistent. It effectively reduces data errors caused by asynchronous sampling times, improves the matching accuracy and fusion reliability of multi-channel power data under a unified time reference, and provides accurate and reliable data support for the precise analysis and evaluation of multi-channel power consumption of satellite positioning devices.
[0081] Based on this possible implementation method, the technical solution uses the measurement time of the target power consumption measuring device with the smallest measurement interval as the unified power consumption acquisition time, and performs time alignment processing on the power consumption measurement values of other power consumption measuring devices to be aligned with it. This can unify the power consumption measurement data of multiple channels with different sampling frequencies and acquisition times under the same time reference, eliminate the differences in the time dimension of each measurement data, realize the accurate time synchronization and normalization integration of multiple power consumption data, thereby accurately obtaining the complete power consumption information of all power-consuming devices at each unified acquisition time, and improving the time consistency and data validity of multiple power consumption measurement results.
[0082] Based on S201-S205, a one-to-one independent measurement architecture is constructed by configuring a corresponding power consumption measurement device for each power-consuming device in the satellite positioning device. This hardware-level hardware ensures that the power consumption of multiple power-consuming devices can be collected simultaneously and independently. Each power consumption measurement device uploads a data packet carrying the device number, power consumption measurement value, and measurement time in parallel via a data bus, providing basic hardware and transmission support for multi-channel power consumption measurement. The transmitting device identifies the scenario of concurrent data transmission by judging the number of measurement data packets received at the same time and determines the orderly transmission order based on the device number in the data packet. This effectively avoids conflicts and errors caused by simultaneous transmission of multiple data, ensuring that all measurement data can be transmitted completely and orderly to the subsequent processing device. The processing device performs time alignment processing on the received multi-channel measurement data packets, integrating the power consumption data corresponding to different power consumption measurement devices at the same measurement time into a set of power consumption measurement values. This allows for the complete acquisition of power consumption information of multiple power-consuming devices in the same time dimension, ultimately achieving synchronous measurement and effective integration of the power consumption of multiple power-consuming devices in the satellite positioning device.
[0083] When the above method is implemented in hardware... Figure 3 A schematic diagram of a transmitting or processing device is shown. Figure 3 As shown, the transmitting device 30 or processing device 30 includes a processor 301, a memory 302, and a bus 303. The processor 301 and the memory 302 can be connected via the bus 303.
[0084] Processor 301 is the control center of transmitting device 30 or processing device 30. It can be a single processor or a collective term for multiple processing elements. For example, processor 301 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0085] As one embodiment, processor 301 may include one or more CPUs, for example Figure 3CPU 0 and CPU 1 are shown in the diagram.
[0086] The memory 302 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0087] As one possible implementation, the memory 302 can exist independently of the processor 301. The memory 302 can be connected to the processor 301 via a bus 303 and is used to store instructions or program code. When the processor 301 calls and executes the instructions or program code stored in the memory 302, it can implement the problematic base station determination method provided in the embodiments of this application.
[0088] In another possible implementation, the memory 302 can also be integrated with the processor 301.
[0089] Bus 303 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0090] It should be pointed out that, Figure 3 The structure shown does not constitute a limitation on the transmitting device 30 or the processing device 30. Except... Figure 3 In addition to the components shown, the transmitting device 30 or the processing device 30 may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0091] Optional, such as Figure 3 As shown, the transmitting device 30 or processing device 30 provided in the embodiments of this application may further include a communication interface 304.
[0092] Communication interface 304 is used to connect with other devices via a communication network. This communication network can be Ethernet, a wireless access network, a wireless local area network (WLAN), etc. Communication interface 304 may include a receiving unit for receiving data and a transmitting unit for transmitting data.
[0093] In one possible implementation, the communication interface 304 in the transmitting device 30 or processing device 30 provided in this application embodiment may also be integrated into the processor 301, and this application embodiment does not specifically limit this.
[0094] As a possible product form, the transmitting or processing device of the embodiments of this application can also be implemented using one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits capable of performing the various functions described throughout this application.
[0095] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0096] This application also provides a computer-readable storage medium storing a computer program or instructions thereon, which, when executed, causes a computer to perform the various steps in the method flow shown in the above method embodiments.
[0097] Embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the various steps in the method flow shown in the above-described method embodiments.
[0098] This application provides a chip system, including: a processor and an interface circuit; the interface circuit is used to receive computer programs or instructions and transmit them to the processor; the processor is used to execute the computer programs or instructions so that the chip system performs each step in the method flow shown in the above method embodiments.
[0099] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing, or any other form of computer-readable storage medium in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in a purpose-specific ASIC. In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0100] Since the transmitting or processing device, computer-readable storage medium, and computer program product provided in this embodiment can be applied to the problem base station determination method provided in this embodiment, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.
[0101] Although this application has been described herein in conjunction with various embodiments, those skilled in the art will understand and implement other variations of the disclosed embodiments by reviewing the accompanying drawings and the disclosure in carrying out the claimed application.
[0102] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely illustrative examples of this application and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of equivalent technology of this application, this application also intends to include such modifications and modifications.
Claims
1. A power consumption measurement method, characterized in that, A power consumption measurement method is applied to a transmitting device in a satellite positioning device. The satellite positioning device also includes a processing unit, a data bus, multiple power-consuming devices, and multiple power consumption measurement devices. Each power consumption measurement device measures the power consumption of one power-consuming device. Each power consumption measurement device is connected to the data bus, which is also connected to the transmitting device. The transmitting device is also connected to the processing unit. The method includes: The transmitting device receives measurement data packets collected by each of the multiple power consumption measurement devices; the measurement data includes the device number of the power consumption measurement device, the power consumption measurement value, and the power consumption measurement time. The transmitting device determines whether there are multiple measurement data packets received at the same time; When multiple measurement data packets are received at the same time, the transmitting device determines the transmission order of the multiple measurement data packets received at the same time based on the device number in the multiple measurement data packets received at the same time. Based on the transmission order, the transmitting device sends multiple measurement data packets received at the same reception time to the processing device.
2. The method according to claim 1, characterized in that, When multiple measurement data packets are received simultaneously, the transmitting device determines the transmission order of the multiple measurement data packets received at the same receiving time based on the device number in the multiple measurement data packets received at the same receiving time, including: The device numbers in multiple measurement data packets received at the same receiving time are sorted to obtain the sorting results of multiple device numbers; The sorting result of multiple device numbers is used as the transmission order of multiple measurement data packets received at the same receiving time.
3. A power consumption measurement method, characterized in that, A power consumption measurement method is applied to a processing unit in a satellite positioning device. The satellite positioning device also includes a transmitting unit, a data bus, multiple power-consuming devices, and multiple power consumption measurement devices. Each power consumption measurement device measures the power consumption of one power-consuming device. Each power consumption measurement device is connected to the data bus, which is also connected to the transmitting unit. The transmitting unit is also connected to the processing unit. The method includes: The processing unit acquires measurement data packets from multiple power measurement devices of the transmitting unit; The processing device performs time alignment processing on the measurement data packets from multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time in multiple power consumption acquisition times; the set of power consumption measurement values includes multiple power consumption measurement values, and each power consumption measurement value corresponds to one power consumption measurement device.
4. The method according to claim 3, characterized in that, The processing device performs time alignment processing on the measurement data packets from multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time in multiple power consumption acquisition times, including: Identify the target power measurement device among multiple power measurement devices; the target power measurement device is the power measurement device with the smallest measurement interval among multiple power measurement devices, the measurement interval is the duration between the power measurement moments in two adjacent measurement data packets collected by the power measurement device, and the multiple power acquisition moments are the power measurement moments in the multiple power measurement data packets collected by the target power measurement device. For each of the multiple power measurement devices to be aligned, based on the power measurement time in the multiple measurement data packets collected by the power measurement device to be aligned, the power measurement values in the multiple measurement data packets collected by the power measurement device to be aligned are time-aligned with the power measurement values in the multiple measurement data packets collected by the target power measurement device, so as to obtain the set of power measurement values for each power acquisition time in the multiple power acquisition times.
5. The method according to claim 4, characterized in that, Based on the power measurement times in multiple measurement data packets collected by the power measurement device to be aligned, the power measurement values in the multiple measurement data packets collected by the power measurement device to be aligned are time-aligned with the power measurement values in the multiple measurement data packets collected by the target power measurement device, resulting in a set of power measurement values for each power acquisition time in the multiple power acquisition times, including: For each of the multiple measurement data packets collected by the power consumption measurement device to be aligned, determine the offset time between the power consumption measurement time in the measurement data packet and the target power consumption acquisition time; the target power consumption acquisition time is the power consumption acquisition time with the shortest time interval between the multiple power consumption acquisition times and the power consumption measurement time in the measurement data packet. The power consumption measurement values in the measurement data packet are aligned with the target power consumption acquisition time based on the offset time corresponding to the measurement data packet, thus obtaining a set of power consumption measurement values for each power consumption acquisition time among multiple power consumption acquisition times.
6. The method according to claim 5, characterized in that, Based on the offset duration corresponding to the measurement data packet, the power consumption measurement values in the measurement data packet are aligned with the target power consumption acquisition time, resulting in a set of power consumption measurement values for each power consumption acquisition time among multiple power consumption acquisition times, including: When the offset duration corresponding to the measurement data packet is greater than the preset duration threshold, the interpolated power consumption measurement value corresponding to the measurement data packet is determined based on the interpolation method and the power consumption measurement value in the measurement data packet; Align the interpolated power consumption measurement value with the target power consumption acquisition time to obtain the power consumption measurement value set for each power consumption acquisition time among multiple power consumption acquisition times; When the offset duration corresponding to the measurement data packet is less than or equal to the preset duration threshold, the power consumption measurement value in the measurement data packet is aligned with the target power consumption acquisition time to obtain the power consumption measurement value set for each power consumption acquisition time among multiple power consumption acquisition times.
7. A power consumption measurement system, characterized in that, A power consumption measurement system is deployed on a satellite positioning device. The system includes a transmitting device, a processing device, a data bus, multiple power-consuming devices, and multiple power consumption measurement devices. Each power consumption measurement device measures the power consumption of one power-consuming device. Each power consumption measurement device is connected to the data bus, which is also connected to the transmitting device. The transmitting device is also connected to the processing device. The method includes: The transmitting device receives measurement data packets collected by each of the multiple power consumption measurement devices; the measurement data includes the device number of the power consumption measurement device, the power consumption measurement value, and the power consumption measurement time. The transmitting device determines whether there are multiple measurement data packets received at the same time; When multiple measurement data packets are received at the same time, the transmitting device determines the transmission order of the multiple measurement data packets received at the same time based on the device number in the multiple measurement data packets received at the same time. Based on the transmission order, the transmitting device sends multiple measurement data packets received at the same reception time to the processing device; The processing device performs time alignment processing on the measurement data packets from multiple power consumption measurement devices to obtain a set of power consumption measurement values for each power consumption acquisition time in multiple power consumption acquisition times; the set of power consumption measurement values includes multiple power consumption measurement values, and each power consumption measurement value corresponds to one power consumption measurement device.
8. A transmitting device, characterized in that, The transmitting or processing device includes: a processor coupled to a memory for storing programs or instructions, which, when executed by the processor, cause the device to perform the method as described in any one of claims 1 to 2.
9. A processing apparatus, characterized in that, The transmitting or processing device includes: a processor coupled to a memory for storing programs or instructions, which, when executed by the processor, cause the device to perform the method as described in any one of claims 3 to 6.
10. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed, they cause the computer to perform the method as described in any one of claims 1 to 2 or 3 to 6.