Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Class-C sample

    Scheduled Pinned Locked Moved LoPy
    lopylora classclass-cclass c
    14 Posts 7 Posters 3.5k Views 7 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Charly86C Offline
      Charly86
      last edited by Charly86

      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

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @Charly86
        last edited by

        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?

        Charly86C 1 Reply Last reply Reply Quote 0
        • Charly86C Offline
          Charly86 @jmarcelino
          last edited by

          @jmarcelino
          Thanks, I'm using this one https://github.com/gotthardp/lorawan-server with this configuration

          0_1527172340709_e07f1c70-7c5e-437c-b0b6-ef727111e257-image.png

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jmarcelino @Charly86
            last edited by

            @charly86
            Thanks, for the Gotthard server how are you triggering the Class C downlink? Are you specifying the correct port and time?

            Charly86C 1 Reply Last reply Reply Quote 0
            • Charly86C Offline
              Charly86 @jmarcelino
              last edited by

              @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

              N 1 Reply Last reply Reply Quote 0
              • N Offline
                Neuromystix @Charly86
                last edited by Neuromystix

                @charly86 You'll need to specify also a port number for class C to work:

                {"devaddr":"03128BC8","data":"0100", "port":2, "time":"immediately"}
                

                Researcher @ UALG, Portugal

                Charly86C 1 Reply Last reply Reply Quote 0
                • Charly86C Offline
                  Charly86 @Neuromystix
                  last edited by Charly86

                  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.8
                  

                  thanks all :-)

                  1 Reply Last reply Reply Quote 0
                  • F Offline
                    Fulch36
                    last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      Francisco Oliveira
                      last edited by

                      What about class B devices? Is it necessary to make some code for Lopy (end node)?
                      Thank you.

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        Gijs
                        last edited by

                        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

                        1 Reply Last reply Reply Quote 0

                        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
                        • 1 / 1
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom