Antipet tramping type alarm and method for simultaneous measuring lengths of several regions
Antipet tramping type alarm and method for simultaneous measuring lengths of several regions
 CN 102,339,515 A
 Filed: 07/16/2010
 Published: 02/01/2012
 Est. Priority Date: 07/16/2010
 Status: Active Application
First Claim
1. antipet override type alarm and measure the method for several regions length simultaneously;
 It is characterized in that, said antipet override type alarm by a rectangular frame, electric battery, SCM system, seal in and go out circuit, incorporate string into and advance circuit, music circuit and measure several regions length simultaneously and form to distinguish pin type program;
Wherein, One group of electrode is respectively arranged at the top of rectangular frame and bottom, is referred to as row electrode group and column electrode group respectively, each group electrode comprise 72 independently of one another, spacings evenly, exposed lead;
The direction of two groups of arrangements of conductors is vertical each other;
The lead of row electrode group is connected to respectively in regular turn incorporates each parallel input end that string advances circuit into, and the lead of column electrode group is connected to each parallel output terminal that seals in and go out circuit respectively in regular turn, and SCM system is mounted with measures several regions length simultaneously to distinguish pin type program;
Its delivery outlet line P3.7 is connected to the input end of music circuit, and electric battery is as the power supply of this device.
Chinese PRB Reexamination
Abstract
The invention relates to an antipet tramping type alarm and a method for simultaneous measuring the lengths of several regions; the method comprises two parts which are the antipet tramping type alarm and the method for simultaneous measuring the lengths of several regions, wherein the later is used for simultaneous measuring the lengths of the several regions so as to distinguish foot type programs; the former comprises a rectangular framework, a battery pack, a singlechip microcomputer system, a serialinparallelout circuit, a parallelinserialin circuit and a music circuit, wherein a row electrode group and a line electrode group are respectively arranged at the upper part and the bottom part of the rectangular framework; and lead wires of the electrode groups are sequentially and respectively connected to each parallel input ends of the parallelinserialin circuit and each parallel output end of the serialinparallelout circuit. The program establishes a twodimensional coordinate system according to the arrangement of the two electrode groups; the singlechip microcomputer system is used for scanning trampled regions, tracking the contour of each region, marking the region of the interior of each contour with ordinal numbers, calculating the distances among contour points, storing long distances, judging the foot types and deciding whether alarm sound is sent out. The method for measuring the length of the region is complete.

7 Citations
No References
Manufacturing method for a linear pressure sensor  
Patent #
EP0186534A1
Filed 11/12/1985

Current Assignee

WIRELESS MAT SWITCH DEVICE  
Patent #
JP2002215318A
Filed 01/16/2001

Current Assignee

Pressure sensitive security system for tracking motion over a surface  
Patent #
US 4,888,581 A
Filed 04/06/1988

Current Assignee
N/A

APPARATUS FOR REPORTING INTRUSION  
Patent #
JP2008146528A
Filed 12/13/2006

Current Assignee

Antitheft foot pad  
Patent #
CN 201,123,668 Y
Filed 12/10/2007

Current Assignee

Alarm door mat  
Patent #
CN 201,285,580 Y
Filed 10/28/2008

Current Assignee

Treadle type burglar alarm device  
Patent #
CN 201,355,514 Y
Filed 02/25/2009

Current Assignee

9 Claims

1. antipet override type alarm and measure the method for several regions length simultaneously;
 It is characterized in that, said antipet override type alarm by a rectangular frame, electric battery, SCM system, seal in and go out circuit, incorporate string into and advance circuit, music circuit and measure several regions length simultaneously and form to distinguish pin type program;
Wherein, One group of electrode is respectively arranged at the top of rectangular frame and bottom, is referred to as row electrode group and column electrode group respectively, each group electrode comprise 72 independently of one another, spacings evenly, exposed lead;
The direction of two groups of arrangements of conductors is vertical each other;
The lead of row electrode group is connected to respectively in regular turn incorporates each parallel input end that string advances circuit into, and the lead of column electrode group is connected to each parallel output terminal that seals in and go out circuit respectively in regular turn, and SCM system is mounted with measures several regions length simultaneously to distinguish pin type program;
Its delivery outlet line P3.7 is connected to the input end of music circuit, and electric battery is as the power supply of this device.
 It is characterized in that, said antipet override type alarm by a rectangular frame, electric battery, SCM system, seal in and go out circuit, incorporate string into and advance circuit, music circuit and measure several regions length simultaneously and form to distinguish pin type program;

2. antipet override type alarm according to claim 1 and measure the method for several regions length simultaneously is characterized in that the top of said rectangular frame and the two arrays of electrodes of bottom are isolated by the both sides insulation of this framework and supported.

3. according to claim 1 described antipet override type alarm and measure the method for several regions length simultaneously;
 It is characterized in that;
Said SCM system comprises;
singlechip microcomputer and crystal oscillating circuit thereof and electrify restoration circuit, random access memory circuit;
Wherein, random access memory circuit is made up of the RAM of a 74HC373 and 64KB.
 It is characterized in that;

4. antipet override type alarm according to claim 1 and measure the method for several regions length simultaneously;
 It is characterized in that;
Said seal in and go out circuit form by 9 74HC164 cascades;
the signal serial input terminal A of first 74HC164 is connected to the delivery outlet line P1.2 of SCM system;
Its most significant digit output terminal QH is connected to second signal serial input terminal A;
Second most significant digit output terminal QH is connected to the 3rd signal serial input terminal A, and the like, common property is given birth to the signal parallel output terminal of 8 (position/piece) * 9 piece=72;
The clear terminal of 9 74HC164 and signal serial input terminal B are connected to the positive pole of electric battery, and their clock signal input terminal all is connected to the delivery outlet line P1.3 of SCM system.
 It is characterized in that;

5. antipet override type alarm according to claim 1 and measure the method for several regions length simultaneously;
 It is characterized in that;
The said string of incorporating into advances circuit and is made up of 9 74HC165 cascades;
the signal end QH that goes here and there out the incorporating into of last piece 74HC165 is connected to last signal serial input terminal DS;
And the like;
Common property is given birth to the signal parallel input end of 8 (position/piece) * 9 piece=72;
Each signal parallel input end also connects a pull down resistor separately to the negative pole of electric battery, and the signal end QH that goes here and there out the incorporating into of first 74HC165 is connected to the input port line P1.5 of SCM system, and these 9 74HC165 incorporate the delivery outlet line P1.6 that Data Loading control end/PL is connected to SCM system into;
Their clock signal input terminal all is connected to the delivery outlet line P1.7 of SCM system, and their clock enables the negative pole that input end/CE is connected to electric battery.
 It is characterized in that;

6. antipet override type alarm according to claim 1 and measure the method for several regions length simultaneously;
 It is characterized in that;
The said method of measuring several regions length simultaneously is included in measures several regions length simultaneously to distinguish in the pin type program;
Be used to distinguish the pin type of people and toy, its step is following;Step 1, initialization singlechip microcomputer; MOV_SP, 2FH '"'"' storehouse initial value, CLR_P1.2, P1.3, P1.7, P3.7 '"'"' prepare the output signal, SETB_P1.5, P1.6 '"'"' prepares input signal, CLR_F _{0}'"'"' zone bit of initialization tracing area profile endofjob, Step 2, initialize routine; CLR_R _{5}, CLR_R _{6}'"'"' R _{5}, R _{6}Be respectively low, the high byte register of the square value of distance, MOV_R _{1}, #AL, MOV_R _{2}, #AH '"'"' RAM postmedian has been opened up the fritter scratchpad area (SPA), is used to store the coordinate by coordinate points on the profile of tracing area, and #AL, #AH are respectively low, the high byte of this regional start address, R _{1}, R _{2}Be respectively the low byte and the high byte register of scratchpad area (SPA) address pointer among the RAM, MOV_DPL，
#AL，
MOV_DPH，
#AHMOV_R _{0}, #RAM0, MOV_A, #00H '"'"' #RAM0 are the size of scratchpad area (SPA) among the RAM, Loop0;
MOVX_DPTR, a unit among A '"'"' the zero clearing RAM in the scratchpad area (SPA),INC_DPTR '"'"' points to next unit, DJNZ_R _{0}, Loop0 '"'"' R _{0}Be cycle counter, CLR_R _{7}'"'"' initialization tramples the number of regions counter, Loop1;
MOV_R _{0}, #Number_COL '"'"' Number_COL is the number of lead in the row electrode group,Loop2;
MOV_R _{3}, #Number_ROW '"'"' Number_ROW is the number of lead in the column electrode group,SETB_P1.2, NOP, CLR_P1.2 '"'"' zero clearing seals in and goes out the output terminal of 9 74HC164 of circuit, DJNZ_R _{3}, Loop2 '"'"' R _{3}Be cycle counter, DJNZ_R _{0}, Loop1 '"'"' R _{0}Be cycle counter, MOV_DPH, #00H, MOV_DPL, #00H '"'"' initialization data pointer DPTR, '"'"' be split up into two 8 x, y coordinate pointer; Step 3, begin to scan the zone that detection is trampled; 1) through singlechip microcomputer first lead in the column electrode group exported a high level, then, detect the level of lead in the row electrode group by root;
It is low, high level is respectively with #00H, and #01H representes and stores it;
MOV_DPTR, #00H or MOV_DPTR;
#01H, wherein, every detection finishes a row electrode group lead;
Y coordinate pointer just points to next root row electrode group lead;
INC_DPLThe whole leads in the row electrode group if inspection finishes, i.e. DPL=Number_COL (number of lead in the row electrode group), x, next root column electrode group lead of y coordinate pointed;
INC_DPH, MOV_DPL, #00H;2) through singlechip microcomputer next the root lead in the column electrode group is exported a high level, then, detect the level of lead in the row electrode group by root;
It is low, high level is respectively with #00H;
#01H representes and stores it that wherein, every detection finishes a row electrode group lead;
Y coordinate pointer just points to next root row electrode group leadThe whole leads in the row electrode group if inspection finishes, i.e. DPL=Number_COL, x, next root column electrode group lead of y coordinate pointed; 3) judge whether the current lead that is in high level exceeds its last root in the column electrode group; (a) DPH＜
Number_ROW is not last root, jump to this step 3
2) proceed scanning and detect;(b) DPH=Number_ROW has exceeded last root, carries out next step; The profile in zone is trampled in step 4, tracking; 1) initialization x, y coordinate pointer DPTR;
MOV_DPH, #01H, MOV_DPL, #01H;2) temporary current x, y coordinate pointer DPTR is referred to as current tracking coordinate pointer, takes out and check the data of current location;
MOV_A from RAM, DPTR;(a) if these data are #00H, carry out this step 4
3);(b) if these data are #01H, check be positioned at the going up of current coordinate position, right, down and the neighbours of left (DPH ←
DPH1, DPL), (DPH;
DPL ←
DPL+1), (DPH ←
DPH+1;
DPL) with (DPH, DPL ←
DPL1) } four data locating, promptly according to the rule of tracing area profile obtain with row, row electrode group lead by the regional corresponding profile that contacts due to trampling;
Then;
With corresponding digital this profile institute area surrounded of sign, and utilization " pointwise is calculated the distance between this point and other point and preserved its big person'"'"'s method ", obtain and the current number of regions counter R that tramples _{7}Corresponding quilt trample the zone length square;
L (R _{7}) ^{2}If L is (R _{7}) ^{2}>
=Long (Long is certain preset value) just is judged as trampling of the pin that receives the people, and sends alarm signal;
SETB_P3.7, delayed time about ten seconds, and remove this alerting signal;
CLR_P3.7 again;
Scratchpad area (SPA) in the zero clearing RAM, then, continue to carry out this step 4
3);3) recover current x, y coordinate pointer DPTR is current tracking coordinate pointer, points to next coordinate points to it;
if current coordinate points has been in the last position of one'"'"'s own profession;
When being DPL=Number_COL1;
Next coordinate points is (DPH ←
DPH+1, DPL ←
1), otherwise;
Next coordinate points is (DPH, DPL ←
DPL+1);4) if x, y coordinate pointer DPTR does not point to last column as yet, that is;
DPH＜
Number_ROW1, this step 4 of redirect
2), continue to follow the tracks of the profile of being trampled the zone, not, then finish epicycle and follow the tracks of the work of being trampled region contour;Step 5, check the zone bit F of tracing area profile endofjob _{0};
If F _{0}=0, the zone of not trampled is described, forward step 1 to, restart scanography work;
If F _{0}=1, this zone bit of zero clearing;
CLR_F _{0}, check then and trample number of regions counter R _{7};
(a) if R _{7}=0, explain not form the zone of being trampled, forward step 1 to, restart scanography work;
(b) if R _{7}>
=1, explain the zone that quilt is trampled taken place that its number is exactly R _{7}In count value, carry out next step;
Step 6, jump to step 1, begin a new wheel scan testing.
 It is characterized in that;

7. antipet override type alarm according to claim 1 and measure the method for several regions length simultaneously is characterized in that, the said several regions length of measuring simultaneously comprises with the rule of tracing area profile described in the step 4 of distinguishing pin type program:

1) by the characteristic of tracing area be;
" by each coordinate points in the tracing area all corresponding data #01H, outside the zone that need be followed the tracks of or the coordinate points between the zone that need be followed the tracks of all corresponding data #00H ";2) start to follow the tracks of the profile timer, if the timing time of this timer to predetermined number put, singlechip microcomputer resets; 3) data that current coordinate position is corresponding are #01H;
Check the relation of last, right, the following corresponding data of current coordinate position with four adjoint points of left;
Determine the moving direction of current coordinate position;
The path of this moving direction process just forms this regional profile, the relevant rule that moves current coordinate position as follows;If the data that a) its righthand adjoint point is corresponding are #01H, the data that it is upper and lower, the left adjoint point is corresponding all are #00H, just shift to its righthand adjoint point place to current coordinate position; B), it on, data right, that the left adjoint point is corresponding all are #00H, just shift to adjoint point place below it to current coordinate position if its below corresponding data of adjoint point are #01H; C) if the corresponding data of its left adjoint point are #01H, it on, data right, below adjoint point correspondence all are #00H, just shift to its left adjoint point place to current coordinate position; D) if its top corresponding data of adjoint point are #01H, its right side, data following, that the left adjoint point is corresponding all are #00H, just shift to its adjoint point place, top to current coordinate position; E) if the data of its right side, below adjoint point correspondence all are #01H, its left side, the data that the top adjoint point is corresponding all are #00H, just shift to its righthand adjoint point place to current coordinate position; F) if its down, data that the left adjoint point is corresponding all be #01H, it on, the data of righthand adjoint point correspondence all are #00H, just shift to adjoint point place below it to current coordinate position; G) if the data of its left side, top adjoint point correspondence all are #01H, its right side, the data that the below adjoint point is corresponding all are #00H, just shift to its left adjoint point place to current coordinate position; H) if on it, data that righthand adjoint point is corresponding all be #01H, the data that it down, the left adjoint point is corresponding all are #00H, just shift to adjoint point place above it to current coordinate position; I) if the corresponding data of its upper and lower adjoint point all be #01H, its right side, the data that the left adjoint point is corresponding all are #00H, and it moves by its left adjoint point, just shift to adjoint point place above it to current coordinate position; J) if the corresponding data of its upper and lower adjoint point all be #01H, its right side, the data that the left adjoint point is corresponding all are #00H, and it moves by its righthand adjoint point, just shift to adjoint point place below it to current coordinate position; K) if the corresponding data in its right side, left adjoint point all be #01H, the data that its upper and lower adjoint point is corresponding all are #00H, and it moves by adjoint point above it, just shift to its righthand adjoint point place to current coordinate position; L) if the corresponding data in its right side, left adjoint point all be #01H, the data that its upper and lower adjoint point is corresponding all are #00H, and it moves by adjoint point below it, just shift to its left adjoint point place to current coordinate position; M) if its top corresponding data of adjoint point are #00H, the corresponding data of its excessthree adjoint point all are #01H, just shift to its righthand adjoint point place to current coordinate position; N) if the corresponding data of its righthand adjoint point are #00H, the corresponding data of its excessthree adjoint point all are #01H, just shift to its adjoint point place, below to current coordinate position; O) if its below corresponding data of adjoint point are #00H, the corresponding data of its excessthree adjoint point all are #01H, just shift to its left adjoint point place to current coordinate position; P) if the corresponding data of its left adjoint point are #00H, the corresponding data of its excessthree adjoint point all are #01H, just shift to its adjoint point place, top to current coordinate position; Q) if the going up of current coordinate position, right, four data corresponding with four adjoint points of left all are #00H down, also do not occur one of top 5 position coordinateses that this tracing area profile process obtained in four adjoint points, at this moment;
This " unusual corner " withdrawed from trial;
the data corresponding current coordinate position are changed to #00H, and the coordinate figure that deposits into is at last taken out in the scratchpad area (SPA) in RAM, give the i.e. (DPH of current coordinate position pointer this coordinate figure;
DPL), just return to the coordinate place of previous position, then;
Rule according to abovementioned tracing area profile continues to follow the tracks of next curved profile point, if can find next curved profile point, just continues the work of tracing area profile;
Otherwise;
" the unusual corner " that is run into shows and do not have sealing, continuous contour curve, promptly do not form the zone of being trampled, at this moment;
Scratchpad area (SPA) in the zero clearing RAM, address pointer register R in scratchpad area (SPA) among the initialization RAM _{1}, R _{2}, the zone bit of tracing area profile endofjob;
SETB_F is set _{0}, finish the work of epicycle tracing area profile;
R) if the going up of current coordinate position, right, four data corresponding with four adjoint points of left all are #00H down, have occurred one of top 5 position coordinateses that this tracing area profile process obtained in four adjoint points, at this moment, trampling number of regions counter R _{7}Adding 1 is INC_R _{7}, the scratchpad area (SPA) in the not zero clearing RAM, address pointer register R in scratchpad area (SPA) among the initialization RAM _{1}, R _{2}, the zone bit that tracing area profile endofjob is set is SETB_F _{0}, (#FFH #FFH) deposits scratchpad area (SPA) among the RAM in, as the sign that outline position finishes, finishes the work of epicycle tracing area profile the data of two bytes in regular turn;
4) move before the current coordinate position, according to address pointer register R in scratchpad area (SPA) among the RAM at every turn _{1}, R _{2}(DPH DPL) is stored in scratchpad area (SPA) in the RAM in regular turn, makes scratchpad area (SPA) address pointer register R among the RAM then the coordinate of current location _{1}, R _{2}Point to next place'"'"'s storage unit;
5) move before the current coordinate position, the data rewriting corresponding current coordinate position becomes R at every turn _{7}+ #01H, that is;
MOV_A, R _{7}, INC_A, MOVX_DPTR, A;
6) in abovementioned all rules, other data equivalence of said data #00H and non#01H.


8. antipet override type alarm according to claim 1 and measure the method for several regions length simultaneously;
 It is characterized in that the said several regions length of measuring simultaneously comprises the steps;
with the implementation method of the step 4 of distinguishing pin type program said " with corresponding digital this profile institute area surrounded of sign "Step 1, initialization x, y coordinate pointer DPTR;
MOV_DPH, #01H, MOV_DPL, #01H;If step 2 x, y coordinate pointer DPTR has pointed to last column promptly;
DPH=Number_ROW1, the then work of end mark contour area;Step 3, take out and check the data of current location from RAM;
MOV_A, DPTR,1) if these data are not equal to #01H, x, y coordinate pointer DPTR points to its next coordinate points, then, continues to carry out the step 2 of this implementation method; 2) if these data equal #01H, the first x of temporary current location, y coordinate pointer DPTR, and be referred to as the target location, then, check whether this target location is among profile surrounds; (a) the x of current location, the left of y coordinate pointer DPTR definite object position, coordinate points ground takes out their corresponding data one by one, that is;
DEC_DPL, MOVX_A, DPTR, and check coordinate points one by one whether these data equal to trample number of regions counter R _{7};
Equal R if run into _{7}Coordinate points, jump to this implementation method step 3
2) (b), continue to check work;
If proceeding to DPL=0 does not also run into and equals R _{7}Coordinate points, just x, the next coordinate points of y coordinate pointer DPTR definite object position continues the step 2 of this implementation method;
(b) the x of current location, y coordinate pointer DPTR definite object position righthand, coordinate points ground takes out their corresponding data one by one, that is;
INC_DPL, MOVX_A, DPTR, and check coordinate points one by one whether these data equal to trample number of regions counter R _{7};
Equal R if run into _{7}Coordinate points, jump to this implementation method step 3
2) (c), continue to check work;
If proceeding to DPL=Number_COL1 does not also run into and equals R _{7}Coordinate points, just x, the next coordinate points of y coordinate pointer DPTR definite object position continues the step 2 of this implementation method;
(c) the x of current location, the top of y coordinate pointer DPTR definite object position, coordinate points ground takes out their corresponding data one by one, that is;
DEC_DPH, MOVX_A, DPTR, and check coordinate points one by one whether these data equal to trample number of regions counter R _{7};
Equal R if run into _{7}Coordinate points, jump to this implementation method step 3
2) (d), continue to check work;
If proceeding to DPH=0 does not also run into and equals R _{7}Coordinate points, just x, the next coordinate points of y coordinate pointer DPTR definite object position continues the step 2 of this implementation method;
(d) the x of current location, the below of y coordinate pointer DPTR definite object position, coordinate points ground takes out their corresponding data one by one, that is;
INC_DPH, MOVX_A, DPTR, and check coordinate points one by one whether these data equal to trample number of regions counter R _{7};
Equal R if run into _{7}Coordinate points, explain that this target location is positioned to trample number of regions counter R _{7}In the corresponding profile institute area surrounded, do to go up digital marking;
MOV_A, R to this target location _{7}, MOVX_DPTR, A, then, x, the next coordinate points of y coordinate pointer DPTR definite object position continues the step 2 of this implementation method;
If proceeding to DPH=Number_ROW1 does not also run into and equals R _{7}Coordinate points, x, the next coordinate points of y coordinate pointer DPTR definite object position continues the step 2 of this implementation method;
3) implication of the step 3 of this implementation method said " next coordinate points " is, if current coordinate points has been in the last row of one'"'"'s own profession when being DPL=Number_COL1, next coordinate points is (DPH ←
DPH+1;
DPL ←
1);
Otherwise next coordinate points is (DPH, DPL ←
DPL+1).
 It is characterized in that the said several regions length of measuring simultaneously comprises the steps;

9. antipet override type alarm according to claim 1 and measure the method for several regions length simultaneously;
 It is characterized in that the said several regions length of measuring simultaneously comprises the steps;
with the step 4 of distinguishing pin type program said " pointwise is calculated the distance between this point and other point and preserved its big person'"'"'s method "Step 1, (#AH #AL) gives x, y coordinate pointer DPTR address pointer initial value in scratchpad area (SPA) among the RAM; Step 2, current x, y coordinate pointer DPTR corresponding two bytes that deposit continuously the scratchpad area (SPA) among the RAM, claim that these two bytes are current outline position (DPH _{P}, DPL _{P}), temporary current x, y coordinate pointer DPTR is referred to as the coordinate of current outline position, check current outline position be the sign that finishes of outline position (#FFH, #FFH);
Be, with the current number of regions counter R that tramples _{7}Corresponding quilt trample the zone length square;
L (R _{7}) ^{2}=R _{6}R _{5}, zero clearing R _{6}R _{5}, finish epicycle " pointwise is calculated the distance between this point and other point and preserved its big person'"'"'s " program;
, do not carry out next step;
Step 3, x, y coordinate pointer DPTR points to the next storage area of current location, and two continuous bytes are taken out in the scratchpad area (SPA) from RAM, claim that these two bytes are objective contour position (DPH _{O}, DPL _{O}), check it be the sign that finishes of outline position (#FFH, #FFH);
Be, then recover x, y coordinate pointer DPTR then, makes x for the coordinate of temporary current outline position, and y coordinate pointer DPTR points to its corresponding next storage area, jumps to step 2 again; Not, then calculate current outline position and objective contour position pointtopoint transmission distance square; L ^{2}＝
(DPH _{P}DPH _{O}) ^{2}+(DPL _{P}DPL _{O}) ^{2}；
Step 4, comparison L ^{2}With R _{6}R _{5}(the high and low byte working storage of the square value of distance) got its big person and is stored in R _{6}R _{5} Step 5, jump procedure three.
 It is characterized in that the said several regions length of measuring simultaneously comprises the steps;
Specification(s)