A price tag battery voltage acquisition method, device and computer readable storage medium

By continuously collecting and averaging the battery voltage when the electronic price tag is powered on, and combining this with voltage updates during heartbeat wake-up, the problem of inconsistent battery voltage caused by low ADC accuracy is solved, achieving more accurate battery voltage acquisition and improving the quality of battery voltage data on the price tag.

CN113640682BActive Publication Date: 2026-02-27NUBIA TECHNOLOGY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110994101.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-27
Publication Date
2026-02-27
Estimated Expiration
2041-08-27

AI Technical Summary

Technical Problem

The existing electronic price tags have low ADC accuracy, resulting in poor consistency in battery voltage acquisition between chips and affecting the accuracy of battery voltage data.

Method used

When the price tag is powered on, the battery voltage is collected ten times continuously and the average value is stored in a register. When the heartbeat wakes up, the voltage is collected once and the average value is stored in another register. After each wake-up, the value is reassigned and the average value is taken to update the battery voltage data.

Benefits of technology

It achieves more accurate and smoother battery voltage acquisition, improves the accuracy of battery voltage, and enhances the product appeal of the price tag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113640682B_ABST
    Figure CN113640682B_ABST
Patent Text Reader

Abstract

The application discloses a price tag battery voltage collection method and device and a computer readable storage medium, wherein the method comprises the following steps: when the price tag is powered on, collecting the battery voltage at intervals and continuously, and taking the average value as the current battery voltage of the price tag; repeatedly performing the price tag heartbeat awakening step, and storing the current battery voltage in ten registers at the tenth heartbeat awakening; repeatedly performing the price tag heartbeat awakening step, and reassigning the current battery voltage stored in ten registers in turn at each heartbeat awakening after the tenth heartbeat awakening, and taking the average value of the current battery voltage stored in the ten registers after reassignment as the latest battery voltage. An efficient and accurate price tag battery voltage collection scheme is realized, so that the price tag battery voltage data is more accurate and smoother, the accuracy of the battery voltage of the price tag is improved, and the product power of the price tag is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of mobile communication, and in particular to a price tag battery voltage acquisition method, device and computer readable storage medium. BACKGROUND

[0002] Electronic price tags are electronic labels that display price information in supermarkets, convenience stores, pharmacies and the like. They are mainly placed on shelves and can replace traditional paper price tags. Each electronic shelf label is connected to a computer database in a shopping mall through a wired or wireless network and displays the latest product prices on the screen of the electronic shelf label.

[0003] In the existing application of electronic price tag technology, the battery voltage of the electronic price tag is collected by an ADC (Analog-to-Digital Converter). However, considering that the ADC accuracy is not high at the present stage and there are large differences in the ADC of each chip, the battery voltage collected by each electronic price tag has poor consistency. SUMMARY

[0004] To solve the above technical defects in the prior art, the present application provides a price tag battery voltage acquisition method, which comprises:

[0005] When the price tag is powered on, collect the battery voltage ten times at intervals and continuously, take the average of the ten battery voltages as the current battery voltage of the price tag, and store the current battery voltage in a first register.

[0006] When the price tag heartbeat wakes up, collect the battery voltage once, and take the average of the battery voltage and the average as the current battery voltage, and store the current battery voltage in a second register.

[0007] Repeat the step of waking up the price tag heartbeat, and in the tenth heartbeat wake-up, store the current battery voltage in ten registers.

[0008] Repeat the step of waking up the price tag heartbeat, and in each heartbeat wake-up after the tenth heartbeat wake-up, reassign the current battery voltage stored in the ten registers in turn, and take the average of the current battery voltage stored in the ten registers after reassignment as the latest battery voltage.

[0009] Optionally, the step of collecting the battery voltage ten times at intervals and continuously when the price tag is powered on, taking the average of the ten battery voltages as the current battery voltage of the price tag, and storing the current battery voltage in a first register comprises:

[0010] When the price tag is powered on, the battery voltage Vbat_vt10 is measured by the power acquisition unit of the price tag with a delay of Tstart time, and the second battery voltage Vbat_vt11 is measured with a delay of Tinterval time.

[0011] The above steps are repeatedly performed until ten battery voltages Vbat_vt10, Vbat_vt12…Vbat_vt19 are measured.

[0012] Optionally, when the price tag is powered on, ten battery voltages are collected at intervals and continuously, the average value of the ten battery voltages is taken as the current battery voltage of the price tag, and the current battery voltage is stored in the first register.

[0013] The average value of the ten collected battery voltages Vbat_vt10, Vbat_vt12…Vbat_vt19 is calculated as Vbat_vt1=Vbat_vt1_avg(Vbat_vt10+Vbat_vt12......Vbat_vt19) / 10.

[0014] The average value Vbat_vt1 is taken as the battery voltage when the price tag is powered on for the first time, and the average value Vbat_vt1 is stored in the first register reg1.

[0015] Optionally, when the price tag is awakened by the heartbeat, the battery voltage is collected once, and the average value of the average value of the battery voltage and the average value is taken as the current battery voltage, and the current battery voltage is stored in the second register.

[0016] When the price tag enters the sleep state after processing the corresponding business, the sleep timing module of the price tag starts to work, and when the sleep time of the price tag reaches the sleep setting threshold T_Sleep time, the electronic price tag exits the sleep state and enters the second awakening state.

[0017] The power acquisition unit of the price tag measures the battery voltage Vbat_vt2 after a delay of Tstart time, calculates the second awakening average battery voltage Vbat_vt2 of the price tag and the first awakening battery voltage reg1 of the price tag, takes the average battery voltage Vbat_vt2_avg=(reg1+Vbat_vt2) / 2, takes the average value Vbat_vt2_avg as the current battery voltage of the price tag, and stores the average value Vbat_vt2 in the second register reg2.

[0018] Optionally, the step of repeatedly performing the heartbeat awakening of the price tag is performed, and in the tenth heartbeat awakening, the current battery voltage is stored in each of the ten registers.

[0019] The step of repeatedly performing the price tag heartbeat wake-up is executed, and the price tag exits the sleep state and enters an eleventh wake-up state. After the power acquisition unit of the price tag delays for a Tstart time, the battery voltage Vbat_vt11 is measured.

[0020] The average value Vbat_vt11_avg=(reg1+reg2+...+reg10) / 10 of the battery voltages reg1, reg2,..., reg10 stored in the nine registers of the previous nine wake-ups of the price tag and the battery voltage Vbat_vt11 of the eleventh wake-up of the price tag are calculated. The average value Vbat_vt11_avg is taken as the current battery voltage of the price tag, and the average value Vbat_vt11 is stored in the tenth register reg10.

[0021] Optionally, the step of repeatedly performing the price tag heartbeat wake-up is executed. After each heartbeat wake-up after the eleventh heartbeat wake-up, the current battery voltage stored in the ten registers is re-assigned in turn, and the average value of the current battery voltage stored in the ten registers after re-assignment is taken as the latest battery voltage. The step includes:

[0022] The step of repeatedly performing the price tag heartbeat wake-up is executed, and the price tag exits the sleep state and enters an eleventh wake-up state. After the power acquisition unit of the price tag delays for a Tstart time, the battery voltage Vbat_vt is measured.

[0023] The latest ten battery voltages cover the ten registers, reg1=reg2, reg2=reg3, reg3=reg4, reg4=reg5, reg5=reg6, reg6=reg7, reg7=reg8, reg8=reg9, reg9=reg10, and reg10=Vbat_vt. In this way, the registers reg1-reg10 of the price tag and the corresponding ten registers are re-assigned.

[0024] Optionally, the step of repeatedly performing the price tag heartbeat wake-up is executed. After each heartbeat wake-up after the eleventh heartbeat wake-up, the current battery voltage stored in the ten registers is re-assigned in turn, and the average value of the current battery voltage stored in the ten registers after re-assignment is taken as the latest battery voltage. The step includes:

[0025] The average value Vbat_vt_avg=(reg1+reg2+...+reg10) / 10 of the battery voltages of the previous nine wake-ups of the price tag and the battery voltage Vbat_vt of the eleventh wake-up of the price tag are calculated.

[0026] The average value Vbat_vt_avg is taken as the current price tag battery voltage.

[0027] Optionally, the step of repeatedly performing the price tag heartbeat wake-up is performed, and at each heartbeat wake-up after the tenth heartbeat wake-up, the ten registers are re-assigned in turn with the current battery voltage, and the average value of the current battery voltage stored in the ten re-assigned registers is taken as the latest battery voltage.

[0028] The step of repeatedly performing the price tag heartbeat wake-up is performed, and at the twelfth wake-up state of the price tag, the battery voltage Vbat_vt is measured after the power acquisition unit of the price tag is delayed for a time Tstart, the registers reg1-reg10 and the registers are re-assigned, reg1=reg2, reg2=reg3, reg3=reg4, reg4=reg5, reg5=reg6, reg6=reg7, reg7=reg8, reg8=reg9, reg9=reg10, reg10=Vbat_vt.

[0029] The average value Vbat_vt_avg of the battery voltage Vbat_vt at the twelfth wake-up state of the price tag and the battery voltage at the previous nine wake-up states of the electronic price tag is calculated, Vbat_vt_avg=(reg1+reg2+...+reg10) / 10, and the average value Vbat_vt_avg is taken as the current price tag battery voltage.

[0030] The present application also provides a price tag battery voltage acquisition device, which comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program implements the steps of the price tag battery voltage acquisition method according to any one of the above when executed by the processor.

[0031] The present application also provides a computer readable storage medium, which stores a price tag battery voltage acquisition program, and the price tag battery voltage acquisition program implements the steps of the price tag battery voltage acquisition method according to any one of the above when executed by a processor.

[0032] The tag battery voltage acquisition method, device and computer readable storage medium of the present application are implemented by acquiring the battery voltage ten times at intervals and continuously when the tag is powered on, taking the average value of the ten battery voltages as the current battery voltage of the tag, and storing the current battery voltage in a first register; when the tag heartbeat wakes up, acquiring the battery voltage once, taking the average value of the battery voltage and the average value as the current battery voltage, and storing the current battery voltage in a second register; repeating the step of the tag heartbeat wake-up, and storing the current battery voltage in ten registers at the tenth heartbeat wake-up; repeating the step of the tag heartbeat wake-up, and reassigning the current battery voltage stored in the ten registers in turn at each heartbeat wake-up after the tenth heartbeat wake-up, and taking the average value of the current battery voltage stored in the ten registers after reassignment as the latest battery voltage. An efficient and accurate tag battery voltage acquisition scheme is realized, so that the tag battery voltage data is more accurate and smoother, the accuracy of the tag battery voltage is improved, and the product power of the tag is enhanced. BRIEF DESCRIPTION OF DRAWINGS

[0033] The present application will be further described below with reference to the accompanying drawings and examples, wherein:

[0034] Figure 1 is a schematic diagram of a hardware structure of a mobile terminal related to the present application;

[0035] Figure 2 is a communication network system architecture diagram provided by an embodiment of the present application;

[0036] Figure 3 is a flowchart of the first embodiment of the tag battery voltage acquisition method of the present application;

[0037] Figure 4 is a flowchart of the second embodiment of the tag battery voltage acquisition method of the present application;

[0038] Figure 5 is a flowchart of the third embodiment of the tag battery voltage acquisition method of the present application;

[0039] Figure 6 is a flowchart of the fourth embodiment of the tag battery voltage acquisition method of the present application;

[0040] Figure 7 is a flowchart of the fifth embodiment of the tag battery voltage acquisition method of the present application;

[0041] Figure 8 is a flowchart of the sixth embodiment of the tag battery voltage acquisition method of the present application;

[0042] Figure 9is a flow chart of a seventh embodiment of the price tag battery voltage acquisition method of the present application.

[0043] Figure 10 is a flow chart of an eighth embodiment of the price tag battery voltage acquisition method of the present application. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are merely illustrative of the present application and do not limit the present application.

[0045] In the following description, the suffixes used for elements, such as "module", "part", or "unit", are used only for convenience of explanation of the present application, and have no specific meaning by themselves. Thus, "module", "part", or "unit" can be mixedly used.

[0046] A terminal can be implemented in various forms. For example, the terminal described in the present application can include a mobile terminal such as a mobile phone, a tablet PC, a notebook PC, a palmtop PC, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like.

[0047] In the following description, a mobile terminal will be exemplified, and it will be understood by those skilled in the art that the configuration according to the embodiments of the present application can be applied to a stationary type terminal, except for elements particularly used for mobile purposes.

[0048] Referring to Figure 1 , which is a hardware structure diagram of a mobile terminal implementing various embodiments of the present application, the mobile terminal 100 can include an RF (Radio Frequency) unit 101, a WiFi module 102, an audio output unit 103, an A / V (audio / video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a storage 109, a processor 110, and a power supply 111, etc. Those skilled in the art will appreciate that the mobile terminal structure shown in Figure 1 the drawing does not limit the mobile terminal, and the mobile terminal can include more or less components than those shown in the drawing, or some components can be combined, or different components can be arranged.

[0049] Hereinafter, the components of the mobile terminal will be described in detail. Figure 1

[0050] ​The radio frequency unit 101 can be used for receiving and transmitting signals in information or communication processes. Specifically, the radio frequency unit 101 receives downlink information from a base station and provides the received information to the processor 110 for processing. In addition, the radio frequency unit 101 transmits uplink data to the base station. Generally, the radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can communicate with a network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution), TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0051] The WiFi belongs to a short-range wireless transmission technology. The WiFi module 102 can help a user to send and receive e-mails, browse web pages, and access streaming media, etc. The WiFi module 102 provides the user with wireless broadband Internet access. Although Figure 1 The WiFi module 102 is shown, but it is understood that it does not belong to the necessary components of the mobile terminal, and can be omitted as needed without changing the essence of the application.

[0052] The audio output unit 103 can convert audio data, which is received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109, into an audio signal and output the audio signal as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. In addition, the audio output unit 103 can provide audio output related to a particular function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 can include a speaker, a buzzer, etc.

[0053] The A / V input unit 104 is configured to receive audio or video signals. The A / V input unit 104 can include a graphics processor (GPU) 1041 and a microphone 1042. The graphics processor 1041 processes image data of a still picture or a video obtained by an image capture device (e.g., a camera) in a video call mode or an image call mode. Processed image frames can be displayed on the display unit 106. Processed image frames can be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sound into audio data. Processed audio (voice) data can be converted into a format transmittable to a mobile communication base station via the radio frequency unit 101 in the case of the phone call mode. The microphone 1042 can implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the process of receiving and transmitting audio signals.

[0054] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize the posture of the mobile phone (such as switching between landscape and portrait screens, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, taps), and the like. As for the fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, infrared sensor, and other sensors that can be configured to the mobile phone, they are not described here.

[0055] The display unit 106 is configured to display information input by a user or information provided to the user. The display unit 106 can include a display panel 1061, which can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0056] The user input unit 107 can be used to receive input numerals or character information, and to generate key signal inputs related to user settings of the mobile terminal and control of functions. Specifically, the user input unit 107 can include a touch panel 1071 and other input devices 1072. The touch panel 1071, also called a touch screen, can collect a touch operation of a user on or proximate thereto (such as an operation of the user using a finger, a stylus, or any suitable object or accessory on or proximate to the touch panel 1071), and drive a corresponding connection device according to a pre-set program. The touch panel 1071 can include two parts, a touch detecting device and a touch controller. The touch detecting device detects a user's touch position and detects a signal resulting from a touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detecting device, converts it into touch coordinates, and transmits the touch coordinates to the processor 110, and can receive commands from the processor 110 and execute them. In addition, the touch panel 1071 can be implemented in various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. In addition to the touch panel 1071, the user input unit 107 can include other input devices 1072. Specifically, the other input devices 1072 can include one or more of, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, a joystick, etc.

[0057] Further, the touch panel 1071 can cover the display panel 1061, and when the touch panel 1071 detects a touch operation on or proximate thereto, it transmits the same to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in the above description, the touch panel 1071 and the display panel 1061 are implemented as two separate components to achieve the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to achieve the input and output functions of the mobile terminal, without being limited thereto. Figure 1

[0058] The interface unit 108 serves as an interface through which at least one external device can be connected with the mobile terminal 100. For example, the external device can include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input / output (I / O) port, a video I / O port, an earphone port, etc. The interface unit 108 can be used to receive input (e.g., data information, power, etc.) from an external device and to transmit the received input to one or more elements within the mobile terminal 100, or can be used to transmit data between the mobile terminal 100 and the external device. ​

[0059] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; and the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), and the like. In addition, the memory 109 can include a high-speed random access memory, and can also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.

[0060] The processor 110 is the control center of the mobile terminal, connects all parts of the mobile terminal through various interfaces and lines, executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109 and calling data stored in the memory 109, and thus performs overall monitoring on the mobile terminal. The processor 110 can include one or more processing units; preferably, the processor 110 can integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the like, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 110.

[0061] The mobile terminal 100 can also include a power supply 111 (such as a battery) for supplying power to various components; preferably, the power supply 111 can be logically connected to the processor 110 through a power management system, so as to realize the functions of managing charging, discharging, and power consumption management, and the like through the power management system.

[0062] Although Figure 1 The mobile terminal 100 can also include a Bluetooth module and the like, which are not described herein.

[0063] In order to facilitate the understanding of the embodiments of the present application, the communication network system based on the mobile terminal of the present application is described below.

[0064] Please refer to Figure 2 , Figure 2 A communication network system architecture diagram provided by the embodiments of the present application, the communication network system is a LTE system of general mobile communication technology, the LTE system includes a UE (User Equipment, user equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS terrestrial radio access network) 202, an EPC (Evolved Packet Core, evolved packet core network) 203 and an operator's IP service 204 connected in turn.

[0065] Specifically, the UE 201 can be the terminal 100 described above, which will not be repeated here.

[0066] The E-UTRAN 202 includes eNode-Bs 2021 and other eNode-Bs 2022. The eNode-B 2021 can be connected to the other eNode-Bs 2022 through backhaul (e.g., X2 interface), the eNode-B 2021 is connected to the EPC 203, and the eNode-B 2021 can provide access for the UE 201 to the EPC 203.

[0067] The EPC 203 can include a MME (Mobility Management Entity, mobility management entity) 2031, a HSS (Home Subscriber Server, home subscriber server) 2032, other MMEs 2033, a SGW (Serving Gate Way, serving gateway) 2034, a PGW (PDN Gate Way, packet data network gateway) 2035, and a PCRF (Policy and Charging Rules Function, policy and charging rules function) 2036. The MME 2031 is a control node for processing signaling between the UE 201 and the EPC 203, and provides bearer and connection management. The HSS 2032 is used to provide some registers to manage functions such as a home location register (not shown in the figure), and to save some user-specific information about service features, data rates, etc. All user data can be transmitted through the SGW 2034, the PGW 2035 can provide IP address allocation and other functions for the UE 201, and the PCRF 2036 is a policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function units (not shown in the figure).

[0068] The IP service 204 can include the Internet, an intranet, an IMS (IP Multimedia Subsystem, IP multimedia subsystem), or other IP services.

[0069] Although the above describes the LTE system as an example, those skilled in the art should know that the present application is not only applicable to the LTE system, but also applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, etc., which are not limited here.

[0070] Based on the above mobile terminal hardware structure and communication network system, various embodiments of the method of the present application are proposed.

[0071] Embodiment One

[0072] Figure 3 is a flow chart of the first embodiment of the present application for collecting the voltage of a price tag battery. A method for collecting the voltage of a price tag battery, the method comprising:

[0073] S1, when the price tag is powered on, collect the battery voltage ten times at intervals and continuously, take the average of the ten battery voltages as the current battery voltage of the price tag, and store the current battery voltage in a first register.

[0074] S2, when the price tag is awakened by a heartbeat, collect the battery voltage once, and take the average of the average of the battery voltage and the average as the current battery voltage, and store the current battery voltage in a second register.

[0075] S3, repeat the step of awakening the price tag by a heartbeat, and at the tenth heartbeat, store the current battery voltage in ten registers.

[0076] S4, repeat the step of awakening the price tag by a heartbeat, and at each heartbeat after the tenth heartbeat, reassign the current battery voltage stored in the ten registers in turn, and take the average of the current battery voltage stored in the ten registers after reassignment as the latest battery voltage.

[0077] Optionally, in this embodiment, after the electronic price tag is powered on, the electronic price tag power collection unit delays Tstart to measure the battery voltage 2.94V, and after delaying 10ms, the electronic price tag measures the second battery voltage 2.96, and according to such steps, a total of ten battery voltages Vbat_vt10, Vbat_vt12,..., Vbat_vt19 are measured. Then, the electronic price tag calculates the average of the ten collected battery voltages Vbat_vt10, Vbat_vt12,..., Vbat_vt19, Vbat_vt1 = Vbat_vt1_avg(Vbat_vt10+Vbat_vt12,..., Vbat_vt19) / 10 = 2.95V, this Vbat_vt1 is the initial battery voltage of the electronic price tag when it is powered on, and 2.95V is stored in the register reg1.

[0078] Optionally, in this embodiment, the electronic price tag enters the hibernation state after processing the corresponding business, the electronic price tag hibernation timing module starts to work, and the electronic price tag hibernation timing reaches the hibernation setting threshold 17S. The electronic price tag exits the hibernation and enters the second wake-up state. The electronic price tag power acquisition unit measures the battery voltage 2.97V after a delay of 10ms. The electronic price tag calculates the second wake-up average battery voltage 2.97V of the electronic price tag and the first wake-up battery voltage reg1=2.95V of the electronic price tag. The average battery voltage Vbat_vt2_avg=(reg1+Vbat_vt2) / 2=2.96V is 2.96V, which is the current electronic price tag battery voltage, and 2.97V is stored in the register reg2.

[0079] Optionally, in this embodiment, as described above, when the electronic price tag exits the hibernation and enters the tenth wake-up state, the electronic price tag power acquisition unit measures the battery voltage 2.95V after a delay of 10ms. The electronic price tag calculates the tenth wake-up average battery voltage Vbat_vt1 of the electronic price tag and the first, second,..., ninth wake-up battery voltage reg1, reg2, reg9 of the electronic price tag. The average battery voltage Vbat_vt10_avg=(reg1+reg2+...+2.95) / 10=2.95V is 2.95V, which is the current electronic price tag battery voltage, and 2.95V is stored in the register reg10.

[0080] Optionally, in this embodiment, when the electronic price tag exits the hibernation and enters the eleventh wake-up state, the electronic price tag power acquisition unit measures the battery voltage 2.94V after a delay of Tstart. The electronic price tag reassigns reg1-reg10 and the register, reg1=reg2, reg2=reg3, reg3=reg4, reg4=reg5, reg5=reg6, reg6=reg7, reg7=reg8, reg8=reg9, reg9=2.95V, and reg10=2.94V.

[0081] Optionally, in this embodiment, the electronic price tag then calculates the eleventh wake-up average battery voltage Vbat_vt of the electronic price tag and the average battery voltage Vbat_vt_avg=(reg1+reg2+...+2.94V) / 10=2.95V of the electronic price tag for the previous nine wake-ups. The 2.95V is the current electronic price tag battery voltage.

[0082] It can be seen that in the present embodiment, when the price tag is powered on, the average value of ten consecutive acquisitions is taken as the first battery voltage of this time, and then the battery voltage is acquired once every time the heart wakes up, and the average value of the previous several acquired battery voltages is taken as the current battery voltage, and the actual acquisition of the battery voltage is stored in the corresponding register. When the battery voltage is acquired for the eleventh time and after the eleventh time, the battery voltage acquired by the recent ten heartbeat awakenings is filled into the corresponding ten registers reg1-reg10 to overwrite the previous data. Thus, the electronic price tag battery voltage data is more accurate and smoother, and the accuracy of the price tag battery voltage is improved.

[0083] The beneficial effects of the present embodiment are that by acquiring battery voltage ten times at intervals when the price tag is powered on, taking the average value of the ten battery voltages as the current battery voltage of the price tag, and storing the current battery voltage in the first register; when the price tag is awakened by heart, acquire the battery voltage once, and take the average value of the average value as the current battery voltage, and store the current battery voltage in the second register; repeat the step of awakening the price tag by heart, and store the current battery voltage in ten registers at the tenth time of awakening by heart; repeat the step of awakening the price tag by heart, and reassign the current battery voltage stored in ten registers in turn after the tenth time of awakening by heart, and take the average value of the current battery voltage stored in the ten registers after reassignment as the latest battery voltage. An efficient and accurate price tag battery voltage acquisition scheme is realized, which makes the price tag battery voltage data more accurate and smoother, improves the accuracy of the price tag battery voltage, and enhances the product power of the price tag.

[0084] Embodiment two

[0085] Figure 4 is a flowchart of the second embodiment of the price tag battery voltage acquisition method of the present application, based on the above embodiment, when the price tag is powered on, ten times of battery voltage are acquired at intervals, the average value of the ten battery voltages is taken as the current battery voltage of the price tag, and the current battery voltage is stored in the first register, which comprises:

[0086] S11, when the price tag is powered on, measure the battery voltage Vbat_vt10 by the power acquisition unit of the price tag with a delay Tstart time, and measure the second battery voltage Vbat_vt11 with a delay Tinterval time.

[0087] S12, repeat the above steps until ten battery voltages Vbat_vt10, Vbat_vt12…Vbat_vt19 are measured.

[0088] Optionally, in the embodiment, the power collection unit of the price tag measures the battery voltage Vbat_vt10 with the delay Tstart time, and the delay Tinterval time is measured for the second time.

[0089] Optionally, in the embodiment, the delay Tstart time is determined according to the price tags in different position areas or the price tags with different labels, that is, the battery voltage Vbat_vt10 is measured with the delay Tstart time by the power collection unit of each price tag when the above steps are repeatedly performed.

[0090] Optionally, in the embodiment, the delay Tinterval time can be set in the same way as the delay Tstart time.

[0091] The embodiment has the beneficial effect that when the price tag is powered on, the battery voltage Vbat_vt10 is measured with the delay Tstart time by the power collection unit of the price tag, the second battery voltage Vbat_vt11 is measured with the delay Tinterval time, and the above steps are repeatedly performed until ten battery voltages Vbat_vt10, Vbat_vt12, …, Vbat_vt19 are measured. The delay condition is provided for a more efficient and accurate price tag battery voltage collection scheme, so that the price tag battery voltage data is more accurate and smoother, the accuracy of the price tag battery voltage is improved, and the product power of the price tag is enhanced.

[0092] Embodiment Three

[0093] Figure 5 is a flowchart of the third embodiment of the price tag battery voltage collection method of the application. Based on the above embodiment, when the price tag is powered on, ten battery voltages are collected at intervals and continuously, the average value of the ten battery voltages is taken as the current battery voltage of the price tag, and the current battery voltage is stored in the first register. The method further comprises:

[0094] S13, calculating the average value Vbat_vt1 of the ten collected battery voltages Vbat_vt10, Vbat_vt12, …, Vbat_vt19, Vbat_vt1 = Vbat_vt1_avg (Vbat_vt10 + Vbat_vt12 … Vbat_vt19) / 10.

[0095] S14, taking the average value Vbat_vt1 as the battery voltage of the price tag when it is powered on for the first time, and storing the average value Vbat_vt1 in the first register reg1.

[0096] Optionally, in the embodiment, according to the setting requirement of the price tag on the battery voltage, the corresponding number of register configuration modes is determined.

[0097] Optionally, in the embodiment, when the price tag has a higher smoothness requirement on the setting of the battery voltage, a larger number of registers is configured.

[0098] The beneficial effect of the embodiment is that by calculating the ten times of the battery voltage collected in the above manner, for example, taking the average value Vbat_vt1 of the ten times of the battery voltage Vbat_vt10, Vbat_vt12, …, Vbat_vt19, Vbat_vt1 = Vbat_vt1_avg(Vbat_vt10+Vbat_vt12......Vbat_vt19) / 10; the average value Vbat_vt1 is taken as the battery voltage of the first power-on of the price tag, and the average value Vbat_vt1 is stored in the first register reg1. A more efficient and accurate price tag battery voltage acquisition scheme is provided by pre-configuring the register, so that the price tag battery voltage data is more accurate and smoother, the accuracy of the battery voltage of the price tag is improved, and the product power of the price tag is enhanced.

[0099] Embodiment Four

[0100] Figure 6 is a flowchart of the fourth embodiment of the price tag battery voltage acquisition method of the application, based on the above-mentioned embodiments, the battery voltage is collected once when the price tag is awakened, and the average value of the average value of the battery voltage and the average value is taken as the current battery voltage, and the current battery voltage is stored in the second register, which comprises:

[0101] S21, when the price tag enters the sleep state after processing the corresponding business, the sleep timing module of the price tag starts to work, and when the sleep time of the price tag reaches the sleep setting threshold TSleep time, the electronic price tag exits the sleep state and enters the second awakening state.

[0102] S22, the power acquisition unit of the price tag delays for Tstart time, measures the battery voltage Vbat_vt2, calculates the second awakening average battery voltage Vbat_vt2 of the price tag and the first awakening battery voltage reg1 of the price tag, takes the average value Vbat_vt2_avg = (reg1+Vbat_vt2) / 2 of the battery voltage, takes the average value Vbat_vt2_avg as the current battery voltage of the price tag, and stores the average value Vbat_vt2 in the second register reg2.

[0103] Optionally, in the embodiment, the TSleep time and the Tstart time are determined according to the price tags of different position areas or the price tags with different labels, so that the electronic price tags with different functional requirements can have corresponding adjustment efficiency, and the balance among the adjustment effect, the adjustment efficiency and the adjustment energy consumption is achieved.

[0104] The beneficial effect of the embodiment is that, when the price tag enters the sleep state after processing the corresponding service, the sleep timing module of the price tag starts to work, and when the sleep time of the price tag reaches the sleep setting threshold T_Sleep time, the electronic price tag exits the sleep state and enters the second wake-up state; the power acquisition unit of the price tag delays for the Tstart time, measures the battery voltage Vbat_vt2, calculates the second wake-up average battery voltage Vbat_vt2 of the price tag and the first wake-up battery voltage reg1 of the price tag, takes the average value of the battery voltage Vbat_vt2_avg=(reg1+Vbat_vt2) / 2, takes the average value Vbat_vt2_avg as the current battery voltage of the price tag, and stores the average value Vbat_vt2 in the second register reg2. A more efficient and accurate price tag battery voltage acquisition scheme is provided, and a more optimal time threshold and delay setting mode is provided, so that the price tag battery voltage data is more accurate and smoother, the accuracy of the battery voltage of the price tag is improved, and the product power of the price tag is enhanced.

[0105] Embodiment five

[0106] Figure 7 is a flowchart of the fifth embodiment of the price tag battery voltage acquisition method of the application, based on the above-mentioned embodiments, the step of repeatedly executing the price tag heartbeat wake-up is performed, and at the tenth heartbeat wake-up, the current battery voltage is stored in ten registers, including:

[0107] S31, the step of repeatedly executing the price tag heartbeat wake-up is performed, and when the price tag exits the sleep state and enters the tenth wake-up state, the power acquisition unit of the price tag delays for the Tstart time, and measures the battery voltage Vbat_vt10.

[0108] S32, the average value Vbat_vt10_avg=(reg1+reg2+...+reg10) / 10 of the tenth wake-up average battery voltage Vbat_vt1 of the price tag and the battery voltages reg1, reg2,..., reg9 stored in the previous nine registers of the price tag is calculated, the average value Vbat_vt10_avg is taken as the current battery voltage of the price tag, and the average value Vbat_vt10 is stored in the tenth register reg10.

[0109] Optionally, in the embodiment, the tenth time the price tag wakes up, the average battery voltage Vbat_vt1 of the price tag and the nine battery voltages reg1, reg2,..., reg9 stored in the nine registers of the previous nine times the price tag wakes up are calculated, the eight battery voltage values excluding the highest value and the lowest value are taken, the average value Vbat_vt10_avg=(reg1+reg2+...+reg10) / 10 of the eight battery voltage values and Vbat_vt1 is taken as the current price tag battery voltage, and the average value Vbat_vt10 is stored in the tenth register reg10.

[0110] The beneficial effects of the embodiment are that by repeatedly performing the price tag heartbeat wake-up step, when the price tag exits hibernation and enters the tenth time wake-up state, the power acquisition unit of the price tag delays for a time Tstart, and then measures the battery voltage Vbat_vt10; the average value Vbat_vt10_avg=(reg1+reg2+...+reg10) / 10 of the tenth time the price tag wakes up and the nine battery voltages reg1, reg2,..., reg9 stored in the nine registers of the previous nine times the price tag wakes up is calculated, the average value Vbat_vt10_avg is taken as the current price tag battery voltage, and the average value Vbat_vt10 is stored in the tenth register reg10. A more efficient and accurate price tag battery voltage acquisition scheme is realized, providing a smoother calculation method, making the price tag battery voltage data more accurate and smoother, improving the accuracy of the price tag battery voltage, and enhancing the product power of the price tag.

[0111] Embodiment six

[0112] Figure 8 is a flowchart of the sixth embodiment of the price tag battery voltage acquisition method of the present application, based on the above-mentioned embodiments, the repeatedly performing the price tag heartbeat wake-up step, at each heartbeat wake-up after the tenth time heartbeat wake-up, the ten registers store the current battery voltage in turn, and the average value of the current battery voltage stored in the ten registers after reassignment is taken as the latest battery voltage, including:

[0113] S41, repeatedly performing the price tag heartbeat wake-up step, when the price tag exits hibernation and enters the eleventh time wake-up state, the power acquisition unit of the price tag delays for a time Tstart, and then measures the battery voltage Vbat_vt.

[0114] S42, covering ten said registers with the latest ten times said battery voltage, reg1 = reg2, reg2 = reg3, reg3 = reg4, reg4 = reg5, reg5 = reg6, reg6 = reg7, reg7 = reg8, reg8 = reg9, reg9 = reg10, reg10 = Vbat_vt, so that reg1 ~ reg10 of said price tag and the corresponding ten registers are revalued.

[0115] Alternatively, in this embodiment, one way is to directly cover ten said registers with the latest ten times said battery voltage, reg1 = reg2, reg2 = reg3, reg3 = reg4, reg4 = reg5, reg5 = reg6, reg6 = reg7, reg7 = reg8, reg8 = reg9, reg9 = reg10, reg10 = Vbat_vt, so that reg1 ~ reg10 of said price tag and the corresponding ten registers are revalued. Another way is to remove the highest value or the lowest value of the nine register battery voltage values, and add the voltage value of the latest tenth time, so that the battery voltage distribution after revaluation is more concentrated.

[0116] The beneficial effects of this embodiment are that by repeatedly executing the step of said price tag heartbeat awakening, when said price tag exits hibernation and enters the eleventh awakening state, said price tag's power acquisition unit delays for Tstart time, and then measures the battery voltage Vbat_vt; covering ten said registers with the latest ten times said battery voltage, reg1 = reg2, reg2 = reg3, reg3 = reg4, reg4 = reg5, reg5 = reg6, reg6 = reg7, reg7 = reg8, reg8 = reg9, reg9 = reg10, reg10 = Vbat_vt, so that reg1 ~ reg10 of said price tag and the corresponding ten registers are revalued. This provides an updating method of revaluing multiple registers for a more efficient and accurate price tag battery voltage acquisition scheme, making the price tag battery voltage data more accurate and smooth, improving the accuracy of the price tag battery voltage, and enhancing the product power of the price tag.

[0117] Embodiment Seven

[0118] Figure 9is a flowchart of the seventh embodiment of the price tag battery voltage acquisition method of the present application, based on the above-mentioned embodiment, the step of repeatedly executing the price tag heartbeat wake-up, at each heartbeat wake-up after the tenth heartbeat wake-up, the current battery voltage stored in the ten registers is re-assigned in turn, and the average value of the current battery voltage stored in the ten re-assigned registers is taken as the latest battery voltage, further comprising:

[0119] S43, calculate the battery voltage Vbat_vt at the eleventh wake-up of the price tag and the average value Vbat_vt_avg of the battery voltage at the previous nine wake-ups of the price tag = (reg1+reg2+...+reg10) / 10.

[0120] S44, take the average value Vbat_vt_avg as the current price tag battery voltage.

[0121] Alternatively, in this embodiment, the same can also be to calculate the average value Vbat_vt_avg = (reg1+reg2+...+reg10) / 9 or Vbat_vt_avg = (reg1+reg2+...+reg10) / 8 of the battery voltage at the eleventh wake-up of the price tag and the battery voltage at the previous nine wake-ups of the price tag after removing the highest value and / or the lowest value.

[0122] The beneficial effects of this embodiment are that by calculating the average value Vbat_vt_avg = (reg1+reg2+...+reg10) / 10 of the battery voltage Vbat_vt at the eleventh wake-up of the price tag and the battery voltage at the previous nine wake-ups of the price tag, and taking the average value Vbat_vt_avg as the current price tag battery voltage, an optional average value calculation method is provided for a more efficient and accurate price tag battery voltage acquisition scheme, making the price tag battery voltage data more accurate and smoother, improving the accuracy of the battery voltage of the price tag, and enhancing the product power of the price tag.

[0123] Embodiment eight

[0124] Figure 10 is a flowchart of the eighth embodiment of the price tag battery voltage acquisition method of the present application, based on the above-mentioned embodiment, the step of repeatedly executing the price tag heartbeat wake-up, at each heartbeat wake-up after the tenth heartbeat wake-up, the current battery voltage stored in the ten registers is re-assigned in turn, and the average value of the current battery voltage stored in the ten re-assigned registers is taken as the latest battery voltage, further comprising:

[0125] S45, repeat the step of executing the price tag heartbeat wake-up, when the price tag exits hibernation into the twelfth wake-up state, the power collection unit of the price tag delays Tstart time, measures the battery voltage Vbat_vt, and the price tag reassigns reg1-reg10 and registers, reg1=reg2, reg2=reg3, reg3=reg4, reg4=reg5, reg5=reg6, reg6=reg7, reg7=reg8, reg8=reg9, reg9=reg10, reg10=Vbat_vt.

[0126] S46, calculate the battery voltage Vbat_vt of the price tag in the twelfth wake-up state and the average value Vbat_vt_avg=(reg1+reg2+...+reg10) / 10 of the battery voltage of the electronic price tag in the previous nine wake-up states, and take the average value Vbat_vt_avg as the current price tag battery voltage.

[0127] Optionally, in the embodiment, the number of times of executing the preset price tag heartbeat wake-up step is determined, for example, the number of times is twenty, that is, the step of repeating the price tag heartbeat wake-up is executed, when the price tag exits hibernation into the twentieth wake-up state, the Vbat_vt_avg obtained by the above method is taken as the current price tag battery voltage.

[0128] Optionally, in the embodiment, the execution time of the preset price tag heartbeat wake-up step is determined, and it can be understood that the time is a total time, in order to avoid excessive calculation and additional power consumption. In the embodiment, the step of repeating the price tag heartbeat wake-up is executed, when the price tag exits hibernation into any wake-up state, if it is determined that the limit of the above execution time is reached, the current Vbat_vt_avg obtained by the above method is taken as the current price tag battery voltage.

[0129] The beneficial effect of the embodiment is that by repeatedly performing the price tag heartbeat wake-up step, when the price tag exits hibernation and enters the twelfth wake-up state, the power collection unit of the price tag delays for a Tstart time, then measures the battery voltage Vbat_vt, reassigns the registers reg1-reg10 and registers, reg1 = reg2, reg2 = reg3, reg3 = reg4, reg4 = reg5, reg5 = reg6, reg6 = reg7, reg7 = reg8, reg8 = reg9, reg9 = reg10, reg10 = Vbat_vt; calculates the average value Vbat_vt_avg = (reg1 + reg2 +... + reg10) / 10 of the battery voltage Vbat_vt of the price tag at the twelfth wake-up and the battery voltage of the electronic price tag at the previous nine wake-ups, and takes the average value Vbat_vt_avg as the current price tag battery voltage. The number of times or time limit condition for cyclic execution is provided to realize a more efficient and accurate price tag battery voltage collection scheme, so that the price tag battery voltage data is more accurate and smoother, the accuracy of the price tag battery voltage is improved, and the product power of the price tag is enhanced.

[0130] Embodiment nine

[0131] Based on the above embodiments, the application further provides a price tag battery voltage collection device, which comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program implements the steps of the price tag battery voltage collection method according to any one of the above embodiments when executed by the processor.

[0132] It should be noted that the above device embodiments and method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, and the technical features in the method embodiments are all applicable to the device embodiments, which will not be repeated here.

[0133] Embodiment ten

[0134] Based on the above embodiments, the application further provides a computer readable storage medium, which stores a price tag battery voltage collection program, and the price tag battery voltage collection program implements the steps of the price tag battery voltage collection method according to any one of the above embodiments when executed by the processor.

[0135] It should be noted that the above medium embodiments and method embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiments, and the technical features in the method embodiments are all applicable to the medium embodiments, which will not be repeated here.

[0136] It should be noted that, in this document, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0137] The above-mentioned embodiment numbers of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.

[0138] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be realized by means of software and the necessary general hardware platform, and of course, they can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods described in the various embodiments of the present application.

[0139] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application, and these are all within the protection scope of the present application.

Claims

1. A method for collecting a voltage of a price tag battery, the method comprising: The method comprises: When the price tag is powered on, the battery voltage Vbat_vt10 is measured by the power acquisition unit of the price tag with a delay Tstart time, and the second battery voltage Vbat_vt11 is measured with a delay Tinterval time; The above steps are repeatedly executed until ten battery voltages Vbat_vt10, Vbat_vt12…Vbat_vt19 are measured; The average value Vbat_vt1 of the ten collected battery voltages Vbat_vt10, Vbat_vt12…Vbat_vt19 is calculated, that is, Vbat_vt1=(Vbat_vt10+Vbat_vt12......Vbat_vt19) / 10; The average value Vbat_vt1 is taken as the battery voltage when the price tag is powered on for the first time, and the average value Vbat_vt1 is stored in the first register reg1; When the price tag enters the sleep state after processing the corresponding business, the sleep timing module of the price tag starts to work, and when the sleep time of the price tag reaches the sleep setting threshold T_Sleep time, the electronic price tag exits the sleep state and enters the second wake-up state; The battery voltage Vbat_vt2 is measured by the power acquisition unit of the price tag with a delay Tstart time, and the average battery voltage Vbat_vt2 of the second wake-up of the price tag is calculated and the battery voltage average Vbat_vt2_avg=(reg1+Vbat_vt2) / 2, which is taken as the current price tag battery voltage, and the average value Vbat_vt2 is stored in the second register reg2; The steps of the price tag heartbeat wake-up are repeatedly executed, and when the price tag exits the sleep state and enters the tenth wake-up state, the battery voltage Vbat_vt10 is measured by the power acquisition unit of the price tag with a delay Tstart time; The average value Vbat_vt10_avg=(reg1+reg2+...+reg10) / 10 of the battery voltages reg1, reg2, …, reg9 stored in the previous nine registers of the price tag is calculated, which is taken as the current price tag battery voltage, and the average value Vbat_vt10 is stored in the tenth register reg10; The steps of the price tag heartbeat wake-up are repeatedly executed, and at each heartbeat wake-up after the tenth heartbeat wake-up, the current battery voltage stored in the ten registers is re-assigned in turn, and the average value of the current battery voltage stored in the ten re-assigned registers is taken as the latest battery voltage.

2. The method of claim 1, wherein, The step of repeatedly executing the price tag heartbeat wake-up step, in each heartbeat wake-up after the tenth heartbeat wake-up, sequentially reassigns the current battery voltage stored in the ten registers, and takes the average of the current battery voltage stored in the ten reassigned registers as the latest battery voltage, includes: Repeat the heartbeat wake-up step of the price tag. When the price tag exits sleep and enters the eleventh wake-up state, the power acquisition unit of the price tag measures the battery voltage Vbat_vt after a delay of Tstart time. The ten registers are overwritten with the latest ten battery voltages, reg1=reg2, reg2=reg3, reg3=reg4, reg4=reg5, reg5=reg6, reg6=reg7, reg7=reg8, reg8=reg9, reg9=reg10, reg10=Vbat_vt, so that the reg1~reg10 of the price tag and the corresponding ten registers are reassigned.

3. The method of claim 2, wherein, The step of repeatedly executing the price tag heartbeat wake-up step, in each heartbeat wake-up after the tenth heartbeat wake-up, sequentially reassigning the current battery voltage stored in the ten registers, and taking the average of the current battery voltage stored in the ten reassigned registers as the latest battery voltage, further includes: Calculate the battery voltage Vbat_vt at the eleventh wake-up of the price tag and the average value of the battery voltage of the previous nine wake-ups of the price tag, Vbat_vt_avg=(reg1+reg2+...+reg10) / 10; The average value Vbat_vt_avg is used as the current price tag battery voltage.

4. The method of claim 3, wherein, The step of repeatedly executing the price tag heartbeat wake-up step, in each heartbeat wake-up after the tenth heartbeat wake-up, sequentially reassigning the current battery voltage stored in the ten registers, and taking the average of the current battery voltage stored in the ten reassigned registers as the latest battery voltage, further includes: Repeat the heartbeat wake-up step of the price tag. When the price tag exits sleep and enters the twelfth wake-up state, the power acquisition unit of the price tag delays for Tstart time and measures the battery voltage Vbat_vt. The price tag reassigns values ​​to reg1~reg10 and the registers: reg1=reg2, reg2=reg3, reg3=reg4, reg4=reg5, reg5=reg6, reg6=reg7, reg7=reg8, reg8=reg9, reg9=reg10, reg10=Vbat_vt. Calculate the battery voltage Vbat_vt at the twelfth wake-up of the price tag and the average value of the battery voltage of the electronic price tag during the previous nine wake-ups, Vbat_vt_avg = (reg1 + reg2 + ... + reg10) / 10, and use the average value Vbat_vt_avg as the current battery voltage of the price tag.

5. A price tag battery voltage acquisition apparatus characterized by comprising: The device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the method for collecting the voltage of the battery of the price tag according to any one of claims 1 to 4 when executed by the processor.

6. A computer readable storage medium characterized by, The computer readable storage medium stores a program for collecting the voltage of the battery of the price tag, the program for collecting the voltage of the battery of the price tag implementing the steps of the method for collecting the voltage of the battery of the price tag according to any one of claims 1 to 4 when executed by the processor.

Citation Information

Patent Citations

  • Battery capacity detection method and device of equipment

    CN109270467A

  • Electronic label and monitoring method and device and system thereof

    CN110601294A

  • Battery electric quantity updating method and device

    CN111142031A