Class-C sample
-
Hi guys
have you got an example of class C device working?
I've done several tests and got only downlink when I send an uplink.Is class C is working (I got last firmware at this day)
Thanks -
Hi @charly86
It should be. What's your network server? Is it sending the downlink on RX2 correctly, do you know which frequency/sf it is using?
-
@jmarcelino
Thanks, I'm using this one https://github.com/gotthardp/lorawan-server with this configuration
-
@charly86
Thanks, for the Gotthard server how are you triggering the Class C downlink? Are you specifying the correct port and time? -
@jmarcelino I'm using websocket for that, and with json, for class A I'm sending this and got downlink just after uplink (it works also with class C)
24/05/2018 16:16:11 Downlink: {"devaddr":"03128BC8","data":"0100"}but for class C, when I send this nothing happens, even sending uplink just after to try to get downlink
24/05/2018 16:15:32 Downlink: {"devaddr":"03128BC8","data":"0100","time":"immediately"}Anyway I'll try A timed one, may be I'm not doing things correctly
-
@charly86 You'll need to specify also a port number for class C to work:
{"devaddr":"03128BC8","data":"0100", "port":2, "time":"immediately"} -
yeah I tried @jmarcelino port option while you were writing @Neuromystix , setting port and works ;-)
24/05/2018 16:59:16 Downlink: {"devaddr":"03128BC8","data":"0164","port":2, "time":"immediately"}Lopy Side
Downlink received Cmd=0x01 Value=100% Dac1=0.8thanks all :-)
-
Can any of those who have now successfully got class C downlinks working please share some example code? I've been at this all week and like many others here: I can get downlinks in class A or C in the RX window after sending but never outside of it.
I'm also interested in some comments on how best to handle downlink messages, I can see some info on defining event driven callbacks but the docs don't make it clear whether this is supposed to be used for both LoRa and LoRaWAN. Otherwise I guess you'd just stop the socket from blocking and try to receive on that socket as part of a main loop, this seems a little messy but I'd just be happy to have it working.
-
What about class B devices? Is it necessary to make some code for Lopy (end node)?
Thank you. -
Class B is currently not supported in the pycom firmware for the Lopy.
You might be able to write some addition to the firmware to build it yourself, though I suspect it will be some work
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login