|
Lamp-Da 0.1
A compact lantern project
|
The system is packed with a DFU compatible bootloader, accessible by USB. The DFU update is accessible by putting the system in update mode, using the following procedure :
Note : DFU stands for Device Firware Update
In a first terminal : Listen to output on the serial port cat -v < /dev/ttyACM0
On another terminal : Open the serial port sudo chmod o+rw /dev/ttyACM0 Send the "t" command : ‘echo -e 't\0’ > /dev/ttyACM0`
You should see the type of the lamp on the first terminal.
Then send the "DFU" command : ‘echo -e 'DFU\0’ > /dev/ttyACM0` to make the system enter the DFU mode.
In Tools tab, select the port where the system is connected. It will often be "/dev/ttyACM0" in linux.
Open the Serial Monitor, in the Tools tab. Set the speed to 115200 bauds.
You can now send commands and receive answers from the system CLI.
On Linux, you have to check that the Arduino IDE can access the serial port.
This repository has some built in tools to debug and update the system. The command make monitor will open a serial monitor to the system on /dev/ttyACM0.
When using the make upload- commands, the upload of nexw code is automatic if the compilation succeeds.