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/04 11:43] – [Bye Bye Standby Receiver] 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. | ||
Line 138: | 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 330: | Line 343: | ||
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. | ||
{{tag> | {{tag> | ||
+ | \\ | ||
+ | KevinT put his RF receiver into a nice enclosure ... thanks to him for this [[http:// |