Navigation

    Welcome to the Pycom forum

    Forum

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

    • F

      LoRa packet loss
      LoPy • lora packet • • finnzc  

      9
      0
      Votes
      9
      Posts
      3515
      Views

      F

      @bucknall @jcaron @jmarcelino Guys, mystery solved. It seems like I have already damaged the sender Pycom by sending packets before attaching the antenna to it (improper use...). Now I used another Pycom acting as the sender and there is <1% packet loss. Lesson learned the hard way. Always read all documentation before playing around with the board :/
    • B

      LoPy firmware LoRa region selection
      Firmware • lopy lora esp32 • • bnjroos  

      4
      0
      Votes
      4
      Posts
      2029
      Views

      T

      See the following post on how to manually flash the firmware: https://forum.pycom.io/topic/517/downgrading-firmware-advanced-users
    • C

      LoPy 1 master 6 slaves
      LoPy • lopy lora • • Cristi  

      2
      0
      Votes
      2
      Posts
      666
      Views

      bucknall

      @Cristi You can definitely do this, however you will need to write a simple protocol to talk to the different devices and associate an ID to each of them. Here's a link to some documentation that will help you get started - https://docs.pycom.io/pycom_esp32/pycom_esp32/tutorial/includes/lora-nano-gateway.html Let me know if you need any more support! Thanks, Alex
    • A

      Downlink message port.
      LoPy • lora downlink port • • autodomain  

      4
      0
      Votes
      4
      Posts
      1278
      Views

      D

      For the record, there is now a socket.recvfrom(bufsize) method that will return a (data, port) tuple.
    • tobru

      Converting sensor data to byte
      MicroPython • lopy lora ttn micorpython • • tobru  

      4
      0
      Votes
      4
      Posts
      2249
      Views

      tobru

      Thanks for the suggestions! Still looking to get some examples how to serialize sensor data with MicroPython for TTN. All examples I found are for Arduino. Maybe @bucknall has some nice examples around?
    • A

      LoPy nano-Gateway with some nodes
      LoPy • lopy lora nano gateway • • amartinez  

      3
      0
      Votes
      3
      Posts
      1250
      Views

      A

      @bucknall While one LoPy is sending and getting ACK, if I turn ON another LoPy it stops the communication (there is a collision), so, what can I do to avoid that collisions?
    • B

      OTAA does not join for US config. using last firmware
      LoPy • lora otaa ttn gateway join usa • • blackansible  

      4
      0
      Votes
      4
      Posts
      1321
      Views

      jmarcelino

      @blackansible Try this modification in your nanogateway.py code: https://forum.pycom.io/post/8290
    • Jurassic Pork

      possibility to use Lora objenious network in France with Lopy ?
      LoPy • lopy lora objenious france • • Jurassic Pork  

      15
      0
      Votes
      15
      Posts
      4243
      Views

      E

      @stef , sensor type Pycon should be avail:
    • T

      Print(recv_ack) and Print(recv_pkg)
      Comments & Feedback • lopy lora gateway • • timeb  

      9
      0
      Votes
      9
      Posts
      2667
      Views

      T

      @PiAir Thanks.
    • E

      LoPy to LoPy tutorial (via LoRa)
      Getting Started • lopy lora lopy lora mode nodes • • epifanio  

      5
      0
      Votes
      5
      Posts
      3138
      Views

      E

      @bucknall Thank you so much for your help! I'm ashamed but It was all my fault. The LoRa antenna on one of the devices was not correctly wired, I'm using an extension cable ... I modified the script so to have pong sending back some info: Node A: from network import LoRa import socket import time lora = LoRa(mode=LoRa.LORA, frequency=915000000) s = socket.socket(socket.AF_LORA, socket.SOCK_RAW) s.setblocking(False) while True: rec = [s.recv(64).decode()] if "Ping" in rec[0].split(" "): print(rec[0]) s.send('Pong %s' % rec[0].split(" ")[-1]) time.sleep(5) Node B from network import LoRa import socket import time lora = LoRa(mode=LoRa.LORA, frequency=915000000) s = socket.socket(socket.AF_LORA, socket.SOCK_RAW) s.setblocking(False) x=0 while True: s.send('Ping %s' % x) time.sleep(5) x=x+1 print(s.recv(64).decode()) I can send the code via wifi on the LoPy with no needs of microsd card on the device. If the wifi connection drop or I close it, the LoRa communication keeps goig :) when I reconnect with wifi in the atom shell I can actually see the ping number growing. More post coming soon, but I'll make sure to check the wiring first ... I'm really excited! Thanks!
    • T

      Acknowledgment giving wrong value
      LoPy • lopy lora • • timeb  

      6
      0
      Votes
      6
      Posts
      1487
      Views

      T

      while (True): recv_pkg = lora_sock.recv(512) time.sleep(0.2) if(len(recv_pkg) > 13): print(recv_pkg) recv_pkg_len = recv_pkg[12] # unpack the message based on protocol definition dest_addr, src_addr, pkg_len, msg = struct.unpack(_LORA_PKG_FORMAT % recv_pkg_len, recv_pkg) if(dest_addr==SRC_ADDR): ack_pkg = struct.pack(_LORA_ACK_FORMAT, src_addr, SRC_ADDR, 1, 200) lora_sock.send(ack_pkg) else: print("Message lost")
    • G

      ValueError after upgrading firmaware on the LoPy
      Firmware • lopy lora • • GerryS  

      6
      0
      Votes
      6
      Posts
      1573
      Views

      bucknall

      @GerryS I've raised the priority for the engineering team and they're on the case to fix it. Thanks!
    • W

      Connect ePaper Display to TTN
      LoPy • lopy lora ttn eink epaper • • waskerly  

      7
      0
      Votes
      7
      Posts
      2384
      Views

      rcolistete

      There are MicroPython drivers for epaper displays. E. g. : ayoy/micropython-waveshare-epd, supports 1.54" Waveshare two-color E-Paper Display only : https://github.com/ayoy/micropython-waveshare-epd mcauser/micropython-waveshare-epaper, for many display sizes : https://github.com/mcauser/micropython-waveshare-epaper https://forum.micropython.org/viewtopic.php?f=14&t=3393
    • T

      Buffer size **SOLVED**
      LoPy • lopy lora solved • • timeb  

      4
      0
      Votes
      4
      Posts
      2237
      Views

      livius

      @jeromemaquoi really better if you show some sample what do. As you can read here detail was provided by chat but better is write on the forum and ask question with sample and exact error message.
    • B

      Pycom Hackathon in Eindhoven Saturday 17th June
      Announcements & News • lora micropython sigfox lpwan hackathon • • Bettina  

      1
      0
      Votes
      1
      Posts
      906
      Views

      No one has replied

    • nka

      LoRa Node with Gateway using LoPy
      LoPy • lopy lora gateway network • • nka  

      4
      0
      Votes
      4
      Posts
      1953
      Views

      nka

      @livius Node should talk about each hour (or maybe less, but I don't think I'll go lower than 10 minutes) do to a keep alive and update informations or "right away" if there's a trigger trigged (alarm). I'm pretty sure the hardware can do it, I was less sure about the MicroPython (I saw there was some limitation if we compare to the Python3). I'll order some for testing I guess ! :)
    • E

      What is enabled on power-up?
      Discussion • lora wifi ble power saving • • Eric24  

      2
      1
      Votes
      2
      Posts
      1075
      Views

      bucknall

      Hi @Eric24, I might be incorrect on this but I believe that when you wake from deep sleep, the device should start up with the radios turned off. Regardless, you should be able to configure the radios to remain off at power on by tweaking and building the firmware yourself. I'll make this suggestion to have an option to disable radios baked into our official Firmware itself.
    • P

      LoRa recv max payload length
      Issues & Bugs • lora maxpayloadlen • • pedro.costa  

      4
      0
      Votes
      4
      Posts
      1949
      Views

      P

      @jmarcelino Thank you.
    • A

      **SOLVED** Method not working if moved
      Firmware • lopy lora bug • • Andrea Filippini  

      6
      0
      Votes
      6
      Posts
      1450
      Views

      D

      @Andrea-Filippini You are welcome :-)
    • R

      How to increase bytes when sending data in lopy using LoRa (raw) ?
      LoPy • lopy lora data rate • • ram2987  

      5
      0
      Votes
      5
      Posts
      2314
      Views

      P

      @bucknall I was wondering the same. I found that the necessary changes are on this line: { MODEM_LORA, REG_LR_PAYLOADMAXLENGTH, 0x40 },\ As 0x40 is 64 and is this that is limiting the payload size.
    • 1
    • 2
    • 7
    • 8
    • 9
    • 10
    • 11
    • 10 / 11