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

    Lora not working on 1.8.0

    Scheduled Pinned Locked Moved LoPy
    lorainitialization
    8 Posts 4 Posters 2.0k 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.
    • C Offline
      Colateral
      last edited by

      Hello,

      The below example from Daniel (that previously was running fine) is not working between 2 Lopy with the same code.

      Do we need special configuration for Lora initialization ?

                  from network import LoRa
                  import socket
                  import machine
                  import time
      
                  # initialize LoRa in LORA mode
                  # more params can also be given, like frequency, tx power and spreading factor
                  lora = LoRa(mode=LoRa.LORA)
      
                  # create a raw LoRa socket
                  s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
      
                  while True:
                      # send some data
                      s.setblocking(True)
                      s.send('Hello 1')
      
                      # get any data received...
                      s.setblocking(False)
                      data = s.recv(64)
                      print(data)
      
                      time.sleep(1)
      
      1 Reply Last reply Reply Quote 0
      • M Offline
        maelstrom
        last edited by

        Try leaving this running for awhile (5-10min) and see if something comes across. Could be related to the intermittent issue I am encountering here: https://forum.pycom.io/topic/1795/lora-receiving-data-intermittently/12

        1 Reply Last reply Reply Quote 0
        • C Offline
          Colateral
          last edited by

          Nope. Still not working.
          We took 4 new LopY and 4 new expansion boards (from the last received lot), upgraded them with PyCom firmware software.

          >>> uos.uname()
          (sysname='LoPy', nodename='LoPy', release='1.8.0.b1', version='v1.8.6-760-g90b72952 on 2017-09-01', machine='LoPy with ESP32', lorawan='1.0.0')
          

          ... and with default configuration nothing received during 10min.

                      Frequency: 868000000
                      Spreading Factor: 7
                      Power: 13
                      Coding Rate: 1
                      Preamble: 8
                      Bandwidth: 0
                      MAC: b'p\xb3\xd5I\x98\xacd\x9e'
          
          H 1 Reply Last reply Reply Quote 0
          • H Offline
            husigeza
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • H Offline
              husigeza @Colateral
              last edited by

              @colateral
              For me your code works on 2 LoPys on version 1.8.0.b1.
              I copy-pasted your code to the devices, it works out of the box without any modification.

              C 1 Reply Last reply Reply Quote 0
              • C Offline
                Colateral @husigeza
                last edited by

                @husigeza Thanks. We opened 6 brand new devices .... using pair of 2, none is receiving Lora raw. Here we are using 868Mhz.

                Can be problem if we got 915 LoPy? How can we check if a device is 915Lopy or 868 LopY?

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

                  @colateral
                  There no hardware difference between 868 and 915. Just depends which country you selected when using the Pycom upgrade tool

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    Colateral @jmarcelino
                    last edited by

                    @jmarcelino Thanks. There is a way to enable some C/C++ traces to see why is not working on this 6 new LopYs?

                    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