lorawan-server icon indicating copy to clipboard operation
lorawan-server copied to clipboard

Downlink not received on Lora CLASS C

Open pragnesh036 opened this issue 1 year ago • 2 comments

Hello sir I am using stm32L496zg with SX1262DVK1DAS.

I am using I-CUBE-LRWAN 1.3.0 as the reference code.

Handlers.md Form this downlink reference.I am useing my module in class C mode.

when is sent data on my module via class A it works.

when is sent data on my module via class C it does not work?

CLASS A JSON

{
"data":"07080001000000000000000000000000000000000000",
"port":2
}

CLASS C JSON

{
"data":"07080001000000000000000000000000000000000000",
"port":2,
"time":"immediately"
}

I also debug my getaway it works fine with class A and class C. But my node does not receive data on class C.

Are there any parameters we Rely on in class C please suggest what am I missing. please suggest me.

pragnesh036 avatar Jul 29 '22 05:07 pragnesh036

Hello, I have the same kind of problem using curl in a php script. When the json include the "time" parameter, server return a 500 error code but returns 204 "no content" for the same json without "time". However, the same request sent in a terminal windows works well. for example : curl -v --digest -u admin:admin -H "Content-Type: application/json" -X POST http://192.168.1.2:8080/downlink -d "{"deveui":"70B3D53260ABCDEF", "data":"0A0078", "port":13, "time":"immediately"}"

BlueDchv avatar Oct 25 '22 15:10 BlueDchv

I found port parameter must be an integer within the json : {"deveui":"70B3D53260ABCDEF", "data":"0A0078", "port":13, "time":"immediately"} => OK. {"deveui":"70B3D53260ABCDEF", "data":"0A0078", "port":"13", "time":"immediately"} => KO. but {"deveui":"70B3D53260ABCDEF", "data":"0A0078", "port":"13"} is working anyway.

BlueDchv avatar Oct 25 '22 15:10 BlueDchv