Communication Protocol
VS121-P will post the people counting data in json format to HTTP URL or MQTT broker.
Region People Counting - Periodic Report
- Occupancy Status
-
{ "event":"Region People Counting", "report_type": "interval", "device_info":{ "device":"Workplace Sensor", "device_sn":"369362028335", "device_mac":"00:16:28:FA:8E:68", "ip_address":"192.168.0.99" }, "time_info":{ "timezone":"UTC+8:00", "dst_status":false, "start_time":"2022/12/20 18:15:52", //Period start time "end_time":"2022/12/20 19:15:52" //Period end time }, "current_total":10, "max_counted":12,//Maximum number of people during the reporting interval "total_mapped_regions":2, "regions_name": [Region1, Region2], //Do not send this information if no region is specified "numbering_regions":[1,2], "occupancy":[1,0] "snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)" //HTTP Post only } - Region People Counting
-
{ "event":"Region People Counting", "report_type": "interval", "device_info":{ "device":"Workplace Sensor", "device_sn":"369362028335", "device_mac":"00:16:28:FA:8E:68", "ip_address":"192.168.0.99" }, "time_info":{ "timezone":"UTC+8:00", "dst_status":false, "start_time":"2022/12/20 18:15:52", //Period start time "end_time":"2022/12/20 19:15:52" //Period end time }, "current_total":10, "Max_counted":12, //Maximum number of people during the reporting interval "total_mapped_regions":2, "numbering_regions":[1,2], "current_counted":[5,5], "numbering_regions": [1, 2], //Do not send this information if no region is specified "occupancy": [1, 0] //Do not send this information if no region is specified "snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)” //HTTP Post only }
Region People Counting - Trigger Report
- Occupancy Status
-
{ "event":"Region People Counting", "device_info":{ "device":"Workplace Sensor", "device_sn":"369362028335", "device_mac":"00:16:28:FA:8E:68", "ip_address":"192.168.0.99" }, "time_info":{ "time":2022/12/20 18:15:52", "timezone":"UTC+8:00", "dst_status":false }," report_type": "trigger", "current_total":10, "total_mapped_regions":2, "numbering_regions":[1,2], "occupancy":[1,0], "snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)” //HTTP Post only }
- Region People Counting
-
{ "event":"Region People Counting", "device_info":{ "device":"Workplace Sensor", "device_sn":"369362028335", "device_mac":"00:16:28:FA:8E:68", "ip_address":"192.168.0.99" }, "time_info":{ "time":2022/12/20 18:15:52", "timezone":"UTC+8:00", "dst_status":false }, "report_type": "trigger", "current_total":10, "total_mapped_regions":2, "numbering_regions":[1,2], "current_counted":[5,5], "snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)” //HTTP Post only }
Dwell Time Detection - Periodic Report
{
"event":"Dwell Time Detection",
"report_type": "interval",
"device_info":{
"device":"Workplace Sensor",
"device_sn":"369362028335",
"device_mac":"00:16:28:FA:8E:68",
"ip_address":"192.168.0.99"
},
"time_info":{
"timezone":"UTC+8:00",
"dst_status":false,
"start_time":"2022/12/20 18:15:52", //Period start time
"end_time":"2022/12/20 19:15:52" //Period end time
},
"dwell_time_data":[
{
"region":1,
"max_dwell_time":156464, //unit: s
"avg_dwell_time": 156464 //unit: s
},
{
"region":2,
"max_dwell_time":156464, //unit: s
"avg_dwell_time": 156464 //unit: s
}
]
"snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)” //HTTP Post only
}
Dwell Time Detection - Trigger Report
{
"event":"Dwell Time Detection",
"report_type": "trigger",
"device_info":{
"device":"Workplace Sensor",
"device_sn":"369362028335",
"device_mac":"00:16:28:FA:8E:68",
"ip_address":"192.168.0.99"
},
"time_info":{
"time":2022/12/20 18:15:52",
"timezone" : "UTC+8:00",
"dst_status":false
},
},
"dwell_time_data":[
{
"region":1,
"people_id":1,
"dwell_start_time":"2022-12-20T18:15:52+03:00",
"dwell_end_time":"2022-12-20T19:15:52+03:00" ,
"duration":5646 //Unit: ms
},
{
"region":2,
"people_id":2,
"dwell_start_time":"2022-12-20T17:15:52+03:00",
"dwell_end_time":"2022-12-20T19:15:52+03:00",
"duration":5646 //Unit: ms
}
]
"snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)” //HTTP Post only
}
Line Crossing Counting - Periodic Report
{
"event":"Line Crossing Counting",
"report_type": "interval",
"device_info":{
"device":"Workplace Sensor",
"device_sn":"369362028335",
"device_mac":"00:16:28:FA:8E:68",
"ip_address":"192.168.0.99"
},
"time_info":{
"timezone":"UTC+8:00",
"dst_status":false,
"start_time":"2022/12/20 18:15:52", //Period start time
"end_time":"2022/12/20 19:15:52" //Period end time
},
"in_counted":10, //Periodic in
"out_counted":10, //Periodic out
"capacity_counted":0, //=in_counted-out_counted
"total_data":{
"in_cumulative_counted":10, //Cumulative in
"out_cumulative_counted":10, //Cumulative out
"capacity_cumulative_counted":0 //=in_cumulative_counted-out_cumulative_counted
}
"snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)” //HTTP Post only
}
Line Crossing Counting - Trigger Report
{
"event":"Line Crossing Counting",
"report_type": "trigger",
"device_info":{
"device":"Workplace Sensor",
"device_sn":"369362028335",
"device_mac":"00:16:28:FA:8E:68",
"ip_address":"192.168.0.99"
},
"time_info":{
"time":2022/12/20 18:15:52",
"timezone":"UTC+8:00",
"dst_status":false
},
"line_trigger_data":{
"in":1,
"out":0
}
"snapshot": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wDFABALDA4MChAODQ4SERATGCgaGBY...(Image code)” //HTTP Post only
}
People Flow Analysis - Periodic Report
{
"event":"People Flow Analysis",
"report_type":"interval",
"device_info":{
"device":"Workplace Sensor",
"device_sn":"369362028335",
"device_mac":"00:16:28:FA:8E:68",
"ip_address":"192.168.0.99"
},
"time_info":{
"timezone":"UTC+8:00",
"dst_status":false,
"start_time":"2022/12/20 18:15:52", //Period start time
"end_time":"2022/12/20 19:15:52" //Period end time
},
"flow_data":{
"A-A":10, //Number of people from A to A
"A-B":10, //Number of people from A to B
"A-C":10,
"A-D":10,
"B-A":10,
"B-B":10,
"B-C":10,
"B-D":10,
"C-A":10,
"C-B":10,
"C-C":10,
"C-D":10,
"D-A":10,
"D-B":10,
"D-C":10,
"D-D":10
}
}