CN112531869A - Android handheld device falling power-off prevention device and method - Google Patents

Android handheld device falling power-off prevention device and method Download PDF

Info

Publication number
CN112531869A
CN112531869A CN202011415600.6A CN202011415600A CN112531869A CN 112531869 A CN112531869 A CN 112531869A CN 202011415600 A CN202011415600 A CN 202011415600A CN 112531869 A CN112531869 A CN 112531869A
Authority
CN
China
Prior art keywords
equipment
state
battery
sensor
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011415600.6A
Other languages
Chinese (zh)
Inventor
侯泽军
钱志明
赵华
刘波
曾俊
周富林
黄靖
邓敏杰
顾超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Zhilian Tiandi Technology Co ltd
Original Assignee
Jiangsu Zhilian Tiandi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Zhilian Tiandi Technology Co ltd filed Critical Jiangsu Zhilian Tiandi Technology Co ltd
Priority to CN202011415600.6A priority Critical patent/CN112531869A/en
Publication of CN112531869A publication Critical patent/CN112531869A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/36Arrangements using end-cell switching

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Telephone Function (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a falling power-off prevention device and method for Android handheld equipment, and belongs to the technical field of communication. The device comprises a sensor, a driving module, an equipment state monitoring module and an equipment state response module; the sensor is used for monitoring the current gravity acceleration data in the x direction, the y direction and the z direction; the driving module is used for reading the current state value of the sensor and calculating the current equipment state data; the equipment state monitoring module is used for judging the current state of the equipment according to the current equipment state data, and the equipment state response module is used for controlling the power supply switching of the equipment between the main battery and the standby battery; the equipment control module is used for setting a control strategy of the equipment state response module and starting the equipment state monitoring service. The power-off prevention method is realized by the device. The method solves the problems of data loss, slow restart time and the like caused by sudden power failure of a battery when the Android handheld device falls down or is collided.

Description

Android handheld device falling power-off prevention device and method
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a falling-off prevention device and method for Android handheld equipment. The method is mainly applied to falling and falling power failure protection of the logistics handheld equipment.
Background
The barcode recognition Android equipment is inevitably dropped and collided in the using process, so that important data loss and work interruption are caused due to equipment power failure, the reboot time is long due to the boot characteristic of the Android system, and the work efficiency is reduced. In order to protect the service life of a small battery in the mobile phone, the Android handheld device is normally dropped to use a main battery for power supply, and software is required to be switched to the small battery for power supply under special conditions.
Disclosure of Invention
The invention aims to provide a device and a method for preventing Android handheld equipment from falling off, and the device and the method are used for solving the problems that when the Android handheld equipment with a small standby battery and a main battery which cannot be replaced without falling off is dropped, the main battery is connected with a falling battery through a contact, the contact point of the battery is loosened instantly due to high-speed collision, the equipment is powered off instantly, important data are lost and the like.
Specifically, the Android handheld device falling power-off prevention device comprises a sensor, a driving module, a device state monitoring module and a device state responding module;
the sensor is used for monitoring the current gravity acceleration data in the x direction, the y direction and the z direction; the driving module is used for reading the current state value of the sensor and calculating the current equipment state data; the equipment state monitoring module is used for judging the current state of the equipment according to the current equipment state data, and the equipment state response module is used for controlling the power supply switching of the equipment between the main battery and the standby battery; the equipment control module is used for setting a control strategy of the equipment state response module and starting the equipment state monitoring service.
Furthermore, the sensor is a g-sensor and is used for acquiring the gravity acceleration data of the current Android handheld device falling in the x, y and z axis directions.
Further, the control strategy of the device status response module is specifically as follows: when the system enters a standby mode in a falling state, the battery power supply mode is switched to the power supply of a small battery in the equipment, and if the equipment is not in the falling state, the power supply battery state of the equipment is monitored; if the equipment is powered by a small battery, monitoring the in-place situation of a battery cover and a main battery of the equipment to judge whether the equipment needs to be switched to the main battery for power supply or continuing to stand by or storing data according to a strategy to enter a shutdown state.
Further, the device control module sets a control policy of the device state response module through the app, and starts the device state monitoring service.
On the other hand, the invention also provides a method for preventing the Android handheld device from falling off based on the device, and the method comprises the following steps:
starting the equipment state monitoring service:
starting the equipment monitoring service through the app set state, and loading the equipment state processing strategy configuration service parameters;
turning on the g-sensor:
starting a g-sensor to acquire the gravity acceleration data of the current Android handheld device in the directions of falling x, y and z axes;
and (3) calculating the equipment state:
the driving module acquires current sensor data and calculates current equipment state data according to the sensor data;
and (3) equipment state processing:
executing a corresponding strategy according to the state of the mobile phone, if the system enters a standby mode in a falling state, switching a battery power supply mode to a small battery inside the equipment for supplying power, and if the equipment is not in the falling state, monitoring the power supply battery state of the equipment; if the equipment is powered by the standby battery, the battery cover of the equipment and the main battery are monitored to judge whether the equipment needs to be switched to the main battery for power supply.
The invention has the beneficial effects that: the invention detects whether the equipment is in the state of falling or collision prediction through the gravity sensor, and the system software enters the standby mode through the system setting and switches the power supply of the standby small battery in the equipment when detecting that the equipment is in the state. And after the device is dropped and collided, the device recovers the power supply of the main battery. The problems that the device is dropped, the battery is collided, the power is suddenly cut off, the data is lost, the rebooting time is slow and the like are solved.
Drawings
Fig. 1 is a schematic diagram of a falling power-off prevention device for an Android handheld device.
FIG. 2 is a schematic diagram of a falling power-off prevention method for an Android handheld device.
Fig. 3 is a block diagram of the battery switching logic of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided with reference to the accompanying drawings:
the method is based on the fact that when an Android system with a standby small battery and a gravity acceleration sensor detects that the equipment is in a falling state, the Android equipment enters a system standby mode, a power supply mode is switched to power supply of an internal small battery, and after falling collision is completed, whether a main battery is in place or not is judged according to battery id foot detection, so that power supply of the main battery is recovered.
The invention is based on an Android system architecture and mainly comprises two main core parts:
the device state monitoring system based on the gravity acceleration sensor of the Android system and the main battery and standby battery switching system based on the Android system.
And calculating whether the equipment is in a falling state or not according to the acceleration detection principle of the sensor based on the g-sensor of the Android system.
Android g-sensor-based equipment state monitoring system
As shown in fig. 1, the Android-based g-sensor device state monitoring system comprises a g-sensor, a driving module, a device state monitoring module and a device state response module.
1.1 functional description of each system module:
the g-sensor is widely used for monitoring the gravity acceleration data in the x direction, the y direction and the z direction on mobile phones and Android intelligent handheld equipment of users. The driving module is used for reading the current state value of the sensor and calculating the current equipment state data; the equipment state monitoring module is used for judging the current state of the equipment according to the current equipment state data, and the equipment state response module is used for controlling the power supply switching of the equipment between the main battery and the standby battery; the equipment control module is used for setting the control strategy of the equipment state response module. The device status monitoring service is initiated.
1.2 the flow of the equipment state monitoring system comprises:
(1) setting and starting equipment state monitoring service;
(2) turning on a g-sensor;
(3) and calculating the state of the equipment.
(4) And (5) processing the equipment state.
Explanation of functions of each system flow:
1. initiating device status monitoring services
Starting the equipment monitoring service through the app setting state, and loading the main parameters of the equipment state processing strategy configuration service;
2. turn on g-sensor
Starting a g-sensor to acquire the gravity acceleration data of the current Android handheld device in the directions of falling x, y and z axes;
3. device state calculation
The driving module acquires current sensor data and calculates current equipment state information according to the sensor data;
4. device state handling
And executing a corresponding strategy according to the state of the mobile phone, if the system enters a standby mode in a falling state, switching the battery power supply mode to the power supply of a small battery in the equipment, and if the equipment is not in the falling state, monitoring the power supply battery state of the equipment. If the device is powered by the small battery, the battery cover of the device and the main battery are monitored to judge whether the device needs to be switched to the main battery for power supply.
1.3 device State calculation
The g-sensor reference frame is the azimuth angle pointing to the geocentric, the x-axis is the elevation angle (reversed back and forth from the rest state), and the y-axis is the flip angle (reversed left and right from the rest state). According to the principle of gravity sensor, the device falls to the basis of weightlessness, namely the resultant force in three directions is 0. The accuracy of the equipment is not high due to various factors, and the equipment can be determined to be in an out-falling state when the resultant force is less than 1.
force=Math.sqrt(X2+Y2+Z2);
The principle of the Android handheld device falling power-off prevention method is shown in fig. 2.
Device falling and collision main-standby battery switching system
Due to the fact that the Android handheld device falls in a use scene, the device is required to be internally provided with a small standby battery, and the device is powered by a main battery under normal conditions. When the equipment is in a falling state, the battery management service executes a command to instruct the equipment to enter a standby mode to reduce the power consumption of the equipment and switch the small standby battery in the equipment to supply power. And when the equipment is not in a state of falling and collision, checking the battery cover state and the connection state of the main battery of the equipment. And judging whether the equipment has the function of replying the power supply of the main battery or not and whether warning is needed or not according to the preset rule of the equipment.
The battery switching logic is shown in fig. 3. When the device detects that the device is in a falling weight loss and pre-collision state through the sensor, the device informs the device to enter a standby state through the power management module, and the power supply of the device is switched to be supplied by a small battery. When the equipment falls and collides, the power supply state of the equipment is detected, and if the equipment supplies power to the small battery, the state of the battery cover and the position of the main battery are detected in sequence. If the battery cover and the main battery are in normal state, the system switches the power supply mode to supply power to the main battery, and continues to stand by or stores data to enter a shutdown state according to a strategy.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (5)

1. The Android handheld device falling anti-drop device comprises a sensor, and is characterized by further comprising a driving module, a device state monitoring module and a device state responding module;
the sensor is used for monitoring the current gravity acceleration data in the x direction, the y direction and the z direction; the driving module is used for reading the current state value of the sensor and calculating the current equipment state data; the equipment state monitoring module is used for judging the current state of the equipment according to the current equipment state data, and the equipment state response module is used for controlling the power supply switching of the equipment between the main battery and the standby battery; the equipment control module is used for setting a control strategy of the equipment state response module and starting the equipment state monitoring service.
2. The Android handheld device fall power-off prevention device of claim 1, wherein the sensor is a g-sensor and is used for acquiring gravity acceleration data of the Android handheld device in x, y and z axis directions of the Android handheld device fall.
3. The Android handheld device fall protection device of claim 1, wherein the control strategy of the device status response module is specifically as follows: when the system enters a standby mode in a falling state, the battery power supply mode is switched to the power supply of a small battery in the equipment, and if the equipment is not in the falling state, the power supply battery state of the equipment is monitored; if the device is powered by a small battery, the battery cover of the device and the main battery are monitored to judge whether the device needs to be switched to the main battery for power supply or not, and the device continues to stand by to store data and enters a shutdown state.
4. The Android handheld device fall protection device of claim 1, wherein the device control module initiates a device status monitoring service by setting a control policy of the device status response module through the app.
5. The Android handheld device fall power-off prevention method implemented by the Android handheld device fall power-off prevention device according to any one of claims 1 to 4, wherein the method comprises the following steps:
starting the equipment state monitoring service:
starting the equipment monitoring service through the app set state, and loading the equipment state processing strategy configuration service parameters;
turning on the g-sensor:
starting a g-sensor to acquire the gravity acceleration data of the current Android handheld device in the directions of falling x, y and z axes;
and (3) calculating the equipment state:
the driving module acquires current sensor data and calculates current equipment state data according to the sensor data;
and (3) equipment state processing:
executing a corresponding strategy according to the state of the mobile phone, and if the system enters a standby mode in a falling state, switching a battery power supply mode to supply power to a small battery in the equipment; if the device is not in a falling state, the state of a power supply battery of the device is monitored, and if the device is in a standby battery power supply state, the in-place situation of a battery cover and a main battery of the device is monitored to judge whether the device needs to be switched to the main battery for power supply.
CN202011415600.6A 2020-12-03 2020-12-03 Android handheld device falling power-off prevention device and method Pending CN112531869A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011415600.6A CN112531869A (en) 2020-12-03 2020-12-03 Android handheld device falling power-off prevention device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011415600.6A CN112531869A (en) 2020-12-03 2020-12-03 Android handheld device falling power-off prevention device and method

Publications (1)

Publication Number Publication Date
CN112531869A true CN112531869A (en) 2021-03-19

Family

ID=74997158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011415600.6A Pending CN112531869A (en) 2020-12-03 2020-12-03 Android handheld device falling power-off prevention device and method

Country Status (1)

Country Link
CN (1) CN112531869A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202856834U (en) * 2012-02-27 2013-04-03 深圳市友利通电子有限公司 Mobile communication terminal having automatic dropping protection function
CN103458099A (en) * 2012-06-05 2013-12-18 国龙信息技术(上海)有限公司 Protecting method for dropping power failure of hand-held terminal
CN103973871A (en) * 2013-02-01 2014-08-06 龙旗科技(上海)有限公司 Drop and power-down protection method for handheld terminals

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202856834U (en) * 2012-02-27 2013-04-03 深圳市友利通电子有限公司 Mobile communication terminal having automatic dropping protection function
CN103458099A (en) * 2012-06-05 2013-12-18 国龙信息技术(上海)有限公司 Protecting method for dropping power failure of hand-held terminal
CN103973871A (en) * 2013-02-01 2014-08-06 龙旗科技(上海)有限公司 Drop and power-down protection method for handheld terminals

Similar Documents

Publication Publication Date Title
US8212422B2 (en) Hand-held electronic device and method for preventing fall of the same
CN102055839A (en) Handheld electronic device and drop protection method thereof
US8786131B2 (en) Uninterruptible power supply and method for enabling the same to save energy
CN101788936B (en) Snapshot backup and restoration method and device when in running of mobile terminal
EP3125075B1 (en) Method, apparatus and system for controlling intelligent wearable device
US8660739B2 (en) Monitoring the status of a vehicle
CN102833392B (en) A kind of method and system of mobile terminal autoboot
WO2009079951A1 (en) A saving power system and method for managing communication of a moving object
CN107124452A (en) A kind of mobile unit based on power saving and without network scenario reports mechanism management method
CN110621579A (en) Multi-battery power supply control method and device and unmanned aerial vehicle
CN101976112A (en) Energy-consumption protection method for mobile phone with MeeGo operation system
CN113608930B (en) System chip and electronic device
US9967825B2 (en) Environmentally aware mobile computing devices
CN112531869A (en) Android handheld device falling power-off prevention device and method
US8975786B2 (en) Portable electronic equipment and method of controlling the same
CN102756691A (en) Reversing rearview system and reversing rearview method with fast response
KR20070016385A (en) Dark current control system and method thereof
CN110381196B (en) Control method for falling protection of mobile device and mobile device
CN114838476A (en) Method and device for protecting dehumidification equipment, dehumidification equipment and storage medium
CN103516873A (en) Signal processing method and electronic device
CN110277096B (en) Method and device for controlling voice function between terminals
CN102164208A (en) Data storing method and mobile terminal
CN216623444U (en) Induction type automatic alarm device applied to electric bicycle
CN211163953U (en) Scram control device and robot
CN109445566B (en) OTG (on-the-go) power-saving processing method and system, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210319

RJ01 Rejection of invention patent application after publication