Configuring sensor profile on Sensor Hub Probe IO

I’m trying to add a tipping bucket rain gauge (contact closure/reed switch) to a RAK2560-Probe IO on a Sensor Hub. The sensor wires are connected to DI and DI_COM. My sensor profile is as follows:
{
“SensorName”: “TippingBucket_0.2mm”,
“TemplateVersion”: “1”,
“ProbeioVersion”: “1.2.7”,
“Interface”: “DI”,
“Content”: [
“ATC+IO_PSM={PRB_ID}:9:1:10000:0:1”,
“ATC+SNSR_CONF={PRB_ID}:8:{SNSR_INTV}:2”,
“ATC+IO_DECODE={PRB_ID}:di:1:50:1:{PROFILE_NAME}:0.2”,
“ATC+PRB_DEL={PRB_ID}”
]
}
I’m getting a payload through TTN but am unable to register counts.
image
Any suggestions?

Welcome to the forum @PeakHydroMet

The SensorHub or ProbeIO does not count events. It can only transmit the status of the digital input and detect changes. The best you can get is an uplink if the gauge input changes, but on heavy rain, that would exceed the possible number of uplinks per time. The minimum send interval for sensor payloads of the SensorHub is every 60 seconds.

For your sensor profile, I am checking with R&D, but the
“ATC+IO_DECODE={PRB_ID}:di:1:50:1:{PROFILE_NAME}:0.2”,
seems to be wrong.

The format is
devid:<di>:channel:type:trigger mode: debounce time:sensor name

  • devid will be set by {PRB_ID}
  • di:1 sets the digital input channel 1
  • 50 is the channel type, but 50 is not a supported channel type. A digital input would be 0
  • 1 sets the trigger mode to 1
  • debounce time is missing in your config
  • sensor name will be set by {PROFILE_NAME}
  • 0.2 is not part of the sensor profile for a digital input

Thanks @beegee
Looks like I’ll need to go with a different solution for counting events.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.