LoRa Nano-Gateway Set Up Help



  • Hello All,

    I have been running into an issue with running example 5.3.4. I'm using the example parts exactly as provided by the guide but have been running into this error. I would really appreciate if someone can shed some light on this issue.

    Thanks in advance

    0_1514394805966_546a8836-92e3-4f61-ba7f-060fa2d2029d-image.png


  • administrators

    This looks like the example from 5.3.6 rather than 5.3.4

    You can get the most up2date version from our GitHub repository. The easiest way is to download an archive of the most recent version and then open the directory examples/lorawan-nano-gateway/ in either Visual Studio Code or Atom, modify config.py and upload the code to the board.



  • @xykon
    Hello Thank you for your feedback. The code is per below and exactly as in the example provided. Thank you.

    """ LoPy LoRaWAN Nano Gateway example usage """
    
    import config
    from nanogateway import NanoGateway
    
    if __name__ == '__main__':
        nanogw = NanoGateway(
            id=config.GATEWAY_ID,
            frequency=config.LORA_FREQUENCY,
            datarate=config.LORA_GW_DR,
            ssid=config.WIFI_SSID,
            password=config.WIFI_PASS,
            server=config.SERVER,
            port=config.PORT,
            ntp_server=config.NTP,
            ntp_period=config.NTP_PERIOD_S
            )
    
        nanogw.start()
        nanogw._log('You may now press ENTER to enter the REPL')
        input()
    


  • Hello Thank you for your feedback. The code is per below and exactly as in the example provided. Thank you.

    
    """ LoPy LoRaWAN Nano Gateway example usage """
    
    import config
    from nanogateway import NanoGateway
    
    if __name__ == '__main__':
        nanogw = NanoGateway(
            id=config.GATEWAY_ID,
            frequency=config.LORA_FREQUENCY,
            datarate=config.LORA_GW_DR,
            ssid=config.WIFI_SSID,
            password=config.WIFI_PASS,
            server=config.SERVER,
            port=config.PORT,
            ntp_server=config.NTP,
            ntp_period=config.NTP_PERIOD_S
            )
    
        nanogw.start()
        nanogw._log('You may now press ENTER to enter the REPL')
        input()
    

  • administrators

    @az311 Even though you're not running the latest firmware, we didn't make any changes to the code recently and it's running fine on my LoPy with the current version.

    I suggest you double-check your code around line 16 in main.py.

    You can also post the code here, with the following formatting:

    ``` python
    <paste your code>
    ```



Pycom on Twitter