CN113052990A - Night watching method - Google Patents

Night watching method Download PDF

Info

Publication number
CN113052990A
CN113052990A CN201911370519.8A CN201911370519A CN113052990A CN 113052990 A CN113052990 A CN 113052990A CN 201911370519 A CN201911370519 A CN 201911370519A CN 113052990 A CN113052990 A CN 113052990A
Authority
CN
China
Prior art keywords
patrol
bluetooth
packets
packet
ble
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
CN201911370519.8A
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.)
Ambit Microsystems Shanghai Ltd
Original Assignee
Ambit Microsystems Shanghai 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 Ambit Microsystems Shanghai Ltd filed Critical Ambit Microsystems Shanghai Ltd
Priority to CN201911370519.8A priority Critical patent/CN113052990A/en
Publication of CN113052990A publication Critical patent/CN113052990A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/20Checking timed patrols, e.g. of watchman
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

A night patrol method is applied to night patrol devices. When the patrol device is detected to move, scanning surrounding patrol points at regular time intervals, and arranging a BLE transmitter on each patrol point. Obtaining a plurality of Bluetooth packets according to the scanning result, wherein each Bluetooth packet at least comprises the MAC address of the BLE transmitter of the corresponding patrol point. And filtering and screening the received plurality of Bluetooth packets according to the BLE device list, storing and recording the Bluetooth packets conforming to the OUI as patrol packets, and recording patrol points corresponding to the plurality of patrol packets. And uploading the recorded night patrol package to a LoRa base station, and transmitting the night patrol package to a server by the LoRa base station. The patrol method of the invention can reduce the length of the packets, thereby reducing the packet loss rate, reducing the power consumption and avoiding frequent battery replacement or charging.

Description

Night watching method
Technical Field
The invention relates to a power saving technology, in particular to a night patrol method.
Background
Based on the safety management requirements of the cell, patrol personnel can be configured to watch the internal and peripheral environments of the cell regularly or irregularly, and the patrol work can be more convenient and more reliable by matching the patrol system. Known patrol systems utilize GPS or RFID to assist in confirming the current location of a patrol person. If Radio Frequency IDentification (RFID) is used, a night stick is used as an RFID Reader. However, the RFID Reader requires a large Radio Frequency (RF) Power (Power) and consumes relatively much Power.
Disclosure of Invention
In view of the above, it is necessary to provide a patrol method that conforms to patrol characteristics, and reduces the packet length and the Rich packet order to reach the save effect.
The embodiment of the invention provides a patrol method, which is applied to a patrol device, and is characterized in that the patrol device is provided with a BLE device list, wherein mechanism unique identifiers OUI in media access control MAC addresses of all BLE transmitters which meet the specification are stored in the BLE device list in advance, and the method comprises the following steps: when the patrol device is detected to move, scanning surrounding patrol points at regular time intervals, and arranging a BLE transmitter on each patrol point; obtaining a plurality of Bluetooth packets according to the scanning result, wherein each Bluetooth packet at least comprises the MAC address of the BLE transmitter of the corresponding patrol point; filtering and screening the received plurality of bluetooth packets according to the BLE device list, storing and recording the bluetooth packets which accord with the OUI as patrol packets, and recording patrol points corresponding to the plurality of patrol packets; and uploading the recorded patrol package to a LoRa base station, and transmitting the patrol package to a server by the LoRa base station.
An embodiment of the present invention further provides a patrol method applied to a patrol device, where the patrol device has a BLE device list, where MAC addresses of all BLE transmitters meeting a specification are stored in the BLE device list in advance, and each MAC address meeting the specification is tagged, where the method includes: when the patrol device is detected to move, scanning surrounding patrol points at regular time intervals, and arranging a BLE transmitter on each patrol point; obtaining a plurality of Bluetooth packets according to the scanning result, wherein each Bluetooth packet at least comprises the MAC address of the BLE transmitter of the corresponding patrol point; filtering and screening the received plurality of bluetooth packets according to the BLE device list, storing and recording the bluetooth packets which accord with the labels as patrol packets, and recording patrol points corresponding to the plurality of patrol packets; and uploading the label corresponding to the patrol package to an LoRa base station, and then transmitting the label to a server by the LoRa base station.
An embodiment of the present invention further provides a patrol method applied to a patrol device, where the patrol device has a BLE device list, where the BLE device list stores in advance mechanism unique identifiers OUI in media access control MAC addresses of all BLE transmitters that meet specifications, and the method includes: when the patrol device is detected to move, scanning surrounding patrol points at regular time intervals, and arranging a BLE transmitter on each patrol point; obtaining a plurality of Bluetooth packets according to the scanning result, wherein each Bluetooth packet at least comprises the MAC address of the BLE transmitter of the corresponding patrol point; filtering and screening the received plurality of bluetooth packets according to the BLE device list, storing and recording the bluetooth packets which accord with the OUI as patrol packets, and recording patrol points corresponding to the plurality of patrol packets; and compressing the recorded night patrol package, uploading the compressed night patrol package to a LoRa base station, and transmitting the compressed night patrol package to a server by the LoRa base station.
The patrol method of the embodiment of the invention conforms to the patrol characteristic, and shortens the packet length and the Rich packet order to change the changing effect at future time.
Drawings
Fig. 1 is a schematic diagram showing a hardware architecture of a night patrol apparatus according to an embodiment of the present invention.
Fig. 2 is a functional block diagram of a night patrol apparatus according to an embodiment of the present invention.
Fig. 3 is a flowchart of the steps of the patrol method according to the first embodiment of the present invention.
Fig. 4 is a flowchart of the steps of a patrol method according to a second embodiment of the present invention.
Fig. 5 is a flowchart of the steps of a patrol method according to a third embodiment of the present invention.
FIG. 6 is a diagram illustrating packet compression according to an embodiment of the invention.
Description of the main elements
Night watching device 10
Processor 100
Memory 20
Computing unit 110
Memory cell 120
LoRa communication module 130
Low power consumption bluetooth communication module 140
Vibration and movement detection module 150
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the feature. In addition, technical solutions between the various embodiments can be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram showing a hardware architecture of a night patrol apparatus according to an embodiment of the present invention. The patrol device 10, but not limited thereto, may communicatively couple the processor 100, the memory 200, and the system 300 for adjusting packet lengths to one another via a system bus, and fig. 1 illustrates only the patrol device 10 having the components 100 and 300, but it is understood that not all of the illustrated components are required and that more or fewer components may alternatively be implemented.
The memory 200 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 200 may be an internal storage unit of the patrol device 10, such as a hard disk or a memory of the patrol device 10. In other embodiments, the memory may also be an external storage device of the patrol device 10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the patrol device 10. Of course, the memory 200 may also include both the internal storage unit and the external storage device of the night patrol device 10. In this embodiment, the memory 200 is generally used for storing an operating system and various application software installed in the patrol device 10, such as a program code of the patrol system 300. In addition, the memory 200 may be used to temporarily store various types of data that have been output or are to be output.
The processor 100 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 100 is generally used to control the overall operation of the night patrol device 10. In this embodiment, the processor 100 is configured to run the program codes stored in the memory 200 or process data, for example, run the night watching system 300.
It should be noted that fig. 1 is only an example of the night patrol device 10. In other embodiments, the night patrol device 10 may include more or fewer components, or have a different configuration of components.
Fig. 2 is a functional block diagram of a patrol device according to an embodiment of the present invention, which is used for executing a patrol method. The patrol method according to the embodiment of the present invention can be implemented by a computer program stored in a storage medium, such as the memory 200 of the mobile device 10. When the computer program implementing the method of the present invention is loaded into the memory 200 by the processor 100, the processor 100 of the patrol device 10 is driven to execute the patrol method according to the embodiment of the present invention.
The night patrol device 10 (e.g., night patrol card) according to the embodiment of the present invention includes a computing unit 110, a storage unit 120, a LoRa communication module 130, a Bluetooth Low Energy (BLE) module 140, and a vibration and motion detection (G-sensor) module 150.
In the patrol device according to the first embodiment of the present invention, the storage unit 120 has a BLE device list in which the Organization Unique Identifiers (OUI) in the Media Access Control (MAC) addresses of all the BLE transmitters (Beacon) that meet the specification are stored in advance. The MAC address typically consists of 6 Bytes (Bytes), OUI refers to the first 3 byte address. A BLE transmitter is pre-deployed at each patrol point, and the BLE module 140 is started to wake up when the shock and movement detection module 150 detects that the patrol device 100 moves.
The BLE module 140 starts scanning the surrounding night-time at regular time intervals (e.g., 5 seconds), the scanning is maintained for a predetermined time, e.g., three minutes, and obtains a plurality of bluetooth packets according to the scanning result, each bluetooth packet at least includes a MAC address of a BLE transmitter of the corresponding night-time and an RSSI (Received Signal Strength Indication) value for calculating a distance, and then transmits the bluetooth packets to the calculating unit 110 and the storing unit 120.
The calculating unit 110 filters and filters the received bluetooth packets of the patrol points according to the BLE device list, stores and records the bluetooth packets conforming to the OUI as patrol packets, and records patrol points corresponding to the plurality of patrol packets. The LoRa communication module 130 uploads the recorded patrol package to the LoRa base station, and the LoRa base station transmits the patrol package to the server.
When uploading the patrol packet, the LoRa communication module 130 uploads the patrol packet corresponding to the bluetooth packet conforming to the OUI to the LoRa base station every time the bluetooth packet conforming to the OUI is received.
When uploading the patrol package, the LoRa communication module 130 may also upload the patrol packages corresponding to the plurality of OUI compliant bluetooth packages to the LoRa base station when the number of the collected OUI compliant bluetooth packages reaches a predetermined number, or when the vibration and movement detection module 150 does not detect the movement of the patrol device 100.
In the patrol device according to the second embodiment of the present invention, the storage unit 120 has a BLE device list in which the MAC addresses of all the compliant BLE transmitters are stored in advance, and tags the MAC address of each compliant BLE transmitter, for example, MAC address 1: a; MAC address 2: b; MAC address 3: c; … and so on. A BLE transmitter is pre-deployed at each patrol point, and the BLE module 140 is started to wake up when the shock and movement detection module 150 detects that the patrol device 100 moves.
The BLE module 140 starts scanning the surrounding night patrol points at regular time intervals (e.g., 5 seconds), maintains the scanning for a predetermined time, e.g., three minutes, and obtains a plurality of bluetooth packets according to the scanning result, each bluetooth packet at least includes the MAC address of the BLE transmitter of the corresponding night patrol point and the RSSI value used for calculating the distance, and then transmits the bluetooth packets to the calculating unit 110 and the storage unit 120.
The computing unit 110 filters and filters the received bluetooth packets of the patrol point according to the BLE device list, and records the bluetooth packets and corresponding tags that match the MAC address. The LoRa communication module 130 uploads the label of the corresponding bluetooth packet to the LoRa base station, and then the LoRa base station transmits the label to the server.
When the LoRa communication module 130 uploads the label, the label corresponding to the bluetooth packet is uploaded to the LoRa base station every time a bluetooth packet matching the default label is received.
When the LoRa communication module 130 uploads the tags, it may also upload the tags corresponding to the plurality of bluetooth packets to the LoRa base station in sequence according to the scanned time when the bluetooth packets conforming to the default tags are collected and reach a preset number, or when the vibration and movement detection module 150 does not detect the movement of the patrol device 100.
When the LoRa communication module 130 uploads the patrol package, it may also collect the bluetooth packages conforming to the default label and reach the preset number, or when the vibration and movement detection module 150 does not detect the movement of the patrol device 100, not upload the patrol packages corresponding to the bluetooth packages conforming to the default label, but upload only the labels or percentages of the bluetooth packages to the LoRa base station. Note that the uploaded tags are represented by words (bits) or bytes (bytes), but any other representation is possible. In percentage, for example, there are 10 patrol points, but after the filtering of the patrol, only the bluetooth packets of 8 matching patrol points are collected, and the uploaded patrol packet only needs to contain 80% of the value. On the other hand, the packet may be divided into regions, for example, when five regions are divided, the polling packet only needs to upload one time, for example, 70%, 80%, 90%, 95%, and 100%.
In the patrol device according to the third embodiment of the present invention, the storage unit 120 has a BLE device list in which the OUI of the MAC addresses of all the BLE transmitters that meet the specification is stored in advance. A BLE transmitter is pre-deployed at each patrol point, and the BLE module 140 is started to wake up when the shock and movement detection module 150 detects that the patrol device 100 moves.
The BLE module 140 starts scanning the surrounding night patrol points at regular time intervals (e.g., 5 seconds), maintains the scanning for a predetermined time, e.g., three minutes, and obtains a plurality of bluetooth packets according to the scanning result, each bluetooth packet at least includes the MAC address of the BLE transmitter of the corresponding night patrol point and the RSSI value used for calculating the distance, and then transmits the bluetooth packets to the calculating unit 110 and the storage unit 120.
The calculating unit 110 filters and filters the received bluetooth packets of the patrol points according to the BLE device list, stores and records the identification of the bluetooth packets conforming to the OUI as patrol packets, and records the patrol points corresponding to the plurality of patrol packets. The LoRa communication module 130 compresses the bluetooth packets conforming to the OUI, uploads the compressed bluetooth packets to the LoRa base station, and then transmits the compressed bluetooth packets to the server through the LoRa base station. The compression method is as follows.
As shown in fig. 6, the graph shows that 4 BLE are currently received, including their MAC address and RSSI value, and the first 3 bytes are denoted as OUI. When compressing the packet, the OUI is taken out, and then the last 3 bytes of the MAC address and the RSSI are connected. Thus, the packet length is reduced by (4 × 3-3) bytes. If the first 4 bytes are taken, i.e., [0x 120 x3B 0x6A 0x1A ], the packet length is reduced by (4 x 4-4) bytes.
When the LoRa communication module 130 uploads the patrol packet, each time a bluetooth packet conforming to the OUI is received, the patrol packet corresponding to the bluetooth packet conforming to the OUI is compressed, and the compressed patrol packet is uploaded to the LoRa base station.
The LoRa communication module 130 uploads the patrol packet, and may upload the patrol packet to the LoRa base station when the patrol packet conforming to the OUI is collected and reaches a predetermined number, or when the patrol device 100 is not detected to move by the vibration and movement detection module 150.
In the patrol device according to the third embodiment of the present invention, the content of the packet is not only the bluetooth packet with the maximum RSSI value.
For example, in a BLE transmitter scanned within a predetermined time (e.g., 1 minute), if the same bluetooth packet is repeatedly scanned and has the maximum RSSI value, the polling packet corresponding to the bluetooth packet is not uploaded. For example, assuming that there are 10 beacon, every five second, the RSSI value of the scanned BLE bluetooth transmitter a is maximum in this minute (12 scans), and the patrol packet of the corresponding BLE bluetooth transmitter a is uploaded only once.
In addition, also within one minute, the polling packet of the bluetooth packet corresponding to the maximum RSSI value (e.g., the bluetooth packet of BLE bluetooth transmitter a) has been uploaded, but then when scanning to another bluetooth packet having the maximum RSSI value (e.g., the bluetooth packet of BLE bluetooth transmitter B), the contents of the bluetooth packet of BLE bluetooth transmitter a (if scanned again) may be uploaded along with the polling packet of the bluetooth packet of corresponding BLE bluetooth transmitter B. For example, assuming that there are 10 BLE bluetooth transmitters, scanning every 5 seconds, and the bluetooth packet of the first scanned BLE bluetooth transmitter a has the maximum RSSI value, a polling packet corresponding to the bluetooth packet of BLE bluetooth transmitter a is uploaded. The bluetooth packet of BLE bluetooth transmitter B scanned for the second time has the maximum RSSI value, and BLE bluetooth transmitter a is also scanned at the same time, so that the information of the bluetooth packet of BLE bluetooth transmitter a can be carried in the polling packet of BLE bluetooth transmitter B as well when the polling packet of the bluetooth packet of corresponding BLE bluetooth transmitter B is uploaded.
If none of the bluetooth packets having the maximum RSSI value is replaced, transmission of a patrol packet corresponding to the bluetooth packet is allowed after a predetermined time (e.g., half an hour). If none of the bluetooth packets with the maximum RSSI value is replaced, and the RSSI value is greater than the default value, and within a certain time, the bluetooth packet with the second or third maximum RSSI value is replaced, the polling packet corresponding to the bluetooth packet with the maximum RSSI value is still allowed to be uploaded.
The modules/units integrated with the night patrol device 10, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of the above embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer memory, read only memory, random access memory, electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It is understood that the above described division of modules is only one logical division, and that in actual implementation, there may be other divisions. In addition, functional modules in the embodiments of the present application may be integrated into the same processing unit, or each module may exist alone physically, or two or more modules are integrated into the same unit. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
Fig. 3 is a flowchart of steps of a patrol method according to a first embodiment of the present invention, which is applied to the patrol device 100. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
In step S11, a BLE device list is created in the storage unit 120, and OUIs in the medium access control MAC addresses of all compliant BLE transmitters are stored in advance in the BLE device list. The MAC address typically consists of 6 Bytes (Bytes), OUI refers to the first 3 byte address. In addition, the BLE transmitter is pre-arranged at the patrol point, and when the vibration and movement detection module 150 detects that the patrol device 100 moves, the BLE module 140 starts to wake up.
In step S12, the BLE module 140 starts scanning the night spot at regular time intervals (e.g., 5 seconds), and the scanning operation is maintained for a predetermined time, e.g., three minutes.
In step S13, the BLE module 140 obtains a plurality of bluetooth packets according to the scanning result, each bluetooth packet at least includes the MAC address of the BLE transmitter of the corresponding patrol point and the RSSI value for calculating the distance, and then transmits the plurality of bluetooth packets to the calculating unit 110 and the storing unit 120.
In step S14, the computing unit 110 filters and filters the received bluetooth packets of the patrol points according to the BLE device list, stores and records the bluetooth packets conforming to the OUI as patrol packets, and records the patrol points corresponding to the plurality of patrol packets.
Step S15, the recorded patrol package is uploaded to the LoRa base station through the LoRa communication module 130, and then transmitted to the server by the LoRa base station.
Step S16, the method for uploading patrol packets includes uploading patrol packets corresponding to the bluetooth packet conforming to the OUI to the LoRa base station when each bluetooth packet conforming to the OUI is received.
Step S17, the method for uploading patrol packets further includes uploading patrol packets corresponding to the OUI-compliant bluetooth packets to the LoRa base station when the number of collected OUI-compliant bluetooth packets reaches a preset number, or when the module 150 does not detect movement of the patrol device 100.
The method for uploading the patrol package selects one of the steps S16 and S17.
Fig. 4 is a flowchart of steps of a patrol method according to a second embodiment of the present invention, which is applied to the patrol device 100.
At step S21, a BLE device list is established in the storage unit 120, the MAC addresses of all compliant BLE transmitters are stored in advance in the BLE device list, and the MAC address of each compliant BLE transmitter is tagged, for example, MAC address 1: a; MAC address 2: b; MAC address 3: c; … and so on. In addition, the BLE transmitter is pre-arranged at the patrol point, and when the vibration and movement detection module 150 detects that the patrol device 100 moves, the BLE module 140 starts to wake up.
In step S22, the BLE module 140 starts scanning the night spot at regular time intervals (e.g., 5 seconds), and the scanning operation is maintained for a predetermined time, e.g., three minutes.
In step S23, the BLE module 140 obtains a plurality of bluetooth packets according to the scanning result, each bluetooth packet at least includes the MAC address of the BLE transmitter of the corresponding patrol point and the RSSI value for calculating the distance, and then transmits the plurality of bluetooth packets to the calculating unit 110 and the storing unit 120.
In step S24, the computing unit 110 filters and filters the received bluetooth packets of the patrol point according to the BLE device list, and records the bluetooth packets and corresponding tags that match the MAC address.
Step S25, the label of the corresponding bluetooth packet is uploaded to the LoRa base station through the LoRa communication module 130, and then the LoRa base station transmits the label to the server.
In step S26, the method for uploading patrol package includes uploading a label of a bluetooth package to the LoRa base station when the bluetooth package matching a default label is received.
In step S27, the method for uploading patrol package further includes uploading the labels of the plurality of bluetooth packages to the LoRa base station according to the scanned time when the bluetooth packages matching the default label are collected and reach the predetermined number, or when the vibration and movement detection module 150 does not detect the movement of the patrol device 100.
Step S28, the method for uploading patrol packets further includes not uploading patrol packets corresponding to the plurality of bluetooth packets corresponding to the default labels, but only uploading labels or percentages of the plurality of bluetooth packets to the LoRa base station when the bluetooth packets corresponding to the default labels are collected and reach the predetermined number, or the vibration and movement detection module 150 does not detect that the patrol device 100 moves. Note that the uploaded tags are represented by words (bits) or bytes (bytes), but any other representation is possible. In percentage, for example, there are 10 patrol points, but after the filtering of the patrol, only the bluetooth packets of 8 matching patrol points are collected, and the uploaded patrol packet only needs to contain 80% of the value. On the other hand, the packet may be divided into regions, for example, when five regions are divided, the polling packet only needs to upload one time, for example, 70%, 80%, 90%, 95%, and 100%.
The method for uploading the patrol package selects one of the steps S26, S27 and S28.
Fig. 5 is a flowchart of steps of a patrol method according to a third embodiment of the present invention, which is applied to the patrol device 100.
In step S31, a BLE device list is created in the storage unit 120, and the OUI in the MAC addresses of all the BLE transmitters that meet the specification is stored in advance in the BLE device list. In addition, the BLE transmitter is pre-arranged at the patrol point, and when the vibration and movement detection module 150 detects that the patrol device 100 moves, the BLE module 140 starts to wake up.
In step S32, the BLE module 140 starts scanning the night spot at regular time intervals (e.g., 5 seconds), and the scanning operation is maintained for a predetermined time, e.g., three minutes.
In step S33, the BLE module 140 obtains a plurality of bluetooth packets according to the scanning result, each bluetooth packet at least includes the MAC address of the BLE transmitter of the corresponding patrol point and the RSSI value for calculating the distance, and then transmits the plurality of bluetooth packets to the calculating unit 110 and the storing unit 120.
In step S34, the computing unit 110 filters and filters the received bluetooth packets of the patrol points according to the BLE device list, stores and records the bluetooth packets conforming to the OUI as patrol packets, and records the patrol points corresponding to the plurality of patrol packets.
Step S35, the bluetooth packet conforming to the OUI is compressed by the LoRa communication module 130, and then uploaded to the LoRa base station, and then transmitted to the server by the LoRa base station. The compression method is as follows.
As shown in fig. 6, it is shown that 4 BLE (A, B, C, D) are currently received, including their MAC address and RSSI value, and the first 3 bytes are denoted as OUI. When compressing the packet, the OUI is taken out, and then the last 3 bytes of the MAC address and the RSSI are connected. Thus, the packet length of the compressed packet E is reduced by (4 × 3-3) byte. If the first 4 bytes are taken, i.e., [0x 120 x3B 0x6A 0x1A ], the packet length is reduced by (4 x 4-4) bytes.
Step S36, the method for uploading patrol packets includes compressing patrol packets corresponding to the bluetooth packet conforming to the OUI when each bluetooth packet conforming to the OUI is received, and uploading the compressed patrol packets to the LoRa base station.
In step S37, the method for uploading patrol packets further includes uploading patrol packets to the LoRa base station when the patrol packets conforming to the OUI are collected and reach a predetermined number, or the vibration and movement detection module 150 does not detect the movement of the patrol device 100.
The method for uploading the patrol package selects one of the steps S36 and S37.
In the patrol method according to the third embodiment of the present invention, the uploaded patrol packet is mainly a bluetooth packet with the maximum RSSI value, but the content of the patrol packet is not limited to only the bluetooth packet with the maximum RSSI value.
For example, in a BLE transmitter scanned within a predetermined time (e.g., 1 minute), if the same bluetooth packet is repeatedly scanned and has the maximum RSSI value, the polling packet corresponding to the bluetooth packet is not uploaded. For example, assuming that there are 10 beacon, every five second, the RSSI value of the scanned BLE bluetooth transmitter a is maximum in this minute (12 scans), and the patrol packet of the corresponding BLE bluetooth transmitter a is uploaded only once.
In addition, also within one minute, the polling packet of the bluetooth packet corresponding to the maximum RSSI value (e.g., the bluetooth packet of BLE bluetooth transmitter a) has been uploaded, but then when scanning to another bluetooth packet having the maximum RSSI value (e.g., the bluetooth packet of BLE bluetooth transmitter B), the contents of the bluetooth packet of BLE bluetooth transmitter a (if scanned again) may be uploaded along with the polling packet of the bluetooth packet of corresponding BLE bluetooth transmitter B. For example, assuming that there are 10 BLE bluetooth transmitters, scanning every 5 seconds, and the bluetooth packet of the first scanned BLE bluetooth transmitter a has the maximum RSSI value, a polling packet corresponding to the bluetooth packet of BLE bluetooth transmitter a is uploaded. The bluetooth packet of BLE bluetooth transmitter B scanned for the second time has the maximum RSSI value, and BLE bluetooth transmitter a is also scanned at the same time, so that the information of the bluetooth packet of BLE bluetooth transmitter a can be carried in the polling packet of BLE bluetooth transmitter B as well when the polling packet of the bluetooth packet of corresponding BLE bluetooth transmitter B is uploaded.
If none of the bluetooth packets having the maximum RSSI value is replaced, transmission of a patrol packet corresponding to the bluetooth packet is allowed after a predetermined time (e.g., half an hour). If none of the bluetooth packets with the maximum RSSI value is replaced, and the RSSI value is greater than the default value, and within a certain time, the bluetooth packet with the second or third maximum RSSI value is replaced, the polling packet corresponding to the bluetooth packet with the maximum RSSI value is still allowed to be uploaded.
In the embodiment of the present invention, besides the RSSI value, the power or other information can also be used as the determination basis.
The patrol method of the embodiment of the invention can accord with the patrol characteristic, and further reduces the packet length and the packet sending times to achieve the effect of saving electricity
It will be apparent to those skilled in the art that other changes and modifications can be made based on the technical solutions and concepts provided by the embodiments of the present invention in combination with the actual requirements, and these changes and modifications are all within the scope of the claims of the present invention.

Claims (10)

1. A patrol method applied to a patrol device, wherein the patrol device has a BLE device list in which mechanism unique identifiers OUI in media access control MAC addresses of all BLE transmitters meeting a specification are stored in advance, and the method comprises the following steps:
when the patrol device is detected to move, scanning surrounding patrol points at regular time intervals, and arranging a BLE transmitter on each patrol point;
obtaining a plurality of Bluetooth packets according to the scanning result, wherein each Bluetooth packet at least comprises the MAC address of the BLE transmitter of the corresponding patrol point;
filtering and screening the received plurality of bluetooth packets according to the BLE device list, storing and recording the bluetooth packets which accord with the OUI as patrol packets, and recording patrol points corresponding to the plurality of patrol packets; and
and uploading the recorded night patrol package to a LoRa base station, and transmitting the night patrol package to a server by the LoRa base station.
2. The patrol method according to claim 1, wherein the step of uploading the patrol packet to the LoRa base station further comprises:
and uploading the patrol packet corresponding to the Bluetooth packet conforming to the OUI to the LoRa base station when receiving a Bluetooth packet conforming to the OUI.
3. The patrol method according to claim 1, wherein the step of uploading the patrol packet to the LoRa base station further comprises:
when the Bluetooth packets conforming to the OUI are collected and reach a preset number, or when the patrol device is not detected to move, uploading patrol packets corresponding to the plurality of Bluetooth packets conforming to the OUI to the LoRa base station.
4. A patrol method applied to a patrol device, wherein the patrol device has a BLE device list, the BLE device list stores MAC addresses of all specification-compliant BLE transmitters in advance, and tags each specification-compliant MAC address, and the method comprises:
when the patrol device is detected to move, scanning surrounding patrol points at regular time intervals, and arranging a BLE transmitter on each patrol point;
obtaining a plurality of Bluetooth packets according to the scanning result, wherein each Bluetooth packet at least comprises the MAC address of the BLE transmitter of the corresponding patrol point;
filtering and screening the received plurality of bluetooth packets according to the BLE device list, storing and recording the bluetooth packets which accord with the labels as patrol packets, and recording patrol points corresponding to the plurality of patrol packets; and
and uploading the label of the corresponding patrol package to an LoRa base station, and transmitting the label to a server by the LoRa base station.
5. The patrol method according to claim 4, wherein the step of uploading the label of the patrol packet to the LoRa base station further comprises:
and uploading the label of the corresponding Bluetooth packet to the LoRa base station when each Bluetooth packet which meets the MAC address is received.
6. The patrol method according to claim 4, wherein the step of uploading the label of the patrol packet to the LoRa base station further comprises:
when the Bluetooth packets conforming to the MAC addresses are collected and reach a preset number, or when the patrol device is not detected to move, the labels of the plurality of Bluetooth packets are uploaded to the LoRa base station.
7. The patrol method according to claim 4, wherein the step of uploading the patrol packet to the LoRa base station further comprises:
when the Bluetooth packets conforming to the MAC addresses are collected and reach a preset number, or when the patrol device is not detected to move, uploading the percentages of the labels corresponding to the plurality of Bluetooth packets to the LoRa base station.
8. A patrol method applied to a patrol device, wherein the patrol device has a BLE device list in which mechanism unique identifiers OUI in media access control MAC addresses of all BLE transmitters meeting a specification are stored in advance, and the method comprises the following steps:
when the patrol device is detected to move, scanning surrounding patrol points at regular time intervals, and arranging a BLE transmitter on each patrol point;
obtaining a plurality of Bluetooth packets according to the scanning result, wherein each Bluetooth packet at least comprises the MAC address of the BLE transmitter of the corresponding patrol point;
filtering and screening the received plurality of bluetooth packets according to the BLE device list, storing and recording the bluetooth packets which accord with the OUI as patrol packets, and recording patrol points corresponding to the plurality of patrol packets; and
and compressing the recorded night patrol package, uploading the compressed night patrol package to an LoRa base station, and transmitting the compressed night patrol package to a server by the LoRa base station.
9. The patrol method according to claim 8, wherein the step of uploading the patrol packet to the LoRa base station further comprises:
and compressing the patrol packet corresponding to the OUI when receiving a Bluetooth packet conforming to the OUI, and uploading the patrol packet to the LoRa base station.
10. The patrol method according to claim 8, wherein the step of uploading the patrol packet to the LoRa base station further comprises:
when the Bluetooth packets conforming to the OUI are collected and reach the preset number, or when the patrol device is not detected to move, the patrol packets corresponding to the Bluetooth packets conforming to the OUI are compressed and then uploaded to the LoRa base station.
CN201911370519.8A 2019-12-26 2019-12-26 Night watching method Pending CN113052990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911370519.8A CN113052990A (en) 2019-12-26 2019-12-26 Night watching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911370519.8A CN113052990A (en) 2019-12-26 2019-12-26 Night watching method

Publications (1)

Publication Number Publication Date
CN113052990A true CN113052990A (en) 2021-06-29

Family

ID=76505691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911370519.8A Pending CN113052990A (en) 2019-12-26 2019-12-26 Night watching method

Country Status (1)

Country Link
CN (1) CN113052990A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1791093A1 (en) * 2005-11-28 2007-05-30 ASTRA Gesellschaft für Asset Management mbH & Co. KG Guard security and control system
US20130176869A1 (en) * 2012-01-11 2013-07-11 QUALCOMM ATHEROS Incorporated Reducing power consumption in a mobile communication device in response to motion detection
CN104702320A (en) * 2014-04-11 2015-06-10 上海智向信息科技有限公司 Method and system for judging near-field payment on basis of Bluetooth
CN108090987A (en) * 2017-12-28 2018-05-29 四川建筑职业技术学院 A kind of electronic patrol system based on iBeacon technologies
CN108171816A (en) * 2017-12-26 2018-06-15 北京中船信息科技有限公司 Electronic patrol cruising inspection system and method based on LoRa technologies
CN109543992A (en) * 2018-11-19 2019-03-29 华能国际电力股份有限公司上安电厂 Intelligent polling method, device, intelligent terminal and server
CN109934976A (en) * 2019-02-01 2019-06-25 Oppo广东移动通信有限公司 Access control management method, device, system, electronic equipment and storage medium
CN110225479A (en) * 2019-06-05 2019-09-10 浙江天地人科技有限公司 A kind of forest environment monitoring system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1791093A1 (en) * 2005-11-28 2007-05-30 ASTRA Gesellschaft für Asset Management mbH & Co. KG Guard security and control system
US20130176869A1 (en) * 2012-01-11 2013-07-11 QUALCOMM ATHEROS Incorporated Reducing power consumption in a mobile communication device in response to motion detection
CN104702320A (en) * 2014-04-11 2015-06-10 上海智向信息科技有限公司 Method and system for judging near-field payment on basis of Bluetooth
CN108171816A (en) * 2017-12-26 2018-06-15 北京中船信息科技有限公司 Electronic patrol cruising inspection system and method based on LoRa technologies
CN108090987A (en) * 2017-12-28 2018-05-29 四川建筑职业技术学院 A kind of electronic patrol system based on iBeacon technologies
CN109543992A (en) * 2018-11-19 2019-03-29 华能国际电力股份有限公司上安电厂 Intelligent polling method, device, intelligent terminal and server
CN109934976A (en) * 2019-02-01 2019-06-25 Oppo广东移动通信有限公司 Access control management method, device, system, electronic equipment and storage medium
CN110225479A (en) * 2019-06-05 2019-09-10 浙江天地人科技有限公司 A kind of forest environment monitoring system

Similar Documents

Publication Publication Date Title
EP1528768A2 (en) Mobile communication terminal with RFID function and RFID programming method in the same
CN101145192B (en) Smart radio-frequency identification infrastructure and method
CN112134638B (en) Synchronous deployment system and method for Internet of things and emergency broadcast
CN103679224A (en) Radio frequency tag, mobile terminal, wireless communication system and radio frequency tag charging method
US20210104917A1 (en) Energy harvesting system, apparatus and method for performing wakeup
CN113052990A (en) Night watching method
CN204759691U (en) Intelligent security system based on multisensor
US20020155832A1 (en) Wireless telemetry system
US20220224995A1 (en) Method for reading fluid meters
KR20100066872A (en) Sensor tag and method for storing sensed data
CN106153068A (en) Tire mileage monitoring method, Apparatus and system
US8698599B2 (en) Reader/writer, communication processing device, communication processing method, data management system and communication system
CN110599778A (en) Working mode switching method and device and ground sensing type vehicle detector
CN116703049A (en) Pairing method of structural parts and electronic equipment
US11062099B1 (en) System and method for wearable, ubiquitous RFID-enabled sensing
US10750324B2 (en) Mixed-mode wireless scanner
CN203520636U (en) Traffic information collecting device based on wireless radio-frequency identification
CN103078719B (en) A kind of RFID reader radio communication systems approach and system
CN203260073U (en) Underground miner attendance check signing apparatus achieved based on smart phone
WO2004111924A3 (en) A method and system for object tracking
CN114390433B (en) Positioning system and method for server motherboard
CN117114023B (en) SOC chip for improving NFC recognition efficiency
CN111163168A (en) Comprehensive operation and maintenance management system
CN220604038U (en) Electronic tag based on Bluetooth and ultrahigh frequency RFID technology
CN211180046U (en) RFID (radio frequency identification) live detection system

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210629

WD01 Invention patent application deemed withdrawn after publication