Send proprietary payload error: rpc error: code = Unknown desc = lorawan/band: invalid data-rate


#1

Greetings, I m pretty much stuck here can anyone help?

journalctl -u lora-app-server -f -n 50

Sep 14 06:28:18 Beaglebone lora-app-server[2851]: time=“2018-09-14T06:28:18Z” level=info msg=“gateway ping created” dr=10 frequency=868100000 gateway_mac=e8eb11fffe254cf9 id=186657
Sep 14 06:28:18 Beaglebone lora-app-server[2851]: time=“2018-09-14T06:28:18Z” level=error msg=“finished client unary call” error=“rpc error: code = Unknown desc = lorawan/band: invalid data-rate” grpc.code=Unknown grpc.method=SendProprietaryPayload grpc.service=ns.NetworkServerService grpc.time_ms=9.534 span.kind=client system=grpc
Sep 14 06:28:18 Beaglebone lora-app-server[2851]: time=“2018-09-14T06:28:18Z” level=error msg=“send gateway ping error: send ping error: send proprietary payload error: rpc error: code = Unknown desc = lorawan/band: invalid data-rate”

journalctl -u loraserver -f -n 50

Sep 14 06:29:08 Beaglebone loraserver[2366]: time=“2018-09-14T06:29:08Z” level=error msg=“finished unary call with code Unknown” error=“rpc error: code = Unknown desc = lorawan/band: invalid data-rate” grpc.code=Unknown grpc.method=SendProprietaryPayload grpc.service=ns.NetworkServerService grpc.start_time=“2018-09-14T06:29:08Z” grpc.time_ms=0.229 peer.address=“192.168.7.2:57780” span.kind=server system=grpc


#2

I think the error is pretty clear. From the frequency I take that you’re using the EU868 band. You have configured dr=10 which is not valid for the EU868 band. Please refer to the LoRaWAN Regional Parameters specification for valid options.


#3

Thanks for the reply @brocaar
I did go through the regional paaramaeters setting and fixed it now Im left with this:

journalctl -u lora-gateway-bridge -f -n 50

Sep 14 14:56:48 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:48Z” level=debug msg=“gateway: received udp packet from gateway” addr=“127.0.0.1:36372” protocol_version=2 type=PullData
Sep 14 14:56:48 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:48Z” level=debug msg=“gateway: sending udp packet to gateway” addr=“127.0.0.1:36372” protocol_version=2 type=PullACK
Sep 14 14:56:51 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:51Z” level=debug msg=“gateway: received udp packet from gateway” addr=“127.0.0.1:60253” protocol_version=2 type=PushData
Sep 14 14:56:51 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:51Z” level=info msg=“gateway: stat packet received” addr=“127.0.0.1:60253” mac=XXXXXXXXXXXXXX
Sep 14 14:56:51 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:51Z” level=info msg=“backend: publishing packet” qos=0 topic=gateway/XXXXXXXXXXXXXX/stats
Sep 14 14:56:51 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:51Z” level=debug msg=“gateway: sending udp packet to gateway” addr=“127.0.0.1:60253” protocol_version=2 type=PushACK
Sep 14 14:56:51 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:51Z” level=info msg=“backend: config packet received” topic=gateway/XXXXXXXXXXXXXX/config
Sep 14 14:56:51 Beaglebone lora-gateway-bridge[2388]: time=“2018-09-14T14:56:51Z” level=warning msg=“gateway: configuration was not applied, gateway is not configured for managed configuration” mac=XXXXXXXXXXXXXX

journalctl -u lora-app-server -f -n 50

Sep 14 14:59:44 Beaglebone lora-app-server[2702]: time=“2018-09-14T14:59:44Z” level=debug msg=“sql query executed” args="[]" duration=5.876875ms query="\n\t\tselect\n\t\t\tg.\n\t\tfrom gateway g\n\t\tinner join network_server ns\n\t\t\ton ns.id = g.network_server_id\n\t\twhere\n\t\t\tns.gateway_discovery_enabled = true\n\t\t\tand g.ping = true\n\t\t\tand (g.last_ping_sent_at is null or g.last_ping_sent_at <= (now() - (interval ‘24 hours’ / ns.gateway_discovery_interval)))\n\t\torder by last_ping_sent_at\n\t\tlimit 1\n\t\tfor update"
Sep 14 14:59:45 Beaglebone lora-app-server[2702]: time=“2018-09-14T14:59:45Z” level=debug msg=“sql query executed” args="[]" duration=6.518584ms query="\n\t\tselect\n\t\t\tg.
\n\t\tfrom gateway g\n\t\tinner join network_server ns\n\t\t\ton ns.id = g.network_server_id\n\t\twhere\n\t\t\tns.gateway_discovery_enabled = true\n\t\t\tand g.ping = true\n\t\t\tand (g.last_ping_sent_at is null or g.last_ping_sent_at <= (now() - (interval ‘24 hours’ / ns.gateway_discovery_interval)))\n\t\torder by last_ping_sent_at\n\t\tlimit 1\n\t\tfor update"

journalctl -u loraserver -f -n 50

Sep 14 15:00:21 Beaglebone loraserver[2399]: time=“2018-09-14T15:00:21Z” level=info msg=“backend/gateway: gateway stats packet received” mac=XXXXXXXXXXXXXX
Sep 14 15:00:21 Beaglebone loraserver[2399]: time=“2018-09-14T15:00:21Z” level=info msg=“gateway updated” mac=XXXXXXXXXXXXXX
Sep 14 15:00:21 Beaglebone loraserver[2399]: time=“2018-09-14T15:00:21Z” level=info msg=“backend/gateway: publishing config packet” qos=0 topic=gateway/XXXXXXXXXXXXXX/config
Sep 14 15:00:51 Beaglebone loraserver[2399]: time=“2018-09-14T15:00:51Z” level=info msg=“backend/gateway: gateway stats packet received” mac=XXXXXXXXXXXXXX
Sep 14 15:00:51 Beaglebone loraserver[2399]: time=“2018-09-14T15:00:51Z” level=info msg=“gateway updated” mac=XXXXXXXXXXXXXX
Sep 14 15:00:51 Beaglebone loraserver[2399]: time=“2018-09-14T15:00:51Z” level=info msg=“backend/gateway: publishing config packet” qos=0 topic=gateway/XXXXXXXXXXXXXX/config

In addition to this the received data paylod shows

uaniTXajI7/7XQNipiAh2g==

what I expect is:

000000000000007F0000000000000000

plus I cant receive any data at live device data.

Where should I start from to fix this ?


#4

Please keep the discussion to the original issue to keep the forum organized. However, your question has been asked before, so probably with a search on the forum you’ll find the solution / hint for your issue :slight_smile: