NET_DVR_TPS_PARAM

Structure about real-time traffic data information.

Structure Definition

struct{
  BYTE   byStart; 
  BYTE   byCMD; 
  WORD   wSpaceHeadway;  
  WORD   wDeviceID; 
  WORD   wDataLen; 
  BYTE   byLane; 
  BYTE   bySpeed;  
  BYTE   byLaneState; 
  BYTE   byQueueLen;  
  WORD   wLoopState;  
  WORD   wStateMask; 
  DWORD  dwDownwardFlow; 
  DWORD  dwUpwardFlow; 
  BYTE   byJamLevel; 
  BYTE   byVehicleDirection; 
  BYTE   byJamFlow; 
  BYTE   byChannelizationLane; 
  BYTE   byVehicleType;
  BYTE   byRes1[5];
  WORD   wTimeHeadway;  
}NET_DVR_TPS_PARAM, *LPNET_DVR_TPS_PARAM;

Members

byStart

Start code.

byCMD

Command No.: 01-enter, 02-exit, 03-congestion status (only byLaneState and byQueueLen are valid), 04-multi-coil status (only wLoopState and wStateMask are valid, and it indicates the vehicle passing status of multiple coils in the lane byLane), 05-turning status (struTurnDirection in NET_DVR_TPS_ADDINFO is valid), 06-stop line information (struStopLine in NET_DVR_TPS_ADDINFO is valid).

wSpaceHeadway

Space headway, unit: m.

wDeviceID

Device ID.

wDataLen

Data size.

byLane

Lane No.

bySpeed

Vehicle speed, unit: km/h.

byLaneState

Lane status: 0-unknown, 1-smooth, 2-crowded, 3-congestion.

byQueueLen

Queue length in congestion status, unit: m.

wLoopState

Coil status: 1-entered, 2-exited. The bit No. corresponds to the status of that coil No. The longer distance between the lens and the coil indicates that the coil No. is larger. The lane No. will be parsed firstly and then the coil No. will be parsed. For a single lane, the coil No. is unique.

wStateMask

Coil status mask: 1-wLoopState is valid, 0-wLoopState is invalid.

dwDownwardFlow

Traffic flow from top to bottom on the current lane.

dwUpwardFlow

Traffic flow from bottom to top on the current lane.

byJamFlow

Congestion level: 1-light, 2-medium, 3-serious. This member is valid when byLaneState is 3.

byVehicleDirection

Vehicle driving direction: 0-unknown, 1-from top to bottom, 2-from bottom to top.

byJamFlow

Newly added traffic flow during congestion. The accumulated traffic flow will be uploaded every time there is a new vehicle added.

byChannelizationLane

Channelized lane No. Channelization refers to the change status of the number of lanes, and generally it is the number of lanes in the intersection.

byVehicleType

Vehicle type recognition: 0-unknown, 1-large-sized bus, 2-large-sized cargo truck, 3-small sedan, 4-non-motor vehicle.

byRes1

Reserved, set to 0.

wTimeHeadway

Time headway, unit: second.