CN103852769B - Positioning tracking device with electricity saving function and electricity saving method of positioning tracking device with powerful electricity-saving function - Google Patents
Positioning tracking device with electricity saving function and electricity saving method of positioning tracking device with powerful electricity-saving function Download PDFInfo
- Publication number
- CN103852769B CN103852769B CN201310753242.3A CN201310753242A CN103852769B CN 103852769 B CN103852769 B CN 103852769B CN 201310753242 A CN201310753242 A CN 201310753242A CN 103852769 B CN103852769 B CN 103852769B
- Authority
- CN
- China
- Prior art keywords
- control module
- module
- mode
- power
- slave control
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/34—Power consumption
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
本发明公开了一种具有节电功能的定位跟踪装置及其节电方法。该定位跟踪装置采用频率不同的双控制模块进行工作,控制模块不需要连续不断地接入和检测数据。只有传感器模块或者电池出现异常时,从控模块才会进入正常模式,当位置数据发送至主控模块后,又会进入睡眠模式。而主控模块被从控模块唤醒,将位置数据发送后,又会进入睡眠模式。本发明最大程度地增加控制模块在睡眠模式下的工作时间,使得整个定位跟踪装置的总能耗最小化,同时也延长了电池的寿命。
The invention discloses a positioning tracking device with power saving function and a power saving method thereof. The positioning and tracking device uses dual control modules with different frequencies to work, and the control modules do not need to continuously access and detect data. Only when the sensor module or the battery is abnormal, the slave control module will enter the normal mode, and when the position data is sent to the master control module, it will enter the sleep mode again. The main control module is awakened by the slave control module, and after sending the position data, it will enter the sleep mode again. The invention maximizes the working time of the control module in the sleep mode, minimizes the total energy consumption of the entire location tracking device, and also prolongs the battery life.
Description
技术领域technical field
本发明涉及一种定位跟踪装置,尤其涉及一种具有节电功能的定位跟踪装置,同时还涉及用于该定位跟踪装置的节电方法。The invention relates to a positioning tracking device, in particular to a positioning tracking device with power saving function, and also relates to a power saving method for the positioning tracking device.
背景技术Background technique
设备跟踪器一般用于集装箱或者火车车皮的监控以及跟踪。常规的电池驱动的设备跟踪器,在没有任何发射信号的情况下,最长可以做到待机时间十几天。而当设备跟踪器处于工作状态时,外围工作模块和传感器的不断耗电难以保证设备跟踪器长时间的工作。尤其对于一些长久存放于港口或者仓库的集装箱(火车车皮)而言,现有的设备跟踪器无法实现对集装箱(火车车皮)的长时间跟踪和监控。Equipment trackers are generally used for monitoring and tracking of containers or train wagons. Conventional battery-driven device trackers can last up to ten days in standby without any transmission signal. However, when the device tracker is in the working state, the continuous power consumption of the peripheral working modules and sensors is difficult to ensure the long-term work of the device tracker. Especially for some containers (train wagons) stored in ports or warehouses for a long time, existing equipment trackers cannot track and monitor the containers (train wagons) for a long time.
现有的设备跟踪器采用无操作系统的单片机开发,通常只使用一个主控芯片,外围接一些工作模块和传感器。而主控芯片工作频率的选择,需满足外围工作模块和传感器的最高工作频率。因此主控芯片每次工作的时候都必须以最高频率运行,而且当传感器不停地有状况发生的时候,就会导致主芯片以最高频率不停的运行,使得耗电急剧上升。对于长久放置的集装箱(火车车皮),设备跟踪器是无法长时间工作的。因此如何对设备跟踪器进行设计,减少电池电量的损耗,实现对集装箱的长时间,甚至超长时间的跟踪、监控以及防盗,是一个亟待解决的问题。Existing device trackers are developed using a single-chip microcomputer without an operating system, usually only using a main control chip, and some working modules and sensors are connected to the periphery. The selection of the operating frequency of the main control chip needs to meet the highest operating frequency of the peripheral working modules and sensors. Therefore, the main control chip must run at the highest frequency every time it works, and when the sensor keeps on happening, it will cause the main chip to run at the highest frequency continuously, causing the power consumption to rise sharply. For long-term storage containers (train wagons), the device tracker cannot work for a long time. Therefore, how to design the device tracker, reduce the loss of battery power, and realize the tracking, monitoring and anti-theft of the container for a long time, or even a long time, is an urgent problem to be solved.
在公告号为CN 202838075 U的中国实用新型中,公开了一种微功耗的定位跟踪装置,包括GPRS通信模块、电源电路和CPU,CPU与GPRS通信模块之间线路连接,GPRS通信模块和CPU由电源电路供电,GPRS通信模块连接有降低静态电流的外部电路,GPRS通信模块通过CPU调整、控制动态发射的时间,减少动态大电流的持续时间,GPRS通信模块通过CPU调节、控制静态的工作状态,使之与GPRS通信模块动态状态相互配合,降低静态电流。该实用新型中采用降低的GPRS通信模块的静态耗电和动态耗电,可以达到微功耗的水平。In the Chinese utility model whose notification number is CN 202838075 U, a positioning and tracking device with low power consumption is disclosed, including a GPRS communication module, a power supply circuit and a CPU, the line connection between the CPU and the GPRS communication module, the GPRS communication module and the CPU Powered by the power circuit, the GPRS communication module is connected with an external circuit that reduces the static current. The GPRS communication module adjusts and controls the dynamic transmission time through the CPU to reduce the duration of the dynamic high current. The GPRS communication module adjusts and controls the static working state through the CPU. , so that it cooperates with the dynamic state of the GPRS communication module to reduce the static current. The utility model adopts the reduced static power consumption and dynamic power consumption of the GPRS communication module, which can reach the level of micro power consumption.
发明内容Contents of the invention
针对现有技术的不足,本发明所要解决的首要技术问题在于提供一种具有节电功能的定位跟踪装置。In view of the deficiencies in the prior art, the primary technical problem to be solved by the present invention is to provide a location tracking device with power saving function.
本发明所要解决的另一个技术问题在于提供一种用于该定位跟踪装置的节电方法。利用该方法可以显著降低定位跟踪装置的功耗。Another technical problem to be solved by the present invention is to provide a power saving method for the location tracking device. The method can significantly reduce the power consumption of the location tracking device.
为实现上述的发明目的,本发明采用下述的技术方案:For realizing above-mentioned purpose of the invention, the present invention adopts following technical scheme:
一种具有节电功能的定位跟踪装置,包括主控模块、从控模块、电池、通信模块、GPS定位模块以及至少一个传感模块;A positioning and tracking device with power saving function, comprising a main control module, a slave control module, a battery, a communication module, a GPS positioning module and at least one sensing module;
所述从控模块与所述GPS定位模块、所述传感模块以及所述电池分别连接;所述主控模块与所述通信模块、所述从控模块以及所述电池分别连接。The slave control module is connected to the GPS positioning module, the sensing module and the battery respectively; the master control module is connected to the communication module, the slave control module and the battery respectively.
其中较优地,所述主控模块的工作频率大于所述从控模块的工作频率。Wherein preferably, the working frequency of the master control module is higher than the working frequency of the slave control module.
其中较优地,所述从控模块采用中断方式或轮询方式唤醒所述主控模块。Preferably, the slave control module wakes up the master control module in an interrupt mode or in a polling mode.
其中较优地,所述GPS定位模块采用上电的工作方式,由所述从控模块控制上电;或者所述通信模块采用上电的工作方式,由所述主控模块控制上电。Preferably, the GPS positioning module adopts a power-on working mode, and the slave control module controls power-on; or the communication module adopts a power-on working mode, and the main control module controls power-on.
其中较优地,所述传感模块处于低功耗工作模式或断电模式,并在预定条件下以中断或者定时的方式唤醒所述从控模块。Preferably, the sensing module is in a low power consumption mode or a power-off mode, and wakes up the slave module in an interrupt or timing manner under predetermined conditions.
其中较优地,所述定位跟踪装置包括处于低功耗工作模式的所述传感模块,以及至少一个处于断电模式的所述传感模块。Preferably, the location tracking device includes the sensing module in a low power consumption mode, and at least one of the sensing modules in a power-off mode.
本发明还提供一种用于上述定位跟踪装置的节电方法,包括如下的步骤:The present invention also provides a power-saving method for the above positioning and tracking device, comprising the following steps:
步骤1:定位跟踪装置初始化,配置工作参数;Step 1: Initialize the location tracking device and configure the working parameters;
步骤2:主控模块和从控模块进入睡眠模式,通信模块和GPS定位模块进入断电模式,传感模块进入低功耗工作模式或断电模式;Step 2: The main control module and the slave control module enter sleep mode, the communication module and GPS positioning module enter power-off mode, and the sensing module enters low-power working mode or power-off mode;
步骤3:所述传感模块在预定条件下唤醒所述从控模块,所述从控模块被唤醒后,判断是否需要唤醒主控模块,在判断为需要唤醒主控模块时,所述从控模块唤醒所述主控模块并使所述GPS定位模块进入工作模式,然后读取所述GPS定位模块的位置信息,并发送至所述主控模块后,最后返回睡眠模式并使所述GPS定位模块进入断电模式,进入步骤4;在判断为不需要唤醒主控模块时,返回步骤2;Step 3: The sensing module wakes up the slave control module under predetermined conditions, and after the slave control module is woken up, judges whether it is necessary to wake up the master control module, and when it is judged that the master control module needs to be woken up, the slave controller The module wakes up the main control module and makes the GPS positioning module enter the working mode, then reads the position information of the GPS positioning module, and sends it to the main control module, and finally returns to the sleep mode and makes the GPS positioning The module enters the power-off mode and enters step 4; when it is judged that the main control module does not need to be woken up, return to step 2;
步骤4:所述主控模块在被唤醒后,使所述通信模块进入工作模式,并将来自所述GPS定位模块的所述位置信息通过所述通信模块发送出去,然后返回睡眠模式并使所述通信模块断电,返回步骤2。Step 4: After the main control module is awakened, the communication module enters the working mode, and the position information from the GPS positioning module is sent out through the communication module, and then returns to the sleep mode and enables the If the communication module is powered off, return to step 2.
其中较优地,在步骤3中,所述传感模块在低功耗工作模式下,检测到异常时以中断方式唤醒所述从控模块;或者,Preferably, in step 3, the sensing module wakes up the slave control module in an interrupt mode when an abnormality is detected in the low power consumption mode; or,
所述传感模块在断电模式下,定时唤醒所述从控模块。The sensing module regularly wakes up the slave control module in the power-off mode.
其中较优地,在步骤3中,当所述传感模块检测到的结果达到预设的预警值的时候,所述从控模块判断为需要唤醒主控模块;否则判断为不需要唤醒主控模块。Wherein preferably, in step 3, when the result detected by the sensing module reaches the preset early warning value, the slave control module judges that the master control module needs to be woken up; otherwise, it judges that the master control module does not need to be woken up module.
其中较优地,所述传感模块监测到电池的电量较低时,所述从控模块可以增加所述传感模块的定时监测的时间间隔。Wherein preferably, when the sensing module detects that the power of the battery is low, the slave control module can increase the time interval of the timing monitoring of the sensing module.
本发明采用频率高的主控模块和频率低的从控模块,主控模块只负责数据发送,这样可以保证频率较高的主控模块更多的时间处于睡眠状态,减少了电能的损耗。在此基础上,将外围设备按工作频率分配到两个控制模块进行控制,并使控制模块长时间处于睡眠模式。通过传感模块的外部中断或者内部的计时器唤醒控制模块。与单个控制模块的跟踪器相比,本发明能够最大程度地增加控制模块在睡眠模式下的工作时间,实现定位跟踪装置总能耗的最小化,延长电池的寿命。另外,本发明中先唤醒的是低频工作的从控模块,经过从控模块的简单逻辑判断后,达到预定条件才唤醒主控模块,使主控模块比从控模块更长时间处于睡眠模式,进一步提升了节电效果。The present invention adopts a high-frequency master control module and a low-frequency slave control module, and the master control module is only responsible for data transmission, which can ensure that the higher-frequency master control module spends more time in a sleep state and reduces power consumption. On this basis, the peripheral equipment is assigned to two control modules for control according to the working frequency, and the control modules are kept in sleep mode for a long time. Wake up the control module through the external interrupt of the sensing module or the internal timer. Compared with the tracker with a single control module, the present invention can increase the working time of the control module in the sleep mode to the greatest extent, realize the minimization of the total energy consumption of the positioning tracking device, and prolong the battery life. In addition, in the present invention, the slave control module that works at low frequency is woken up first. After the simple logic judgment of the slave control module, the master control module is awakened when the predetermined condition is reached, so that the master control module is in sleep mode for a longer time than the slave control module. Further enhance the power saving effect.
附图说明Description of drawings
图1为本发明所提供的定位跟踪装置的第一实施例示意图;FIG. 1 is a schematic diagram of a first embodiment of a location tracking device provided by the present invention;
图2为本发明所提供的定位跟踪装置的第二实施例示意图;Fig. 2 is a schematic diagram of the second embodiment of the location tracking device provided by the present invention;
图3为本发明所提供的定位跟踪装置的工作流程图。Fig. 3 is a working flow chart of the location tracking device provided by the present invention.
具体实施方式detailed description
下面结合附图和具体实施例对本发明做进一步的详细说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
参见图1和图2,本发明所提供的定位跟踪装置包括主控模块、从控模块、电池、通信模块、GPS定位模块以及一个或多个传感模块。从控模块连接有GPS定位模块、传感模块以及电池;主控模块连接有通信模块、从控模块以及电池。图1中的传感模块是低功耗工作模式的传感器,可以长时间低功耗地工作,下文以加速度传感器为例进行说明。图2中的第二实施例比图1中的第一实施例增加了处于断电模式的传感模块。这类传感模块通过定时启动或者从控模块对其上电的方式开始工作。下文以温湿度传感模块为例进行说明。Referring to Fig. 1 and Fig. 2, the location tracking device provided by the present invention includes a master control module, a slave control module, a battery, a communication module, a GPS positioning module and one or more sensor modules. The slave control module is connected with a GPS positioning module, a sensing module and a battery; the master control module is connected with a communication module, a slave control module and a battery. The sensing module in Figure 1 is a sensor in a low-power working mode, which can work for a long time with low power consumption. The following uses an acceleration sensor as an example to illustrate. Compared with the first embodiment in FIG. 1 , the second embodiment in FIG. 2 adds a sensing module in a power-off mode. This type of sensing module starts to work by timing startup or by powering on the slave control module. The following takes the temperature and humidity sensor module as an example to illustrate.
本发明所提供的定位跟踪装置包括两个控制模块、电池和GPRS通信模块、GPS定位模块、传感器模块等外围设备。其中两个控制模块中一个为主控模块,另一个为从控模块;主控模块分别与GPRS通信模块、从控模块以及电池相连接,用于进行监测数据的发送;从控模块分别与GPS定位模块、温湿度传感模块、加速度传感模块以及电池相连接,用于温湿度、加速度、电池和位置数据的监测与采集。The positioning tracking device provided by the present invention includes two control modules, a battery, a GPRS communication module, a GPS positioning module, a sensor module and other peripheral equipment. One of the two control modules is the main control module, and the other is the slave control module; the master control module is connected with the GPRS communication module, the slave control module and the battery for sending monitoring data; the slave control module is connected with the GPS The positioning module, temperature and humidity sensing module, acceleration sensing module and battery are connected to monitor and collect temperature and humidity, acceleration, battery and position data.
主控模块和从控模块为不同工作频率的处理器。从控模块选择频率相对较低的处理器。相对于高频的处理器,监测数据处理的过程采用频率低的处理器是较为省电的。工作频率高的处理器作为主控模块,只负责监测数据的发送。在本发明中,控制模块优选采用PIC系列单片机,主控模块和从控模块的工作频率分别为32MHz和8MHz。主控模块和从控模块之间进行数据交互时,可以采用中断的方式或者轮询方式互相唤醒。本发明中优选中断方式,其相对于轮询的唤醒方式,省电的效果更好,但是根据业务需要,选用轮询方式也是可以很好地实现节电目的。当然控制模块的唤醒需要有确认机制:确认对方可以接收数据的时候才可以进行发送,否则容易丢失数据。The master control module and the slave control module are processors with different operating frequencies. The slave control module selects a processor with a relatively low frequency. Compared with high-frequency processors, it is more power-saving to use low-frequency processors in the process of monitoring data processing. The processor with high operating frequency is used as the main control module, and is only responsible for the transmission of monitoring data. In the present invention, the control module preferably adopts PIC series single-chip microcomputer, and the operating frequencies of the main control module and the slave control module are 32MHz and 8MHz respectively. When performing data interaction between the master control module and the slave control module, they can wake up each other by means of interrupt or polling. In the present invention, the interruption mode is preferred, and compared with the polling wake-up mode, the power saving effect is better, but according to the business needs, the polling mode can also be used to achieve the purpose of power saving. Of course, the wake-up of the control module needs a confirmation mechanism: it can only send data when it is confirmed that the other party can receive data, otherwise it is easy to lose data.
对于控制模块外围设备的选择,需要将工作频率相同或者相近的交由同一个控制模块管理。在本发明中,从控模块控制工作频率相对较低的GPS定位模块、温湿度传感模块和加速度传感模块。而主控模块则控制工作频率较大的GPRS通信模块。一般情况下,控制模块进入睡眠模式时间越长省电的效果越明显。本发明中当从控模块在传感器检测数据或者电池的数据异常时需要进行数据发送时,从控模块才进入工作模式。数据发送完毕后,主控模块又会进入睡眠模式。对频率高的主控模块而言,只负责数据发送,这样可以保证频率较高的主控模块更多的时间处于睡眠状态,减少了电能的损耗。For the selection of peripheral equipment of the control module, it is necessary to assign the same or similar operating frequency to the same control module for management. In the present invention, the slave control module controls the GPS positioning module, the temperature and humidity sensing module and the acceleration sensing module with relatively low working frequency. The main control module controls the GPRS communication module with a higher working frequency. Generally, the longer the control module enters the sleep mode, the more obvious the power saving effect is. In the present invention, when the slave control module needs to send data when the data detected by the sensor or the data of the battery is abnormal, the slave control module enters the working mode. After the data is sent, the main control module will enter the sleep mode again. For the main control module with high frequency, it is only responsible for data transmission, which can ensure that the main control module with high frequency is in sleep state for more time, reducing the loss of electric energy.
下面结合图3介绍本定位跟踪装置的工作流程及其节电方法的具体实施步骤。The following describes the working process of the location tracking device and the specific implementation steps of the power saving method with reference to FIG. 3 .
步骤1:定位跟踪装置初始化,配置工作参数。首先需要对定位跟踪装置进行初始化。待主控模块和从控模块上电后,开始进行初始化。初始化过程中需要设定主控模块和从控模块的工作参数,并将相应的参数同步到配置的相应外围设备中。设置的工作参数包括电池、温湿度和加速度传感器等相关参数。例如电池电压变化的预警值、温湿度的预警值以及加速度的预警值等等。当检测到参数超过预警值,从控模块会进行相应的处理。通过设定工作参数,将预警值设置高,可以使得大部分情况下从控模块工作,而不需要唤醒主控模块。但是,预警值设置应根据业务需要调整,保证在工作参数出现变化时能及时唤醒主控模块。因此,预警值的设定需要在保证业务需要的前提下,尽量让主控模块更多的时间处于休眠的状态,减少电能损耗。Step 1: Initialize the location tracking device and configure the working parameters. First, the location tracking device needs to be initialized. After the main control module and the slave control module are powered on, initialization begins. In the initialization process, it is necessary to set the working parameters of the master control module and the slave control module, and synchronize the corresponding parameters to the corresponding peripheral devices configured. The set working parameters include related parameters such as battery, temperature and humidity, and acceleration sensors. For example, the warning value of battery voltage change, the warning value of temperature and humidity, and the warning value of acceleration, etc. When it is detected that the parameter exceeds the warning value, the slave control module will perform corresponding processing. By setting the working parameters and setting the warning value high, the slave control module can work in most cases without waking up the master control module. However, the setting of the warning value should be adjusted according to the business needs to ensure that the main control module can be woken up in time when the working parameters change. Therefore, the setting of the warning value needs to make the main control module stay in a dormant state for more time as much as possible on the premise of ensuring business needs, so as to reduce power consumption.
步骤2:主控模块和从控模块进入睡眠模式,通信模块和GPS定位模块进入断电模式,传感模块进入低功耗工作模式或断电模式。Step 2: The main control module and the slave control module enter sleep mode, the communication module and GPS positioning module enter power-off mode, and the sensing module enters low-power working mode or power-off mode.
步骤3:传感模块在预定条件下唤醒从控模块,从控模块被唤醒后,判断是否需要唤醒主控模块,在判断为需要唤醒主控模块时,从控模块唤醒主控模块并使GPS定位模块进入工作模式,然后读取GPS定位模块的位置信息,并发送至主控模块后,最后返回睡眠模式并使GPS定位模块进入断电模式,进入步骤4;在判断为不需要唤醒主控模块时,返回步骤2;Step 3: The sensing module wakes up the slave control module under predetermined conditions. After the slave control module is woken up, it judges whether it is necessary to wake up the master control module. When it is judged that it is necessary to wake up the master control module, the slave control module wakes up the master control module and enables The positioning module enters the working mode, then reads the position information of the GPS positioning module, and sends it to the main control module, and finally returns to the sleep mode and makes the GPS positioning module enter the power-off mode, and enters step 4; when it is judged that it is not necessary to wake up the main control module, return to step 2;
步骤4:主控模块在被唤醒后,使通信模块进入工作模式,并将来自GPS定位模块的位置信息通过通信模块发送出去,然后返回睡眠模式并使通信模块断电,返回步骤2。Step 4: After the main control module is awakened, the communication module enters the working mode, and the position information from the GPS positioning module is sent out through the communication module, then returns to the sleep mode and powers off the communication module, and returns to step 2.
具体而言,初始化工作完成后,主控模块和从控模块将GPS定位模块、GPRS通信模块和温湿度传感模块断电。而加速度传感模块进入低功率模式,同时主控模块和从控模块进入睡眠模式。Specifically, after the initialization work is completed, the main control module and the slave control module power off the GPS positioning module, the GPRS communication module and the temperature and humidity sensing module. The acceleration sensing module enters a low power mode, and the main control module and the slave control module enter a sleep mode at the same time.
加速度传感模块具有低频率以及正常两种工作模式。通常情况下,加速度传感模块处于低功率模式进行数据的采集,这样可以减少耗电量。当监测加速度数据与所配置的工作参数相比异常时,加速度传感模块由低功率模式迅速切换至正常模式,并以外部中断的形式唤醒处于睡眠模式的从控模块。从控模块读取加速度的数据并与初始过程中配置的工作参数对比分析。如果加速度值在正常的预警范围内,则加速度传感模块切换至低功耗模式,从控模块进入睡眠模式。如果加速度值超过预警值,加速度传感模块切换至低功耗状态后,从控模块需要给GPS定位模块上电。本发明中GPS定位模块采用上电的工作方式,只有从控模块控制上电才能工作,其他的时间均处于断电状态,减少了电池的消耗。GPS定位模块获取定位跟踪装置当前位置数据并发送至从控模块。从控模块接收当前位置数据后,将GPS定位模块断电,同时以中断的形式唤醒主控模块。主控模块唤醒后,从控模块将位置数据发送后,又会进入睡眠模式。The acceleration sensing module has two working modes: low frequency and normal. Normally, the acceleration sensor module is in a low power mode for data collection, which can reduce power consumption. When the monitored acceleration data is abnormal compared with the configured working parameters, the acceleration sensing module switches from the low power mode to the normal mode quickly, and wakes up the slave module in sleep mode in the form of an external interrupt. The slave control module reads the acceleration data and compares and analyzes it with the working parameters configured in the initial process. If the acceleration value is within the normal warning range, the acceleration sensing module switches to a low power consumption mode, and the slave control module enters a sleep mode. If the acceleration value exceeds the warning value, after the acceleration sensing module switches to a low power consumption state, the slave control module needs to power on the GPS positioning module. In the present invention, the GPS positioning module adopts the power-on working mode, and can work only when the slave control module controls power-on, and is in a power-off state at other times, which reduces battery consumption. The GPS positioning module obtains the current position data of the positioning tracking device and sends it to the slave control module. After receiving the current position data, the slave control module powers off the GPS positioning module and wakes up the master control module in the form of an interrupt. After the main control module wakes up, the slave control module will enter the sleep mode after sending the position data.
对于温湿度传感模块的数据采集,从控模块采用轮询的方式进行工作。使用内部时钟定时读取温湿度数据,在不读取数据的时候,进入睡眠模式。计时器以内部中断的方式进行处理,定时监测是否到达设定的读数周期,到达后唤醒从控模块。从控模块读取温湿度数据并根据设定的温湿度预警值进行分析,判断是否需要唤醒主控模块。如果不需要唤醒,主控模块继续处于睡眠模式。如果需要唤醒,从控模块给GPS定位模块上电。GPS定位模块获取定位跟踪装置当前位置数据并发送至从控模块。从控模块接收数据后,GPS定位模块断电,同时以中断的形式唤醒主控模块。For the data acquisition of the temperature and humidity sensing module, the slave control module works in a polling manner. Use the internal clock to read temperature and humidity data regularly, and enter sleep mode when not reading data. The timer is processed in the form of an internal interrupt, regularly monitors whether the set reading period is reached, and wakes up the slave control module when it arrives. The temperature and humidity data is read from the slave control module and analyzed according to the set temperature and humidity early warning value to determine whether it is necessary to wake up the master control module. If there is no need to wake up, the main control module continues to be in sleep mode. If it needs to wake up, the slave control module powers up the GPS positioning module. The GPS positioning module obtains the current position data of the positioning tracking device and sends it to the slave control module. After the slave control module receives the data, the GPS positioning module is powered off, and at the same time wakes up the master control module in the form of an interrupt.
从控模块被唤醒后,还需要对电池的电压和电量进行定时检测。监测的过程与温湿度传感模块的过程类似,这里不再进行赘述。需要说明的是,当从控模块监测到电池的电量较低时,会增加温湿度传感模块的定时监测的时间间隔。这样可以保证装置在较低电压下,能够减少电量消耗,从而更长时间监控整个跟踪装置的状况。After the slave control module is woken up, it is necessary to regularly detect the voltage and power of the battery. The process of monitoring is similar to that of the temperature and humidity sensing module, and will not be repeated here. It should be noted that, when the slave control module detects that the power of the battery is low, the time interval for regular monitoring of the temperature and humidity sensing module will be increased. In this way, the device can be operated at a lower voltage to reduce power consumption, thereby monitoring the status of the entire tracking device for a longer period of time.
主控模块被唤醒后,接收从控模块发送的位置信息后,同时给GPRS通信模块上电。GPRS通信模块与GPS定位模块的工作方式相同,采用上电的工作方式。只有主控模块被唤醒后给GPRS通信模块上电,GPRS通信模块才能开始工作。GPRS通信模块将位置数据通过无线网络传送至远程的设备跟踪监控中心。待GPRS通信模块将数据发送完成后,主控模块将其断电,同时自己进入睡眠模式。After the main control module is woken up, after receiving the position information sent by the slave control module, power on the GPRS communication module at the same time. The GPRS communication module works in the same way as the GPS positioning module, and adopts the working method of power-on. Only when the main control module is woken up and the GPRS communication module is powered on, can the GPRS communication module start to work. The GPRS communication module transmits the location data to the remote equipment tracking and monitoring center through the wireless network. After the GPRS communication module finishes sending the data, the main control module will power it off and enter the sleep mode by itself.
由于各个模块的工作状况不同,电池的耗电量也是不同。根据电池的耗电情况分为以下几种情况:两个控制模块都处于工作状态,且外设也处于工作状态,电池的耗电电流会超过100mA甚至更高;只有两个控制模块工作且外设不工作时,耗电电流会超过40mA;只有一个8M的从控模块工作时,耗电电流只有大概10mA;两个控制模块都进入睡眠模式时,耗电电流不超过1mA。因此为了避免两个控制模块同时工作,需要在8M的从控模块中进行严格的逻辑运算,保证32M的主控模块较长时间的处于睡眠模式,从而达到更佳的省电效果。Due to the different working conditions of each module, the power consumption of the battery is also different. According to the power consumption of the battery, it can be divided into the following situations: when both control modules are working and the peripherals are also working, the power consumption of the battery will exceed 100mA or even higher; only two control modules are working and the peripherals are also working. When the device is not working, the power consumption current will exceed 40mA; when only one 8M slave control module is working, the power consumption current is only about 10mA; when both control modules enter sleep mode, the power consumption current will not exceed 1mA. Therefore, in order to avoid two control modules working at the same time, it is necessary to perform strict logic operations in the 8M slave control module to ensure that the 32M master control module is in sleep mode for a long time, so as to achieve a better power saving effect.
在本发明中,控制模块进入睡眠模式以后,在睡眠模式的时间越长省电的效果越明显。控制模块配置的相应外设则进入低功耗或者休眠或者断电模式。在睡眠模式下,内部时钟或者外部中断可以将从控模块唤醒。被中断唤醒后的从控模块,仅需进行简单快速的逻辑判断,如果不需要工作,马上回到睡眠模式。如果需要工作,待位置信息处理完后,继续进入睡眠模式。而主控模块则待位置信息发送完成后,进入睡眠模式。因此,本发明可以使定位跟踪装置具有节电的功能,保证了长时间的监控工作。In the present invention, after the control module enters the sleep mode, the longer the time in the sleep mode, the more obvious the effect of power saving. The corresponding peripherals configured by the control module enter a low power consumption or dormancy or power-off mode. In sleep mode, the internal clock or external interrupt can wake up the slave module. After being awakened by the interrupt, the slave control module only needs to make a simple and fast logical judgment, and if it does not need to work, it will return to the sleep mode immediately. If you need to work, continue to enter the sleep mode after the location information is processed. The main control module enters the sleep mode after the location information is sent. Therefore, the present invention can enable the location tracking device to have the function of saving electricity and ensure long-time monitoring work.
综上,本发明所提供的定位跟踪装置采用双控制模块,并按工作频率的高低将外设配置到控制模块。主控模块控制频率较高的外设,并尽量保证在不需要主控模块工作的情况下,处于空闲或者休眠模式。而从控模块只有传感器类的模块或者电池的数据异常时,才会被唤醒进行数据发送。其他时间处于空闲或者休眠模式。与单个控制模块的定位跟踪装置相比,本发明采用的双控制模块,不需要连续不断地接入和检测数据;根据工作频率为控制模块分配外设,避免了控制模块以最高频率不断运行的状态。本发明通过设定外设的工作方式使得控制模块尽量处于睡眠模式下的时间加长,显著降低了定位跟踪装置的总能耗,从而大大延长了该装置的有效工作时间。To sum up, the location tracking device provided by the present invention adopts dual control modules, and peripherals are configured to the control modules according to the level of the operating frequency. The main control module controls peripherals with high frequency, and tries to ensure that it is in idle or sleep mode when the main control module does not need to work. The slave control module will be awakened to send data only when the data of the sensor module or the battery is abnormal. The rest of the time it is in idle or sleep mode. Compared with the positioning and tracking device of a single control module, the dual control module used in the present invention does not need to continuously access and detect data; assign peripherals to the control module according to the operating frequency, avoiding the need for the control module to continuously run at the highest frequency. state. The invention prolongs the time that the control module stays in the sleep mode as long as possible by setting the working mode of the peripheral device, thereby significantly reducing the total energy consumption of the positioning and tracking device, thereby greatly prolonging the effective working time of the device.
上面对本发明所提供的具有节电功能的定位跟踪装置及其节电方法进行了详细的说明。对本领域的一般技术人员而言,在不背离本发明实质精神的前提下对它所做的任何显而易见的改动,都将构成对本发明专利权的侵犯,将承担相应的法律责任。The location tracking device with power saving function and the power saving method provided by the present invention have been described in detail above. For those skilled in the art, any obvious changes made to it without departing from the essential spirit of the present invention will constitute an infringement of the patent right of the present invention and will bear corresponding legal responsibilities.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310753242.3A CN103852769B (en) | 2013-12-31 | 2013-12-31 | Positioning tracking device with electricity saving function and electricity saving method of positioning tracking device with powerful electricity-saving function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310753242.3A CN103852769B (en) | 2013-12-31 | 2013-12-31 | Positioning tracking device with electricity saving function and electricity saving method of positioning tracking device with powerful electricity-saving function |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103852769A CN103852769A (en) | 2014-06-11 |
CN103852769B true CN103852769B (en) | 2017-02-15 |
Family
ID=50860650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310753242.3A Active CN103852769B (en) | 2013-12-31 | 2013-12-31 | Positioning tracking device with electricity saving function and electricity saving method of positioning tracking device with powerful electricity-saving function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103852769B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104698478A (en) * | 2015-02-10 | 2015-06-10 | 柳州市金旭节能科技有限公司 | Self running positioning terminal |
CN107547305A (en) * | 2017-07-19 | 2018-01-05 | 上海因士环保科技有限公司 | A kind of network communicating system and method |
CN108282748A (en) * | 2018-03-13 | 2018-07-13 | 深圳市世纪本原科技股份有限公司 | A kind of positioning and tracing method and tracker based on LORA wireless communication techniques |
CN108508791A (en) * | 2018-03-15 | 2018-09-07 | 深圳前海智联逗号科技有限公司 | Low-power-consumptiocontrol control method based on NB-IoT Multidimensional Awareness equipment |
CN108924757A (en) * | 2018-08-09 | 2018-11-30 | 厦门硅田系统工程有限公司 | A kind of small-scale fishing vessel maintenance device and consumption control method |
CN109413583B (en) * | 2018-11-28 | 2023-03-17 | 浙江大华技术股份有限公司 | Distance measurement control method and device |
CN111540147B (en) * | 2020-02-20 | 2022-04-26 | 四川御智微科技有限公司 | Intelligent monitoring device applied to tree anti-theft monitoring |
CN112229442B (en) * | 2020-09-10 | 2023-06-09 | 青岛海尔科技有限公司 | Method and device for data monitoring and sensing system |
CN113490070B (en) * | 2021-05-28 | 2024-07-12 | 北京时域智控技术有限公司 | Railway wagon ticket inserting gateway and operation method thereof |
CN114002988A (en) * | 2021-12-07 | 2022-02-01 | 国网河北省电力有限公司电力科学研究院 | Transmission line edge thing allies oneself with agent device |
CN114543792B (en) * | 2022-01-17 | 2024-12-06 | 北京智汇空间科技有限公司 | Object state detection system and method |
CN115402234B (en) * | 2022-08-19 | 2025-03-18 | 杭州鹏成新能源科技有限公司 | A method for identifying the operating state of an electric forklift in an artificially awakened state |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201259540Y (en) * | 2008-09-02 | 2009-06-17 | 青岛海信移动通信技术股份有限公司 | Low power consumption positioning terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006119062A (en) * | 2004-10-25 | 2006-05-11 | Seiko Epson Corp | Mobile terminal and positioning system |
US8031067B2 (en) * | 2005-03-09 | 2011-10-04 | Stephen Jay Greenberg | Tracking system and portable virtual fence |
CN101470182B (en) * | 2007-12-24 | 2013-07-03 | 卡特彼勒公司 | System and method for electricity-saving management of mobile entity communication |
CN101634698A (en) * | 2008-07-23 | 2010-01-27 | 中国国际海运集装箱(集团)股份有限公司 | Container and positioning tracker for container |
EP2224407B1 (en) * | 2009-02-25 | 2011-08-31 | C.R.F. Società Consortile per Azioni | Container tracking system |
CN102929226B (en) * | 2012-10-16 | 2016-04-06 | 丽水市海威光控科技有限公司 | Vcehicular tunnel long distance control system |
-
2013
- 2013-12-31 CN CN201310753242.3A patent/CN103852769B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201259540Y (en) * | 2008-09-02 | 2009-06-17 | 青岛海信移动通信技术股份有限公司 | Low power consumption positioning terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103852769A (en) | 2014-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103852769B (en) | Positioning tracking device with electricity saving function and electricity saving method of positioning tracking device with powerful electricity-saving function | |
CN113489596B (en) | Sleep control method, T-BOX and computer-readable storage medium | |
CN101662370B (en) | Dormancy/wakening method for server and server with dormancy/wakening function | |
CN102833831A (en) | Network card device, routing device, system and method for realizing dynamic dormancy and wakeup | |
EP3623776A2 (en) | Dynamic power consumption management and wake-up method and application system therefor | |
WO2021233219A1 (en) | Automatic wake-up and diagnosis method for battery management system, battery management system, and vehicle | |
CN202523081U (en) | RFID system, night patrol system, night patrol machine and label device | |
CN108819884A (en) | A kind of car networking terminal supplying power control method | |
CN105225316B (en) | A kind of dormancy of electron key low-power consumption power supply plan and awakening method | |
CN103339582B (en) | To the modularization gating of microprocessor low-power mode | |
EP3274787B1 (en) | Technologies for managing power of an embedded controller during a low-power state | |
CN102621912A (en) | Automatic power-saving method of micro controller unit | |
CN103002494A (en) | Device and method for energy-saving control of household long term evolution (LET) router | |
CN104333891A (en) | Low-power WiFi communication chip based on passive awakening and method thereof | |
CN112616178A (en) | Energy consumption management method and device, electronic equipment and storage medium | |
US9612652B2 (en) | Controlling power consumption by power management link | |
CN108508791A (en) | Low-power-consumptiocontrol control method based on NB-IoT Multidimensional Awareness equipment | |
CN204066009U (en) | A kind of system of fingerprints reducing power consumption and complicacy | |
CN106463986A (en) | Methods and apparatus for electronic device power | |
TW201502761A (en) | Computer and waking method thereof | |
CN111857841A (en) | Awakening method of main control chip, storage medium and intelligent terminal | |
CN101932086A (en) | A sensor sleep mechanism integrating dynamic voltage regulation and dynamic energy management | |
CN202485766U (en) | Electronic scale | |
CN112526914B (en) | Low-power-consumption management flow method for milliampere-level data acquisition unit | |
KR20150021378A (en) | Apparatus and method for power saving of computer system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20170817 Address after: 430073 A9, finance building, 77 Optics Valley Avenue, East Lake Development Zone, Wuhan, Hubei Patentee after: Beyondsoft (Wuhan) Co.,Ltd. Address before: 100094, No. 8, building three, building 9, Zhongguancun Software Park, No. A, Beijing West Road, Haidian District, China Patentee before: BEYONDSOFT Corp. |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20250512 Address after: 100193 building 7 (Boyan science and technology building), yard east, No.10, northwest Wangdong Road, Haidian District, Beijing Patentee after: BEYONDSOFT Corp. Country or region after: China Address before: Building A9, Financial Port, No. 77 Guanggu Avenue, Donghu Development Zone, Wuhan City, Hubei Province 430073 Patentee before: Beyondsoft (Wuhan) Co.,Ltd. Country or region before: China |