4 function paraCtrl
.getTerminalNum()
10 function paraCtrl
.getProvinceId()
15 function paraCtrl
.getCityId()
20 function paraCtrl
.getManufactureId()
25 function paraCtrl
.getTerminalModule()
26 return "GT808"..string.rep(string.char(0),20-("GT808"):len())
30 function paraCtrl
.getTerminalId()
31 --return ("12341234001".."000"):fromHex()
32 return ("00000000000000"):fromHex()
36 function paraCtrl
.getCarColor()
41 function paraCtrl
.getCarNumber()
48 function paraCtrl
.setPara(id
,len
,data
)
53 _
,value
= pack
.unpack(data
,">H")
55 _
,value
= pack
.unpack(data
,">i")
60 [JT808Prot
.PARA_HEART_FREQ
] = "heartFreq",
61 [JT808Prot
.PARA_TCP_RSP_TIMEOUT
] = "tcpSndTimeout",
62 [JT808Prot
.PARA_TCP_RESEND_CNT
] = "tcpResendMaxCnt",
63 [JT808Prot
.PARA_LOC_RPT_STRATEGY
] = "locRptStrategy",
64 [JT808Prot
.PARA_LOC_RPT_MODE
] = "locRptMode",
65 [JT808Prot
.PARA_SLEEP_LOC_RPT_FREQ
] = "sleepLocRptFreq",
66 [JT808Prot
.PARA_ALARM_LOC_RPT_FREQ
] = "alarmLocRptFreq",
67 [JT808Prot
.PARA_WAKE_LOC_RPT_FREQ
] = "wakeLocRptFreq",
68 [JT808Prot
.PARA_WAKE_LOC_RPT_DISTANCE
] = "sleepLocRptDistance",
69 [JT808Prot
.PARA_SLEEP_LOC_RPT_DISTANCE
] = "alarmLocRptDistance",
70 [JT808Prot
.PARA_ALARM_LOC_RPT_DISTANCE
] = "wakeLocRptDistance",
71 [JT808Prot
.PARA_FENCE_RADIS
] = "fenceRadis",
72 [JT808Prot
.PARA_ALARM_FILTER
] = "alarmFilter",
73 [JT808Prot
.PARA_KEY_FLAG
] = "keyFlag",
74 [JT808Prot
.PARA_SPEED_LIMIT
] = "speedLimit",
75 [JT808Prot
.PARA_SPEED_EXCEED_TIME
] = "speedExceedTime",
78 if numberPara
[id
] then
79 fskv
.set(numberPara
[id
],value
)