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:16] – [Output messages] brett | livebox:xap_serial [2012/05/04 11:45] – [Bye Bye Standby Receiver] minerva9 | ||
---|---|---|---|
Line 74: | Line 74: | ||
The data= key supports escaping so that you can send non-printable characters the following are supported: | The data= key supports escaping so that you can send non-printable characters the following are supported: | ||
- | ^^ Escape Sequence ^^ Represents ^^ | + | ^^ Escape Sequence |
- | || \a || Bell (alert) || | + | || \a || 0x07 || Bell (alert) |
- | || \b || Backspace || | + | || \b || 0x08 || Backspace |
- | || \f || Formfeed | + | || \f || 0x0c ||Form feed || || |
- | || \n || New line || | + | || \n || 0x0a || New line || || |
- | || \r || Carriage return || | + | || \r || 0x0d || Carriage return |
- | || \t || Horizontal tab || | + | || \t || 0x09 || Horizontal tab || || |
- | || \v || Vertical tab || | + | || \v || 0x0b || Vertical tab || || |
- | || \\ || Backslash || | + | || '' |
- | || \ooo || An octal bit pattern | + | || \ooo || 0x## || An octal bit pattern |
+ | || \x## || 0x## || A Hexadecimal number || build 307 || | ||
====== Examples ====== | ====== Examples ====== | ||
Line 132: | 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. | ||
Line 150: | Line 151: | ||
Before you connect the micro, just plug the USB adaptor into the USB port on the side of the HAH (the port next to the two pushbuttons). \\ {{: | Before you connect the micro, just plug the USB adaptor into the USB port on the side of the HAH (the port next to the two pushbuttons). \\ {{: | ||
- | \\ Now, telnet into the HAH and issue the ‘dmesg’ command. If the USB adaptor has been recognized, you should see something along the lines of … | + | \\ Now, telnet into the HAH and issue the ‘dmesg’ command. If the USB adaptor has been recognised, you should see something along the lines of … |
< | < | ||
Line 341: | Line 342: | ||
In testing, it has been noted that occasionally the very first in a series of messages presents an incorrect housecode. However, subsequent transmissions are good. Easy enough to filter out in the script. | In testing, it has been noted that occasionally the very first in a series of messages presents an incorrect housecode. However, subsequent transmissions are good. Easy enough to filter out in the script. | ||
+ | |||
+ | \\ | ||
+ | KevinT put his RF receiver into a nice enclosure ... thanks to him for this [[http:// | ||
{{tag> | {{tag> |