Programming / Configuring Nodes
Hi All,
Following the Livebox wiki regarding the config of the Base / Room nodes but running into some issues..
these were both sold via the shop so should come with the RFDemo pre flashed
after i enter "# microcom -s 57600 /dev/ttyUSB0"
i get [RF12demo.7] A i1 g212 @ 433 MHz
sometimes it will hang after that, occasionally it may show the below
any text entry after that seems to do weird things after
What am i doing wrong?
thanks
Current configuration:
@ i0 g0 @ 433 MHz
> 0d
> 0i
@ i0 g0 @ 433 MHz
config save failed
> 0o
***********************************************
# microcom -s 57600 /dev/ttyUSB0
[RF12demo.7] A i1 g212 @ 433 MHz
Available commands:
<nn> i - set node ID (standard node ids are 1..26)
(or enter an uppercase 'A'..'Z' to set id)
<n> b - set MHz band (4 = 433, 8 = 868, 9 = 915)
<nnn> g - set network group (RFM12 only allows 212, 0 = any)
<n> c - set collect mode (advanced, normally 0)
t - broadcast max-size test packet, with ack
...,<nn> a - send data packet to node <nn>, with ack
...,<nn> s - send data packet to node <nn>, no ack
<n> l - turn activity LED on PB1 on or off
<n> q - set quiet mode (1 = don't report bad packets)
Remote control commands:
<hchi>,<hclo>,<addr>,<cmd> f - FS20 command (868 MHz)
<addr>,<dev>,<on> k - KAKU command (433 MHz)
Current configuration:
A i1 g212 @ 433 MHz
Current configuration:
@ i0 g0 @ 433 MHz
> 0d
> 0i
@ i0 g0 @ 433 MHz
config save failed
> 0o
As Gary says check you have killed xapserial or better still connect to a PC (or MAC :-)
after you have got the current config displayed enter....
1i<return> to set address 1 for basenode or 2 etc for roomnode
8b<return> for 868Mhz
212g<return> to set group ID (212 is teh only option for RFM12 units)
This should then give you
A i1 g212 @ 868MHz
I'm not familiar with the other options for remote control and KAKU.
The HAHCentral code is based on the the rf12demo code from jeelabs. This has a command that toggles the reporting of 'bad packets'.
case 'q': // turn quiet mode on or off (don't report bad packets) |
quiet = value; |
break; |
Importantly, and unlike many other config commands, this option isn't persisted to EEPROM and the 'quiet' variable isn't initialised by the rfdemo12 code, but is set to 1 (quiet mode) in the HAHCentral code.
A bad packet is just random noise. If 'quiet' mode is selected, this doesn't get printed
if (quiet) |
return; |
Serial.print(" ?"); |
if (n > 20) // print at most 20 bytes if crc is wrong |
n = 20; |
I think that the 'noconfig' version of the HAHCentral was prepared by Karl (BoxingOrange), I can't recall exactly. However, if you re-hack the HAHCentral code to remove the config & the printing of 'bad' packets, you will be able to get rid of those '?' lines.
Alternatively, just ignore any lines that start with a '?'.
Cheers,
Derek.
How are you connecting to the HAH ? Is it PC? Telnet?
Also, can you connect the node to a PC and try via serial monitor on arduino IDE or similar.
What happens then?
Sorry I have no other immediate answers
ps did you kill xap-serial? Not sure what happens if you don't, just a thought.