CMSV6Help Center
/
839 DOCS · 211 VIDEOS中文

ttx custom protocol GPS/alarm forwarding configuration

Author huyiwenUpdated 2026-08-12 16:40:48Doc ID 25113,869 words · 17 min readView original ↗

1. Functional Description

ttx custom protocol GPS/alarm forwarding configuration

2. Operating Instructions

2.1 get forwarding plug- in;

Get path: [CMSServerV6\bin\plugin_gpstran_gpsgate_backup]];
Forwarding plug- in: [libgpstran_oanew.dll] [libgpstran_oanew.ini] (library file and configuration file are used together);

2.2 configuration forwarding plug- in

Path: [CMSServerV6\bin]]
Copy the plug- in obtained in step 1 to the [bin] directory;
Then configure the IP and port provided by the receiving platform into the configuration item corresponding to the ini file;

2.3 Agreement Document
CMS server - - - - - > customer server CMS server will actively link with customer server and transmit GPS data information

Data composition:
packet header message type separator data content separator trailer
*# Message Type | Data Content | * X
Device Presence Message Type: 000
*#000 | Device Number | Online Status | *#
Online status: 1 is online and 0 is offline
Data example:
*#000 | 1234 | 1 | *#
GPS Message Type: 007
*#007 | Device number | Time | Longitude | Latitude | Speed | Heading | Fuel volume | Mileage | Network type | Status bit 1 | Status bit 2 | Status bit 3 | Status bit 4 | Temperature sensor 1 | Temperature sensor 2 | Temperature sensor 3 | Temperature sensor 4 | * X
Data example:
*#007|50008|2016- 07- 22 12:40:31|113.926611|22.564851|0|160|0.70|10682.48|1|805319043|0|0|0|0|0|0|0|*X
Oil quantity: unit L
Mileage: KM
Network type (0- 3G,1- WIFI,2- wired, 3- 4G)
Status Bit Definition
// Vehicle status, each indicating the relevant status of the vehicle
// Status bit 1 has 32 bits
// bit 0 indicates that the GPS positioning state 0 is invalid and 1 is valid
// 1 bit means ACC state 0 means ACC is off 1 means ACC is on
// 2 bits indicate left turn status 0 invalid 1 left turn
// 3 bits indicate right turn status 0 invalid 1 right turn
// 4 bits indicate brake status 0 invalid 1 brake
// 5 bits indicate that the forward rotation status 0 is invalid and 1 forward rotation
// 6 bits indicate that the inversion state 0 is invalid 1 inversion
// 7 bits indicate that GPS antenna status 0 does not exist and 1 exists
// 8 and 9 bits indicate that the hard disk status 0 does not exist, 1 exists, and 2 is powered off
//10,11,12 bits indicate 3G module status 0 module does not exist, 1 no signal, 2 signal is poor, 3 signal is normal, 4 signal is good, 5 signal is excellent
// 13 bits for static state 1 for static
// 14 for overspeed status 1 for overspeed
//15 bits indicate the supplementary transmission status 1 indicates GPS supplementary transmission
// 16 bit low speed status
// 17 bits
// 18
// 19
// Regarding the parking without flameout, if the processing is stationary and the ACC is on, it means the parking has not flameout
// 20 bits for IO1 status 1 for alarm
// bit 21 indicates IO2 state 1 indicates alarm
// 22 bits for IO3 status 1 for alarm
// 23 bits for IO4 status 1 for alarm
// 24 bits for IO5 status 1 for alarm
// 25 bits for IO6 status 1 for alarm
// 26 bits for IO7 status 1 for alarm
// 27 bits for IO8 status 1 for alarm
// 28 bits for drive letter 2 status 1 for valid
// 29 and 30 bits indicate that the status 0 of hard disk 2 does not exist, 1 exists, and 2 is powered off
//31- bit hard disk status (used for GPS equipment) 1, invalid 0, valid, to judge the status of 1,2

// status bit 2
// 0 bit indicates area alarm (terminal generated)
// 1 bit indicates line alarm (generated by terminal)
// 2 bits indicate high- speed alarm in the area
// 3 bits indicate low- speed alarm in the area
// 4 bits indicate high- speed alarm outside the area
// 5 bits indicate low speed alarm outside the area
// 6 digits indicate parking alarm in the area
// 7 digits indicate parking alarm outside the area
// 8- bit daily traffic warning
// 9 digits indicate that the daily traffic exceeds
// 10 digits indicate monthly traffic warning
// 11 digits indicate that the monthly traffic exceeds
// 12- bit- the host is powered by the backup battery when it is powered down.
// 13- door open
// 14- vehicle fortification
// bit 15- low battery voltage
// 16 bit- bad battery
// 17- engine
// 18 bits- for the last valid GPS information, the status shows that the positioning is invalid, but the GPS can be located on the map
// 19 bits - 0- no load state 1- heavy load state
// 20: Operation status; 1: Shutdown status (808)
//21: Latitude and longitude are not encrypted; 1: Encrypted (808)
// 22: The oil circuit is normal, 1: The oil circuit is disconnected (808)
// 23: The circuit is normal, 1: The circuit is disconnected (808)
// 24: Door unlock, 1: Door lock (808)
// 25: Area overspeed alarm (generated by platform)
// 26: Zone low speed alarm (generated by platform)
// 27: Enter the area alarm (generated by the platform)
// 28: Line offset (platform generated)
// 29: Time period overspeed alarm (generated by platform)
// 30: Time period low speed alarm (generated by platform)
// 31: Fatigue driving (platform generation)

// status bit 3
// 0- 7 indicates channel video loss status
//8- 15 indicates the channel recording status
// 16- 23 indicates IO input 9- 16 state
// 24- 27 indicates IO output 1- 4 status
//28- 29 0 means GPS positioning, 1 means base station positioning, 2 means Wifi positioning, mobile phone positioning to display this positioning information

// status bit 4
// 0- 2 indicates positioning type 0 indicates WSG_84 (standard GPS coordinate system),1 indicates GCJ- 02 (Mars coordinate), and 2 indicates BD09 (Baidu coordinate)
// 3: Emergency alarm
// 4: Area overspeed alarm
// 5: Fatigue driving alarm
// 6: Warning
// 7:GNSS module fault
// 8:GNSS antenna is not connected or cut
// 9:GNSS antenna short circuit
// 10: terminal LCD or display failure
// 11:TTS module fault
// 12: Camera failure
// 13: Cumulative driving overtime on the day
// 14: Overtime Parking
// 15: into the area
// 16: into the route
// 17: Insufficient or excessive travel time on the road section
// 18: Route Deviation Alarm
// 19: Vehicle VSS failure
// 20: Vehicle fuel level abnormal
// 21: Vehicle stolen
// 22: Illegal ignition of vehicles
// 23: Illegal vehicle displacement
// 24: Collision rollover alarm
// 25: overtime parking (platform generated)
// 26: key point not reached alarm (platform generated)
// 27: Line overspeed alarm (generated by platform)
// 28: Line low speed alarm (generated by platform)
//29: Road overspeed alarm (generated by platform)
// 30: Indicates an area alarm (generated by the platform)
// 31: Indicates that the key point does not leave the alarm (generated by the platform)

Temperature sensor: in degrees Celsius
Alarm Message Type: 008
*#008 | Equipment number | Time | Longitude | Latitude | Speed | Heading | Fuel volume | Mileage | Network type | Status bit 1 | Status bit 2 | Status bit 3 | Status bit 4 | Temperature sensor 1 | Temperature sensor 2 | Temperature sensor 3 | Temperature sensor 4 | Alarm type | Alarm subtype | Alarm parameter 1 | Alarm parameter 2 | Alarm parameter 3 | Alarm parameter 4 | Alarm description | *#
Data example:
*#008|5008|2016- 07- 29 11:43:12|113.931852|22.555017|24|85|0.80|12080.30|1|805310851|0|0|0|0|0|0|0.0|19|0|0|0|0|0||*X
Alarm Type Definition:
# define GPS_ALARM_TYPE_USEDEFINE 1 // Custom alarm
# define GPS_ALARM_TYPE_URGENCY_BUTTON 2 // emergency button alarm
# define GPS_ALARM_TYPE_SHAKE 3 // vibration alarm
# define GPS_ALARM_TYPE_VIDEO_LOST 4 // camera has no signal alarm
# define GPS_ALARM_TYPE_VIDEO_MASK 5 // Camera occlusion alarm
# define GPS_ALARM_TYPE_DOOR_OPEN_LAWLESS 6 // illegal door opening alarm
# define GPS_ALARM_TYPE_WRONG_PWD 7 // Three times password error alarm
# define GPS_ALARM_TYPE_FIRE_LOWLESS 8 // illegal ignition alarm
# define GPS_ALARM_TYPE_TEMPERATOR 9 // Temperature alarm AlarmInfo sensor number (0 means sensor 1,1 means sensor 2), param[0] temperature type (0 means ultra- high temperature, 1 means ultra- low temperature), param[1] current temperature 10000=100 degrees
# define GPS_ALARM_TYPE_DISK_ERROR 10 // hard disk error alarm
# define GPS_ALARM_TYPE_OVERSPEED 11 // overspeed alarm
# define GPS_ALARM_TYPE_BEYOND_BOUNDS 12 // out- of- bounds alarm
# define GPS_ALARM_TYPE_DOOR_ABNORMAL 13 // abnormal switch door alarm
# define GPS_ALARM_TYPE_PARK_TOO_LONG 14 // alarm for too long parking
# define GPS_ALARM_TYPE_MOTION 15 // motion detection alarm
# define GPS_ALARM_TYPE_ACC_ON 16 // ACC on alarm
# define GPS_ALARM_TYPE_DEV_ONLINE 17 // device online
# define GPS_ALARM_TYPE_GPS_SIGNAL_LOSS 18 // GPS signal loss begins
# define GPS_ALARM_TYPE_IO_1 19 // IO_1 alarm
# define GPS_ALARM_TYPE_IO_2 20 // IO_2 alarm
# define GPS_ALARM_TYPE_IO_3 21 // IO_3 alarm
# define GPS_ALARM_TYPE_IO_4 22 // IO_4 alarm
# define GPS_ALARM_TYPE_IO_5 23 // IO_5 alarm
# define GPS_ALARM_TYPE_IO_6 24 // IO_6 alarm
# define GPS_ALARM_TYPE_IO_7 25 // IO_7 alarm
# define GPS_ALARM_TYPE_IO_8 26 // IO_8 alarm
# define GPS_ALARM_TYPE_IN_FENCE 27 // Enter the area to alarm
# define GPS_ALARM_TYPE_OUT_FENCE 28 // out- of- area alarm
# define GPS_ALARM_TYPE_IN_FENCE_OVER_SPEED 29 // high- speed alarm in the area
# define GPS_ALARM_TYPE_OUT_FENCE_OVER_SPEED 30 // high- speed alarm outside the area
# define GPS_ALARM_TYPE_IN_FENCE_LOW_SPEED 31 // low- speed alarm in the area
# define GPS_ALARM_TYPE_OUT_FENCE_LOW_SPEED 32 // Low speed alarm outside the area
#defiNe GPS_ALARM_TYPE_IN_FENCE_STOP 33 // parking alarm in the area
# define GPS_ALARM_TYPE_OUT_FENCE_STOP 34 // parking alarm outside the area
# define GPS_ALARM_TYPE_FIRE 35 // fire alarm
# define GPS_ALARM_TYPE_PANIC 36 // police robbery
# define GPS_ALARM_TYPE_TASK_FINISHED 37 // Scheduling task completed
# define GPS_ALARM_TYPE_IMAGE_UPLOAD 38 // Picture upload completed
# define GPS_ALARM_TYPE_DISK1_NO_EXIST 39 // hard disk 1 does not exist
# define GPS_ALARM_TYPE_DISK2_NO_EXIST 40 // hard disk 2 does not exist
# define GPS_ALARM_TYPE_IO_9 41 // IO_9 alarm
# define GPS_ALARM_TYPE_IO_10 42 // IO_10 alarm
# define GPS_ALARM_TYPE_IO_11 43 // IO_11 alarm
# define GPS_ALARM_TYPE_IO_12 44 // IO_12 alarm
# define GPS_ALARM_TYPE_GPS_UNENABLE 45 // Invalid GPS
# define GPS_ALARM_TYPE_REFUEL 46 // The refueling AlarmInfo is the amount of fuel (9999=99.99 liters), and Param[0] is the fuel consumption before refueling
# define GPS_ALARM_TYPE_STILL_FUEL 47 // The AlarmInfo of stealing oil is the amount of oil stolen (9999=99.99 liters), and Param[0] is the fuel consumption before stealing oil
# define GPS_ALARM_TYPE_URGENCY_BUTTON_5 48 // panic button alarm (5 seconds)
# define GPS_ALARM_TYPE_FATIGUE 49 // Fatigue driving AlarmInfo indicates alarm level 0, no, 1 level 1 alarm, 2 level 2 alarm, 3 level 3 alarm, 4 attention alarm
// 5 face warning, 6 closed eyes warning, 7 mobile phone warning, 8 smoking warning


# define GPS_ALARM_TYPE_END_USEDEFINE 51 // custom alarm
# define GPS_ALARM_TYPE_END_URGENCY_BUTTON 52 // emergency button alarm
# define GPS_ALARM_TYPE_END_SHAKE 53 // vibration alarm
# define GPS_ALARM_TYPE_END_VIDEO_LOST 54 // camera has no signal alarm
# define GPS_ALARM_TYPE_END_VIDEO_MASK 55 // Camera occlusion alarm
# define GPS_ALARM_TYPE_END_DOOR_OPEN_LAWLESS 56 // illegal door opening alarm
# define GPS_ALARM_TYPE_END_WRONG_PWD 57 // Three password error alarms
# define GPS_ALARM_TYPE_END_FIRE_LOWLESS 58 // illegal ignition alarm
# define GPS_ALARM_TYPE_END_TEMPERATOR 59 // temperature alarm
# define GPS_ALARM_TYPE_END_DISK_ERROR 60 // hard disk error alarm
# define GPS_ALARM_TYPE_END_OVERSPEED 61 // overspeed alarm
# define GPS_ALARM_TYPE_END_BEYOND_BOUNDS 62 // out- of- bounds alarm
# define GPS_ALARM_TYPE_END_DOOR_ABNORMAL 63 // abnormal switch door alarm
# define GPS_ALARM_TYPE_END_PARK_TOO_LONG 64 // alarm for too long parking
# define GPS_ALARM_TYPE_END_MOTION 65 // motion detection alarm
# define GPS_ALARM_TYPE_ACC_OFF 66 // ACC off alarm
# define GPS_ALARM_TYPE_DEV_DISONLINE 67 // Device disconnection
# define GPS_ALARM_TYPE_END_GPS_SIGNAL_LOSS 68 // GPS signal loss ends
# define GPS_ALARM_TYPE_END_IO_1 69 // IO_1 alarm
# define GPS_ALARM_TYPE_END_IO_2 70 // IO_2 alarm
# define GPS_ALARM_TYPE_END_IO_3 71 // IO_3 alarm
# define GPS_ALARM_TYPE_END_IO_4 72 // IO_4 alarm
# define GPS_ALARM_TYPE_END_IO_5 73 // IO_5 alarm
# define GPS_ALARM_TYPE_END_IO_6 74 // IO_6 alarm
# define GPS_ALARM_TYPE_END_IO_7 75 // IO_7 alarm
# define GPS_ALARM_TYPE_END_IO_8 76 // IO_8 alarm
# define GPS_ALARM_TYPE_END_IN_FENCE 77 // Enter area alarm
# define GPS_ALARM_TYPE_END_OUT_FENCE 78 // out of the area alarm
# define GPS_ALARM_TYPE_END_IN_FENCE_OVER_SPEED 79 // high- speed alarm in the area
# define GPS_ALARM_TYPE_END_OUT_FENCE_OVER_SPEED 80 // high- speed alarm outside the area
# define GPS_ALARM_TYPE_END_IN_FENCE_LOW_SPEED 81 // low- speed alarm in the area
# define GPS_ALARM_TYPE_END_OUT_FENCE_LOW_SPEED 82 // Low speed alarm outside the area
# define GPS_ALARM_TYPE_END_IN_FENCE_STOP 83 // parking alarm in the area
# define GPS_ALARM_TYPE_END_OUT_FENCE_STOP 84 // parking alarm outside the area
# define GPS_ALARM_TYPE_END_GPS_UNENABLE 85 // GPS is invalid
// Refueling and stealing oil is not over
# define GPS_ALARM_TYPE_END_REFUEL 86 // The refueling AlarmInfo is the amount of fuel (9999=99.99 liters), and Param[0] is the fuel consumption before refueling
# define GPS_ALARM_TYPE_END_STILL_FUEL 87 // The AlarmInfo of stealing oil is the amount of oil stolen (9999=99.99 liters), and Param[0] is the fuel consumption before stealing oil

# define GPS_ALARM_TYPE_END_IO_9 91 // IO_9 alarm
# define GPS_ALARM_TYPE_END_IO_10 92 // IO_10 alarm
# define GPS_ALARM_TYPE_END_IO_11 93 // IO_11 alarm
# define GPS_ALARM_TYPE_END_IO_12 94 // IO_12.

# define GPS_ALARM_TYPE_END_FATIGUE 99 // Fatigue driving AlarmInfo indicates alarm level 0, no, 1 level 1 alarm, 2 level 2 alarm, 3 level 3 alarm, 4 attention alarm


# define GPS_EVENT_TYPE_PARK 101 // Param[0] is the number of seconds of parking, Param[1] is the fuel consumption before parking (9999=99.99 liters), and Param[2] is the fuel consumption after parking
# define GPS_EVENT_TYPE_PARK_ACCON 102 // Param[0] is the number of seconds of parking, Param[1] is the fuel consumption before parking (9999=99.99 liters), and Param[2] is the fuel consumption after parking
//The parking without flameout event is generally within a period of time in the parking event, 11:00 -  11:20 in the parking, 11:00 -  11:05 in the parking without flameout
# define GPS_EVENT_TYPE_NET_FLOW 103 // Traffic Param[0] is the current time (unit second, e.g. 7206=02:06 on the same day),Param[1] is the upstream traffic, and Param[2] is the downstream traffic
# define GPS_EVENT_TYPE_REFUEL 104 // The refueling AlarmInfo is the amount of fuel to be refueled (9999=99.99 liters), and Param[0] is the fuel consumption before refueling
# define GPS_EVENT_TYPE_STILL_FUEL 105 // The oil stealing AlarmInfo is the amount of oil stolen (9999=99.99 liters), and Param[0] is the fuel consumption before stealing oil
# define GPS_EVENT_TYPE_OVERSPEED 106 // Overspeed event AlarmInfo is speed (999=99.9 KM/H),Param[0] overspeed time, Param[1] is overspeed type (ultra- high speed or ultra- low speed, temporarily invalid)
# define GPS_EVENT_TYPE_FENCE_ACCESS 107 // In and out of the area event Param[0] area number, Param[1] out of the area longitude, Param[2] out of the area latitude, Param[3] area stay time (seconds)
# define GPS_EVENT_TYPE_FENCE_PARK 108 // zone parking event Param[0] zone number, Param[3] zone parking time (seconds)
# define GPS_EVENT_TYPE_FILE_UPLOAD 109 // Upload picture or video files
# define GPS_EVENT_TYPE_STATION_INFO 110 // report station information
# define GPS_EVENT_TYPE_SEA_STATUS 111 // Ship Status Alarm 1: Sailing 2: Arrival 3: Off- sea Detention Alarm 4: Off- sea Detention Alarm End
//#define GPS_EVENT_TYPE_LOCK_STATUS 112 // electronic lock status
# define GPS_ALARM_TYPE_CUSTOM 113 // Custom alarm. The AlarmInfo indicates the type
// param[0] indicates parameter 1,param[1] indicates parameter 2param[2] for parameter 3, param[3] for parameter 4,
// szDesc indicates the content, which is in string format. '' is not allowed in the middle. The maximum length is 256 bytes.
# define GPS_EVENT_TYPE_OVERSPEED_WARNING 114 // overspeed warning
# define GPS_EVENT_TYPE_LOWSPEED_WARNING 115 // overspeed warning
# define GPS_EVENT_TYPE_DRIVER 116 // driver information collection and reporting AlarmInfo:1 means login, 0 means return,
//szReserve indicates the name of the driver, szDesc indicates the issuing authority, szImgFile: use '; 'Separate, physical certificate number; Code of qualification certificate
# define GPS_EVENT_TYPE_OVER_STATION 117 // over- station alarm
# define GPS_EVENT_TYPE_EXCEED_STATION 118 // Over- station alarm, param[0],param[1] previous station reporting time and station

# define GPS_EVENT_TYPE_TASK_READ 121 // The guid is the corresponding task guid. The person has checked the scheduled task
# define GPS_EVENT_TYPE_TASK_REPLY 122 // guid is the corresponding task guid, the personnel replied to the scheduled task, szDesc is the reply content
# define GPS_ALARM_TYPE_MOBILE_USEDEFINE 123 // Custom alarm

# define GPS_ALARM_TYPE_TALK_BACK_REQ 127 // Vehicle active intercom request, sent as an alarm
# define GPS_ALARM_TYPE_DEVICE_INFO_CHANGE 128 // The vehicle information changes, such as the user modifying the device information
# define GPS_ALARM_TYPE_SNAPSHOT_FINISH 129 // The storage server captures the completion and sends it to the client as an alarm.
# define GPS_ALARM_TYPE_DOWN_FINISH 130 // The storage server file task is downloaded and sent to the client in the form of an alarm
# define GPS_ALARM_TYPE_DEVICE_INFO_CHANGE_EX 131 // The vehicle information changes, such as the user modifying the device information
# define GPS_ALARM_TYPE_TRANS_PORT 132 // Pass through data

# define GPS_ALARM_TYPE_NIGHT_DRIVING 151 // night driving alarm
#define GPS_ALARM_TYPE_END_NIGHT_DRIVING 152
# define GPS_ALARM_TYPE_GATHERING 153 // crowd alarm
#define GPS_ALARM_TYPE_END_GATHERING 154
# define GPS_ALARM_TYPE_USP_CUT 155 // UPS wire cutting alarm
#define GPS_ALARM_TYPE_END_USP_CUT 156
# define GPS_ALARM_TYPE_HDD_HIGH_TEMPERATURE 157 // Hard disk overtemperature alarm
#define GPS_ALARM_TYPE_END_HDD_HIGH_TEMPERATURE 158
# define GPS_ALARM_TYPE_BEFORE_BOARD_OPENED 159 // The front panel is pried open
#define GPS_ALARM_TYPE_END_BEFORE_BOARD_OPENED 160
# define GPS_ALARM_TYPE_TURN_OFF 161 // Shutdown Report alarmInfo as Reasons: 1 ACC Invalid Shutdown, 2 Timed Shutdown, 3 Software Restart, 4 Software Abnormal Shutdown, 5 Power Down Shutdown, 6 Hard Disk Lock Open Shutdown
# define GPS_ALARM_TYPE_DISK_SPACE_WARNING 162 // Hard disk space alarm Hard disk space warning, alarmInfo is hard disk number, param[0] indicates hard disk type TTX_DISK_TYPE_SD, param[1] total space, param[2] remaining space, 16000 indicates space is 16000MB
# define GPS_ALARM_TYPE_END_DISK_SPACE_WARNING 163 // hard disk space alarm
# define GPS_ALARM_TYPE_GSENSOR 164 // GSENSOR alarm
#define GPS_ALARM_TYPE_END_GSENSOR 165
# define GPS_ALARM_TYPE_SIM_LOST 166 // SIM card loss alarm
#define GPS_ALARM_TYPE_END_SIM_LOST 167
# define GPS_ALARM_TYPE_TPMS 168 // Tire pressure alarm // Tire pressure alarm, alarmInfo TPMS alarm type (1 means battery voltage warning, 2 means abnormal tire pressure alarm, 3 means abnormal temperature),
// param[0] Current temperature: 200=20 degrees
// param[1] Current tire pressure: 25=2.5P
// param[2] Current voltage: 102=10.2V
// param[3] sensor number (01 means TPMS left 1,02 means TPMS left 2,03 means TPMS left 3,04 means TPMS left 4,11 means TPMS right 1,12 means TPMS right 2,13 means TPMS right 3,14 means TPMS right 4)
# define GPS_ALARM_TYPE_END_TPMS 169 // End of tire pressure alarm

// 808 partial alarm
# define GPS_ALARM_TYPE_AREA_OVERSPEED 200 // Zone overspeed alarm
# define GPS_ALARM_TYPE_WARNING 201 // Alert
# define GPS_ALARM_TYPE_GNSS_MOD_ERR 202 // GNSS module fault
# define GPS_ALARM_TYPE_GNSS_WIRE_MISS 203 // GNSS antenna is not connected or cut off
# define GPS_ALARM_TYPE_GNSS_WIRE_SHORTAGE 204 // GNSS antenna short circuit
# define GPS_ALARM_TYPE_VOLTAGE_LOW 205 // power supply undervoltage
# define GPS_ALARM_TYPE_POWER_OFF 206 // power down
# define GPS_ALARM_TYPE_ LCD_ERR 207 // LCD or display failure
# define GPS_ALARM_TYPE_TTS_MOD_ERR 208 // TTS module failure
# define GPS_ALARM_TYPE_CAMERA_MOD_ERR 209 // Camera failure
# define GPS_ALARM_TYPE_DIRVE_TIMEOUT 210 // Cumulative Driving Timeout
# define GPS_ALARM_TYPE_AREA_INOUT 211 // Access Area
# define GPS_ALARM_TYPE_LINE_INOUT 212 // incoming and outgoing lines
# define GPS_ALARM_TYPE_LINE_DRIVE_TIME 213 // The driving time of the road section is too long/too short
# define GPS_ALARM_TYPE_LINE_DEVIATE 214 // Line Deviation
# define GPS_ALARM_TYPE_VSS_ERR 215 // VSS failure
# define GPS_ALARM_TYPE_OIL_ABNORMAL 216 // abnormal oil quantity
# define GPS_ALARM_TYPE_STOLEN 217 // Vehicle stolen
# define GPS_ALARM_TYPE_MOVE_LAWLESS 218 // illegal displacement
# define GPS_ALARM_TYPE_COLLISION 219 // rollover collision alarm

# define GPS_ALARM_TYPE_RAPID_ACCELERATION 246 // acceleration
# define GPS_ALARM_TYPE_RAPID_DECELERATION 247 // deceleration
# define GPS_ALARM_TYPE_END_AREA_OVERSPEED 250 // Zone overspeed alarm
# define GPS_ALARM_TYPE_END_WARNING 251 // Alert
# define GPS_ALARM_TYPE_END_GNSS_MOD_ERR 252 // GNSS module fault
# define GPS_ALARM_TYPE_END_GNSS_WIRE_MISS 253 // GNSS antenna is not connected or cut off
# define GPS_ALARM_TYPE_END_GNSS_WIRE_SHORTAGE 254 // GNSS antenna is not connected or cut off
# define GPS_ALARM_TYPE_END_VOLTAGE_LOW 255 // power supply undervoltage
# define GPS_ALARM_TYPE_END_POWER_OFF 256 // Power down
# define GPS_ALARM_TYPE_END_ LCD_ERR 257 // LCD or display failure
# define GPS_ALARM_TYPE_END_TTS_MOD_ERR 258 // TTS module fault
# define GPS_ALARM_TYPE_END_CAMERA_MOD_ERR 259 // TTS module fault
# define GPS_ALARM_TYPE_END_DIRVE_TIMEOUT 260 //cumulative driving timeout
# define GPS_ALARM_TYPE_END_AREA_INOUT 261 // Access Area
# define GPS_ALARM_TYPE_END_LINE_INOUT 262 // incoming and outgoing lines
# define GPS_ALARM_TYPE_END_LINE_DRIVE_TIME 263 // Road travel time is too long/too short
# define GPS_ALARM_TYPE_END_LINE_DEVIATE 264 // Line Deviation
# define GPS_ALARM_TYPE_END_VSS_ERR 265 // VSS failure
# define GPS_ALARM_TYPE_END_OIL_ABNORMAL 266 //abnormal oil quantity
# define GPS_ALARM_TYPE_END_STOLEN 267 // Vehicle stolen
# define GPS_ALARM_TYPE_END_MOVE_LAWLESS 268 // illegal displacement
# define GPS_ALARM_TYPE_END_COLLISION 269 // rollover collision alarm

# define GPS_ALARM_TYPE_END_RAPID_ACCELERATION 296 // Accelerate
# define GPS_ALARM_TYPE_END_RAPID_DECELERATION 297 // deceleration
# define GPS_ALARM_TYPE_CMS_AREA_OVERSPEED 300 // zone overspeed alarm (generated by the platform) param[0]- position type param[1]- zone or line ID param[2]- speed threshold
#define GPS_ALARM_TYPE_CMS_AREA_LOWSPEED 301 // zone low speed alarm (generated by the platform) param[0]- position type param[1]- zone or line ID param[2]- speed threshold
# define GPS_ALARM_TYPE_CMS_AREA_INOUT 302 // Enter/Exit Area (Platform Generated) param[0]- Location Type param[1]- Area or Line ID param[2]- 0: In 1: Out
# define GPS_ALARM_TYPE_CMS_LINE_INOUT 303 // line offset (platform generated) param[0]- location type param[1]- area or line ID param[2]- 0: in 1: out
# define GPS_ALARM_TYPE_CMS_OVERSPEED 304 // Time period overspeed alarm (generated by platform) param[0] speed threshold
# define GPS_ALARM_TYPE_CMS_LOWSPEED 305 // time period low speed alarm (generated by platform) param[0] speed threshold
# define GPS_ALARM_TYPE_CMS_FATIGUE 306 // Fatigue driving (platform generation)
# define GPS_ALARM_TYPE_CMS_PARK_TOO_LONG 307 // timeout parking (platform generation)
# define GPS_ALARM_TYPE_CMS_AREA_POINT 308 // Key point monitoring alarm (generated by the platform) param[0]- location type param[1]- area or line ID param[2]- 0: not reached 1: not left
# define GPS_ALARM_TYPE_CMS_LINE_OVERSPEED 309 // Line overspeed alarm (generated by platform) param[0]- position type param[1]- line ID param[2]- speed threshold
# define GPS_ALARM_TYPE_CMS_LINE_LOWSPEED 310 // Line low speed alarm (generated by platform) param[0]- position type param[1]- line ID param[2]- speed threshold
# define GPS_ALARM_TYPE_CMS_ROAD_LVL_OVERSPEED 311 // Road grade overspeed alarm (generated by platform) param[0]- Road grade param[1]- City sign param[2]- Speed threshold

# define GPS_ALARM_TYPE_END_CMS_AREA_OVERSPEED 350 // zone overspeed alarm (generated by the platform) param[0]- position type param[1]- zone or line ID param[2]- speed threshold
# define GPS_ALARM_TYPE_END_CMS_AREA_LOWSPEED 351 // zone low speed alarm (generated by the platform) param[0]- position type param[1]- zone or line ID param[2]- speed threshold
# define GPS_ALARM_TYPE_END_CMS_AREA_INOUT 352 // in and out area (platform generated) param[0]- location type param[1]- area or line ID param[2]- 0: in 1: out
# define GPS_ALARM_TYPE_END_CMS_LINE_INOUT 353 // line offset (platform generated) param[0]- location type param[1]- area or line ID param[2]- 0: in 1: out
# define GPS_ALARM_TYPE_END_CMS_OVERSPEED 354 // time period overspeed alarm (generated by platform)
# define GPS_ALARM_TYPE_END_CMS_LOWSPEED 355 // Time period low speed alarm (generated by platform)
# define GPS_ALARM_TYPE_END_CMS_FATIGUE 356 // Fatigue Driving (Platform Generation)
# define GPS_ALARM_TYPE_END_CMS_PARK_TOO_LONG 357 // timeout parking (platform generation)
# define GPS_ALARM_TYPE_END_CMS_AREA_POINT 358 // Key point monitoring alarm (generated by platform) param[0]- location type param[1]- area or line ID param[2]- 0: not reached 1: not left
# define GPS_ALARM_TYPE_END_CMS_LINE_OVERSPEED 359 // Line overspeed alarm (generated by platform) param[0]- position type param[1]- line ID param[2]- speed threshold
# define GPS_ALARM_TYPE_END_CMS_LINE_LOWSPEED 360 // Line low speed alarm (generated by platform) param[0]- position type param[1]- line ID param[2]- speed threshold
# define GPS_ALARM_TYPE_END_CMS_ROAD_LVL_OVERSPEED 361 // Overspeed alarm of road level (generated by platform) param[0]- road level param[1]- city sign param[2]- speed threshold
Login message type: 013
Data example:
*#013 | 2111001 | *#
Heartbeat message type: 012
Data example:
*#012 | 2111001 | *#

After connecting to the server successfully, a login message will be sent and then a heartbeat message will be sent every 30 seconds.

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