• 0 Votes
    8 Posts
    2k Views
    J
    @justin-binda the low side is the signal pin on the 3.3V side (the ESP32 / Pycom module), the high side is signal pin on the 5V side (the sensor). I think that sensor actually has two signal pins, one for trigger (MCU -> sensor) and the other for echo (sensor -> MCU) so you would need two level shifters.
  • Fipy with OTAA node - Nano Gateway - TTN (not join)

    FiPy fipy lora otaa
    19
    3
    0 Votes
    19 Posts
    4k Views
    robert-hhR
    @apiwize after the join worked, the TTN server will send a list of frequencies to use. The node will uses these in a random matter. Unfortunately the nanogateway can listen only to one of these three frequencies, meaning that you will miss 2 of 3 messages. That is not related to timing. The best option then is to switch to abp mode, copying over from the TTN console the values for device address, network session key and app session key. See the discussion at this thread about 10 days ago. https://forum.pycom.io/topic/2728/lopy-and-nanogateway-example-inaccurate-timing-prevent-otaa-join
  • Lora: Documentation vs. Example code regards OTAA

    LoPy lora otaa
    23
    0 Votes
    23 Posts
    7k Views
    A
    Hello! I am having issue with activating using method otaa lopy with ttn gateway fot US915. whats correct code i should use I searched a lot of topics over weekend and could not find correct code. Thank you Same time using ttn node US915 with ttn gateway activation worked as shown.
  • Problem joining TTN in Australia with OTAA using a LoPy 4

    LoPy lopy4 ttn join otaa
    15
    0 Votes
    15 Posts
    4k Views
    philwilkinsonP
    @jmarcelino thanks for the clear explanation. It would be really useful if you could put this small section of code on the Getting Started section of Pycom's LoPy documentation for those who are connecting to TTN; the most popular LoRa network in Australia/New Zealand region. I will try and post something in The Things Network Australia Community page too. If you would prefer, I can raise it through GitHub, but I suspect your ability to change the Pycom documentation is much quicker! thanks again for your help Jose. Also, I really enjoyed your talk on The Things Network conference
  • LoraWan OTAA example without antenna

    LoPy lora ttn otaa
    12
    0 Votes
    12 Posts
    2k Views
    H
    @jmarcelino yup, thanks a lot.. i tried it outside and succeeded in getting the payloads as well..
  • Lopy4 no OTAA join

    Getting Started lopy4 otaa ttn
    4
    0 Votes
    4 Posts
    1k Views
    J
    @chuck If you're looking for a command line way you can follow the downgrade instructions: https://forum.pycom.io/topic/517/downgrading-firmware-advanced-users but using the latest version of the firmware: https://software.pycom.io/downloads/LoPy4_868-1.15.0.b1.tar.gz
  • Connect FiPy with Lora OTAA to TTN?

    FiPy lora ttn fipy otaa
    13
    0 Votes
    13 Posts
    4k Views
    robert-hhR
    @smnc As prerequisite for a ABP join you have to register an applications and in the application your device at the TTN server. See https://docs.pycom.io/gettingstarted/registration/lora/ttn.html If during device registration you select ABP, the device address and communication keys are generate by the server. This data, device address, network session key and application software key, have to be used in your script. You just copy the from you web site and put them into your script. This data will not change, unless you ask at the server to do so. TTN has a message playback protection. That might be a problem during testing. You can disable that in the device setting at the TTN server. To be able to exchange data with the TTN server, you need a node (you Fipy) and a gateway. If there is a gateway close enough you can use that one. Gateways typically accept messages from any node. LoRa uses vertical polarity, so put your antenna upright. Not doing will not harm your device, but lower the chance of successful communication.
  • 1 Votes
    2 Posts
    926 Views
    R
    A little update, when I power up node and nano gateway the same time everything works fine too. So the issue is when I first power up the gateway and a few seconds later the node.
  • I need working code for LoRaWAN

    LoPy lorawan otaa lopy
    14
    0 Votes
    14 Posts
    4k Views
    M
    @rachelsimida I gave up. I have my LoPy for 1 year and I cannot find a single working code that reads a sensor (dht22 for example) and sends it to the things network.
  • Lora network with two lopy and OTAA

    LoPy lora lorawan otaa
    1
    0 Votes
    1 Posts
    731 Views
    No one has replied
  • LoPy LoraWAN OTAA Deepsleep Example

    LoPy lorawan otaa deepsleep
    11
    0 Votes
    11 Posts
    5k Views
    papasmurphP
    @roadfox Late response, but this doesn't look like a correct approach, as the join (and send) might have failed. Next time it will detect that it comes out of deepsleep and assume that it has joined, which it hasn't, so "if boot" must be replaced by something like "if successfully joined and not boot".
  • Persist OTAA Keys / ABP Counter

    Locked LoPy otaa lorawan lopy abp counter
    3
    0 Votes
    3 Posts
    1k Views
    D
    Oh, I missed those. Thanks.
  • OTAA over nanagateway to brocaar loraserver

    LoPy otaa nanogateway loraserver
    4
    0 Votes
    4 Posts
    1k Views
    D
    I'm trying to use nano-gateway with loraserver.io but I can not downstream messages just upstream. Can you share if you had the same problem?
  • 0 Votes
    4 Posts
    1k Views
    J
    @blackansible Try this modification in your nanogateway.py code: https://forum.pycom.io/post/8290
  • TTN OTAA join acknowledgement not being received ?

    LoPy ttn lorawan otaa
    13
    0 Votes
    13 Posts
    4k Views
    robert-hhR
    @seb Yes, it's in the EU, 868 Region. Using ABP, I can connect, send messages from the node (FiPy) to the gateway (LoPy), they are reported on the TTN cosole, and they arrive in the test target, but downlink messages travel only to the gateway (LoPy), are sent out by the getaeway, but almost never the node confirms reception. This may block OTAA.
  • OTAA Node says 'Not yet Joined..'

    LoPy otaa nanogateway frequency lopy
    12
    0 Votes
    12 Posts
    4k Views
    A
    Even after repeated attempts, unable to get my node working. I tried Sodaq One and lopy nano gateway which worked fine. So, I'm guessing there is a problem with my other LoPy which I'm trying to use as a node. Thanks everyone for your help.
  • Using lower DR or SF/BW in OTAA Join

    LoPy lopy otaa join
    2
    0 Votes
    2 Posts
    1k Views
    G
    OK This seems to be a restriction introduced by LoRa Alliance. It seems a join request uses AlternateDatarate() to cycle over datarates 0-5 in way that makes 5 dominant. See below for the first cycles. Doesn't explain why I can't join a nano gateway with a SF=12, BW=125. 55555554 55555553 55555552 55555551 55555554 55555550 55555554 55555551 55555552 55555553 55555554 55555550 55555554 55555553 55555552 55555551 55555554 55555550 55555554 55555551 55555552