Summary of the invention
The object of the invention is to propose a kind of clocking method, Apparatus and system based on radio-frequency (RF) identification, solved in the clocking method based on REID of the prior art the problem of the time can't accurate Calculation timing chip be activated, the time can accurate Calculation timing chip be activated.
For achieving the above object, the present invention is achieved through the following technical solutions:
A kind of clocking method based on radio-frequency (RF) identification comprises:
After the timing chip is activated, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number;
The maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random;
Through duration N
randomthe duration t of * each time slot
safter, send the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number, and receives according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.
A kind of time set based on radio-frequency (RF) identification comprises:
Counter module, after being activated when the timing chip, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number;
The random number generation module, for the maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random;
Sending module, for process duration N
randomthe duration t of * each time slot
safter, send the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number, and receives according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.
A kind of timekeeping system based on radio-frequency (RF) identification, comprise timing chip and reader, wherein,
Described timing chip, after being activated when the timing chip, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number, the maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random, through duration N
randomthe duration t of * each time slot
safter, sending the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number;
Described reader, send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated for time of receiving described chronometric data bag according to described reader and described timing chip.
The clocking method based on radio-frequency apparatus, Apparatus and system that the embodiment of the present invention provides, after the timing chip is activated, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number, the maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random, through duration N
randomthe duration t of * each time slot
safter, send the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number, and receives according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.Compared to the prior art, the clocking method based on radio-frequency (RF) identification, Apparatus and system that the embodiment of the present invention proposes, the time can accurate Calculation timing chip be activated.
Embodiment
Clearer for technical matters, technical method and technique effect that embodiments of the invention will be solved, be described in detail below in conjunction with the accompanying drawings and the specific embodiments.
Embodiment mono-
The embodiment of the present invention proposes a kind of clocking method based on recognition of devices, comprising:
101,, after the timing chip is activated, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number;
Particularly, described timing chip is activated and can is: under passive working method, described timing chip has been recharged; Under half active working method, described timing chip is waken up.
102, the maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random;
103, through duration N
randomthe duration t of * each time slot
safter, send the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number, and receives according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.
The clocking method based on radio-frequency (RF) identification that the embodiment of the present invention proposes, after the timing chip is activated, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number, the maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random, through duration N
random* t
safter, send the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number, and receives according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.Compared to the prior art, the clocking method based on radio-frequency (RF) identification that the embodiment of the present invention proposes, the time can accurate Calculation timing chip be activated.
Embodiment bis-
The embodiment of the present invention provides a kind of clocking method based on radio-frequency (RF) identification, comprising:
201, set in advance maximum timeslot number N
max, minimum timeslot number N
minand the duration t of each time slot
s;
202,, after the timing chip is activated, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number;
Particularly, described timing chip is activated and can is: under passive working method, described timing chip has been recharged; Under half active working method, described timing chip is waken up.
203, at described maximum timeslot number N
maxwith described minimum timeslot number N
minbetween choose at random an Integer N
random;
204, every duration N
random* t
ssend a chronometric data bag to described reader, wherein said chronometric data bag at least comprises that the chip identification number of described timing chip, described timing chip send time and the time difference of the time that described timing chip is activated and the cyclic redundancy check (CRC) code of described chronometric data bag of chip identification number;
Particularly, described chronometric data bag is comprised of three partial datas, as shown in Figure 1, comprise the chip needs for meaning described timing chip the p Bit data, for mean described timing chip send the time of chip identification number and the time that described timing chip is activated time difference the q Bit data and for meaning the r Bit data that is cycled to used in check code of described chronometric data bag.Wherein, the numerical value of p depends on the demand sum of timing chip, and the chip identification of the timing chip of 32 number can guarantee that the chip identification number of 4,000,000,000 timing chips does not repeat; The numerical value of q and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number, and accuracy of timekeeping is relevant, if accuracy of timekeeping is 1 millisecond, need to calculate that described timing chip sends the time of chip identification number and the time difference of the time that described timing chip is activated is 4 seconds, at least need 12 bits to send the time difference of time and the time that described timing chip is activated of chip identification number for meaning described timing chip; The numerical value of r is determined according to the numerical value of checking algorithm type and p, q, if p=32, q=16, r can get the cyclic redundancy check (CRC) code of 16 bits, and thus, the total length of this chronometric data bag is: p+q+r=36 bit+12 bits+16 bits=64 bits.As shown in Figure 2, repeat said process, can guarantee that at least one group of data, in the conflict free time period, are effectively received by reader.
205, receive according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.
Particularly, establish the time t that receives the chronometric data bag that the timing chip sends of the internal clocking record of reader
r, described timing chip sends the time of chip identification number and the time difference of the time that described timing chip is activated is t
q, the time that chip is activated is T
a, T is arranged
a=t
r-t
q.
Due to the internal clocking of timing chip be subject to volume to affect precision not high, its precision is much smaller than the precision (usually being less than 0.01%) of the internal clocking of reader, so need to send to the described timing chip of receiving the time difference t of time and the time that described timing chip is activated of chip identification number
qdo further calibration.The time that might as well establish in effective chronometric data bag that same timing chip that reader receives sends for twice is respectively t
r1and t
r2, described timing chip sends the time of chip identification number and the time difference of the time that described timing chip is activated is respectively t
q1and t
q2, the time that described timing chip is activated is:
The clocking method based on radio-frequency (RF) identification that the embodiment of the present invention provides, set in advance maximum timeslot number N
max, minimum timeslot number N
minand the duration t of each time slot
s, after the timing chip is activated, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number, at described maximum timeslot number N
maxwith described minimum timeslot number N
minbetween choose at random an Integer N
random, every duration N
random* t
ssend a chronometric data bag to described reader, wherein said chronometric data bag at least comprises that the chip identification number of described timing chip, described timing chip send time and the time difference of the time that described timing chip is activated and the cyclic redundancy check (CRC) code of described chronometric data bag of chip identification number, receives according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.Compared to the prior art, the clocking method based on radio-frequency (RF) identification that the embodiment of the present invention proposes, the time can accurate Calculation timing chip be activated.
Embodiment tri-
The embodiment of the present invention provides a kind of time set based on radio-frequency (RF) identification, as shown in Figure 3, comprising:
Counter module 301, after being activated when the timing chip, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number;
Particularly, described timing chip is activated and can is: under passive working method, described timing chip has been recharged; Under half active working method, described timing chip is waken up.
Random number generation module 302, for the maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random;
Sending module 303, for process duration N
randomthe duration t of * each time slot
safter, send the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number, and receives according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.
Further, described sending module 303 also comprises:
Every duration N
random* t
s, sending a chronometric data bag to described reader, wherein said chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number.
Further, described chronometric data bag can also comprise the cyclic redundancy check (CRC) code of described chronometric data bag.
Further, described chronometric data bag specifically comprises: for the p Bit data of the chip needs that mean described timing chip, for mean described timing chip send the time of chip identification number and the time that described timing chip is activated time difference the q Bit data and for meaning the r Bit data that is cycled to used in check code of described chronometric data bag.
The time set based on radio-frequency (RF) identification that the embodiment of the present invention provides, after the timing chip is activated, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number, the maximum timeslot number N set in advance by the random number generation module by counter module
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random, through duration N
random* t
safter, sending the chronometric data bag by sending module to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time of chip identification number and the time of the time that described timing chip is activated
Difference, and receive according to described reader by described reader that time of described chronometric data bag and described timing chip send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated.Compared to the prior art, the time set based on radio-frequency (RF) identification that the embodiment of the present invention proposes, the time can accurate Calculation timing chip be activated.
Embodiment tetra-
The invention provides a kind of timekeeping system based on radio-frequency (RF) identification, as shown in Figure 4, comprise timing chip and reader, wherein,
Described timing chip 401, after being activated when the timing chip, calculate the time difference that described timing chip sends time and the time that described timing chip is activated of chip identification number, the maximum timeslot number N set in advance
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random, through duration N
randomthe duration t of * each time slot
safter, sending the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number;
Described reader 402, send the time of chip identification number and the time difference of the time that described timing chip is activated calculates the time that described timing chip is activated for time of receiving described chronometric data bag according to described reader and described timing chip.
Particularly, as shown in Figure 5, the described timekeeping system based on radio-frequency (RF) identification is comprised of timing chip and reader, the timing chip comprises the radio-frequency front-end for receiving and transmitting, send the clock circuit of the time difference of the time of chip identification number and the time that described timing chip is activated for calculating described timing chip, for the storer of the chip identification number of storing described timing chip, and for moving firmware program, realize anti-collision algorithms, coordinate the microcontroller circuit of each several part work.In addition, if this timing chip is half active working method, described timing chip internal also can comprise battery, and described battery is used for to told timing chip power supply.Between the antenna of described timing chip and the antenna of described reader by electromagnetic radiation or inductive coupling mode transmitting energy and data.
The timekeeping system based on radio-frequency (RF) identification that the embodiment of the present invention provides, comprise timing chip and reader, wherein, described timing chip sends the time difference of time and the time that described timing chip is activated of chip identification number, the maximum timeslot number N set in advance for calculating described timing chip
maxwith minimum timeslot number N
minbetween choose at random an Integer N
random, through duration N
randomthe duration t of * each time slot
safter, sending the chronometric data bag to reader, described chronometric data bag at least comprises that the chip identification number of described timing chip and described timing chip send the time difference of time and the time that described timing chip is activated of chip identification number; Described reader is for receiving time of described chronometric data bag and described timing chip and send the time of chip identification number and the time difference of the time that described timing chip is activated calculating the time that described timing chip is activated according to described reader.Compared to the prior art, the timekeeping system based on radio-frequency (RF) identification that the embodiment of the present invention proposes, the time can accurate Calculation timing chip be activated.