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/03/14 21:28] – [Bye Bye Standby Receiver] kevint | livebox:xap_serial [2012/05/03 15:58] – [A short tutorial] minerva9 | ||
---|---|---|---|
Line 72: | Line 72: | ||
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 supported: | ||
+ | ^^ Escape Sequence ^^ Hex ^^ Represents ^^ When ^^ | ||
+ | || \a || 0x07 || Bell (alert) || || | ||
+ | || \b || 0x08 || Backspace || || | ||
+ | || \f || 0x0c ||Form feed || || | ||
+ | || \n || 0x0a || New line || || | ||
+ | || \r || 0x0d || Carriage return || || | ||
+ | || \t || 0x09 || Horizontal tab || || | ||
+ | || \v || 0x0b || Vertical tab || || | ||
+ | || '' | ||
+ | || \ooo || 0x## || An octal bit pattern | ||
+ | || \x## || 0x## || A Hexadecimal number || build 307 || | ||
====== Examples ====== | ====== Examples ====== | ||
Line 120: | 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. |