Difference between revisions of "FAQ"
Line 19: | Line 19: | ||
== How can I flash/erase the EZRUSB devices ? == | == How can I flash/erase the EZRUSB devices ? == | ||
+ | |||
+ | If you use one of the 'CoT' Disk Images, the EZRUSB devices can be programmed using the <code>flash_ezr</code> script. | ||
+ | This script can be invoked as follows: | ||
+ | |||
+ | <code>flash_ezr <device> <elf-file></code> | ||
+ | |||
+ | Where: | ||
+ | * <code><device></code> is one of 'EZR433' or 'EZR868', depending on whether you want to flash the 433MHz or 868MHz device | ||
+ | * <code><elf-file></code> is the ELF-image to flash to the device. | ||
+ | |||
+ | Likewise, the <code>erase_ezr</code> script can be used to erase an EZRUSB device. This script is invoked in exactly the same way as the <code>flash_ezr</code> script, except that no ELF-image file is specified. | ||
+ | |||
+ | Even if you are not using one of the 'CoT' images, you are strongly advised to use the <code>flash_ezr</code> and <code>erase_ezr</code> scripts since these scripts contain the logic required to ensure that the 'correct' device is flashed/erased. | ||
+ | |||
+ | You can add these scripts to your own image by simply copying them from the '/usr/local/bin' directory from one of the 'CoT'-images to your own image, but to run them OpenOCD (0.9.0 or later) does need to be installed. | ||
+ | |||
== How can I flash/erase the LoRa device ? == | == How can I flash/erase the LoRa device ? == | ||
== I have a question and I can't find the answer on the Wiki == | == I have a question and I can't find the answer on the Wiki == | ||
Please send your question to {{SafeMailTo|admin|lab.cityofthings.eu}}. We'll be happy to help you along and update the documentation where necessary. | Please send your question to {{SafeMailTo|admin|lab.cityofthings.eu}}. We'll be happy to help you along and update the documentation where necessary. |
Revision as of 10:11, 2 March 2018
How do I get access to the testbed ?
This is explained on the Getting Started page
Why are
I can't create links to/from nodes in the City of Things testbed in JFed.
How do I know which serial interface (/dev/ttyUSBX) is connected to what device?
If you use one of the 'CoT' Disk Images, symlinks are automatically created in '/dev' that will allow you to identify each serial port:
- OpenUSB:
/dev/ttyOPENUSB
- EZRUSB@433 MHz:
/dev/ttyEZR433
- EZRUSB@868 MHz:
/dev/ttyEZR868
- EFM32GG+LoRa:
/dev/ttyLORA
By referring to these symlinks instead of the /dev/ttyUSBX-devices directly you can be sure that you are talking to the correct device.
If you are not using one of the 'CoT' images, you can add the necessary udev-rules needed to to do by copying /etc/udev/rules.d/50-persistent-usb.rules
from one of the 'CoT' images to your own image.
How can I flash/erase the EZRUSB devices ?
If you use one of the 'CoT' Disk Images, the EZRUSB devices can be programmed using the flash_ezr
script.
This script can be invoked as follows:
flash_ezr <device> <elf-file>
Where:
<device>
is one of 'EZR433' or 'EZR868', depending on whether you want to flash the 433MHz or 868MHz device<elf-file>
is the ELF-image to flash to the device.
Likewise, the erase_ezr
script can be used to erase an EZRUSB device. This script is invoked in exactly the same way as the flash_ezr
script, except that no ELF-image file is specified.
Even if you are not using one of the 'CoT' images, you are strongly advised to use the flash_ezr
and erase_ezr
scripts since these scripts contain the logic required to ensure that the 'correct' device is flashed/erased.
You can add these scripts to your own image by simply copying them from the '/usr/local/bin' directory from one of the 'CoT'-images to your own image, but to run them OpenOCD (0.9.0 or later) does need to be installed.
How can I flash/erase the LoRa device ?
I have a question and I can't find the answer on the Wiki
Please send your question to . We'll be happy to help you along and update the documentation where necessary.