Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downlink not received on Lora CLASS C #824

Open
pragnesh036 opened this issue Jul 29, 2022 · 2 comments
Open

Downlink not received on Lora CLASS C #824

pragnesh036 opened this issue Jul 29, 2022 · 2 comments

Comments

@pragnesh036
Copy link

pragnesh036 commented Jul 29, 2022

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.

@BlueDchv
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants