Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:xap_serial [2012/04/20 13:15] – [Output messages] brett | livebox:xap_serial [2012/05/03 15:58] – [A short tutorial] minerva9 | ||
---|---|---|---|
Line 73: | Line 73: | ||
If you try to do something like opening a non-existent port, you will get a notification via a xAP message. | If you try to do something like opening a non-existent port, you will get a notification via a xAP message. | ||
- | The data= key supports escaping so that you can send non-printable characters the following are supports | + | The data= key supports escaping so that you can send non-printable characters the following are supported: |
- | + | ^^ Escape Sequence | |
- | ^^ Escape Sequence ^^ Represents ^^ | + | || \a || 0x07 || Bell (alert) |
- | || \a || Bell (alert) || | + | || \b || 0x08 || Backspace |
- | || \b || Backspace || | + | || \f || 0x0c ||Form feed || || |
- | || \f || Formfeed | + | || \n || 0x0a || New line || || |
- | || \n || New line || | + | || \r || 0x0d || Carriage return |
- | || \r || Carriage return || | + | || \t || 0x09 || Horizontal tab || || |
- | || \t || Horizontal tab || | + | || \v || 0x0b || Vertical tab || || |
- | || \v || Vertical tab || | + | || '' |
- | || \\ || Backslash || | + | || \ooo || 0x## || An octal bit pattern |
- | || \ooo || An octal bit pattern | + | || \x## || 0x## || A Hexadecimal number || build 307 || |
====== Examples ====== | ====== Examples ====== | ||
Line 133: | Line 133: | ||
====== A short tutorial ====== | ====== A short tutorial ====== | ||
- | I have a little microcontroller project that works as an RF receiver. It can decode signals sent by the [[http:// | + | I have a little microcontroller project that works as an RF receiver. It can decode signals sent by the [[http:// |
+ | Note that any one receiver can be configured to decode either HE or BBSB, not both at the same time (a chip change is required to swap protocols). \\ | ||
{{http:// | {{http:// | ||
- | Currently, it simply outputs any received code to a serial port on the micro board. This is interesting, | + | Currently, it simply outputs any received code to a serial port on the micro board. This is interesting, |
For example, it would be handy to be able to identify a particular BBSB PIR being triggered and then activate a, HAH connected, RF mains socket to turn on a light. | For example, it would be handy to be able to identify a particular BBSB PIR being triggered and then activate a, HAH connected, RF mains socket to turn on a light. |