Farnear Electronics Co., Ltd
FN01 User Guide
7
Example:
Send: :123456E1,1,1,22.7198011N,114.3878008E,50
Reply: #867688033841044,CMD-E,OK#
Rectangle Fence:
:123456Ix,y,z,aa.aaaaaaaN/S,bbb.bbbbbbbE/
W,cc.cccccccN/S,ddd.dddddddE/W
x is fence number;
y is switch, y=1 on, y=0 off
z is alarm mode, 1 go in alarm, 2 go out alarm, 3 go out and in alarm
aa.aaaaaaaN/S,bbb.bbbbbbbE/W,cc.cccccccN/S,ddd.dddddddE/W is the two coordinate of
the rectangle (the two coordinates of opposite angles)
Example:
Send: :123456I1,1,1,22.7198011N,114.38780
08E,22.7198012N,114.3878009E
Reply: #867688033841044,CMD-I,OK#
Alarm:
ALM-B3-2,A,
http://maps.google.com/maps?f=q&hl=en&
q=22.7197820,114.3877998&ie=UTF8&z=16
&iwloc=addr&om=1Speed:000.9
This is a Rectangle Fence Alarm
7.7
Connect to Server
Set APN
:123456OAPN,Name,PSW (You need confirm
with your sim card supplier about the PSW)
#IMEI,CMD-O,APN#
Set IP&Port
:123456CTIP;Port
#IMEI,CMD-C#
Example:
Send: :123456O3gnet,,
Reply: #867688033841044,CMD-O,3gnet#
Send: :123456CT123.249.83.8;10385
Reply: #867688033841044,CMD-C#
Connect Server
:123456Dx x=1 connect, x=0 disconnect