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.
Hi @Roberto I tried to modify your code because I need to send a payload that contains the current time with a header containing mac address of the node and the length of the payload. Everything went well on the node side but rated nano gateway I have an Index Error: bytes index out of rang. it is because the adresse mac ? knowing that lora.mac() give : b'p\xb3\xd5I\x95kA\xf3' with length=8 but i don't understand what does mean the : b'p......' and how the length is 8 !!
@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.
V1.0.0 has just been released. A few problems concerning the synchronize feature using a serial connection are now solved and some new features have been added:
Added project specific settings
Added serial port detection (in sub-navigation under the 'more' button)
Multiple bug fixes for synchronization over serial
Terminal height now resizable by dragging the top edge
Fixed 'failed to connect' bug when reconnecting on telnet
The project specific settings might need some explanation:
When clicking the new 'project settings' option, a config file is created inside your project folder. Any settings changed inside this file will override the global settings. This can be useful when you are using different project for different devices or when each project has a different folder that has to be synchronized.
Remove the settings from this file that you don't want to override.
Thanks for your help the other evening - I'm up and running now, though I'm no closer to being able to update the firmware myself.
For linux users I have a (useful?) bash script that beings up a console window and then waits up to 15s for me to plugin the device (that way I see any boot messages). I don't know if this will work on OSX as I don't have a Mac.
I need to update my blog post as I've recently modified the script to allows me to select the which serial device to connect to and baud rate to use.
Will be good for developing to have option like save errors to flash
e.g. if we are connected to the board with UART then we can see errors like guru mediation printed.
But when we are not connected by UART we do not know what was the error message
and after reboot we lost any info
Will be good to have option e.g.
and it save errors to flash to file e.g. LastError.log
But i do not know if this is simple to accomplish and if any possible?
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 :)
Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.