Disclosure of Invention
Aiming at the prior art, the application aims to provide a locking communication binding method for reducing the same-frequency interference problem in a frequency cutting manner.
The application provides a locking communication binding method, which comprises the following steps:
The channel and ID numbers of the lock readers are allocated, namely, a basic channel F b, a unique ID number ID Ri and a reader designated channel F Ri are set for each lock reader R i;
The channel and ID numbers of the lock are allocated, a basic channel F b, a unique ID number ID Ej and a lock designation channel F Ej corresponding to ID Ej are set for each lock E j, and
The communication binding process of the lock and the traffic lane comprises the steps of switching all communication channels of the lock in idle to a basic channel F b, setting all lock readers in idle to carry the basic channel F b of corresponding lock reader designated channel data to carry out request binding broadcasting, identifying a lock E j going into the traffic lane by using a basic channel F b video of a lock reader R i, switching the communication frequency bands of the lock E j and the lock reader R i to the reader designated channel F Ri, and transmitting a serial number ID Ej to the lock reader R i through the lock E j.
In the lock-closing communication binding method, all lock-closing and lock-closing readers are arranged in a unique number in advance, a basic channel used for identifying lock-closing by the lock-closing readers and a lock-closing specific communication channel are carried out, after the lock-closing reader R i identifies the lock-closing E j by the radio frequency of the basic channel, as the basic channel of the lock-closing reader R i carries the data of a reader-assigned channel F Ri, after the identification is successful, the communication frequency bands of the lock-closing E j and the lock-closing reader R i are switched to the reader-assigned channel F Ri, and after the frequency switching mode is adopted, the lock-closing E j and the lock-closing reader R i can be in a specific unique reader-assigned channel F Ri at a lock-opening, so that the lock-closing E j transmits the number ID Ej to the reader-assigned channel F Ri by the unique reader-assigned channel F Ri to realize the binding of the lock-closing and the readers. Thus, the lock-closing communication binding method effectively prevents the same-frequency interference problem with other locks and readers in the binding communication process by a frequency-cutting mode
In one possible implementation, the value of each lock-off designated channel F Ej and each reader designated channel F Ri are set to be greater than the base channel F b;
The mode of setting a lock designated channel F Ej corresponding to lock E j is that lock designated channel F Ej =base channel F b+(IDEj% M) ×n;
wherein M is the total number of planned channels, and N is the width of adjacent channels.
In one possible implementation, the base channel F b is set to 433MHz, M is 255, and N is 2.5KHZ.
In one possible implementation manner, before the communication binding between the lock E j and the traffic lane is performed, the lock-closing communication binding method further includes performing initial binding between the lock E j and the vehicle at a first gateway where the vehicle runs:
Forming a matching array by each lane number, a camera number on the lane and a lock reader number on the lane, and uploading the matching array to a monitoring platform;
identifying the license plate of the vehicle by using a camera which is in communication connection with a monitoring background of the lane, and uploading the identified license plate number to a matching array corresponding to the camera;
Switching the communication channel of the lock E j to the basic channel F b, and carrying out communication binding between the lock E j and the lane of the first closing port to obtain binding matching information of the lock reader number ID Ri and the lock number ID Ej;
Inquiring the license plate number in a matching array of the monitoring background according to the number ID Ri of the locking reader R i;
The license plate number is issued to a lock closing reader R i by utilizing a monitoring background;
The license plate number is transmitted by the lock reader R i to the lock E j bound to the lock reader R i on the communication channel of the reader-designated channel F Ri.
In one possible implementation, after the serial number ID Ej is transmitted to the lock reader R i through the lock E j, the communication binding process of the lock and the traffic lane further includes:
Switching the communication channels of the lock E j and the lock reader R i to a lock designated channel F Ej, and setting the bound lock E j and lock reader R i to be in a busy state;
for all lanes of a gateway, performing subsequent specified command operation on the lock according to the lock-closing specified channels of all the locks in a busy state;
The monitoring background controls the lock E j to execute the specified command operation according to the priority by taking the lock specified channel F Ej as a communication channel.
In one possible implementation manner, before the switching of the communication channels of the lock E j and the lock-off reader R i to the lock-off designated channel F Ej, the communication binding process of the lock-off and the traffic lane further includes:
The ID Ri corresponding to the lock reader R i, the ID Ej corresponding to the lock E j bound with the lock reader R i and the license plate number bound with the lock E j are integrated to form a bound data packet;
uploading the binding data packet to a monitoring background by using the lock reader R i;
analyzing the binding data packet when the monitoring background receives the binding data packet, and issuing a binding success command to the lock reader R i according to the analyzed content;
The lock reader R i is used to send a "bind successful" command to the lock E j on the reader specific channel F Ri.
In one possible implementation manner, the prioritizing the lock execution of the subsequent specified command operation according to the lock-off specified channels of all the locks in the "busy state" includes:
Establishing a two-dimensional digit operation table about all lock reader numbers and related lock numbers;
Filling a two-dimensional operation table with a switched lock designated channel in the binding process of each lock and the lane;
and searching data in the two-dimensional operation table, setting the operation level of the corresponding lock of the different data as a first level, and setting the operation level of the corresponding lock of the same data as a second level.
In one possible implementation, the monitoring background performs the specified command operation according to the priority control lock E j as:
firstly, controlling a lock belonging to a first level to execute a designated command operation by using a monitoring background;
And then the monitoring background is utilized to control the lock belonging to the second level to execute the specified command operation at different moments.
In one possible implementation, the specified command operation is at least one of a seal-sealing, a seal-unsealing, a seal-verifying, an alarm, and a seal-unsealing command operation.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved more clear, the application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It will be understood that when an element is referred to as being "mounted" or "disposed" on another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It is to be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are merely for convenience in describing and simplifying the description based on the orientation or positional relationship shown in the drawings, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus are not to be construed as limiting the application.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The locking communication binding method and the locking communication binding system of the application are specifically described with reference to the accompanying drawings.
The lock is used for positioning, monitoring and protecting materials on vehicles, which can be but are not limited to container vehicles, the lock is arranged on a box door and is locked, and the lock communication binding method and the lock communication binding system provided by the embodiment of the application are applied to binding of the vehicles and the lock, binding of the lock on the vehicles and a lock reader of a lane of the gateway when the vehicles travel to each gateway, and binding communication among monitoring background, the lock reader and the lock.
Referring to fig. 1, the method for binding lock communication according to the embodiment of the present application includes steps S100 to S400 as follows.
Step S100, allocating channels and ID numbers of the lock-off reader:
Specifically, a basic channel F b, a unique ID number ID Ri, and a reader-specific channel F Ri are set for each lock-off reader R i, and the allocation result is uploaded to the monitoring background.
Step S200, allocating the locked channels and ID numbers:
specifically, a basic channel, a unique ID number ID Ej, and a lock designation channel F Ej corresponding to ID Ej are set for each lock E j, and the allocation result is uploaded to the monitoring background.
It will be appreciated that R i represents any lock-off reader, E j represents any lock-off, the ID number of each lock-off is unique, the ID number of each lock-off reader is also unique, and the number can be set to a digital number, typically 10 digits. In the material transportation process, the lock can communicate with the vehicle at a plurality of gates, at each gate, the lock is identified by a lock reader of a lane of the gate, communication binding of the lock and the lock reader is carried out, and after binding, the monitoring background can send instructions to the bound lock and the lock reader to carry out designated command operation. For the number of communication channels set to M, if there are K lock readers, N channels are selected from the M communication channels as the reader-assigned channels of the K lock readers in order to facilitate distinguishing between different lock readers.
Step S300, initial binding of the lock E j and the vehicle is carried out at the first gateway of the vehicle running.
Step S400, the communication binding process of the lock and the traffic lane comprises the steps of switching all the communication channels of the lock in idle to a basic channel F b, setting all the lock readers in idle to carry the basic channel F b corresponding to the specified channel data of the lock readers to carry out the request binding broadcast, identifying the lock E j going into the traffic lane by the lock reader R i through the basic channel F b when the lock reader R i carries out video identification, switching the communication frequency bands of the lock E j and the lock reader R i to the specified channel F Ri, and transmitting the ID Ej to the lock reader R i through the lock E j. Since the communication frequency bands of the lock E j and the lock reader R i are switched to the reader-designated channel F Ri, only the lock E j communicates with the lock reader R i during the gateway, and the lock E j transmits the serial number ID Ej to the lock reader R i during the gateway, the channel F Ri is designated by the reader.
In the lock communication binding method, the communication binding of a lock and a communication lane is that the lock ID number and the lock reader ID number on the lane are obtained as a one-to-one binding result. For step S100, step S200 and step S400, all the lock and lock readers are set in a unique number in advance, the lock reader identifies the basic channel of the lock, and locks the specific communication channel, after a lock reader R i identifies a lock E j by using the basic channel radio frequency, because the basic channel of the lock reader R i carries the data of the reader designated channel F Ri, after the identification is successful, the communication frequency bands of the lock E j and the lock reader R i are switched to the reader designated channel F Ri, and after the frequency switching, the lock E j and the lock reader R i can be in a specific unique reader designated channel F Ri at the lock gate, so that the lock E j transmits the number ID Ej to the reader designated channel F Ri by using the unique reader designated channel F Ri to achieve the binding of the lock and the reader. Therefore, the lock closing communication binding method effectively prevents the same-frequency interference problem with other locks and readers in the binding communication process through a frequency-cutting mode.
Further, the mode of setting the lock designated channel F Ej corresponding to the lock E j is that the lock designated channel F Ej =the base channel F b+(IDEj% M) ×n, M is the total number of planned channels, and N is the width of the adjacent channels. The basic channel F b is used as the initial channel of all communication channels, and the value of each lock designated channel F Ej and the value of each reader designated channel F Ri are larger than the basic channel F b.
In one embodiment, the RFID mode between the lock and the lock reader is an RFID mode. The base channel F b is set at 433MHz and the total number of communication channels M is 255, N is 2.5KHz. Wherein, the adjacent channel width is set to 2.5, which can effectively avoid the problem of channel interference in the communication process.
In one embodiment, the initial binding of the lock E j and the vehicle for the first gateway on which the vehicle runs in the above step S300 specifically includes the following steps S310 to S360.
When one lock is started, namely when one lock is started to be arranged on the vehicle, the lock and the vehicle are bound only at the first gateway, namely the license plate number of the vehicle and the ID number of the lock are bound in a one-to-one correspondence and are uploaded to a monitoring background. Because the lock is locked to the vehicle once in the entire transportation route, the lock must remain in the locked state on the vehicle as long as the lock is not unlocked and unlocked by the command.
And step S310, forming a matching array by each lane number, the camera number on the lane and the lock reader number on the lane, and uploading the matching array to a monitoring platform.
Wherein the numbers of all lanes for one gateway are different, each lane is provided with a unique number, and the camera on each lane is also provided with a unique number.
Step S320, the license plate of the vehicle is identified by using a camera which is in communication connection with the monitoring background of the lane, and the identified license plate number is uploaded to a matching array corresponding to the camera.
So far, in each matching array stored in the monitoring background, the serial number of a lane is stored, the serial number of a camera of the lane, the serial number of a lock reader corresponding to the lane and the license plate number identified by the camera of the lane.
It should be noted that, for the number of the lane in a matching array, the number of the camera of the lane and the number of the lock reader corresponding to the lane are always stored in the matching array, but for the license plate number stored in the matching array, the previous license plate number is continuously replaced by a new license plate number identified by the camera, because the clearance vehicle is continuously updated, in order to ensure the effectiveness of the matching array to the current clearance vehicle and lock, the license plate data in the matching array needs to be continuously updated and replaced.
Step S330, the lock E j is started initially to switch the communication channel of the lock E j to the basic channel F b, communication binding of the lock E j and the lane of the first closing port is carried out, and binding matching information of the lock reader number ID Ri and the lock number ID Ej is obtained.
The method for performing communication binding between the closing lock E j and the lane of the first closing port is the same as the method in the step S300, and is described in detail herein. It will be appreciated that the binding method of the lock reader of the lock and the lane described in step S300 is applicable to all the gates where the vehicle starts and ends.
And S340, inquiring the license plate number according to the matched packed data in the monitoring background by taking the number ID Ri of the lock reader R i as a basis.
And S350, issuing the license plate number to the lock-off reader R i by using the monitoring background.
Step S360, the license plate number is sent to the lock E j bound with the lock reader R i through the lock reader R i under the communication channel of the reader designated channel F Ri.
It should be noted that, for step S310 and step S360, the locking is performed only at the first gateway, because the vehicle and the locking are bound only once, and then for one lock, the matching array is used only once at the first gateway.
In one embodiment, referring to fig. 2, after performing the foregoing content of step S400, the communication binding process of the locking and passing lane of step S400 further includes:
Step S410, integrating the ID Ri corresponding to the lock reader R i, the ID Ej corresponding to the lock E j bound with the lock reader R i and the license plate number bound with the lock E j to form a bound data packet.
Step S420, the binding data packet is uploaded to the monitoring background by the lock reader R i.
And step S430, when the monitoring background receives the binding data packet, analyzing the binding data packet, and issuing a binding success command to the lock-closing reader R i according to the analyzed content.
Step S440, the lock reader R i is utilized to send a "successful binding" command to the lock E j by using the reader-designated channel F Ri.
Step S450, switching the communication channels of the lock E j and the lock reader R i to the lock designated channel F Ej, and setting the bound lock E j and the lock reader R i to be in a busy state.
Step S460, for all lanes of a gateway, the subsequent appointed command operation is prioritized according to the gateway appointed channels of the gateway of all busy states.
In step S470, the monitoring background controls the lock E j to execute the specified command operation according to the priority by taking the lock specified channel F Ej as a communication channel.
In an embodiment, the specified command operation may be at least one of a seal-sealing, a seal-unsealing, a seal-verifying, an alarm, and a release alarm command operation. For example, the lock needs to be sealed after being locked when the lock is just started, and may be tested at each gate during running, if the electronic lock is in the unsealed state in the sealed state, the lock needs to be controlled to perform alarm operation, and after the lock contacts with the alarm, and when the lock moves to the gate of the end point, the lock needs to be controlled to perform unsealing operation.
In step S470, the monitoring background controls the lock E j to execute the specified command operation according to the priority by taking the lock specified channel F Ej as a communication channel. The locking designated channel is generally larger than the locking reader designated channel, and the RFID identification coverage of the locking reader is small, so that the identification range of the locking reader in different lanes is fixed and cannot exceed the lane range. The lock is required to receive data packets such as operation instructions and protocols, and the received data is large, so that a large communication frequency band is required for a reader in the stage of the command, and the lock is required to be switched to the lock designated channel.
It is worth to say that, at a clearance gate, a clearance lock is bound with a clearance lock reader corresponding to a traffic lane to obtain a bound data packet, and the binding data packet contains a clearance lock ID, a clearance lock reader ID and a license plate number carrying the clearance lock which are matched in a one-to-one correspondence. After the lock is bound with the lock reader of the lane, the background monitoring system can conveniently control the matched lock reader and lock according to the specification of the binding data packet to operate the specified command. It will be appreciated that a lock needs to pass through a different gateway, so different lock readers need to be bound continuously before the vehicle reaches the end, so when the vehicle carrying the lock exits the gateway, the bound data packets will be emptied, because a new lock reader needs to be bound at one gateway, a new bound data packet corresponding to the lock will be formed.
Since the number of locks issued for the vehicle is variable and as known from the above calculation of the lock designated channel F Ej =base channel F b+(IDEj% M) ×n, ID Ej% M is modulo operation, ID Ej% M ranges from 0 to M, when the number of locks issued reaches a certain value, for example exceeds M, the same situation is unavoidable for the lock ID Ej% M value of different ID numbers, and the same situation may exist for different lock designated channels. However, as described above, the monitoring background controls the lock-off and lock-off readers to switch to the lock-off designated channel in response to the designated command operation, and thus co-channel interference may occur when the monitoring background controls the lock-off and lock-off readers to switch to the lock-off designated channel in response to the designated command operation. In order to solve the phenomenon of co-channel interference at the time of command operation, processing is performed using step S460 and step S470.
In one embodiment, the step S460 specifically includes the following steps S461 to S463.
Step S461, the two-dimensional digit manipulation table is built for all lock reader numbers and the related lock numbers.
Step S462, filling the two-dimensional operation table with the switched lock designated channels in the binding process of each lock and the lane.
As shown in fig. 3, a two-dimensional operation table of all lock reader numbers and related lock numbers of a gateway is established, wherein the horizontal direction is the lock reader ID, the vertical axis is the reader ID, wherein the channels X, Y, Z and W are four different lock designated channel values, and the lock readers and locks corresponding to the positions of the operation table with the values are in a "busy state". It can be seen that, at this time, vehicles carrying the lock pass through all the six lanes of the gateway, the reader ID R1、IDR2、IDR3、IDR4、IDR5、IDR6 in the figure is respectively bound with the lock ID E1、IDE3、IDE2、IDE5、IDE4、IDE6, and three pairs of bound locks and lock readers switch channels X, i.e. the lock designated channels of the three pairs are the same, for example, the lock designated channel corresponding to one pair of bound lock IDs E1 and ID R1 is channel X.
Step S463, searching data in the two-dimensional operation table, setting operation levels of the corresponding locks corresponding to the different data as a first level, and setting operation levels of the corresponding locks corresponding to the same data as a second level.
It can be understood that if the background monitoring platform performs the designated command operation at this time, the problem of co-channel interference occurs because the communication channels of the three pairs of locking readers are the same, so that the locking readers and the locking readers in the table are classified into operation priority classes. The lock and lock readers corresponding to channel Y, Z, W are set to a first level and the three pairs of lock and lock readers corresponding to channel X are set to a second level.
In one embodiment, the step S470 includes the following steps S471 and S472.
Step 471, firstly, the monitoring background is used for controlling the lock belonging to the first level to execute the appointed command operation;
For example, the three pairs of lock readers with the first level in the table have different communication channels, and the lock readers with the first level can operate simultaneously.
Step S472, the monitoring background is utilized to control the lock belonging to the second level to execute the specified command operation at different moments. It can be understood that after the padlock belonging to the first level is controlled to execute the specified operation command, the lock belonging to the second level is controlled to execute the specified command operation successively at different times, and the lock belonging to the second level can be commanded to operate according to the sequence binding with the corresponding lane.
In the above step, with the lock designated channel F Ej as a communication channel, the monitoring background controls a lock E j to execute a designated command operation, which includes the following steps:
transmitting instruction data carrying binding data packets and operation commands by using a monitoring background;
the lock closing reader which receives the instruction packs the data to the lock closing through the lock closing designated channel F Ej;
The lock analyzes the instruction data and executes the command operation, and after the command operation is executed, the execution result is sent to the lock reader by the lock designated channel F Ej.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the application.