1. function description
School Bus TTX Protocol Integration
2. operating instructions
2.1 reporting normal alarm mode
Alarm 2 (Custom 54 Alarm)
'#define NET_ALARM_TYPE_CUSTOM 113 // custom alarm'
define CUSTOM_ALARM_TYPE_XC_SWIPE_CARD 54 // wkp protocol swipe card custom alarm param[0]:- 1 means no boarding and alighting, 0- boarding, 1- alighting desc: card number'
Reporting method: private protocol, reporting the above custom alarm types
2.2 data pass- through mode
Pass- through type (0x 92)
'
typedef struct CarInfo'
{
char szCarID[32]; // card number
char cYear; // Beginning in 2000
char cMonth;
char cDay;
char cHour;
char cMin;
char cSec;
char cPatch; // 0- real- time, 1- update
char cUpDown; // 0- get on, 1- get off
int nJingDu; // longitude 4 byte integer part 9999999=9.999999
int nWeiDu; // latitude 4 byte integer part 9999999=9.999999
char reseved2[32];
} CarInfo_S, * LPCarInfo_S;
Pass- through Data Description
1. The length of a single structure is 80, the data length is not checked, every 80 bytes is counted as a structure, and the part less than 80 is ignored.
2. Transparent data is a structure array, which supports simultaneous reporting of multiple card numbers.
Transparent analog data: hexadecimal
'
Kan
'
Call interface 'TTXNET_SendTransparentSerial(0X92, CarInfo_S, 80, true)'