Issues with Laird Sentrius RS1xx sensor integtation

Hi,

I am trying to integrate a Laird Sentrius RS1xx sensor with the loraserver.

Sensor settings:
Packet format: Cayenne
Packet type: Confirmed
DevUI, AppEUI and Appkey are set to meaningful values

I have created the gateway, device as per the instructions from your documentation using the gateway and device ids. The application key for the device is also configured properly.

The join request always fails with errors as shown below when I use the loraserver 3.x.

mqtt-translator_1  | time="2019-06-23T17:14:22Z" level=info msg="mqtt2to3: message forwarded" topic_from=gateway/c0ee40ffff294778/rx topic_to=gateway/c0ee40ffff294778/event/up
loraserver_1       | time="2019-06-23T17:14:22Z" level=info msg="gateway/mqtt: uplink frame received"
loraserver_1       | time="2019-06-23T17:14:22Z" level=error msg="gateway/mqtt: unmarshal uplink frame error" data_base64="eyJyeEluZm8iOnsibWFjIjoiYzBlZTQwZmZmZjI5NDc3OCIsInRpbWUiOiIwMDAxLTAxLTAxVDAwOjAwOjAwWiIsInRpbWVzdGFtcCI6NTIxMDIxMzg3LCJmcmVxdWVuY3kiOjg2ODMwMDAwMCwiY2hhbm5lbCI6MSwicmZDaGFpbiI6MSwiY3JjU3RhdHVzIjoxLCJjb2RlUmF0ZSI6IjQvNSIsInJzc2kiOi00MSwibG9SYVNOUiI6OSwic2l6ZSI6MjMsImRhdGFSYXRlIjp7Im1vZHVsYXRpb24iOiJMT1JBIiwic3ByZWFkRmFjdG9yIjo3LCJiYW5kd2lkdGgiOjEyNX19LCJwaHlQYXlsb2FkIjoiQUduakFkQisxYk53NEFJQUFBcktKUURRenBiRmphUT0ifQ==" error="proto: can't skip unknown wire type 7"
mqtt-translator_1  | time="2019-06-23T17:14:26Z" level=info msg="mqtt2to3: message forwarded" topic_from=gateway/c0ee40ffff294778/stats topic_to=gateway/c0ee40ffff294778/event/stats
loraserver_1       | time="2019-06-23T17:14:26Z" level=error msg="gateway/mqtt: unmarshal gateway stats error" data_base64="eyJtYWMiOiJjMGVlNDBmZmZmMjk0Nzc4IiwidGltZSI6IjIwMTktMDYtMjNUMTc6MTQ6MjZaIiwicnhQYWNrZXRzUmVjZWl2ZWQiOjIsInJ4UGFja2V0c1JlY2VpdmVkT0siOjIsInR4UGFja2V0c1JlY2VpdmVkIjowLCJ0eFBhY2tldHNFbWl0dGVkIjowLCJjdXN0b21EYXRhIjpudWxsfQ==" error="unexpected EOF"
mqtt-translator_1  | time="2019-06-23T17:14:30Z" level=info msg="mqtt2to3: message forwarded" topic_from=gateway/c0ee40ffff294778/rx topic_to=gateway/c0ee40ffff294778/event/up
loraserver_1       | time="2019-06-23T17:14:30Z" level=info msg="gateway/mqtt: uplink frame received"
loraserver_1       | time="2019-06-23T17:14:30Z" level=error msg="gateway/mqtt: unmarshal uplink frame error" data_base64=eyJyeEluZm8iOnsibWFjIjoiYzBlZTQwZmZmZjI5NDc3OCIsInRpbWUiOiIwMDAxLTAxLTAxVDAwOjAwOjAwWiIsInRpbWVzdGFtcCI6NTI4MDcyODgzLCJmcmVxdWVuY3kiOjg2ODUwMDAwMCwiY2hhbm5lbCI6MiwicmZDaGFpbiI6MSwiY3JjU3RhdHVzIjoxLCJjb2RlUmF0ZSI6IjQvNSIsInJzc2kiOi0zOSwibG9SYVNOUiI6Ny4yLCJzaXplIjoyMywiZGF0YVJhdGUiOnsibW9kdWxhdGlvbiI6IkxPUkEiLCJzcHJlYWRGYWN0b3IiOjcsImJhbmR3aWR0aCI6MTI1fX0sInBoeVBheWxvYWQiOiJBR25qQWRCKzFiTnc0QUlBQUFyS0pRQUZoTGtnand3PSJ9 error="proto: can't skip unknown wire type 7"

The join request fails with below error when I use the loraserver v2.x.

loraserver_1       | time="2019-06-23T17:24:51Z" level=info msg="gateway/mqtt: uplink frame received"
loraserver_1       | time="2019-06-23T17:24:51Z" level=info msg="packet(s) collected" dev_eui=0025ca0a000002e0 gw_count=1 gw_ids=c0ee40ffff294778 mtype=JoinRequest
loraserver_1       | time="2019-06-23T17:24:51Z" level=error msg="processing uplink frame error" data_base64="AGnjAdB+1bNw4AIAAArKJQB6lIpKTTo=" error="join-request to join-server error: unmarshal response error: invalid character '<' looking for beginning of value"

The same configuration in the device without any changes works with the TTN. I tried to debug using different configurations in both the loraserver and the device side but it did not help. I have seen a few posts from the people using the Laird Sentrius RS1xx sensor here. Can you share the firmware version of the device and gateway you have used to connect to loraserver?

Hi, can anyone help me to debug this issue further?

Hi, I don’t know if you have already solved it, but we are using rs186 and they work without problems with loraserver 2/3.
We setup them up as lorawan mac version 1.0.0 and regional parameter revision B

Hope it helps