This thread is being closed as the feedback and information contained here are now covered by the firmware upgrade tools. Please check the downloads section of our website to get the last versions of the tools.
For further support on the tools please feel free to open a new thread.
@JF002 I'm trying to implement this right now.
One LoPy acts as LoRaWAN node and connects to a second LoPy nano-gateway.
The LoPy nano-gateway isn't able to talk to the TTN API's yet: you need to implement http://www.grpc.io/ on the LoPy.
grpc have a Python library but I don't know yet if LoPy can run this.
I working on this and will try this during Christmas holiday.
An alternative is to implement grpc on an Raspberry Pi and use that for the TTN connectivity. So connecting the LoPy nano-gateway to RPi.
Still struggling to get the firmware upgrade to work on linux.
Note, I'm not using an expansion card but a Serial USB cable which powers the device up and allows me to connect to the wifi
I'm also able to connect to the serial port with minicom and I get the following python version:
When I try and update the firmware I get the following error.
Namespace(file=None, port='/dev/ttyUSB0', speed=115200, tar='/tmp/tmp.zR12S6HK0s/update.tar.gz')
Changing baud rate to 115200
Exception: empty file, on line 131
This what I am doing exactly:
As root Downloaded and extracted pycom_update_1.0.0.b3.tar.gz
cd into pyupgrade
select WiPy 2.0
Disconnect device from USB
Put G23 into GND
Plug in USB cable
Press and hold the the reset button for about 3 seconds
Press enter on the update
Type in the serial path :-> /dev/ttyUSB0
Deselect high speed
Then it fails with the "Exception: empty file on line 131.
Just to be sure my EMS32 connectivity is good, whilst connected via minicom, if I plug in G23 to GND hit reset, I see the device is waiting for a download
>>> ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
Perhaps someone can point me to the firmware file and a command line script I can use to test the install. I really would like to complete the upgrade and get on with using the device :)
@bmarkus It can be a LoRaWAN nano gateway listening to one channel at a time. Be mindful that this is not LoRaWAN compliant but is very useful in certain conditions. We will release the full firmware with this functionality early Feb.
If bluetooth was not working, than that could be blamed on tight loop without opportunity to release processor (sleep), but that is not the case. Following code takes few minutes to get to green light:
from network import Bluetooth
bluetooth = Bluetooth()
pycom.heartbeat(False) # disable the heartbeat LED
@robert-hh hello robert, thanks for all the great help - it's really awesome!!
I managed to figure out, when booting in safe mode - that i can temporarily connect via ftp again (because the boot.py is bypassed).. and thus make changes to the boot.py.
soo.. the thing is though, that it seems the lopy does not care AT ALL about what I put into the boot.py script now, even after unplugging the short between G28 and 3v (which I assume should make it go back to loading boot and main).
tinkering more about, it turned out I had to set the heartbeat to false in order to use the rgbled onboard the lopy. well done soren. anyway, it is indeed responding now, but setting up the thing with custom wlan configuration is really difficult. this topic has become pretty messy. I tried to change the topic name, but got a message that i couldn't.. it is pretty misleading atm. are there any admins on here?
Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.