Positioning card power saving method, device, positioning card and storage medium

The vibration state of the positioning card is detected by the gyroscope, and the state switching between wake-up, sleep and shutdown is achieved, which solves the problem of short battery life of the positioning card, extends the battery life cycle and improves the battery life.

CN117858210BActive Publication Date: 2024-12-17DONGTU TECH (YICHANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311681088.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-12-17
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

The battery life of the positioning card is mainly due to the continuous power consumption of the battery when not in use, which may lead to overdischarge and battery damage.

Method used

The vibration state of the positioning card is detected by the gyroscope, and it is controlled to enter the wake-up, sleep or shutdown state. The voltage is detected during wake-up. If it is lower than the threshold, it will shut down to avoid unnecessary power consumption.

Benefits of technology

It effectively reduces the power consumption of the positioning card when not in use, extends the battery life cycle, prevents excessive discharge and damage, and improves battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117858210B_ABST
    Figure CN117858210B_ABST
Patent Text Reader

Abstract

The present application relates to a positioning card power saving method, device, positioning card and storage medium, the method comprising: when the positioning card is vibrated by a gyroscope, controlling the positioning card to enter a wake-up state; when the positioning card is not vibrated within a preset time by the gyroscope, controlling the positioning card to switch from the wake-up state to a sleep state; when the positioning card is in the sleep state or the wake-up state, if it is detected that the voltage of the positioning card is less than a preset voltage threshold, controlling the positioning card to enter a shutdown state. The present application can improve the life of the battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning, and in particular to a positioning card power saving method, device, positioning card and storage medium. Background Art

[0002] A positioning card is a smart card used to record and transmit positioning information. It is usually integrated into positioning devices, such as positioning watches, locators, etc. It can also be used as an independent smart card.

[0003] Due to the self-discharge of the battery itself and the working energy consumption of the battery management system, the battery power of the positioning card is constantly consumed even if the positioning card is not in working state. If the power consumption is not controlled, as the battery power continues to decrease, it may eventually lead to extreme situations such as battery over-discharge and battery imbalance, which may directly damage the battery and affect the service life of the battery pack. Summary of the invention

[0004] The present application provides a positioning card power saving method, device, positioning card and storage medium to solve the problem of short battery life of the positioning card.

[0005] In a first aspect, the present application provides a positioning card power saving method, the method comprising: when a gyroscope detects that the positioning card is vibrating, controlling the positioning card to enter a wake-up state; when the gyroscope detects that the positioning card has not vibrated within a preset time, controlling the positioning card to switch from the wake-up state to a sleep state; when the positioning card is in the sleep state or the wake-up state, if it is detected that the voltage of the positioning card is less than a preset voltage threshold, controlling the positioning card to enter a shutdown state.

[0006] Optionally, after controlling the positioning card to switch from the wake-up state to the sleep state, the method also includes: after the sleep state of the positioning card reaches a set sleep time, controlling the positioning card to enter the wake-up state through an automatic wake-up timer; controlling the positioning card to report a notification message to the host computer, so that the host computer determines that the positioning card is in an intermittent wake-up state in sleep; detecting the vibration state of the positioning card through the gyroscope; if it is detected that the positioning card has not vibrated within the preset time, controlling the positioning card to enter the sleep state again from the wake-up state.

[0007] Optionally, after controlling the positioning card to enter the wake-up state through the automatic wake-up timer, the method also includes: determining the current remaining power of the positioning card; when it is determined that the current remaining power is less than the target power threshold, reporting the current remaining power and a charging reminder message to the host computer.

[0008] Optionally, after controlling the positioning card to enter the shutdown state, the method further includes: if it is detected that the voltage of the positioning card is greater than or equal to the preset voltage threshold, controlling the positioning card to switch from the shutdown state to the awake state.

[0009] Optionally, before detecting that the voltage of the positioning card is less than a preset voltage threshold, the method further includes: obtaining a voltage history record of the positioning card from normal operation to operation failure; selecting a maximum voltage within n hours before operation failure from the voltage history record as the preset voltage threshold, wherein n is a positive integer.

[0010] Optionally, when the gyroscope detects that the positioning card has not vibrated within a preset time, controlling the positioning card to switch from the wake-up state to the sleep state includes: when the gyroscope detects that the positioning card has not vibrated within a preset time, determining whether the positioning card has been registered or roaming has occurred; if it is determined that the positioning card is not registered and roaming has not occurred, controlling the positioning card to directly switch from the wake-up state to the sleep state; if it is determined that the positioning card has been registered or roaming has occurred, controlling the positioning card to switch from the wake-up state to the sleep state after being set.

[0011] Optionally, after controlling the positioning card to enter the awake state, the method further includes: acquiring a request mode and a request interval of a base station broadcast data request; and sending corresponding positioning data to the base station according to the request mode and the request interval.

[0012] In the second aspect, the present application provides a positioning card power saving device, which includes: a first control module, which is used to control the positioning card to enter a wake-up state when a gyroscope detects that the positioning card is vibrating; a second control module, which is used to control the positioning card to switch from the wake-up state to the sleep state when the gyroscope detects that the positioning card has not vibrated within a preset time period; a third control module, which is used to control the positioning card to enter a shutdown state when it is detected that the voltage of the positioning card is less than a preset voltage threshold when the positioning card is in the sleep state or the wake-up state.

[0013] In a third aspect, the present application provides a positioning card, comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus.

[0014] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the positioning card power saving method described in any one of the above items of the present application.

[0015] The above technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: the positioning card is provided with three states: wake-up, sleep, and shutdown. When the positioning card vibrates, it is in the wake-up state, and the positioning card is used normally; when the positioning card does not vibrate for a long time, it is in the sleep state, reducing the additional loss caused by frequent communication of the system when the positioning card is not in use, and improving the battery life after charging; when the positioning card voltage is less than the preset voltage threshold, it enters the shutdown state, and all the hardware of the positioning card is unavailable, preventing the positioning card from over-discharging and causing damage to the battery or reducing the battery life. The present application increases the battery life after charging and reduces battery loss by setting the three states of wake-up, sleep, and shutdown. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0019] Figure 1 A flow chart of a method for saving power of a positioning card provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of the positioning card workflow provided in an embodiment of the present application;

[0021] Figure 3 A schematic diagram of the working state switching of the positioning card provided in the embodiment of the present application;

[0022] Figure 4 A schematic diagram of the structure of a positioning card power saving device provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of the structure of a positioning card provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0025] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0026] The present application provides a positioning card power saving method, which is applied to the positioning card, such as Figure 1 As shown, the method includes:

[0027] Step 101: When the gyroscope detects that the positioning card is vibrating, the positioning card is controlled to enter a wake-up state.

[0028] A gyroscope is a device that detects the angular motion of a high-speed rotating body by using the angular moment of the sensitive shell relative to the inertial space around one or two axes orthogonal to the axis of rotation. Angular motion detection devices made using other principles and having the same function are also called gyroscopes.

[0029] When the positioning device is worn, the positioning card will vibrate as the human body shakes while walking, so the gyroscope can be used to detect whether the positioning card is vibrating. If the gyroscope detects that the positioning card is vibrating continuously or slightly shaking, it means that the person is moving, and the positioning card needs to play the positioning function at this time, so the positioning card is controlled to enter the awakening state, where the awakening state indicates that the positioning card needs to work normally, and all hardware in the positioning device, such as buttons, LEDs, Bluetooth functions, Lora (Long Range Radio, long-range radio) functions, buzzers, etc., can be used normally.

[0030] Step 102: When the gyroscope detects that the positioning card has not vibrated within a preset time period, the positioning card is controlled to switch from the awake state to the sleep state.

[0031] The gyroscope continuously detects whether the positioning card is vibrating, and can also detect it once at a certain interval. Interval detection can reduce power consumption. If the gyroscope detects that the positioning card has not vibrated within a preset time, for example, the positioning card is in a static state within 5 minutes, indicating that the person does not need to use the positioning card, the positioning card is controlled to switch from the awake state to the sleep state. In the sleep state, all hardware functions in the positioning device are turned off, that is, the Lora function, Bluetooth function, and LED function enter sleep mode, but are available at any time. The positioning card entering the sleep state can reduce power waste and reduce the additional loss caused by frequent system communications when the positioning card is not in use.

[0032] Step 103: When the positioning card is in a dormant state or an awakened state, if it is detected that the voltage of the positioning card is less than a preset voltage threshold, the positioning card is controlled to enter a shutdown state.

[0033] The positioning card detects its own voltage in real time, or detects the voltage at regular intervals. Detecting at regular intervals can effectively reduce power consumption.

[0034] When the voltage is detected to be lower than the preset voltage threshold, it indicates that the battery power is too low. In this case, no matter the positioning card is in sleep or wake-up state, it will be forced to enter shutdown state. At this time, all hardware such as buttons, LEDs, Bluetooth function, Lora function and buzzer are unavailable.

[0035] For example, the voltage detection is performed every 20 seconds whether in the awake state or the sleep state. When the voltage is less than 3.3V, it indicates that the battery of the positioning card is too low, and the positioning card enters the shutdown mode to prevent the positioning card from being over-discharged and causing damage or reducing the battery life.

[0036] After the positioning card is turned off, if the user charges the positioning card, the positioning card detects that the voltage is greater than or equal to the preset voltage threshold, then it switches from the shutdown state to the wake-up state, starts various hardware and starts working.

[0037] In this application, the positioning card is provided with three states: wake-up, sleep, and shutdown. When the positioning card vibrates, it is in the wake-up state, and the positioning card is used normally; when the positioning card does not vibrate for a long time, it is in the sleep state, reducing the additional loss caused by frequent communication of the system when the positioning card is not in use, and improving the battery life after charging; when the positioning card voltage is less than the preset voltage threshold, it enters the shutdown state, and all the hardware of the positioning card is unavailable, preventing the positioning card from over-discharging and damaging the battery or reducing the battery life. This application improves the battery life after charging and reduces battery loss by setting the three states of wake-up, sleep, and shutdown.

[0038] As an optional implementation, after controlling the positioning card to switch from a wake-up state to a sleep state, the method also includes: after the positioning card's sleep state reaches a set sleep time, controlling the positioning card to enter a wake-up state through an automatic wake-up timer; controlling the positioning card to report a notification message to a host computer, so that the host computer determines that the positioning card is in an intermittent wake-up state in sleep; detecting the vibration state of the positioning card through a gyroscope; if it is detected that the positioning card has not vibrated within a preset time, controlling the positioning card to enter a sleep state again from the wake-up state.

[0039] When the positioning card is in sleep mode, it will provide an automatic wake-up function. The purpose of the wake-up is to let the system host computer, such as the gateway or platform, know whether the positioning card is currently in sleep mode. After wake-up, the positioning card is in wake-up mode. If there is still no vibration for a long time in the wake-up mode, it will enter sleep mode again. In other words, the positioning card will wake up after a period of time in a long-term sleep mode, and then send a message to the host computer to let the host computer know the current state of the positioning card, and then enter sleep mode again.

[0040] Specifically, after the positioning card reaches the set sleep time, for example, after the positioning card reaches 12 hours of sleep, the automatic wake-up timer is started, and the automatic wake-up timer wakes up the positioning card, and the positioning card enters the wake-up state. Then the positioning card reports a notification message to the host computer so that the host computer can determine that the positioning card is in an intermittent wake-up state in sleep. The gyroscope detects the vibration state of the positioning card in real time. If it is detected that the positioning card has not vibrated within a preset time, for example, within 5 minutes, the positioning card is controlled to enter the sleep state again from the wake-up state.

[0041] This application can wake up the positioning card during its long-term dormancy and send a notification message to the host computer, so that the host computer can determine whether the positioning card is in a dormant state, giving the user a good experience.

[0042] As an optional implementation, the positioning card not only reports notification messages to the host computer, but also detects the current power reserve of the positioning card. When it is determined that the current power reserve is less than the target power threshold, it reports the current power reserve and charging reminder message to the host computer to remind the user to charge in time. In this way, even if the user does not use the positioning card for a long time, the positioning card can remind the user to charge in time to avoid excessive discharge of the positioning card, which may damage the battery or reduce the battery life.

[0043] As an optional implementation, before detecting that the voltage of the positioning card is less than a preset voltage threshold, the method also includes: obtaining a voltage history record of the positioning card from normal operation to operation failure; selecting the maximum voltage within n hours before the operation failure from the voltage history record as the preset voltage threshold, where n is a positive integer.

[0044] During the power consumption of the positioning card, the positioning card gradually goes from normal operation to operation failure, and all functions are unavailable. During this process, the positioning card records the voltage throughout the process to obtain the voltage history record. The locator can use the maximum voltage within n hours before the operation failure as the preset voltage threshold, for example, the maximum voltage within 5 hours before the operation failure as the preset voltage threshold.

[0045] By determining the maximum voltage before the operation fails, it can be determined that the positioning card is about to run out of power, so it is turned off at this time to avoid further power consumption and excessive discharge of the battery.

[0046] As an optional implementation, when the gyroscope detects that the positioning card has not vibrated within a preset time, controlling the positioning card to switch from the wake-up state to the sleep state includes: when the gyroscope detects that the positioning card has not vibrated within a preset time, determining whether the positioning card has been registered or roaming has occurred; if it is determined that the positioning card is not registered and no roaming has occurred, controlling the positioning card to switch directly from the wake-up state to the sleep state; if it is determined that the positioning card has been registered or roaming has occurred, sending a sleep notification to the gateway and controlling the positioning card to be set, and then switching from the wake-up state to the sleep state.

[0047] When the gyroscope detects that the positioning card has not vibrated within a preset time, it determines whether the positioning card has been registered or roaming; if it is determined that the positioning card is not registered and has not roamed, the positioning card is controlled to switch directly from the awake state to the sleep state; if it is determined that the positioning card has been registered or roaming has occurred, a sleep notification is sent to the gateway to enable the gateway to record the sleep time of the positioning card, and then the positioning card is controlled to be set, the registration information is automatically canceled, and it is restored to the unregistered state, and switched from the awake state to the sleep state. When the positioning card is awakened next time, it can be re-registered.

[0048] Figure 2 The positioning card workflow diagram provided for this application includes the following process steps.

[0049] 1. The positioning card is in wake-up state.

[0050] 2. The positioning card is tested once every 5 minutes. If it is still for 5 consecutive minutes, it means that no one is using the positioning card. At this time, the positioning card will automatically enter the sleep state.

[0051] 3. In the dormant state, it will automatically wake up once every 12 hours. The purpose of automatic wake-up is to let the system host computer (such as gateway, platform) know whether the current positioning card is in dormant state, know the battery power, and remind charging on time.

[0052] 4. After automatic awakening, it will enter the awake state. If the positioning card is still not vibrating in this state, it will continue to enter the sleep state for 12 hours after 5 minutes.

[0053] 5. If the positioning card is used in the sleep state, the gyroscope detects the vibration of the card and immediately switches to the wake-up state and starts working.

[0054] 6. When the positioning card is in use while in wake-up state, if the gyroscope sensor detects that the positioning card is vibrating, it will keep updating the detection time and re-time for 5 minutes. This polling can prevent the positioning card from entering a dormant state while in use.

[0055] 7. Shutdown function: the card has a battery voltage detection function. When the battery voltage is detected to be less than a certain value, such as less than 3.3V, it will enter shutdown mode. The voltage detection is performed every 20 seconds regardless of whether it is in wake-up state or sleep state to prevent excessive discharge damage or reduce battery life.

[0056] Figure 3 A schematic diagram of the positioning card working state switching provided for this application. This application performs sleep-related actions when the positioning card is in sleep state, such as shutting down hardware functions, etc., and performs wake-up related actions when it is in wake-up state, such as performing normal positioning operations, etc. The wake-up state, sleep state and shutdown state can be switched.

[0057] In addition, in the prior art, the battery management system wake-up methods are mostly manual wake-up or timer wake-up, specifically: communication wake-up, watchdog timer wake-up, etc. Although these methods reduce the power consumption of idle conditions to a certain extent, manual wake-up cannot automatically judge the battery status, which may cause the battery to self-discharge and over-discharge after being idle for a long time and cause damage; the watchdog timer wake-up cycle is short, which will cause the system to wake up repeatedly and increase power consumption in disguise.

[0058] The present application uses a gyroscope to automatically determine whether the battery is in the awake state or the sleep state, and can also automatically enter the shutdown state when the battery voltage is too low. The shutdown state and the sleep state can reduce battery power consumption. The shutdown state can also prevent battery damage caused by excessive discharge of the battery.

[0059] As an optional manner, after controlling the positioning card to enter the awake state, the method further includes: obtaining a request mode and a request interval of a base station broadcast data request; and sending corresponding positioning data to the base station according to the request mode and the request interval.

[0060] The base station broadcasts a data request, which contains a request mode and a request interval. For example, the request mode is divided into mode 1-high precision and mode 2-high load. The request interval is divided into five interval time periods: 1s, 2s, 3s, 4s and 5s. The request interval is set according to different scenarios.

[0061] When the request mode is high-precision, the positioning card caches the corresponding N seconds of data according to the request interval N seconds and sends it next time. When the positioning card receives the request mode as high-load mode, it only caches one set of data and sends it next time.

[0062] When in the conference area or morning meeting area, a nearby base station with coverage uses the high-load mode. In the high-load mode, the base station can choose to send for 1-5s, corresponding to a load capacity of 1s-40 cards, 2s-80 cards, 3s-120 cards, 4s-160 cards, and 5s-200 cards, respectively, to prevent too many people in the current area from being unable to stably upload positioning data to the corresponding nearest base station.

[0063] When in office areas, prohibited areas, or areas with the nearest coverage using high-precision mode, or areas with evenly distributed people or very few people moving around, or areas with high requirements for positioning data, you can use high-precision mode. The base station can choose to send every 1-5 seconds. No matter how many seconds it takes to send, the load should only be 40 photos, because this can leave enough time for the base station channel to ensure successful transmission of the Lora channel, thereby improving stability and communication quality.

[0064] Based on the same technical concept, the present application provides a positioning card power saving device, such as Figure 4 As shown, the device comprises:

[0065] The first control module 401 is used to control the positioning card to enter a wake-up state when the positioning card is detected to be vibrating by the gyroscope;

[0066] The second control module 402 is used to control the positioning card to switch from the awake state to the sleep state when the positioning card detects through the gyroscope that there is no vibration within a preset time period;

[0067] The third control module 403 is used to control the positioning card to enter a shutdown state if it is detected that the voltage of the positioning card is less than a preset voltage threshold when the positioning card is in a dormant state or an awakened state.

[0068] Optionally, the device is also used for:

[0069] After the positioning card reaches the set sleep time, the positioning card is controlled to enter the wake-up state through the automatic wake-up timer;

[0070] Control the positioning card to report notification messages to the host computer, so that the host computer can determine that the positioning card is in an intermittent wake-up state during sleep;

[0071] Detect the vibration state of the positioning card through the gyroscope;

[0072] If it is detected that the positioning card does not vibrate within a preset time, the positioning card is controlled to enter the sleep state again from the wake-up state.

[0073] Optionally, the device is also used for:

[0074] Determine the current remaining power of the positioning card;

[0075] When it is determined that the current remaining power is less than the target power threshold, the current remaining power and a charging reminder message are reported to the host computer.

[0076] Optionally, the device is also used for:

[0077] If it is detected that the voltage of the positioning card is greater than or equal to the preset voltage threshold, the positioning card is controlled to switch from the shutdown state to the awake state.

[0078] Optionally, the device is also used for:

[0079] Get the voltage history of the positioning card from normal operation to failure;

[0080] The maximum voltage within n hours before the operation failure is selected from the voltage history records as the preset voltage threshold, where n is a positive integer.

[0081] Optionally, the second control module 402 is configured to:

[0082] When the gyroscope detects that the positioning card has not vibrated within a preset time, it is determined whether the positioning card has been registered or roaming;

[0083] If it is determined that the positioning card is not registered and no roaming occurs, the positioning card is controlled to directly switch from the awake state to the sleep state;

[0084] If it is determined that the positioning card has been registered or roaming has occurred, a sleep notification is sent to the gateway and the positioning card is controlled to be set, and then the state is switched from the awake state to the sleep state.

[0085] Optionally, the device is also used for:

[0086] Obtain the request mode and request interval of the base station broadcast data request;

[0087] According to the request mode and request interval, the corresponding positioning data is sent to the base station.

[0088] like Figure 5 As shown, an embodiment of the present application provides a positioning card, including a processor 501 , a communication interface 502 , a memory 503 and a communication bus 504 , wherein the processor 501 , the communication interface 502 , and the memory 503 communicate with each other via the communication bus 504 .

[0089] The memory 503 is used to store computer programs.

[0090] In one embodiment of the present application, the processor 501 is used to implement the positioning card power saving method provided by any of the above method embodiments when executing the program stored in the memory 503. When the gyroscope detects that the positioning card is vibrating, the positioning card is controlled to enter the wake-up state;

[0091] When the gyroscope detects that the positioning card has not vibrated within a preset time, the positioning card is controlled to switch from the awake state to the sleep state;

[0092] When the positioning card is in a dormant state or a wake-up state, if it is detected that the voltage of the positioning card is less than a preset voltage threshold, the positioning card is controlled to enter a shutdown state.

[0093] Optionally, after controlling the positioning card to switch from the awake state to the sleep state, the method further includes:

[0094] After the positioning card reaches the set sleep time, the positioning card is controlled to enter the wake-up state through the automatic wake-up timer;

[0095] Control the positioning card to report notification messages to the host computer, so that the host computer can determine that the positioning card is in an intermittent wake-up state during sleep;

[0096] Detect the vibration state of the positioning card through the gyroscope;

[0097] If it is detected that the positioning card does not vibrate within a preset time, the positioning card is controlled to enter the sleep state again from the wake-up state.

[0098] Optionally, after the positioning card is controlled to enter the wake-up state by the automatic wake-up timer, the method further includes:

[0099] Determine the current remaining power of the positioning card;

[0100] When it is determined that the current remaining power is less than the target power threshold, the current remaining power and a charging reminder message are reported to the host computer.

[0101] Optionally, after controlling the positioning card to enter a shutdown state, the method further includes:

[0102] If it is detected that the voltage of the positioning card is greater than or equal to the preset voltage threshold, the positioning card is controlled to switch from the shutdown state to the awake state.

[0103] Optionally, before detecting that the voltage of the positioning card is less than a preset voltage threshold, the method further includes:

[0104] Get the voltage history of the positioning card from normal operation to failure;

[0105] The maximum voltage within n hours before the operation failure is selected from the voltage history records as the preset voltage threshold, where n is a positive integer.

[0106] Optionally, when the gyroscope detects that the positioning card does not vibrate within a preset time, controlling the positioning card to switch from the awake state to the sleep state includes:

[0107] When the gyroscope detects that the positioning card has not vibrated within a preset time, it is determined whether the positioning card has been registered or roaming;

[0108] If it is determined that the positioning card is not registered and no roaming occurs, the positioning card is controlled to directly switch from the awake state to the sleep state;

[0109] If it is determined that the positioning card has been registered or roaming has occurred, a sleep notification is sent to the gateway and the positioning card is controlled to be set, and then the state is switched from the awake state to the sleep state.

[0110] Optionally, after controlling the positioning card to enter the awake state, the method further includes:

[0111] Obtain the request mode and request interval of the base station broadcast data request;

[0112] According to the request mode and request interval, the corresponding positioning data is sent to the base station.

[0113] The embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the positioning card power saving method provided in any of the above method embodiments are implemented.

[0114] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0116] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0117] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A positioning card power saving method, characterized in that: The method comprises: When the gyroscope detects vibration of the positioning card, the positioning card is controlled to enter a wake-up state, wherein the vibration of the positioning card indicates that the positioning device shakes as the human body walks when the positioning card is worn; When the gyroscope detects that the positioning card has not vibrated within a preset time period, controlling the positioning card to switch from the awake state to the sleep state; When the positioning card is in the dormant state or the awakened state, if it is detected that the voltage of the positioning card is less than a preset voltage threshold, the positioning card is controlled to enter a shutdown state; After controlling the positioning card to switch from the awake state to the sleep state, the method further includes: After the positioning card is in sleep mode for a set duration, the positioning card is controlled to enter a wake-up state through an automatic wake-up timer; Control the positioning card to report a notification message to the host computer, so that the host computer determines that the positioning card is in an intermittent awakening state in sleep; Detecting the vibration state of the positioning card by the gyroscope; If it is detected that the positioning card does not vibrate within the preset time period, controlling the positioning card to enter the dormant state again from the awake state; Wherein, when the gyroscope detects that the positioning card does not vibrate within a preset time, controlling the positioning card to switch from the awake state to the sleep state includes: When the gyroscope detects that the positioning card has not vibrated within a preset time, determining whether the positioning card has been registered or roaming; If it is determined that the positioning card is not registered and no roaming occurs, controlling the positioning card to directly switch from the awake state to the sleep state; If it is determined that the positioning card has been registered or roaming has occurred, then after the positioning card is set, the awake state is switched to the sleep state; After controlling the positioning card to enter the awake state, the method further includes: Obtain the request mode and request interval of the base station broadcast data request; When the request mode is high-precision type, the corresponding N seconds of data are cached according to the request interval N seconds for the next transmission, wherein the high-precision type is suitable for areas where the positioning data requires greater than the set accuracy, and the N-second transmission capacity is 40 cards; When the request mode is a high-load mode, only one set of data is cached for the next transmission, wherein the high-load mode is applicable to areas where the number of personnel is greater than the set number, and the load capacity of the set of data is one of the following five: 1s-40 cards, 2s-80 cards, 3s-120 cards, 4s-160 cards, 5s-200 cards.

2. The method according to claim 1, characterized in that: After controlling the positioning card to enter the wake-up state through the automatic wake-up timer, the method further includes: Determining the current remaining power of the positioning card; When it is determined that the current remaining power is less than the target power threshold, the current remaining power and a charging reminder message are reported to the host computer.

3. The method according to claim 1, characterized in that After controlling the positioning card to enter a shutdown state, the method further includes: If it is detected that the voltage of the positioning card is greater than or equal to the preset voltage threshold, the positioning card is controlled to switch from the shutdown state to the awake state.

4. The method according to claim 1, characterized in that: Before detecting that the voltage of the positioning card is less than a preset voltage threshold, the method further includes: Obtain voltage history records of the positioning card from normal operation to operation failure; The maximum voltage within n hours before the operation failure is selected from the voltage history records as the preset voltage threshold, wherein n is a positive integer.

5. A positioning card power saving device, characterized in that: The device comprises: A first control module is used to control the positioning card to enter a wake-up state when the positioning card is detected to vibrate by a gyroscope, wherein the vibration of the positioning card indicates that the positioning device shakes as the human body walks when the positioning card is worn; A second control module is used to control the positioning card to switch from the awake state to the sleep state when the gyroscope detects that the positioning card has not vibrated within a preset time period; A third control module is used to control the positioning card to enter a shutdown state when it is detected that the voltage of the positioning card is less than a preset voltage threshold when the positioning card is in the sleep state or the awake state; Wherein, the device is also used for: After the positioning card is in sleep mode for a set duration, the positioning card is controlled to enter a wake-up state through an automatic wake-up timer; Controlling the positioning card to report a notification message to the host computer, so that the host computer determines that the positioning card is in an intermittent awakening state in sleep; Detecting the vibration state of the positioning card by the gyroscope; If it is detected that the positioning card does not vibrate within the preset time period, controlling the positioning card to enter the dormant state again from the awake state; Wherein, the second control module is used for: When the gyroscope detects that the positioning card has not vibrated within a preset time, determining whether the positioning card has been registered or roaming; If it is determined that the positioning card is not registered and no roaming occurs, controlling the positioning card to directly switch from the awake state to the sleep state; If it is determined that the positioning card has been registered or roaming has occurred, then after the positioning card is set, the awake state is switched to the sleep state; Wherein, the device is also used for: Obtain the request mode and request interval of the base station broadcast data request; When the request mode is high-precision type, the corresponding N seconds of data are cached according to the request interval N seconds for the next transmission, wherein the high-precision type is suitable for areas where the positioning data requires greater than the set accuracy, and the N-second transmission capacity is 40 cards; When the request mode is a high-load mode, only one set of data is cached for the next transmission, wherein the high-load mode is applicable to areas where the number of personnel is greater than the set number, and the load capacity of the set of data is one of the following five: 1s-40 cards, 2s-80 cards, 3s-120 cards, 4s-160 cards, 5s-200 cards.

6. A positioning card, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-4 when executing a program stored in a memory.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.