CMSV6Help Center
/
839 DOCS · 213 VIDEOS中文

[New] TTX Agreement Number Statistics (Passenger Flow Statistics)

Author 谢周轩Updated 2026-08-12 11:33:50Doc ID 2395378 words · 2 min readView original ↗

1. function description

TTX protocol headcount scheme **(it is recommended to use this scheme for docking first) **

2. Agreement Description

  1. The equipment is sent to the server through the transparent transmission interface
  2. Transparent transmission type: 2
  3. Pass- through data type is StatisticsPeople_S, as defined below

Const int MAX_POPLE_DEVCNT = 4; //Total Number of Stated Doors 0- Front 1- Back 2- Middle Door 3- Reserved

typedef struct _tagStatisticsPeople
{
int nUpPeople[MAX_POPLE_DEVCNT]; //Number of people on the bus, less than 0 means invalid
int unDownPeople[MAX_POPLE_DEVCNT]; //Number of people getting off the bus, less than 0 means invalid
int nJingDu; // longitude 4 byte integer part 9999999=9.999999
int nWeiDu; // latitude 4 byte integer part 9999999=9.999999
char cPatch; // 0- real- time 1- update
unsigned char ucYear; // Year (2000 ucYear) Range (0- 64)
unsigned char ucMonth; // month (1- 12) range (0- 16)
unsigned char ucDay; // day (1- 31) range (0- 32)
unsigned char ucHour; // hours (0- 23) range (0- 32)
unsigned char ucMinute; // min (0- 59) range (0- 64)
unsigned char ucSecond; // seconds (0- 59) range (0- 64)
**unsigned char ucCurPeopleValid; // Whether the current number of people on the vehicle field is valid (for equipment statistics) 0- invalid 1- valid
unsigned char ucCurPeople; // Current number of people on board
char szReserver[23]; // reserved 32- >25 25- >23 **
} StatisticsPeople_S, * LPStatisticsPeople_S;

3. Precautions

** Statistics on the number of people getting on and off the bus are not superimposed. The data is reported incrementally and the "Number of passengers on board" field is added. **
- 7.25/7.26 servers need to be replaced with attachments

4. report query

  • **Passenger Flow Statistics Query **

  • **Report Field Description **

Number of people boarding at the front door: nUpPeople[0] parameter reported
Number of people getting off at Qianmen: unDownPeople[0] parameter reported
Number of Backdoor Boators: nUpPeople[1] parameter reported
Number of people getting off at the back door: unDownPeople[1] parameter reported.
Number of boarding passengers at the middle gate: nUpPeople[2] parameter reported
Number of people getting off at the middle gate: unDownPeople[2] parameter reported
Number of Passengers on Board: reported by ucCurPeople parameter; effective when the ucCurPeopleValid is set to 1.
Personnel increment: new boarding number (all doors added) minus new alighting number (all doors added)
Source help.cmsv7.com
839 documents · 213 videos · docs.alwaycare.com