Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
livebox:hah_microcontroller [2012/04/16 23:01] – [Microcontroller firmware] brett | livebox:hah_microcontroller [2012/06/05 15:44] – [Microcontroller firmware] brett | ||
---|---|---|---|
Line 8: | Line 8: | ||
|| ATmega328P || 3.x || C || | || ATmega328P || 3.x || C || | ||
- | The documentation here reflects | + | **The current release is v3.4** |
+ | |||
+ | You can force the xap-livebox program to communicate at a specific version if auto detection | ||
+ | |||
+ | < | ||
+ | [hardware] | ||
+ | major=3 | ||
+ | minor=4 | ||
+ | </ | ||
===== Command Interface ===== | ===== Command Interface ===== | ||
Line 15: | Line 24: | ||
We communicate at 115200 baud as this is the default speed for the Livebox serial interface. | We communicate at 115200 baud as this is the default speed for the Livebox serial interface. | ||
- | The HAH firmware normally runs a process named xap-livebox to connect to the HAH PCB. If you want to connect manually for debug, be sure to kill off the xap-livebox process first. | + | The HAH firmware normally runs a process named xap-livebox to connect to the HAH PCB. If you want to connect manually for debug, be sure to kill off the xap-livebox process first. |
<note important> | <note important> | ||
< | < | ||
+ | # killall xap-livebox | ||
# microcom -s 115200 /dev/ttyS0 | # microcom -s 115200 /dev/ttyS0 | ||
+++ < | +++ < | ||
Line 103: | Line 113: | ||
==== on / off ==== | ==== on / off ==== | ||
- | Toggle a relay or RF relay from the on to the off state. | + | Toggle a relay on/off. |
< | < | ||
>on 1 | >on 1 | ||
Line 109: | Line 119: | ||
</ | </ | ||
+ | For the M8 firmware this was also overloaded to control RF devices. | ||
+ | < | ||
+ | > on 5 | ||
+ | </ | ||
+ | The 1st RF sequence saved into EEPROM would be addressable as 5, the 2nd as 6 etc.. | ||
==== lcd ==== | ==== lcd ==== | ||