Positioning module and method for electric power tool

文档序号:986758 发布日期:2020-11-06 浏览:6次 中文

阅读说明:本技术 一种电力工器具的定位模块及方法 (Positioning module and method for electric power tool ) 是由 周金丽 王鸿雁 吕蛟 于 2020-08-07 设计创作,主要内容包括:本发明公开了一种电力工器具的定位模块及方法,定位模块装在重要的工器具上,用于工器具的实时定位,上电并上传定位信息后进入休眠模式,当检测到工器具有振动时退出休眠模式,获取定位信息并将上传到平台,之后进入到休眠模式,如果下次振动和上次上传定位信息的时间差小于指定时间,则不上传,超过指定时间再次上传,上传完成后进入休眠模式,同时每隔一定时间唤醒模块并上传心跳记录。该模块可实现工器具定位,实时监控工器具的位置信息,了解作业人员的运动轨迹,同时防止设备丢失及用于设备找回。(The invention discloses a positioning module and a method of an electric power tool, wherein the positioning module is arranged on an important tool and used for positioning the tool in real time, the tool is powered on and uploads positioning information and then enters a sleep mode, the sleep mode exits when the tool is detected to have vibration, the positioning information is acquired and uploaded to a platform, then the sleep mode is entered, if the time difference between the next vibration and the last uploading of the positioning information is less than a specified time, the positioning information is not uploaded, the positioning information is uploaded again after the specified time is exceeded, the sleep mode is entered after the uploading is finished, and meanwhile, the module is awakened and heartbeat records are uploaded at regular intervals. The module can realize the positioning of the tools and the instruments, monitor the position information of the tools and the instruments in real time, know the motion trail of the operating personnel, and simultaneously prevent equipment from being lost and be used for finding the equipment.)

1. A positioning module of an electric power tool is characterized by comprising a vibration sensor, an NB + GNSS module, an LED indicator light, a debugging serial port, a downloading interface and a battery, wherein the vibration sensor, the NB + GNSS module, the LED indicator light, the debugging serial port, the downloading interface and the battery are respectively connected with a main control chip; the vibration sensor is used for detecting whether vibration exists or not and judging whether the tool is used or not; the NB + GNSS module comprises a GNSS module and an NB module, the GNSS module is used for obtaining positioning information including time, coordinates and speed, and the NB module is used for reporting the information.

2. The power tool positioning module of claim 1, wherein the LED indicator light is used to indicate the operational status of the module including power up, networking, sending data, and vibration.

3. The positioning module of the power tool according to claim 1, wherein the debugging serial port is used for inputting debugging information; the download interface is used for downloading the program; the battery is used for power supply of the module.

4. A positioning method of an electric power tool is characterized by comprising the following steps:

(1) hardware initialization, an NB module accesses a network, a GNSS module acquires positioning information and calibrates time, and a main control chip enters a low power consumption mode;

(2) detecting whether vibration is interrupted or not during program running, and judging whether the tool moves or not; if the vibration is interrupted, exiting the low power consumption mode, acquiring RTC time, comparing the RTC time with the last time of storage, if the time is more than 5 minutes, storing the current time, starting to acquire positioning information and reporting the positioning information through NB, then entering the low power consumption mode by the main control chip, entering the PSM power saving mode by the NB module, and if the time is not more than 5 minutes, continuing to enter the low power consumption mode by the chip, and keeping the PSM power saving mode by the NB module because the NB module does not send data;

(3) during program operation, whether an RTC alarm clock is interrupted or not is detected, whether the time of heartbeat is reported periodically or not is judged, if the time is reported, positioning information is obtained and reported through an NB (node B), meanwhile, the time obtained from the GNSS module is used for calibrating the system, then a main control chip enters a low power consumption mode, and an NB module enters a PSM (Power supply model) power saving mode.

5. The positioning method of the power tool according to claim 4, wherein the step (1) includes, after power-on, serial port initialization, LED initialization, clock initialization, NB network access, RTC initialization, acquisition of positioning information from GNSS after network access is successful, setting of system time as time acquired from GNSS, saving of current system time, uploading of positioning information through NB, initialization of RTC alarm clock, setting of interruption at 00:00: 00:00 each day and uploading of heartbeat record, initialization of vibration sensor, entering of the main control chip into a low power consumption mode, and entering of NB into a PSM power saving mode.

6. The method of claim 5, wherein the location information includes coordinates, time, and speed, and the heartbeat record includes time, coordinates, speed, battery voltage, and chip temperature.

7. The method according to claim 4, wherein the acquiring of the positioning information specifically includes turning on a positioning function and a timer first, setting the timer to be the longest time for starting the GNSS module, sending a positioning information query command and waiting for a reply after the timer expires, determining whether the RTC alarm clock is interrupted, if so, correcting the time and uploading the positioning information, if not, directly uploading the positioning information, and finishing the uploading of the positioning information and turning off the positioning function.

8. The method according to claim 7, wherein the GNSS positioning function is turned on only when the positioning information is acquired, and the GNSS module is turned on after the positioning function is turned on, and the positioning function is turned off after the positioning information is acquired.

Technical Field

The invention relates to the technical field of management of safety tools in the power industry, in particular to a positioning module and a positioning method for a power tool.

Background

The electric power safety tool is the most basic and essential tool for production operators to engage in operation, maintenance, overhaul and repair work, and is a premise for improving working benefits and personnel operation safety, so that the operation state of the tool needs to be known accurately in time and monitored in real time. At present, the power tool management work is consuming time and power, and it takes place to deposit the condition that is not standard, places at will, does not possess the state inquiry function, does not support the displacement perception, does not have data intercommunication, lacks information-based management, is the current situation of the safe tool management of most electric wire netting companies of the whole country. Therefore, advanced, efficient and reliable means must be adopted to manage the safety tools, so that the use of the safety tools is monitored, the working efficiency is improved, the operation cost is reduced, and finally fine management is realized.

Disclosure of Invention

In order to solve the technical problems, the invention provides a positioning module and a method for an electric power tool, which solve the problem of positioning the tool, start monitoring when the displacement of the tool changes, effectively reduce the power consumption of the module, upload heartbeat records including time, coordinates, speed, battery voltage and chip temperature information at intervals and know the running state of the module.

In order to achieve the technical effect, the invention adopts the following technical scheme:

a positioning module of an electric power tool comprises a vibration sensor, an NB + GNSS module, an LED indicator light, a debugging serial port, a downloading interface and a battery, wherein the vibration sensor, the NB + GNSS module, the LED indicator light, the debugging serial port, the downloading interface and the battery are respectively connected with a main control chip; the vibration sensor is used for detecting whether vibration exists or not and judging whether the tool is used or not; the NB + GNSS module comprises a GNSS module and an NB module, the GNSS module is used for obtaining positioning information including time, coordinates and speed, and the NB module is used for reporting the information.

The LED indicating lamp is used for indicating the running state of the module, including power-on, network access, data sending and vibration.

The further technical scheme is that the debugging serial port is used for inputting debugging information; the download interface is used for downloading the program; the battery is used for power supply of the module.

The invention also provides a positioning method of the electric power tool, which comprises the following steps:

(1) hardware initialization, an NB module accesses a network, a GNSS module acquires positioning information and calibrates time, and a main control chip enters a low power consumption mode;

(2) detecting whether vibration is interrupted or not during program running, and judging whether the tool moves or not; if the vibration is interrupted, exiting the low power consumption mode, acquiring RTC time, comparing the RTC time with the last time of storage, if the time is more than 5 minutes, storing the current time, starting to acquire positioning information and reporting the positioning information through NB, then entering the low power consumption mode by the main control chip, entering the PSM power saving mode by the NB module, and if the time is not more than 5 minutes, continuing to enter the low power consumption mode by the chip, and keeping the PSM power saving mode by the NB module because the NB module does not send data;

(3) during program operation, whether an RTC alarm clock is interrupted or not is detected, whether the time of heartbeat is reported periodically or not is judged, if the time is reported, positioning information is obtained and reported through an NB (node B), meanwhile, the time obtained from the GNSS module is used for calibrating the system, then a main control chip enters a low power consumption mode, and an NB module enters a PSM (Power supply model) power saving mode.

The method comprises the following steps that after the step (1) is specifically powered on, serial port initialization, LED initialization and clock initialization are firstly carried out, then NB is connected to a network, RTC initialization is carried out, after the network connection is successful, positioning information is obtained from GNSS, system time is set to be the time obtained from the GNSS, the current system time is stored, then the NB uploads the positioning information, RTC alarm clock is initialized, interruption of 00:00: 00:00 every day is set and heartbeat records are uploaded, then a vibration sensor is initialized, a main control chip enters a low power consumption mode, and the NB enters a PSM power saving mode.

The further technical scheme is that the positioning information comprises coordinates, time and speed, and the heartbeat record comprises the time, the coordinates, the speed, the battery voltage and the chip temperature.

The method comprises the following steps of firstly starting a positioning function and a timer, setting the time of the timer to be the longest time for starting a GNSS module, sending a positioning information inquiring command and waiting for replying after the timer expires, judging whether an RTC alarm clock is interrupted or not, correcting time and uploading positioning information if the RTC alarm clock is interrupted, directly uploading the positioning information if the RTC alarm clock is not interrupted, and stopping the positioning function after the positioning information is uploaded.

The further technical scheme is that the GNSS positioning function is started only when the positioning information is acquired, the GNSS module is started after the positioning function is started, and the positioning function is closed after the positioning information is acquired.

The positioning module is arranged on an important tool and used for positioning the tool in real time, the tool is powered on and uploads positioning information and then enters a sleep mode, the tool exits the sleep mode when vibration is detected, the positioning information is acquired and uploaded to a platform, then the tool enters the sleep mode, if the time difference between the next vibration and the last uploading of the positioning information is less than a specified time, the tool is not uploaded and is uploaded again after exceeding the specified time, the tool enters the sleep mode after the uploading is finished, and meanwhile, the module is awakened and the heartbeat record is uploaded at regular intervals.

Compared with the prior art, the invention has the following beneficial effects: the invention can realize the positioning of the tools and the instruments, monitor the position information of the tools and the instruments in real time, know the motion trail of the operating personnel, and simultaneously prevent equipment from being lost and used for finding the equipment; the positioning module of the invention starts monitoring when the displacement of the tool is changed, thus effectively reducing the power consumption of the module; the positioning module uploads heartbeat records at intervals, wherein the heartbeat records comprise time, coordinates, speed, battery voltage and chip temperature information, and the running state of the module can be known.

Drawings

FIG. 1 is a hardware configuration of a positioning module of the present invention;

fig. 2 is a flowchart of the positioning method of the present invention.

Detailed Description

The invention will be further explained and explained with reference to the drawings and the embodiments.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:定位导航方法、装置、电子设备及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类