CMSV6Help Center
/
839 DOCS · 213 VIDEOS中文

Driver student swipes card to report

Author 谢周轩Updated 2025-10-16 14:48:35Doc ID 2376322 words · 1 min readView original ↗

1, function description

Driver student swipes card to report

2. Docking instructions

2.1 DSM Alarm Reporting of Active Safety Protocol for Marked Equipment (Recommended)

** 2.1.1 Add an additional extension protocol to the 0200 to upload the card number **
Use additional ID 0x 81 to indicate student swipe card
Get on and off sign BYTE:0 get on; 1 get off
Student card number length BYTE
Student card number String

**2.1.2 The platform uses the attachment upload instruction to obtain the photo information when the student swipes the card **
Driver condition monitoring system alarm command
Event Type 0xD0 = Student Swipe

** Note: If there is a credit card, there may be no attachment. However, if there is an attachment, there must be a credit card. You can't just upload the attachment without uploading the credit card. **

2.2 drivers swipe card to use custom alarm reporting platform

**2.2.1 Driver swipe card to sign in **
TTXAlarmInfo_S armInfo = {0};
armInfo.AlarmType = TTX_ALARM_TYPE_CUSTOM;
armInfo.AlarmInfo = TTX_ALARM_CUSTOM_TYPE_DRIVER_SWIPE_CAR;
armInfo.Param[0] = 1; // check in
strcpy(armInfo.szDesc,"1111113");// Driver card number
TTXNET_AddAlarmInfo(&armInfo);

**2.2.2 Driver swipe card to sign back **
TTXAlarmInfo_S armInfo = {0};
armInfo.AlarmType = TTX_ALARM_TYPE_CUSTOM;
armInfo.AlarmInfo = TTX_ALARM_CUSTOM_TYPE_DRIVER_SWIPE_CAR;
armInfo.Param[0] = 0; //Withdrawal
strcpy(armInfo.szDesc,"1111113");// Driver card number
TTXNET_AddAlarmInfo(&armInfo);

**2.2.3 The driver card number corresponds to the certificate code in the driver information **

2.3 is issued by V231 alarm transparent transmission command, and the transparent transmission type is 0X92

Pass- through data length is 80, pass- through data CarInfo_S

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- supplement
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;

Transparent analog data: hexadecimal
Much

Call interface TTXNET_SendTransparentSerial(0X92, CarInfo_S, 80, true)

Source help.cmsv7.com
839 documents · 213 videos · docs.alwaycare.com