rsmp-nordic / rsmp_sxl_traffic_lights

RSMP Signal Exchange List (SXL) for Traffic Controllers
MIT License
12 stars 4 forks source link

start time of aggregated traffic data #154

Open emiltin opened 2 years ago

emiltin commented 2 years ago

The status messages used for sending traffic data includes an attributes called startTime (S0201-S0204) or start (S0205-S0208).

Does this mean that you can request data from an arbitrary start time, eg. the last week, or last month of data?

Are you allowed to subscribe to that attribute, and what meaning would it then have?

otterdahl commented 9 months ago

Does this mean that you can request data from an arbitrary start time, eg. the last week, or last month of data?

No, you can't. "startime" is included in an StatusUpdate, and not part of the command.

Are you allowed to subscribe to that attribute, and what meaning would it then have?

Yes. It defines the start of traffic counting measurement. Combining this timestamp with the timestamp included in the StatusUpdate itself, you can calculate the total duration of the counting.

For instance, if you request start of traffic counting at 12:03 using a 5 minute interval, the counting begins at 12:05 (according to the traffic data section) and you receive your first StatusUpdate at 12:10, where: