TraCI/Traffic Lights Value Retrieval

Command 0xa2: Get Traffic Lights Variable
Asks for the value of a certain variable of the named traffic light. The value returned is the state of the asked variable/value within the last simulation step. The following variable values can be retrieved, the type of the return value is also shown in the table.

Response 0xb2: Traffic Lights Variable
The respond to a "Command Get Traffic Lights Variable".

Structure of compound object traffic light program (both 0x25 and 0x2b)
If you request a complete traffic light program, the compound object is structured as following. Attention, each part is fowarded by a byte which represents its data type, except "length".

where logic is decribed by:

Type and SubParameter aren't currently implemented therefore they are 0.

where phase is described by:

Duration 1 and 2 are currently not implemented. The pahse definition differs for 0x25 and 0x2b. The first (0x25) contains the old, deprecated definition which uses three strings that describe the tl's state, the first green y/n, the second for brake y/n, the third for yellow y/n. The second (0x2b) contains a single string representing the lights. Note, that the first (0x25) is also reversed.

Structure of compound object controlled links
If you request the list of links, the compound object is structured as following. Attention, each part is fowarded by a byte which represents its data type, except "length".

 Controlled links: 

Each link is described by a string list with three entries: the lane which is incoming into the junction, the lane which is outgoing from the junction, and the lane across the junction (junction-internal). Empty strings indicate missing lanes.