CN106154883B - Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor - Google Patents

Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor Download PDF

Info

Publication number
CN106154883B
CN106154883B CN201610662221.4A CN201610662221A CN106154883B CN 106154883 B CN106154883 B CN 106154883B CN 201610662221 A CN201610662221 A CN 201610662221A CN 106154883 B CN106154883 B CN 106154883B
Authority
CN
China
Prior art keywords
data
magnetic sensor
weak magnetic
wireless
state
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
Application number
CN201610662221.4A
Other languages
Chinese (zh)
Other versions
CN106154883A (en
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.)
Wuxi Zhonganjielian Technology Co ltd
Original Assignee
Wuxi Zhonganjielian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Zhonganjielian Technology Co ltd filed Critical Wuxi Zhonganjielian Technology Co ltd
Priority to CN201610662221.4A priority Critical patent/CN106154883B/en
Publication of CN106154883A publication Critical patent/CN106154883A/en
Application granted granted Critical
Publication of CN106154883B publication Critical patent/CN106154883B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a wireless ad hoc network intelligent ground lock control method and system based on a weak magnetic sensor. The invention adopts the low-power consumption self-organizing network convergence protocol and distribution protocol, and introduces a request beacon frame, a correct response beacon frame and an abnormal response beacon frame, so that the intelligent lockset has dynamic self-organization, self-healing, expansibility and extremely high robustness; the intelligent ground lock is convenient to deploy and easy to maintain, and labor and fund cost are saved; the weak magnetic sensor is more stable and reliable in vehicle sensing and ground lock control application through a weak magnetic sensor sensing algorithm; the method has the advantages of being more obvious in monitoring and controlling the large-scale parking spaces in commercial parking lots, and providing hardware and algorithm support for parking space reservation.

Description

Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor
Technical Field
The invention relates to the field of intelligent ground locking, in particular to a wireless ad hoc network intelligent ground locking control method and system based on a weak magnetic sensor.
Background
The intelligent lock in the current market mainly uses a hand-held remote controller or a Bluetooth technology to pair with a mobile phone and then controls the lifting of the intelligent lock in a single hop within a certain effective distance. The remote controller or the matched mobile phone corresponding to the parking space is needed to control lifting before parking and after leaving, and the operation is troublesome. In order to relieve the parking pressure in the central urban area, a plurality of parking lots realize advanced technologies such as on-line checking of vacant parking spaces, automatic payment of license plate recognition and the like. However, individual parking spaces cannot be managed, which limits the effective management of vehicle parking within the parking lot, and the demand for reserved parking spaces cannot be met, and the previously viewed empty parking spaces are likely to be completely full by the time you arrive at the parking lot.
Disclosure of Invention
The invention aims to solve the problems in the background art through a wireless ad hoc network intelligent ground lock control method and system based on a weak magnetic sensor.
To achieve the purpose, the invention adopts the following technical scheme:
a wireless ad hoc network intelligent ground lock control method based on a weak magnetic sensor comprises the following steps:
s101, initializing the intelligent lock: judging whether an initialization magnetic field exists in the Flash data, if not, entering a monitoring initialization instruction stage, completing initialization configuration after monitoring the initialization instruction, and starting periodic sampling and monitoring of parking spaces;
s102, defining three parking space states: a no-vehicle state, a transition state, and a vehicle-on state;
s103, storing new magnetic field data acquired periodically into a sliding window with N bits, and then moving old data backwards; when the number of each data occurrence P times of the sliding window is larger than the threshold value in the no-vehicle state, the sliding window enters a conversion state;
s104, in the conversion state, each data of the N-bit sliding window is larger than a threshold value, and each data of data more than Q times continuously is larger than the threshold value, and the vehicle is in a vehicle state.
In particular, entering a no-vehicle state when each of the same P or more consecutive times of data in the transition state is less than the threshold value; similarly, the opposite judgment is needed for switching from the on-vehicle state to the off-vehicle state; when the vehicle is in a vehicle-free state, continuously generating magnetic field dispersion for N times, if the magnetic field dispersion is smaller than an environment change threshold value, initializing and updating magnetic field data, and storing the updated data into Flash; the magnetic field dispersion is determined according to the variation of the X axis, the Y axis and the Z axis respectively.
Specifically, the step S101 of completing the initialization configuration after monitoring the initialization command specifically includes: reading the intensity of the initialization magnetic field after monitoring the initialization command, storing the intensity of the initialization magnetic field into Flash, and starting periodic sampling and monitoring of the parking space.
In particular, P in step S103 is set to 2, that is, when each data of the sliding window appears 2 times and is greater than the number of threshold values, the transition state is entered; in step S104, Q is set to 8, that is, data more than 8 consecutive times each is greater than a threshold value, and the vehicle is in a vehicle-on state.
The invention also discloses a wireless ad hoc network intelligent ground lock control system based on the weak magnetic sensor, which comprises a main control computer, gateway equipment and a plurality of subnets Net1, net2 … Netn formed by the wireless ad hoc network intelligent ground locks based on the weak magnetic sensor; the subnet comprises a cluster head, a first-level cluster member and a second-level cluster member, wherein the cluster head is a Sink node, the first-level cluster member is a Relay node, and the second-level cluster member is a Leaf node; the main control computer is a total control desk of the whole system; the gateway equipment is used for collecting data packets converged by Sink nodes in the subnetwork; the cluster head is used for converging data acquired by all detection nodes of the subnet, and the detection nodes are intelligently locked; the first-level cluster members are used for maintaining a data packet forwarding network; the secondary cluster members are used for monitoring the parking spaces, controlling intelligent locks and sending the parking space conditions to the cluster head.
Particularly, a network layer in the wireless ad hoc network intelligent ground lock control system based on the weak magnetic sensor adopts two implementation modes, and a first-level cluster member routes the wireless ad hoc network intelligent ground lock based on the weak magnetic sensor to realize a complete CTP protocol, complete route maintenance and data convergence function; the detection node of the second-level cluster member realizes part of CTP protocol, maintains an effective network access port table, and the access port table is composed of first-level cluster member addresses.
In particular, in a path from a wireless ad hoc network intelligent lock node based on a weak magnetic sensor to a main control computer, a data stream can be divided into an intra-cluster segment, an inter-cluster segment and a gateway to the main control computer segment, and the data is transmitted from an application layer of a cluster member to an application layer of a cluster head, then transmitted to gateway equipment, and is transmitted to the main control computer after protocol conversion of the gateway equipment; the wireless ad hoc network based on the weak magnetic sensor intelligently locks a new joining network, broadcasts a request beacon frame after power-on, a routing node checks whether the received request beacon frame is a correct routing frame, returns an abnormal response beacon frame if not, continuously processes the routing frame according to different abnormal codes by the intelligent lock to be joined, returns the correct response beacon frame if not, informs the routing information of the local intelligent lock, constructs an own initial routing table by the intelligent lock through the frames replied by each point, and selects an optimal path as a next hop address when sending a state data packet each time; the addresses of the intelligent locks are uniquely specified in the programming process and are 16-bit unsigned addresses.
Particularly, the routing node equipment adopts a dynamic routing mode, acquires the current link quality by collecting datagrams and distributing and receiving beacon frames, and thereby selects a relatively better next-hop node; when one of the intelligent locks fails in all the next hops in the routing table, a request beacon frame is broadcast, so that link quality information of surrounding routing nodes is collected, and the routing table is reconstructed.
Particularly, if the state data packet sent by the intelligent lock cannot be responded for a long time, judging that the link fails, and reporting the failure to an upper layer protocol; when the state changes, the state changes are reported to the routing node; the routing equipment judges whether to be submitted to the gateway equipment or not according to the reported state content and the current network state; the Sink node evaluates and diagnoses the network performance through the device state reported by the node device and responds to the change of the network environment in time; the Sink node may also detect device anomalies within the network by setting an alarm condition within the detecting network device.
In particular, the intelligent lock adopts a low-power consumption monitoring mode; adjusting the monitoring time through the period of the sleep timer and the working timer; and also close MicroTimer (auxiliary clock timer) while closing Radio; starting the monitored Radio to receive instruction frames in the period time of the working timer; while the smart lock is in the listening state: confirming whether the received data packet is an instruction frame or not, and if so, returning a correct response frame, namely (ACK) confirmation; and then judging the instruction for executing the response according to the command field of the instruction frame.
The wireless ad hoc network intelligent ground lock control method and system based on the weak magnetic sensor provided by the invention have the following advantages: 1. the self-organizing network convergence protocol and the distribution protocol with low power consumption are adopted, and a request beacon frame, a correct response beacon frame and an abnormal response beacon frame are introduced, so that the intelligent lockset has dynamic self-organization, self-healing, expansibility and extremely high robustness. 2. The intelligent lock is convenient to deploy and easy to maintain, and labor and fund cost are saved; 3. the weak magnetic sensor is enabled to be more stable and reliable in vehicle sensing and ground lock control application through the weak magnetic sensor sensing algorithm. 4. The method has the advantages of being more obvious in monitoring and controlling the large-scale parking spaces in commercial parking lots, and providing hardware and algorithm support for parking space reservation.
Drawings
Fig. 1 is a flowchart of a wireless ad hoc network intelligent lock control method based on a weak magnetic sensor according to an embodiment of the present invention;
FIG. 2 is a flowchart of an intelligent lock initialization process according to an embodiment of the present invention;
FIG. 3 is a flow chart of flux weakening sensing provided by an embodiment of the present invention;
fig. 4 is a network topology structure of a wireless ad hoc network intelligent lock control system based on a weak magnetic sensor according to an embodiment of the present invention;
FIG. 5 is a diagram showing a mapping relationship between an OSI reference model and a magnetic induction detection network protocol according to an embodiment of the present invention;
fig. 6 is a flowchart of data transmission in an intelligently locked ad hoc network protocol stack according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a process for newly and intelligently locking a joining network according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a routing configuration and data forwarding process according to an embodiment of the present invention;
FIG. 9 is a low power Radio workflow provided by an embodiment of the present invention;
FIG. 10 is a flow chart of instruction reception according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a wireless ad hoc network intelligent lock based on a weak magnetic sensor according to an embodiment of the present invention.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. 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 herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a flowchart of a wireless ad hoc network intelligent lock control method based on a weak magnetic sensor according to an embodiment of the present invention.
The wireless ad hoc network intelligent ground lock control method based on the weak magnetic sensor in the embodiment specifically comprises the following steps:
s101, initializing the intelligent lock: judging whether an initialization magnetic field exists in the Flash data, if not, entering a monitoring initialization instruction stage, completing initialization configuration after monitoring the initialization instruction, and starting periodic sampling and monitoring of the parking spaces. Specifically, as shown in fig. 2, whether an initialization magnetic field exists in Flash data is judged, if not, an initialization instruction monitoring stage is entered, the initialization magnetic field intensity is read after the initialization instruction is monitored, the initialization magnetic field intensity is stored in Flash, and the periodic sampling and monitoring of parking spaces are started.
S102, defining three parking space states: no car state, transition state, car state.
S103, storing new magnetic field data acquired periodically into a sliding window with N bits, and then moving old data backwards; and when the number of each data occurrence P times of traversing the sliding window is larger than the threshold value in the no-vehicle state, entering a conversion state.
S104, in the conversion state, each data of the N-bit sliding window is larger than a threshold value, and each data of data more than Q times continuously is larger than the threshold value, and the vehicle is in a vehicle state. As shown in fig. 3, fig. 3 is a flowchart of weak magnetic sensing provided in an embodiment of the present invention.
The intelligent lock sensing algorithm is mainly performed on the basis of initialization of a weak magnetic sensor. When each data of the same continuous P times or more in the transition state is smaller than a threshold value, entering a no-vehicle state; similarly, the opposite judgment is needed for switching from the on-vehicle state to the off-vehicle state; when the vehicle is in a vehicle-free state, continuously generating magnetic field dispersion for N times, if the magnetic field dispersion is smaller than an environment change threshold value, initializing and updating magnetic field data, and storing the updated data into Flash; the magnetic field dispersion is determined according to the variation of the X axis, the Y axis and the Z axis respectively. In this embodiment, P is set to 2, that is, when each data of the sliding window is traversed for 2 times and is greater than the number of threshold values, a transition state is entered; q is set to 8, namely, more than 8 times of continuous data are each larger than a threshold value, and the vehicle is in a vehicle-on state.
The system configuration of the smart lock in this embodiment is mainly composed of eight components, sendLayerC (data transmission component), receivingtransstructionlayerc (instruction reception component), magnetomerc (field weakening drive component), testaddcc (voltage configuration component), adcreadnewclientc (voltage drive component), constantsC (Flash storage component), userbutton c (user button component), wdtC (watchdog component). The transmission protocol specifies five data frame formats, namely, a data format (instruction frame) specified by an instruction PDU (protocol data unit), a data format (request beacon frame) specified by a request PDU, a data format (status frame) specified by a slot status PDU, a data format (correct corresponding frame) specified by a correct response PDU, and a data format (abnormal response frame) specified by an abnormal response PDU.
As shown in fig. 4, fig. 4 is a network topology structure of a wireless ad hoc network intelligent lock control system based on a weak magnetic sensor according to an embodiment of the present invention.
The wireless ad hoc network intelligent ground lock control system based on the weak magnetic sensor in the embodiment specifically comprises a main control computer, gateway equipment and a plurality of subnets Net1, net2 … Netn formed by the wireless ad hoc network intelligent ground lock based on the weak magnetic sensor; in order to guarantee the reliability of the network, redundant gateway devices and routing devices are allowed in the ad hoc network. The subnet comprises a cluster head, a first-level cluster member and a second-level cluster member, wherein the cluster head is a Sink node, the first-level cluster member is a Relay node, and the second-level cluster member is a Leaf node; the main control computer is a total control desk of the whole system; the gateway equipment is used for collecting data packets converged by Sink nodes in the subnetwork; the cluster head is used for converging data acquired by all detection nodes of the subnet, and the detection nodes are intelligently locked; the first-level cluster members are used for maintaining a data packet forwarding network; the secondary cluster members are used for monitoring the parking spaces, controlling intelligent locks and sending the parking space conditions to the cluster head.
As shown in fig. 5, the smart lock network protocol follows the basic reference model of ISO/IEC7489OSI, but only defines the Application Layer (AL), network Layer (NL) and data link sub-layer (DLSL). Its physical layer (PHY) and medium access control sublayer (MAC) are based on IEEE STD 802.15.4:2006. The network layer in the wireless ad hoc network intelligent ground lock control system based on the weak magnetic sensor adopts two implementation modes, and the first-level cluster member routing wireless ad hoc network intelligent ground lock based on the weak magnetic sensor realizes a complete CTP protocol, a complete route maintenance function and a data convergence function; the detection node of the second-level cluster member realizes part of CTP protocol, maintains an effective network access port table, and the access port table is composed of first-level cluster member addresses.
The addresses of the intelligent locks are uniquely specified in the programming process and are 16-bit unsigned addresses. In the intelligent locking self-organizing network protocol stack, the transmission paths of data in the intelligent locking nodes, the routing nodes, the Sink nodes and the gateway equipment are shown in fig. 6, in the path from the wireless self-organizing network based on the weak magnetic sensor to the main control computer, the data flow can be divided into intra-cluster segments, inter-cluster segments and gateway-to-main control computer segments, the data is transmitted from the application layer of the cluster members to the application layer of the cluster heads, then transmitted to the gateway equipment, and is transmitted to the main control computer after protocol conversion of the gateway equipment. As shown in fig. 7, the wireless ad hoc network based on the weak magnetic sensor intelligently locks a new joining network, broadcasts a request beacon frame after power-on, and the routing node checks whether the received request beacon frame is a correct routing frame, returns an abnormal response beacon frame if not, and the intelligent lock to be joined continues to process the routing frame according to different abnormal codes, returns the correct response beacon frame if correct, informs the routing information of the intelligent lock, and constructs an own initial routing table by the frame replied by each point when the intelligent lock is newly joined, and selects an optimal path as a next hop address when sending a status data packet each time.
The routing node equipment adopts a dynamic routing mode, acquires the current link quality by collecting datagrams and distributing and receiving beacon frames, and thereby selects a relatively better next hop node; when one of the intelligent locks fails in all the next hops in the routing table, a request beacon frame is broadcast, so that link quality information of surrounding routing nodes is collected, and the routing table is reconstructed. The configuration and data forwarding process is shown in fig. 8.
If the state data packet sent by the intelligent lock cannot be responded for a long time (exceeding a specified length), judging that the link fails, and reporting the failure to an upper layer protocol; when the state changes, the state changes are reported to the routing node; the routing equipment judges whether to be submitted to the gateway equipment or not according to the reported state content and the current network state; the Sink node evaluates and diagnoses the network performance through the device state reported by the node device and responds to the change of the network environment in time; the Sink node can also detect abnormal conditions of equipment in the network, such as insufficient electric quantity, routing failure and the like, by setting an alarm condition in the detection network equipment.
As shown in fig. 9 and 10, the intelligent lock adopts a low-power consumption monitoring mode; adjusting the monitoring time through the period of the sleep timer and the working timer; and also close MicroTimer (auxiliary clock timer) while closing Radio; starting the monitored Radio to receive instruction frames in the period time of the working timer; while the smart lock is in the listening state: confirming whether the received data packet is an instruction frame or not, and if so, returning a correct response frame, namely (ACK) confirmation; and then judging the instruction for executing the response according to the command field of the instruction frame.
It should be noted that, in the above text and the accompanying drawings, the "intelligent lock" and the "ground lock" both refer to a wireless ad hoc network intelligent lock based on a weak magnetic sensor, and in this embodiment, the structure of the wireless ad hoc network intelligent lock based on a weak magnetic sensor is shown in fig. 11, and the wireless ad hoc network intelligent lock body based on a weak magnetic sensor includes a wireless weak magnetic node 1, a weak magnetic sensing module, a gear motor limit controller 2 and a lifting type ground lock 3; the wireless weak magnetic node 1 is connected with a weak magnetic sensing module; the wireless weak magnetic node 1 is connected with a speed reducing motor limit controller 2; the gear motor limit controller 2 is connected with the lifting type ground lock 3. The wireless weak magnetic node 1 comprises a micro-processing radio frequency module, a sensing node memory, a spring antenna, a key, a USB writer and an expansion interface; the sensing node memory, the spring antenna, the keys, the USB burner and the expansion interface are connected with the micro-processing radio frequency module; the expansion interface is connected with the gear motor limit controller 2. The weak magnetic sensing module can be optionally embedded into the wireless weak magnetic node 1 or independently arranged outside the wireless weak magnetic node 1. The weak magnetic sensing module comprises an expansion interface and a weak magnetic sensor; the weak magnetic sensor is connected with an expansion interface, and the expansion interface is connected with a micro-processing radio frequency module of the wireless weak magnetic node 1. The gear motor limit controller 2 comprises a gear motor control chip, a power supply voltage monitoring module, a DC-DC voltage reducing module, an expansion interface and a power supply; the power supply voltage monitoring module, the DC-DC step-down module, the expansion interface and the power supply are connected with the speed reduction motor control chip; the expansion interface is connected with the wireless weak magnetic node 1. The lifting ground lock 3 comprises a lifting ground lock 3 body, a gear motor, a limit switch, an indicator light and an expansion interface; the gear motor, the limit switch, the indicator light and the expansion interface are connected with the lifting type ground lock 3 body; the lifting type ground lock 3 body is arranged on a parking space; the expansion interface of the gear motor limit controller 2 is connected with a gear motor and a limit switch. The wireless ad hoc network intelligent ground lock based on the weak magnetic sensor further comprises a Bluetooth module; the Bluetooth module is connected with an expansion interface of the wireless weak magnetic node 1. An I2C bus interface is selected as an expansion interface of the weak magnetic sensing module; the weak magnetic sensor is connected with a micro-processing radio frequency module of the wireless weak magnetic node 1 through an I2C bus interface; the weak magnetic sensor is a magneto-resistance sensor. The power supply is a storage battery. The limit switches are arranged in two.
According to the technical scheme, the uplink and downlink self-healing communication of the parking space is achieved through the communication network of the intelligent lock wireless ad hoc network, the situation of a vehicle on the parking space is automatically perceived through the perception algorithm of the weak magnetic sensor, and the driving of the ground lock is achieved through the control algorithm of the gear motor. And analyzing and judging the state of the parking space according to the original data of the weak magnetic sensor, uploading the data through a convergence protocol, and responding to an instruction set sent by the acquisition server according to a distribution protocol to control the ground lock. The intelligent lock may collect analysis data as well as relay the data. The invention has the following advantages: 1. the self-organizing network convergence protocol and the distribution protocol with low power consumption are adopted, and a request beacon frame, a correct response beacon frame and an abnormal response beacon frame are introduced, so that the intelligent lockset has dynamic self-organization, self-healing, expansibility and extremely high robustness. 2. The intelligent lock is convenient to deploy and easy to maintain, and labor and fund cost are saved; 3. the weak magnetic sensor is enabled to be more stable and reliable in vehicle sensing and ground lock control application through the weak magnetic sensor sensing algorithm. 4. The method has the advantages of being more obvious in monitoring and controlling the large-scale parking spaces in commercial parking lots, and providing hardware and algorithm support for parking space reservation.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. A wireless ad hoc network intelligent ground lock control method based on a weak magnetic sensor is characterized by comprising the following steps:
s101, initializing the intelligent lock: judging whether an initialization magnetic field exists in the Flash data, if not, entering a monitoring initialization instruction stage, completing initialization configuration after monitoring the initialization instruction, and starting periodic sampling and monitoring of parking spaces;
s102, defining three parking space states: a no-vehicle state, a transition state, and a vehicle-on state;
s103, storing new magnetic field data acquired periodically into a sliding window with N bits, and then moving old data backwards; when the number of each data occurrence P times of the sliding window is larger than the threshold value in the no-vehicle state, the sliding window enters a conversion state;
s104, in the conversion state, each data of the N-bit sliding window is larger than a threshold value, and each data of data more than Q times continuously is larger than the threshold value, and the vehicle is in a vehicle state.
2. The wireless ad hoc network intelligent ground lock control method based on the weak magnetic sensor according to claim 1, wherein when each data is smaller than a threshold value for the same continuous P times or more in the transition state, entering a no-vehicle state; similarly, the opposite judgment is needed for switching from the on-vehicle state to the off-vehicle state; when the vehicle is in a vehicle-free state, continuously generating magnetic field dispersion for N times, if the magnetic field dispersion is smaller than an environment change threshold value, initializing and updating magnetic field data, and storing the updated data into Flash; the magnetic field dispersion is determined according to the variation of the X axis, the Y axis and the Z axis respectively.
3. The method for controlling intelligent lock of wireless ad hoc network based on weak magnetic sensor according to claim 2, wherein the step S101 completes the initialization configuration after monitoring the initialization command, and specifically comprises: reading the intensity of the initialization magnetic field after monitoring the initialization command, storing the intensity of the initialization magnetic field into Flash, and starting periodic sampling and monitoring of the parking space.
4. The method for intelligent lock control of wireless ad hoc network based on weak magnetic sensor according to claim 3, wherein in step S103, P is set to 2, i.e. when each data of the traversal sliding window appears 2 times more than the number of threshold values, the transition state is entered; in step S104, Q is set to 8, that is, data more than 8 consecutive times each is greater than a threshold value, and the vehicle is in a vehicle-on state.
5. The wireless ad hoc network intelligent ground lock control system based on the weak magnetic sensor is characterized by comprising a main control computer, gateway equipment and a plurality of subnets Net1, net2 … Netn formed by the wireless ad hoc network intelligent ground locks based on the weak magnetic sensor; the subnet comprises a cluster head, a first-level cluster member and a second-level cluster member, wherein the cluster head is a Sink node, the first-level cluster member is a Relay node, and the second-level cluster member is a Leaf node; the main control computer is a total control desk of the whole system; the gateway equipment is used for collecting data packets converged by Sink nodes in the subnetwork; the cluster head is used for converging data acquired by all detection nodes of the subnet, and the detection nodes are intelligently locked; the first-level cluster members are used for maintaining a data packet forwarding network; the secondary cluster member is used for monitoring the parking space, controlling the intelligent lock and sending the parking space condition to the cluster head;
the network layer in the wireless ad hoc network intelligent ground lock control system based on the weak magnetic sensor adopts two implementation modes, and the first-level cluster member routing wireless ad hoc network intelligent ground lock based on the weak magnetic sensor realizes a complete CTP protocol, a complete route maintenance function and a data convergence function; the detection node of the secondary cluster member realizes part of CTP protocol, maintains an effective network access port table, and the access port table is composed of primary cluster member addresses;
in a path from a wireless ad hoc network intelligent lock node to a main control computer based on a weak magnetic sensor, a data stream can be divided into an intra-cluster section, an inter-cluster section and a gateway to main control computer section, and the data is transmitted from an application layer of a cluster member to an application layer of a cluster head, then transmitted to gateway equipment, and is transmitted to the main control computer after protocol conversion of the gateway equipment; the wireless ad hoc network based on the weak magnetic sensor intelligently locks a new joining network, broadcasts a request beacon frame after power-on, a routing node checks whether the received request beacon frame is a correct routing frame, returns an abnormal response beacon frame if not, continuously processes the routing frame according to different abnormal codes by the intelligent lock to be joined, returns the correct response beacon frame if not, informs the routing information of the local intelligent lock, constructs an own initial routing table by the intelligent lock through the frames replied by each point, and selects an optimal path as a next hop address when sending a state data packet each time; the addresses of the intelligent locks are uniquely specified in the programming process and are 16-bit unsigned addresses.
6. The wireless ad hoc network intelligent ground lock control system based on the weak magnetic sensor according to claim 5, wherein the routing node device adopts a dynamic routing mode, acquires the current link quality by collecting datagrams and distributing and receiving beacon frames, thereby selecting a relatively better next hop node; when one of the intelligent locks fails in all the next hops in the routing table, a request beacon frame is broadcast, so that link quality information of surrounding routing nodes is collected, and the routing table is reconstructed.
7. The weak magnetic sensor-based wireless ad hoc network intelligent lock control system according to claim 6, wherein if the status data packet sent by the intelligent lock is not acknowledged for a long time, the link failure is determined, and the failure is reported to an upper layer protocol; when the state changes, the state changes are reported to the routing node; the routing equipment judges whether to be submitted to the gateway equipment or not according to the reported state content and the current network state; the Sink node evaluates and diagnoses the network performance through the device state reported by the node device and responds to the change of the network environment in time; the Sink node also detects device anomalies within the network by setting alarm conditions within the detecting network device.
8. The wireless ad hoc network intelligent ground lock control system based on weak magnetic sensor according to claim 7, wherein the intelligent ground lock adopts a low power consumption monitoring mode; adjusting the monitoring time through the period of the sleep timer and the working timer; and closing the auxiliary clock timer while closing the Radio; starting the monitored Radio to receive instruction frames in the period time of the working timer; while the smart lock is in the listening state: confirming whether the received data packet is an instruction frame or not, and returning a correct response frame if the received data packet is the instruction frame; and then judging the instruction for executing the response according to the command field of the instruction frame.
CN201610662221.4A 2016-08-12 2016-08-12 Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor Active CN106154883B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610662221.4A CN106154883B (en) 2016-08-12 2016-08-12 Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610662221.4A CN106154883B (en) 2016-08-12 2016-08-12 Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor

Publications (2)

Publication Number Publication Date
CN106154883A CN106154883A (en) 2016-11-23
CN106154883B true CN106154883B (en) 2023-12-19

Family

ID=57330148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610662221.4A Active CN106154883B (en) 2016-08-12 2016-08-12 Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor

Country Status (1)

Country Link
CN (1) CN106154883B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109219074B (en) * 2018-08-31 2021-11-26 中建科技集团有限公司 Monitoring method, monitor and detection device of sensor network
CN113315698B (en) * 2021-05-25 2022-07-05 中国电子科技集团公司第二十九研究所 Task-based sensor networking message routing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074125A (en) * 2011-01-25 2011-05-25 中山北京理工大学研究院 Low power consumption parking management system based on wireless sensor network, and wireless network nodes
CN202093688U (en) * 2011-06-07 2011-12-28 华南理工大学 Parking stall detection apparatus based on wireless ad-hoc network
CN102760363A (en) * 2012-07-18 2012-10-31 无锡赛思汇智科技有限公司 Parking place monitoring system based on combination of weak magnetic sensor and self-organized network technology
CN104678908A (en) * 2013-11-28 2015-06-03 北京盛世晶都科技有限公司 Networking automatic parking space ground lock management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7420954B2 (en) * 2004-01-13 2008-09-02 General Motors Corporation Efficient lightweight information dissemination algorithm for mobile wireless ad hoc networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074125A (en) * 2011-01-25 2011-05-25 中山北京理工大学研究院 Low power consumption parking management system based on wireless sensor network, and wireless network nodes
CN202093688U (en) * 2011-06-07 2011-12-28 华南理工大学 Parking stall detection apparatus based on wireless ad-hoc network
CN102760363A (en) * 2012-07-18 2012-10-31 无锡赛思汇智科技有限公司 Parking place monitoring system based on combination of weak magnetic sensor and self-organized network technology
CN104678908A (en) * 2013-11-28 2015-06-03 北京盛世晶都科技有限公司 Networking automatic parking space ground lock management system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于无线传感网的车位检测系统设计;陈国林;佘洪波;董金荣;池上升;;单片机与嵌入式系统应用(第08期);55-58 *

Also Published As

Publication number Publication date
CN106154883A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
KR101394357B1 (en) Wireless sensor network system and method managing cluster thereof
US7983685B2 (en) Method and apparatus for management of a global wireless sensor network
EP2618612B1 (en) Energy-saving management method, system for wireless sensor network and remote management server
US9143890B2 (en) Network, master, hub and method for providing a bluetooth infrastructure
US7995467B2 (en) Apparatus and method for adapting to failures in gateway devices in mesh networks
US20030151513A1 (en) Self-organizing hierarchical wireless network for surveillance and control
US8331264B2 (en) Wireless sensor network and method for configuration thereof
EP2171929B1 (en) Path selection and power management in mesh networks
KR101309840B1 (en) Apparatus and method for supplying power in a wireless sensor network
CN101404845B (en) Road illumination monitoring system based on ZigBee technology
CN106792973B (en) Cluster head election and rotation method in energy heterogeneous wireless sensor network
CN101094138B (en) Method for prolonging lifecycle of wireless sensor network based on D5 algorithm
CN102457877B (en) In conjunction with network, the method processing WSN terminal processes data and WSN gateway
CN101755417B (en) Method and the routing node realizing the method for the information packet transmissions on management wireless network
KR20090090461A (en) Method for prolonging lifetime of sensor nodes in a wireless sensor network and system therefor
CN105934976A (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
CN106230645B (en) Low-power-consumption wireless communication method used between monitoring node and convergence gateway
US20110188420A1 (en) I/o driven node commissioning in a sleeping mesh network
JP2008078963A (en) Communication method for wireless sensor network, and sensor node
CN111669807A (en) RF wake-up for in-vehicle systems
CN106154883B (en) Wireless ad hoc network intelligent ground lock control method and system based on weak magnetic sensor
US11419175B2 (en) Reconstructing a personal area network or system after a failure in the network or system
Cao et al. Design of a generic management system for wireless sensor networks
US20230044362A1 (en) Decentralized home sensor network
KR20110056006A (en) Sensor network and clustering method for sensor network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant