Introduction
This document is designed to guide users in completing the connection between the VS361 device and the UR32 router, and to achieve the forwarding of data to a third-party platform or server via HTTP or MQTT protocols.
1. Preparation
● VS361 Storefront Footfall Sensor
● UR32 Industrial Cellular Router(Firmware version(Only support UR32. UR32-L/UR32-S are not supported.):https://resource.milesight-iot.com/firmware_tmp/32.3.0.11-r2-a2.bin)
● DuPont Wire 16-28AWG
● Platform/Server
2. Architecture Description
3. Hardware installation and connection
3.1 Connection method between VS361 and UR32
Please connect VS361 and UR32 shown in the picture. Pay attention to connecting the endpoints of the same color.
4. UR32 Configuration
Before configuring the data forwarding, please first complete the network configuration of the router to ensure it is properly connected to the network.
4.1 DI data access configuration
DI interface data acquisition
Choosing Periodic Statistics here when you need connect with VS361.
Parameters | Value | Description |
Mode | Periodic Statistics | Regularly report the statistics of the number of people outside the store |
Condition | Hight→Low | When someone passes by, output "low level" |
Duration(ms) | default value 100ms | Fliter the pulse signal less than configured duration value. Range: 1-10000ms |
Statistics Interval | default value 15min | Local record interval, the count data will be stored per statistical interval. |
Counts per interval | - | The accumulated number of people counted within each statistical interval |
Historical Data | export | Export historical data file. |
4.2 Data reporting and forwarding
Parameters | Value | Description |
Reporting Mode (can choose one of them) | On the dot | 5min, Reporting at 0:00, 0:05, 00:10... |
from now on | 5min, Reporting at 9:23, 9:28, 9:33... | |
Report Interval | Report interval should be a multiple of statistics interval |
HTTP Connection
As an HTTP Client, UR32 sends the collected data to the designated server in the form of HTTP requests.
MQTT Connection
Before configuring the MQTT connection in the IO interface, please complete the relevant settings in the MQTT interface first.
Then return to the IO interface, start MQTT, select the newly created MQTT connection, and enter the corresponding Topic.
Choosing the other data you want to report also and click save and Apply
5. Data verification and Debugging
After completing the hardware connection and basic configuration, the next step is to conduct data verification and debugging.
Adjust the detection distance
Adjust the knob according to the on-site situation. When a person is detected passing by, the indicator light beside the knob will turn red.
● When an object obstruction is detected: The infrared-triggered indicator activates, and the device outputs a low-level signal.
● When no object obstruction is detected: The infrared-triggered indicator remains off, and the device outputs a high-level signal.
Install the VS361 in a clean, unobstructed environment. It can be mounted vertically or placed on a flat surface for testing. By default, the VS361 is set to its maximum detection distance (9 m). After powering on, the indicator light should remain constantly on.
If you want to test a shorter detection range, rotate the knob clockwise to reduce the distance until the indicator light turns off. Once the light is off, you can begin your test.
During testing, if the indicator light does not turn on when a person passes through the detection area, adjust the knob max to increse the detection distance.
More installation details, please refer to user manual.
Report Format(JSON)
{
"base_info": {
"serial_number": "6218D0135477",
"firmware_version": "32.3.0.11-r2",
"up_time": 2848,
"time_zone": "0 United Kingdom (London)"
},
"device_info": {
"device_name": "UR32-L04AU-W-485",
"hardware_version": "V2.1",
"wan_status": "Offline",
"wan_ip": "",
"wan_mac": "",
"cellular_status": "Connected",
"cellular_type": "FDD LTE",
"cellular_band": "4G(B1)",
"cellular_ip": "10.11.123.248",
"cellular_imei": "862708045554636"
},
"DI_setting_data": {
"mode": "Periodic Statistics",
"condition": "Low->High",
"duration": 100,
"count": [
{
"timestamp": "2026-03-26 03:20:00",
"counts_per_interval": 0
}
],
"timestamp": "2026-03-26 03:20:01",
"report_interval": 5
},
"Custom Info": {
"Key1": "aaa",
"Key2": "bbb"
}
}
Appendix
https://resource.milesight.com/milesight/iot/document/vs361-user-guide-en.pdf
https://resource.milesight.com/milesight/iot/document/vs361-datasheet-en.pdf