Price tag sleep control method, device and computer readable storage medium
By adopting preset cycle sleep and interval network search and network access strategies in electronic price tags, the problem of power and efficiency imbalance in the existing technology is solved, price tag sleep control with better environmental adaptability is achieved, and the price is improved. Sign configuration efficiency and power consumption control.
Patent Information
- Application Number
- CN202110439524.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-23
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-04-23
AI Technical Summary
The existing electronic price tag system consumes high power when not connected to the network, and the network connection efficiency is low. The existing network search and sleep strategies are not suitable for general scenarios and venues, and it is difficult to achieve a balance between power and efficiency.
The preset first increment period and the second increment period are used for sleep and interval network search and network access. When the network is dropped, the cycle is switched, and the duration is monitored to see whether the preset conditions are met to adjust subsequent network search and network access strategies.
It has realized a price tag sleep control scheme with better environmental adaptability, adapts to various common occasions and circulation, and achieves a balance between price tag configuration efficiency and power consumption control.
Smart Images

Figure CN113163477B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communications, and in particular to a price tag dormancy control method, device, and computer-readable storage medium. Background Art
[0002] In the existing technology, with the continuous development of smart terminal devices, the application of electronic price tags in the new retail field is becoming more and more popular. Electronic price tags are low-power products, generally powered by button batteries, and are required to have a service life of more than two years or even longer. For the sake of appearance and convenience of use, electronic price tags generally do not have an on / off button. That is to say, after coming off the production line, its battery is installed and it is already in the working state. It may take a long time to go from the production line to the warehouse and then to the store. During this time period, the price tag may have been connected to the network or it may not be connected to the network and may be searching for the network. Therefore, in order for the price tag to meet the battery life requirements, it is necessary to design a reasonable and practical network search and sleep strategy.
[0003] In existing electronic price tag systems, the two most important components are the base station and the price tag. The base station operates on fixed broadcast and data channels, regularly and continuously sending broadcast packets on the broadcast channel for the price tag to monitor. Before joining the network, the price tag scans multiple broadcast channels to find the base station with the strongest signal strength, then initiates a registration request to that base station. If the request is received and approved, the price tag establishes a connection with the base station and enters the connected state, where the base station becomes the price tag's service base station. In this connected state, the price tag only needs to listen to the service base station's broadcast channel every few seconds to see if there are any requests (such as requests for images to be pushed to it).
[0004] As you can see, a price tag has two states: offline and connected. The connected state is more power-efficient, as it only needs to listen to a channel every N seconds. However, the offline state consumes more power, as it needs to scan multiple channels and, upon finding a channel, send uplink data to initiate registration. Therefore, price tags are not allowed to search for networks too frequently. However, excessively long search cycles will affect network access efficiency. For example, a price tag may have been in a store for a long time but still be unable to connect to the network, making it impossible to conduct business.
[0005] After leaving the production line, electronic price tags may end up in a warehouse or a store, in an environment with or without a base station. However, existing technologies lack a reasonable sleep strategy. Existing network search and sleep strategies are not suitable for universal scenarios and locations. In warehouses or stores, it is difficult to achieve a compromise and balance between efficiency and power consumption. Summary of the Invention
[0006] In order to solve the above technical defects in the prior art, the present invention proposes a price tag sleep control method, which includes:
[0007] When the price tag fails to find a base station, it performs sleep and interval network search in a preset first increment cycle.
[0008] When the price tag searches for the base station, it performs sleep and intermittent network access according to a preset second increasing cycle.
[0009] If the price tag loses the network when it is in sleep and intermittent network access with the second incremental cycle, it will be in sleep and intermittent network search with the first incremental cycle, and it will be monitored whether the duration of the first incremental cycle meets the preset conditions when the price tag searches for the base station again.
[0010] If the duration meets the preset condition, the second increasing period when the network is disconnected is continued to be in sleep mode and intermittent network access; if the duration does not meet the preset condition, the second increasing period is used again to be in sleep mode and intermittent network access.
[0011] Optionally, when the price tag fails to search for a base station, performing sleep and interval network search in a preset first increment cycle includes:
[0012] A plurality of first time intervals from short to long are preset, and the number of consecutive first time intervals in each segment is preset.
[0013] The first increasing period is constituted by the continuous number of the first time intervals.
[0014] Optionally, when the price tag fails to find a base station, performing sleep and interval network search in a preset first increment cycle further includes:
[0015] A network search for a first preset time is performed at the start moment of each of the first time intervals.
[0016] Before the next first time interval, a sleep period of a remaining time after the first preset time is performed.
[0017] Optionally, when the price tag searches for the base station, performing sleep and intermittent network access in a preset second increasing period includes:
[0018] A plurality of second time intervals from short to long are preset, and the number of consecutive second time intervals in each segment is preset.
[0019] The second increasing period is constituted by the consecutive number of the second time intervals.
[0020] Optionally, when the price tag searches for the base station, performing sleep and intermittent network access in a preset second increasing period further includes:
[0021] At the start moment of each second time interval, network access for the second preset time is performed.
[0022] Before the next second time interval, the system performs sleep for a remaining time after the second preset time.
[0023] Optionally, if the price tag loses the network while performing sleep and intermittent network access in the second incrementing period, performing sleep and intermittent network search in the first incrementing period, and monitoring whether the duration of the first incrementing period meets a preset condition when the price tag searches for the base station again, includes:
[0024] In the first increasing period, the first time interval with the shortest duration is obtained.
[0025] A predetermined number of consecutive times of the first time intervals with the shortest duration are determined.
[0026] Optionally, if the price tag loses the network while performing sleep and intermittent network access in the second incrementing period, performing sleep and intermittent network search in the first incrementing period, and monitoring whether the duration of the first incrementing period meets a preset condition when the price tag searches for the base station again, further includes:
[0027] When the price tag searches for the base station again, it is determined whether the duration of the first increment period is less than the continuous time.
[0028] If the duration is less than the continuous time, it is determined that the duration of the first incremental period meets the preset condition; if the duration is greater than or equal to the continuous time, it is determined that the duration of the first incremental period does not meet the preset condition.
[0029] Optionally, if the duration satisfies the preset condition, continuing the sleep and intermittent network access in the second increasing period when the network is disconnected, and if the duration does not satisfy the preset condition, re-performing the sleep and intermittent network access in the second increasing period, including:
[0030] If the price tag is disconnected from the network when performing sleep and interval access to the network in the second increasing cycle, the current bit sequence of the second time interval when the network is disconnected is recorded.
[0031] If the duration meets the preset condition, then continue to sleep and access the network at intervals with the second increasing period according to the current bit sequence; if the duration does not meet the preset condition, then continue to sleep and access the network at intervals with the second increasing period according to the starting bit sequence of the second time interval.
[0032] The present invention also proposes a price tag sleep control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the price tag sleep control method described in any one of the above items are implemented.
[0033] The present invention further provides a computer-readable storage medium storing a price tag sleep control program. When the price tag sleep control program is executed by a processor, the steps of any of the above-mentioned price tag sleep control methods are implemented.
[0034] The price tag sleep control method, device, and computer-readable storage medium of the present invention are implemented by recognizing that when the price tag fails to search for a base station, it sleeps and searches for the network at intervals in a preset first incrementing cycle. Then, when the price tag searches for the base station, it sleeps and searches for the network at intervals in a preset second incrementing cycle. If the price tag loses the network while sleeping and searching for the network at intervals in the second incrementing cycle, it sleeps and searches for the network at intervals in the first incrementing cycle. It is also monitored whether the duration of the first incrementing cycle meets the preset conditions when the price tag searches for the base station again. If the duration meets the preset conditions, it continues to sleep and search for the network at intervals in the second incrementing cycle when the network is lost. If the duration does not meet the preset conditions, it resumes sleeping and searching for the network at intervals in the second incrementing cycle. A price tag sleep control scheme with better environmental adaptability is implemented, so that the price tag sleep mechanism can adapt to various general occasions and flows, achieving a balance between price tag configuration efficiency and price tag power consumption control. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0036] Figure 1 This is a hardware structure diagram of a mobile terminal according to the present invention;
[0037] Figure 2 This is a diagram of a communication network system architecture provided by an embodiment of the present invention;
[0038] Figure 3 This is a flow chart of the first embodiment of the price tag sleep control method of the present invention;
[0039] Figure 4This is a flow chart of a second embodiment of the price tag sleep control method of the present invention;
[0040] Figure 5 is a flow chart of a third embodiment of a price tag sleep control method according to the present invention;
[0041] Figure 6 is a flow chart of a fourth embodiment of a price tag sleep control method according to the present invention;
[0042] Figure 7 is a flow chart of a fifth embodiment of a method for controlling price tag sleepiness according to the present invention;
[0043] Figure 8 is a flow chart of a sixth embodiment of a price tag sleep control method according to the present invention;
[0044] Figure 9 is a flow chart of a seventh embodiment of a price tag sleep control method according to the present invention;
[0045] Figure 10 is a flow chart of an eighth embodiment of the price tag sleep control method of the present invention;
[0046] Figure 11-14 1 is a schematic diagram of a cycle setting method for controlling a price tag sleep state according to an embodiment of the present invention;
[0047] Figure 15 This is a flowchart of a price tag sleep control method provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0049] In the subsequent description, suffixes such as "module," "component," or "unit" used to represent elements are only used to facilitate the description of the present invention and have no specific meaning. Therefore, "module," "component," or "unit" can be used interchangeably.
[0050] The terminal can be implemented in various forms. For example, the terminal described in the present invention may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.
[0051] The following description will be made by taking a mobile terminal as an example. It will be understood by those skilled in the art that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present invention can also be applied to fixed type terminals.
[0052] See also Figure 1 , which is a schematic diagram of the hardware structure of a mobile terminal for implementing various embodiments of the present invention. The mobile terminal 100 may 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 memory 109, a processor 110, and a power supply 111. Those skilled in the art will understand that Figure 1 The structure of the mobile terminal shown in the figure does not constitute a limitation to the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0053] The following combination Figure 1 A detailed introduction to each component of the mobile terminal is given below:
[0054] The RF unit 101 can be used to send and receive information or receive signals during calls. Specifically, it receives downlink information from the base station and transmits it to the processor 110 for processing. It also transmits uplink data to the base station. Typically, the RF unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and more. Furthermore, the RF unit 101 can communicate with the network and other devices via wireless communication. The above-mentioned wireless communications may use any communication standard or protocol, including but not limited to GSM (Global System of 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) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.
[0055] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 102. It provides users with wireless broadband Internet access. Figure 1 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.
[0056] The audio output unit 103 can convert audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Furthermore, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, or the like.
[0057] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos captured by an image capture device (e.g., a camera) in video capture mode or image capture mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the GPU 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the RF unit 101 or the WiFi module 102. The microphone 1042 may receive sound (audio data) in operating modes such as a phone call mode, a recording mode, and a voice recognition mode, and may process such sound into audio data. In the phone call mode, the processed audio (voice) data may be converted into a format that can be transmitted to a mobile communication base station via the RF unit 101. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to eliminate (or suppress) noise or interference generated during the reception and transmission of audio signals.
[0058] 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 the 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 a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured in the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be described here.
[0059] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0060] The user input unit 107 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using a finger, stylus, or any other suitable object or accessory on or near the touch panel 1071) and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 110. It can also receive commands sent by the processor 110 and execute them. In addition, the touch panel 1071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may further include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, a joystick, etc., and are not specifically limited here.
[0061] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of touch event. Subsequently, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of touch event. Figure 1 In the embodiment, the touch panel 1071 and the display panel 1061 are two independent components to realize the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to realize the input and output functions of the mobile terminal, which is not limited here.
[0062] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.
[0063] Memory 109 can be used to store software programs and various data. Memory 109 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the mobile phone (such as audio data, a phone book, etc.). Furthermore, memory 109 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0064] Processor 110 is the control center of the mobile terminal, connecting all components of the mobile terminal using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 109 and accessing data stored in memory 109, it executes various functions of the mobile terminal and processes data, thereby providing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, processor 110 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 110.
[0065] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0066] although Figure 1 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.
[0067] To facilitate understanding of the embodiments of the present invention, the communication network system on which the mobile terminal of the present invention is based is described below.
[0068] See also Figure 2 , Figure 2 A communication network system architecture diagram is provided for an embodiment of the present invention. The communication network system is an LTE system of universal mobile communication technology. The LTE system includes a UE (User Equipment) 201, an Evolved UMTS Terrestrial Radio Access Network (E-UTRAN) 202, an Evolved Packet Core (EPC) 203, and an operator's IP service 204, which are sequentially connected in communication.
[0069] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.
[0070] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 via a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .
[0071] EPC 203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035, and PCRF (Policy and Charging Rules Function) 2036. MME 2031 is the control node that handles signaling between UE 201 and EPC 203, providing bearer and connection management. HSS 2032 provides registers for managing functions such as the Home Location Register (not shown) and stores user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, and it selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).
[0072] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem), or other IP services.
[0073] Although the above description is based on the LTE system as an example, those skilled in the art should know that the present invention is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems, and is not limited here.
[0074] Based on the above-mentioned mobile terminal hardware structure and communication network system, various embodiments of the method of the present invention are proposed.
[0075] Example 1
[0076] Figure 3 This is a flow chart of the first embodiment of the price tag sleep control method of the present invention. A price tag sleep control method, the method comprising:
[0077] S1. When the price tag fails to find a base station, it performs sleep and interval network search in a preset first increment cycle.
[0078] S2. When the price tag finds the base station, it goes into sleep mode and enters the network at intervals according to a preset second increasing cycle.
[0079] S3. If the price tag loses the network when it is in sleep and intermittent network access with the second incremental cycle, it is in sleep and intermittent network search with the first incremental cycle, and it is monitored whether the duration of the first incremental cycle meets the preset conditions when the price tag searches for the base station again.
[0080] S4. If the duration meets the preset condition, continue to sleep and access the network at intervals in the second increasing period when the network is disconnected; if the duration does not meet the preset condition, resume sleeping and accessing the network at intervals in the second increasing period.
[0081] Optionally, in this embodiment, when the price tag fails to find a base station, it sleeps and intermittently searches for a network at a preset first incrementing period, wherein the first incrementing period is a periodic setting whose duration increases over time. As can be seen, when the price tag fails to find a base station, in order to save power consumption during network searches, the duration of the period increases as the number of network searches increases. This reduces the frequency of network searches, thereby achieving power savings by reducing the number of network searches.
[0082] Optionally, in this embodiment, when the price tag searches for the base station, it sleeps and intermittently accesses the network at a preset second increasing period. The second increasing period is a periodic setting in which the period length increases over time. As can be seen, when the price tag fails to successfully access the searched base station, in order to save power consumption for subsequent network accesses, the period length increases as the number of network access attempts increases. This reduces the frequency of network accesses, thereby achieving power savings by reducing the number of network access attempts.
[0083] Optionally, in this embodiment, if the price tag loses the network while performing sleep and intermittent network access according to the second incrementing cycle, the price tag performs sleep and intermittent network access according to the first incrementing cycle, and monitors whether the duration of the first incrementing cycle meets the preset condition when the price tag re-discovers the base station. It should be noted that network access for the price tag consists of two steps: the first step is to scan multiple channels, and the second step is to select the optimal channel among the scanned channels and initiate registration. Therefore, when the price tag fails to access the network, there are two possibilities: one is that no channel was scanned, and the other is that a channel was scanned but the uplink network access request was not responded to. Therefore, in this embodiment, solutions for the above two steps are separately proposed for these two scenarios. However, for scenarios where both of the above two situations are mixed, such as persistent uplink unreachability and sudden loss of broadcasts, this scenario represents a mixed application of the above two situations and requires categorization based on the preset condition for broadcast loss. For example, when monitoring the price tag to re-discover the base station, it is determined whether the duration of the first incrementing cycle meets the preset condition.
[0084] Optionally, in this embodiment, if the duration meets the preset condition, the second incremental cycle when the network is disconnected continues to sleep and access the network intermittently; if the duration does not meet the preset condition, the second incremental cycle is used again to sleep and access the network intermittently. Specifically, as described in the above example, for the mixed application of the above two situations, it is necessary to determine whether the duration of the first incremental cycle meets the preset condition. If the duration meets the preset condition, the second incremental cycle when the network is disconnected continues to sleep and access the network intermittently; if the duration does not meet the preset condition, the second incremental cycle is used again to sleep and access the network intermittently. For example, the above preset condition is that after the broadcast cannot be heard, the number of times the broadcast cannot be heard is less than the preset number. Therefore, for the situation where the number of times the broadcast cannot be heard is less than the preset number, when the broadcast can be heard but the uplink is unreachable, the sleep duration is restored to the previous cycle increment; for the situation where the number of times the broadcast cannot be heard is greater than the preset number, when the broadcast can be heard, the sleep duration is incremented by the restarted cycle.
[0085] The beneficial effect of this embodiment is that, by identifying that when the price tag fails to search for a base station, it goes into sleep and interval network search with a preset first incrementing cycle, and then, when the price tag searches for the base station, it goes into sleep and interval network access with a preset second incrementing cycle. If the price tag loses the network while sleeping and interval network access with the second incrementing cycle, it goes into sleep and interval network search with the first incrementing cycle, and monitors whether the duration of the first incrementing cycle meets the preset conditions when the price tag searches for the base station again. If the duration meets the preset conditions, it continues to sleep and interval network access with the second incrementing cycle when the network was lost. If the duration does not meet the preset conditions, it goes into sleep and interval network access again with the second incrementing cycle. A price tag sleep control scheme with better environmental adaptability is realized, so that the price tag sleep mechanism can adapt to various general occasions and flows, achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0086] Example 2
[0087] Figure 4 This is a flow chart of a second embodiment of the price tag sleep control method of the present invention. Based on the above embodiment, when the price tag fails to search for a base station, it performs sleep and interval network search at a preset first increment period, including:
[0088] S11. Preset multiple first time intervals from short to long, and preset the number of consecutive first time intervals in each segment.
[0089] S12. The first increasing period is constituted by the continuous number of the first time intervals.
[0090] Optionally, in this embodiment, multiple first time intervals from short to long are preset, and the number of consecutive first time intervals in each segment is preset. Figure 11 As shown, if the channel cannot be scanned, the first time interval, for example, 10 retries are performed every 3 seconds. If the channel is still not scanned, the first time interval is extended to 10 retries every 10 minutes. If the channel is still not scanned, the sleep period is extended to 90 minutes. It can be seen that if the electronic price tag is in a warehouse environment, it will work according to this sleep strategy, which can greatly reduce the power consumption in the warehouse.
[0091] Optionally, in this embodiment, the first time range of the start of the first time interval is 2-4 seconds; the second time range is 8-12 minutes; the third time range is 25-35 minutes; and the fourth time range is 80-100 minutes.
[0092] Optionally, in this embodiment, the number of retries in the first time, the second time, the third time, and the fourth time respectively ranges from 8 to 12 times.
[0093] The beneficial effect of this embodiment is that by presetting multiple first time intervals from short to long, and presetting the number of consecutive first time intervals in each segment, and then the first incrementing period consisting of the consecutive number of first time intervals, a more environmentally adaptable price tag sleep control scheme is implemented. A method for setting the first incrementing period is provided, making the price tag sleep mechanism adaptable to various general occasions and processes, and achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0094] Example 3
[0095] Figure 5 This is a flow chart of a third embodiment of the price tag sleep control method of the present invention. Based on the above embodiment, when the price tag fails to search for a base station, it performs sleep and interval network search at a preset first increment period, and further includes:
[0096] S13: Perform a network search for a first preset time at the start time of each of the first time intervals.
[0097] S14. Before the next first time interval, perform sleep for the remaining time after the first preset time.
[0098] Optionally, in this embodiment, similarly, reference Figure 11 , wherein the short color block shows the network search operation, that is, the network search is performed within a shorter first preset time. If no network is found, the system goes into sleep mode within the remaining first time interval shown by the longer color block.
[0099] Optionally, in this embodiment, a network search is performed for a first preset time at the start of each first time interval, and a sleep is performed for a remaining time after the first preset time before the next first time interval.
[0100] Optionally, in this embodiment, another solution is to perform a network search for a first preset time at the end of each first time interval, and if the network search is unsuccessful, switch to the next first time interval and perform sleep for that time until the end of that time, and then perform the above network search again.
[0101] This embodiment has the beneficial effect of executing a network search for a first preset time at the start of each first time interval, and then executing a sleep mode for the remainder of the first preset time interval before the next first time interval. This provides a more environmentally adaptable price tag sleep control solution, provides sleep and network search settings, and enables the price tag sleep mechanism to adapt to a variety of common situations and processes, achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0102] Example 4
[0103] Figure 6 This is a flow chart of a fourth embodiment of the price tag sleep control method of the present invention. Based on the above embodiment, when the price tag searches for the base station, it goes into sleep and intermittently accesses the network in a preset second increasing period, including:
[0104] S21. Preset multiple second time intervals from short to long, and preset the number of consecutive second time intervals in each segment.
[0105] S22. The second increasing period is formed by the continuous number of the second time intervals.
[0106] Optionally, in this embodiment, multiple second time intervals from short to long are preset, and the number of consecutive second time intervals in each segment is preset. Figure 12 As shown, for the situation where the price tag can hear the broadcast but the uplink is unreachable (for example, the base station does not receive the uplink network access request, or the base station receives it but the price tag does not receive the ACK feedback signal allowing network access), at this time, the sleep control is performed according to the strategy of dense first and sparse later.
[0107] In this embodiment, the first second time interval is, for example, 5 seconds to access the network once. If the network access fails, the second time interval is extended and the network access is performed once in the next 10 seconds. Thus, the sleep time is increased by five seconds each time until the sleep time reaches 20 minutes. It can be seen that if the price tag is in the store environment, it can hear the broadcast, but due to collision or interference, the uplink is unreachable for many times, then according to Figure 12 The re-search strategy can ensure that the price tag can access the network as soon as possible. At the same time, it can ensure that if there are persistent environmental problems that prevent the price tag from accessing the network, the price tag can eventually enter a longer sleep state, thereby saving power.
[0108] Optionally, in this embodiment, the second time interval starts at a time range of 4-6 seconds; each subsequent time range increases by 4-6 seconds until the final time range reaches 19-21 minutes.
[0109] Optionally, in this embodiment, the number of retries at the first time, the second time, the third time, and the fourth time respectively ranges from 1 to 2 times.
[0110] This embodiment advantageously provides a price tag sleep control scheme with improved environmental adaptability by presetting multiple second time intervals, ranging from short to long, and presetting a continuous number of each second time interval, with the continuous number of second time intervals constituting the second incrementing period. This provides a method for setting the second incrementing period, making the price tag sleep mechanism adaptable to a variety of general situations and processes, and achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0111] Example 5
[0112] Figure 7 This is a flowchart of a fifth embodiment of the price tag sleep control method of the present invention. Based on the above embodiment, when the price tag searches for the base station, it goes into sleep and intermittently accesses the network at a preset second increasing period, and further includes:
[0113] S23: Execute network access for a second preset time at the start time of each second time interval.
[0114] S24: Before the next second time interval, perform sleep for the remaining time after the second preset time.
[0115] Optionally, in this embodiment, similarly, reference Figure 12 , wherein the short color block shows the network access operation, that is, the network access is performed within a shorter second preset time. If the network access fails, the device goes into sleep mode within the remaining second time interval shown by the longer color block.
[0116] Optionally, in this embodiment, a network search is performed for a second preset time at the start of each second time interval, and a sleep is performed for a remaining time after the second preset time before the next second time interval.
[0117] Optionally, in this embodiment, another solution is to perform a network search for a second preset time at the end of each second time interval, and if the network search is unsuccessful, switch to the next second time interval and perform sleep for that time until the end of that time, and then perform the above-mentioned network search again.
[0118] This embodiment has the beneficial effect of implementing a network connection for the second preset time at the start of each second time interval, and then executing a sleep mode for the remaining time after the second preset time before the next second time interval. This provides a more environmentally adaptable price tag sleep control solution, provides sleep and network search settings, and enables the price tag sleep mechanism to adapt to various common situations and processes, achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0119] Example 6
[0120] Figure 8 This is a flow chart of a sixth embodiment of the price tag sleep control method of the present invention. Based on the above embodiment, if the price tag loses the network while sleeping and intermittently accessing the network in the second incrementing cycle, then sleeping and intermittently searching the network in the first incrementing cycle, and monitoring whether the duration of the first incrementing cycle meets the preset condition when the price tag re-searches the base station, including:
[0121] S31. In the first increasing period, obtain the first time interval with the shortest duration.
[0122] S32: Determine a preset number of consecutive times of the first time intervals with the shortest duration.
[0123] Optionally, in this embodiment, as described in the above example, refer to Figure 11 The shortest time interval is 3 seconds, that is, 10 retries are made every 3 seconds. If the channel is still not scanned, the first time interval is extended and 10 retries are made every 10 minutes. If the channel is still not scanned, the sleep period is extended to 90 minutes.
[0124] Optionally, in this embodiment, in order to determine whether the duration of the first incrementing period meets the preset condition, the number of retries within the 3 seconds is limited. For example, when the number of retries within the 3 seconds does not exceed ten, it is considered that the duration of the first incrementing period meets the preset condition. Conversely, when the number of retries within the 3 seconds exceeds ten, it is considered that the duration of the first incrementing period does not meet the preset condition.
[0125] Optionally, in this embodiment, it can be seen from the above that when the first time interval with the shortest duration is 3 seconds, it is also possible to obtain the first time interval with the shortest duration and thereby determine the continuous time of a preset number of the first time intervals with the shortest duration, thereby using the length of the continuous time as a basis for subsequently determining whether the duration of the first incremental cycle meets the preset conditions.
[0126] This embodiment advantageously obtains the shortest first time interval during the first increment cycle and then determines a predetermined number of consecutive shortest first time intervals. This provides a more environmentally adaptable price tag sleep control scheme, provides conditions for determining the consecutive time interval, and enables the price tag sleep mechanism to adapt to various common situations and processes, achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0127] Example 7
[0128] Figure 9This is a flowchart of the seventh embodiment of the price tag sleep control method of the present invention. Based on the above embodiment, if the price tag loses the network while sleeping and intermittently accessing the network in the second incrementing cycle, then sleeping and intermittently searching the network in the first incrementing cycle, and monitoring whether the duration of the first incrementing cycle meets the preset condition when the price tag re-searches the base station, further comprising:
[0129] S33: When the price tag searches for the base station again, determine whether the duration of the first increment period is less than the continuous time.
[0130] S34. If the duration is less than the continuous time, determine that the duration of the first incremental period meets the preset condition; if the duration is greater than or equal to the continuous time, determine that the duration of the first incremental period does not meet the preset condition.
[0131] Optionally, in this embodiment, if Figure 13 As shown, for the scenario where the number of times the broadcast is not heard is less than 10, that is, when the number of failed attempts to search the network is less than 10, after recovering from not being able to hear the broadcast to being able to hear the broadcast but the uplink is unreachable (that is, the network can be searched but cannot be accessed), the sleep time will continue to increase according to the previous cycle.
[0132] Optionally, in this embodiment, as described in the above example, when the first time interval with the shortest duration is 3 seconds, it is also possible to obtain the first time interval with the shortest duration and determine the continuous time of a preset number of the first time intervals with the shortest duration, so that the length of the continuous time can be used as the basis for determining whether the duration of the first incremental cycle meets the preset conditions in this embodiment.
[0133] Optionally, in this embodiment, when the continuous time is less than 30 seconds, after recovering from not being able to hear the broadcast to being able to hear the broadcast but the uplink is unreachable (that is, the network can be searched but cannot be connected to the network), the sleep time is restored to increase according to the previous cycle.
[0134] The beneficial effect of this embodiment is that, by identifying when the price tag re-searches the base station, it is determined whether the duration of the first incremental cycle is less than the continuous time. If the duration is less than the continuous time, it is determined that the duration of the first incremental cycle meets the preset condition. If the duration is greater than or equal to the continuous time, it is determined that the duration of the first incremental cycle does not meet the preset condition. This implements a price tag sleep control scheme with better environmental adaptability, provides a method for determining the continuous time, and enables the price tag sleep mechanism to adapt to various general occasions and flows, achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0135] Example 8
[0136] Figure 10 This is a flow chart of an eighth embodiment of the price tag sleep control method of the present invention. Based on the above embodiment, if the duration meets the preset condition, then continuing the second increasing cycle when the network is disconnected and intermittently logging on to the network; if the duration does not meet the preset condition, then re-doing the second increasing cycle and intermittently logging on to the network, including:
[0137] S41: If the price tag is disconnected from the network when it is in sleep and intermittent access to the network in the second increasing cycle, record the current position sequence of the second time interval when the network is disconnected.
[0138] S42. If the duration meets the preset condition, continue to sleep and access the network at intervals with the second increasing period according to the current bit sequence; if the duration does not meet the preset condition, continue to sleep and access the network at intervals with the second increasing period according to the starting bit sequence of the second time interval.
[0139] Optionally, in this embodiment, refer to Figure 14 For scenarios where the number of times the broadcast is not heard is greater than or equal to 10, when the broadcast can be heard again, the sleep time is increased in cycles of 5 seconds / 10 seconds / 15 seconds / ...
[0140] Optionally, in this embodiment, in combination with the above example, if the duration is less than 30 seconds, then the sleep and interval access to the network will continue with the second increasing period according to the current bit sequence; if the duration exceeds 30 seconds, then the sleep and interval access to the network will be resumed with the second increasing period according to the starting bit sequence of the second time interval.
[0141] Optionally, in this embodiment, refer to Figure 15The flowchart shown is as follows. First, the network access unreachable counter C1 and the broadcast unreachable counter C2 are set. At the same time, counters C1 and C2 are initialized to 0. Then, when the price tag is assembled or powered on for the first time, all broadcast channels are scanned to determine whether the number of scanned channels is greater than 1. If so, the scanned signals are sorted and a registration request is sent to the base station with the best signal. At this time, it continues to determine whether a feedback signal allowing network access is received. If not, it is determined that network access has failed. At this time, the broadcast unreachable counter C2 is cleared and counter C1 begins counting. The count value of counter C1 is accumulated within the range of 255, and the sleep time is increased by five seconds for each accumulation. After each sleep period, a broadcast channel scan is performed again. If no channel is scanned, the count is accumulated when the count value of counter C2 is less than 10. In this case, the sleep time is fixed at 3 seconds. When the count value of counter C2 is greater than 10 and less than 13, the device enters the next sleep period, that is, each sleep period is 10 minutes. Similarly, when the count value of counter C2 is greater than 13 and less than 16, the device enters the next sleep period, that is, each sleep period is 30 minutes. In this embodiment, after each sleep period is completed, counter C1 is reset, thereby repeating the scanning operation of all broadcast channels. In this embodiment, if a feedback signal is received that network access is allowed, the network access is determined to be successful, and counters C1 and C2 are cleared in turn, completing the adaptive sleep control process before the price tag is configured.
[0142] The beneficial effect of this embodiment is that, by identifying that the price tag is disconnected from the network while in sleep and interval access at the second incremental cycle, the current bit sequence of the second time interval when the network is disconnected is recorded; if the duration meets the preset condition, the price tag continues to sleep and interval access at the second incremental cycle according to the current bit sequence; if the duration does not meet the preset condition, the price tag resumes sleep and interval access at the second incremental cycle according to the starting bit sequence of the second time interval. A price tag sleep control scheme with better environmental adaptability is implemented, providing a full-process control method, so that the price tag sleep mechanism can adapt to various general occasions and flows, achieving a balance between price tag configuration efficiency and price tag power consumption control.
[0143] Embodiment 9
[0144] Based on the above embodiments, the present invention also proposes a price tag sleep control device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the price tag sleep control method as described in any one of the above items are implemented.
[0145] It should be noted that the above-mentioned device embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the device embodiment, which will not be repeated here.
[0146] Example 10
[0147] Based on the above embodiments, the present invention further proposes a computer-readable storage medium storing a price tag sleep control program. When the price tag sleep control program is executed by a processor, the steps of any of the above price tag sleep control methods are implemented.
[0148] It should be noted that the above-mentioned medium embodiment and method embodiment belong to the same concept, and their specific implementation process is detailed in the method embodiment, and the technical features in the method embodiment are applicable to the medium embodiment, which will not be repeated here.
[0149] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0150] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0151] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0152] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are protected by the present invention.
Claims
1. A price tag sleep control method, characterized in that: The method comprises: When the price tag fails to find a base station, it performs sleep and interval network search in a preset first increment cycle; When the price tag searches for the base station, it performs sleep and interval network access in a preset second increasing cycle; If the price tag is disconnected from the network when it is in sleep and intermittent network access in the second incremental cycle, the price tag is in sleep and intermittent network access in the first incremental cycle, and it is monitored whether the duration of the first incremental cycle meets the preset condition when the price tag searches for the base station again; If the duration meets the preset condition, the second increasing cycle when the network is disconnected continues to be in sleep mode and intermittent network access; if the duration does not meet the preset condition, the second increasing cycle is used again to sleep mode and intermittent network access.
2. The price tag sleep control method according to claim 1, characterized in that: When the price tag fails to find a base station, performing sleep and interval network search in a preset first increment cycle includes: Preset a plurality of first time intervals from short to long, and preset a continuous number of each of the first time intervals; The first increasing cycle is composed of the continuous number of the first time intervals.
3. The price tag sleep control method according to claim 2, characterized in that: When the price tag fails to find a base station, performing sleep and interval network search in a preset first increment cycle also includes: Performing a network search for a first preset time at the start time of each of the first time intervals; Before the next first time interval, sleep is performed for a remaining time after the first preset time.
4. The price tag sleep control method according to claim 3, characterized in that: When the price tag searches for the base station, performing sleep and intermittent network access in a preset second increasing cycle includes: Preset a plurality of second time intervals from short to long, and preset a continuous number of each of the second time intervals; The second increasing period is constituted by the continuous number of the second time intervals.
5. The price tag sleep control method according to claim 4, characterized in that: When the price tag searches for the base station, performing sleep and intermittent network access in a preset second increasing cycle, further comprising: Execute network access for a second preset time at the start time of each of the second time intervals; Before the next second time interval, sleep is performed for a remaining time after the second preset time.
6. The price tag sleep control method according to claim 5, characterized in that: If the price tag is disconnected from the network when it is in sleep and intermittent network access in the second incremental cycle, then the price tag is in sleep and intermittent network search in the first incremental cycle, and monitoring whether the duration of the first incremental cycle meets the preset condition when the price tag searches for the base station again includes: In the first increasing cycle, obtaining the first time interval with the shortest duration; A preset number of consecutive times of the first time intervals with the shortest duration are determined.
7. The price tag sleep control method according to claim 6, characterized in that: If the price tag is disconnected from the network during the sleep and interval network access in the second incremental cycle, the price tag performs sleep and interval network search in the first incremental cycle, and monitors whether the duration of the first incremental cycle meets the preset condition when the price tag searches for the base station again, and further includes: When the price tag searches for the base station again, determining whether the duration of the first increment period is less than the continuous time; If the duration is less than the continuous time, it is determined that the duration of the first incremental cycle meets the preset condition; if the duration is greater than or equal to the continuous time, it is determined that the duration of the first incremental cycle does not meet the preset condition.
8. The price tag sleep control method according to claim 7, characterized in that: If the duration meets the preset condition, continuing the second increasing period when the network is disconnected and continuing to sleep and access the network at intervals; if the duration does not meet the preset condition, re-doing the sleep and accessing the network at intervals with the second increasing period, including: If the price tag is disconnected from the network when it is in sleep and intermittent access to the network at the second increasing cycle, then the current bit sequence of the second time interval when the network is disconnected is recorded; If the duration meets the preset condition, then the sleep and intermittent network access will continue with the second increasing period according to the current bit sequence; if the duration does not meet the preset condition, then the sleep and intermittent network access will be resumed with the second increasing period according to the starting bit sequence of the second time interval.
9. A price tag sleep control device, characterized in that: The device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the price tag dormancy control method according to any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a price tag sleep control program, and when the price tag sleep control program is executed by the processor, the steps of the price tag sleep control method according to any one of claims 1 to 8 are implemented.
