Navigation

    Welcome to the Pycom forum

    Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. lorawan
    Log in to post

    • D

      Pygo1 gps and lorawan libraries
      PyGo • lorawan gps • • Daniel Almeida  

      9
      0
      Votes
      9
      Posts
      134
      Views

      robert-hh

      @hjoe I stopped. There is no reason to carry on until Pycom issues a major rework of the firmware and the PyLife app.
    • S

      LoRa Rx window timing debugging
      FiPy • fipy lora lorawan otaa • • Serafi Nebot 0  

      1
      0
      Votes
      1
      Posts
      16
      Views

      No one has replied

    • C

      BLE Mesh + LoRa in LoPy4
      LoPy • lorawan ttn gateway lopy ble mesh ble bluetooth • • Camilo Piñón  

      1
      0
      Votes
      1
      Posts
      13
      Views

      No one has replied

    • C

      oserror: enoent, Try to use LORAWAN with OTAA method to send data to TTN server.
      FiPy • fipy lora lorawan oserror oserror enonet • • Chandan Verma  

      2
      0
      Votes
      2
      Posts
      17
      Views

      J

      @Chandan-Verma can you clarify which example you are using, which region you are in, and where exactly the error happens (the full log/trace would be useful)?
    • E

      lora.nvram_restore() OSError: [Errno 122] EMSGSIZE
      FiPy • fipy pytrack lorawan nvramsave nvramrestore • • Etienne DAL PRA  

      14
      0
      Votes
      14
      Posts
      89
      Views

      J

      @robert-hh Thank you
    • D

      Don't erase lora context on nvram_restore()
      Discussion • lorawan nvram restore nvramsave nvramrestore • • d.alvrzx  

      2
      4
      Votes
      2
      Posts
      82
      Views

      robert-hh

      @d-alvrzx I strongly support this request. I see, that restoring some of the data may cause trouble, if restore is executed multiple time w/o a save in between. Like the packet counters. But that is less cumbersome than loosing all data. See also my notes here to retrieve individual elements: https://forum.pycom.io/topic/5922/an-alternative-to-nvram_save-restore-using-the-sd-card/6?
    • D

      Set MAX TX power in LoRaWAN mode
      LoPy • lora lorawan adr lorawan abp txpower • • d.alvrzx  

      6
      0
      Votes
      6
      Posts
      173
      Views

      D

      @Eric73 Oh wow, that makes sense... So it actually is transmitting at max power, as expected. That's good to know. Thanks so much for your insight! @catalin @Xykon would you be able to confirm this? If so I think it's important to change the documentation in https://docs.pycom.io/firmwareapi/pycom/network/lora/. Thanks!
    • W

      Bad OTAA login or no network?
      LoPy • lopy lorawan ttn otaa • • Widget  

      2
      0
      Votes
      2
      Posts
      30
      Views

      J

      @Widget Contrary to cellular networks, LoRaWAN networks usually don’t transmit much, if at all. Other than the odd join accept, confirmed frame ack, or downlink, all of which should be very rare, they don’t transmit anything, and definitely no beacons, advertisements or broadcasts. So it’s not possible to check if there’s a network around, just by listening, unless you plan to wait a very long time or get very lucky. But have you checked TTN’s coverage map? Also remember that radio waves don’t like obstacles. Find the closest active gateway(s) and check the path between them and you, taking into account terrain/elevation, buildings, vegetation, etc. There are tools that allow you to simulate all that. TTN being an open initiative, coverage varies widely. Some areas have lots of outdoor gateways in very good (high) locations, others may be the proverbial desert...
    • B

      TX_FAILED_EVENT not triggered
      LoPy • lopy4 lorawan • • berryskies  

      2
      0
      Votes
      2
      Posts
      110
      Views

      B

      @berryskies My bad! Stupid error (as usual?). I misread the socket.SO_CONFIRMED option. I thought this was a constant boolean and didn't set the trailing 0 to 1 (slap to forehead). All working as expected.
    • W

      Lopy to Lopy internally in our own house. (limitation)
      LoPy • lopy lora lorawan loramac • • Wolli01  

      7
      0
      Votes
      7
      Posts
      206
      Views

      W

      @Eric73 Thanks for the info
    • S

      Testing nanogateway with lorawan devices
      LoPy • lopy4 lorawan lorawan otaa nanogateway • • serafimsaudade  

      3
      0
      Votes
      3
      Posts
      261
      Views

      S

      @mfalkvidd Hi, tks for the reply. Ok, that explains the problems that I have.
    • C

      Adding information to _make_node_packet(...)
      Support & Troubleshooting • lorawan battery ttn gateway lorawan nano gw ttn lopy • • crispycrafter  

      1
      0
      Votes
      1
      Posts
      185
      Views

      No one has replied

    • papasmurph

      Set LoRaWAN Frame Port
      LoPy • lopy lora lorawan • • papasmurph  

      2
      0
      Votes
      2
      Posts
      225
      Views

      jmarcelino

      @papasmurph Use the socket.bind( x ) where x is your desired port before doing the send
    • T

      Sending MAC layer commands
      LoPy • lorawan • • thinginnovations  

      3
      0
      Votes
      3
      Posts
      249
      Views

      T

      Hi, I know this is not a gateway. I have been using other devices where I am able to send MAC layer commands. Your response fails to answer any of this. Andrew
    • B

      LoRaWAN certification - for release 1.18.2 or 1.20.0?
      Discussion • lorawan loramac lorawan firware • • bed  

      1
      1
      Votes
      1
      Posts
      211
      Views

      No one has replied

    • philwilkinson

      method to return if lora.nvram is available
      LoPy • lopy lorawan nvramrestore • • philwilkinson  

      4
      0
      Votes
      4
      Posts
      307
      Views

      philwilkinson

      OK @Asb comment got me thinking that everyone seems to be fine with the lora.has_joined() method call. So I put a slight delay following the nvram_restore call, and it seems to work ok. 2 seconds seems to be optimal. This code seems to work most of the time. lora = LoRa(mode=LoRa.LORAWAN) lora.nvram_restore(): time.sleep(2) if not lora.has_joined(): print('failed to join via nvram_restore') lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.AU915, adr=False, tx_retries=0, device_class=LoRa.CLASS_A) for i in range(16, 65): #AU915 TTN gateways need channels removed lora.remove_channel(i) for i in range(66, 72): lora.remove_channel(i) appeui = binascii.unhexlify(app_eui) appkey = binascii.unhexlify(app_key) lora.join(activation=LoRa.OTAA, auth=(appeui, appkey), timeout=0) while not lora.has_joined(): print('trying to join OTAA') time.sleep(0.5) print('connected and ready to publish') s = socket.socket(socket.AF_LORA, socket.SOCK_RAW) s.setsockopt(socket.SOL_LORA, socket.SO_DR, 5) s.setblocking(True) s.send("some data") s.setblocking(False) rev_data = s.recv(64) print('recieved data: ', rev_data) lora.nvram_save() time.sleep(2)
    • R

      Devices lost LoRa activation
      LoPy • lopy4 lorawan • • River  

      6
      0
      Votes
      6
      Posts
      476
      Views

      J

      @River are you sure you’re not missing something in your code? When you wake up, you should restore LoRa settings, then check if the node thinks it has joined, and it not, try to join. If some any reason you don’t get to the LoRa save, the next restore will result in the device having lost the join state, and being unable to send anything...
    • W

      LoRaWAN low level debug messages
      LoPy • lopy4 lorawan debug • • woodpecker  

      10
      1
      Votes
      10
      Posts
      680
      Views

      J

      @mk IIRC a reset will have the same effect as deep sleep, resetting LoRaWAN counters and other state. Unless you join every time you reset, you need to save and restore state.
    • L

      multiple interrupt calls when sending with LoRa
      LoPy • lora lorawan interrupt debounc • • loth4in  

      2
      0
      Votes
      2
      Posts
      340
      Views

      L

      Nevermind, I solved it. I'm new to real time programming and apparently had to find out the hard way not to put code that's too time consuming into an ISR. I changed it so that the ISR just changes a flag and that the actual work is being done in the main loop.
    • W

      At high voltages the Lopy does not transmit any more?
      LoPy • lopy wipy lorawan bluetooth battery • • Wolli01  

      6
      0
      Votes
      6
      Posts
      453
      Views

      robert-hh

      @Wolli01 Both SX1272 and SX1276 oprate at a range of 1.8 to 3.7 V, the esp32 at a range of 2.6 to 2.6 V. So 3.33V should not be a problem. The voltage should however be taken at the 3.3 V output of the LoPy, to be sure, that the supply arrives. But there may be short supply drops during send bursts. If you have an oscilloscope available, try to trigger for voltage drop sat the 3.3V output. The current demand for WiFI is higher than that for Lora, 250mA worst case for the ESP32 vs. 120mA worst case for the SX127x, but I doubt that these high power output modes for Lora are supported. So yes, worst case can be in the range of 500mA. Given your power consumption, battery impedance, especially at low voltage, may more be an issue than total capacity.
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 1 / 7