资 源 简 介
Simple scrip in perl to collect data from Coban tracker devices TK-103-2.
This is first version of my aphfa aphfa perl script supporting coban tk103-2 it support only getting geo data, no alarm no command sending and no other features
mysql table column: imei, session, latitude, longitude, bear, speed
Config:
my $Debug = 0; #turn 0 - off/1-first level, deep level
my $Coban = 1; #turn 1 if you have coban devices (need replay for messages)
my $Mysql = 1; #trun 1 if want use mysql
my $port = 8081; # port number for TCP only
my $alarmtime = 30; # seconds, timeout
my $maxline = 4096; # max length of the line
my $logfile = "/tmp/trackergps.log";
my $imei ="353353058353535"; #imei of tracker device
# MYSQL CONFIG VARIABLES
my $dbhost = "localhost";
my $dbport = "3306";
my $dbname = "somedbname";
my $dbtable = "sometablename";
my $dbuser =