
Command
Type
Command
Format
Explanation
Example
FENCE
MOTION,[SENSE],
[DELAY]#
FENCE,[INDEX]?
[INDEX] The index of fence —
Integer, 0 - 8
[INDEX]
The index of fence —
Integer, 0 - 8
[FLAG]
The type and shape of fence
— String, each char represents an
attribution, as following type
N/A
— Fence is disabled
O
— Out-type fence
I
— In-type fence
C
— In or Out fence(Bidirectional
/ Across)
R
— Round fence
S
— Rectangle fence
[LNG0],[LAT0]
Longitude & Latitude of
the center of round fence
[RADIUS]
Radius of the round fence
(in meters)
[LNG1],[LAT1]
Longitude & Latitude
of the left-top corner of rectangle fence
[LNG2],[LAT2]
Longitude & Latitude
of the right-bottom corner of rectangle
fence
FENCE,1,OR,113.5,22.5,500#
Setup 1st fence (Out-type, Round)
round specific position, Radius=500m
FENCE,2,IR,113.5,22.5,600#
Setup 2nd fence (In-type, Round)
round specific position, Radius=600m
FENCE,3,CR,113.5,22.5,700#
Setup 3rd fence (In & Out type,
Round) round specific position,
Radius=700m
FENCE,4,OS,113.5,22.5,113.8,22.8#
Setup 4th fence (Out-type,
Rectangle) as a rectangle from
113.25,22.5 to 113.28,22.8
FENCE,5,IS,113.5,22.5,113.8,22.8#
Setup 5th fence (In-type, Rectangle)
as a rectangle from 113.25,22.5 to
113.28,22.8
FENCE,6,CS,113.5,22.5,113.8,22.8#
Setup 6th fence (In & Out type,
Rectangle) as a rectangle from
113.25,22.5 to 113.28,22.8
FENCE,7,CR,,,1000#
Setup 7th fence (In & Out type,
Round) round last fixed position,
Radius=1000m
FENCE,1#
Remove the 1st fence
FENCE,0#
Remove all fences
FENCE,5?
Return the 5th fence
FENCE,0?
Return all fences