Help a beginner
Hi
Please can someone help me getting started with Base and Room nodes. I tried following the wiki but it made reference to RF12demo, RFDdemo and HAHcentral, totally confusing. Derek kindly updated it to make it clearer.
However....when I type
# /etc/init.d/xap stop serial
# microcom -s 57600 /dev/ttyUSB0
and a couple of returns there is no response.
If I repeat the command I get about 100 lines of data starting with
Available commands:
<ard node ids are 1..26)
ase 'A'..'Z' to set id)
<n433, 8 = 868, 9 = 915)
<nnnM12 only allows 212, 0 = any)mode (advanced, normally 0)
ize test packet, with ack
.to node <nn>, with ack
...,node <nn>, no ack
seems to be corrupted.
I can hook the node up to my laptop and run "Putty" and configure the freq and node?
On HAH when I try to reflash the node I get
# stty -F /dev/ttyUSB0 hupcl
# avrdude -v -c arduino -p m328p -P /dev/ttyUSB0 -b 57600 -Uflash:w:HAHcentral_n
ocfg.cpp.hex
avrdude: Version 5.10, compiled on Jan 26 2012 at 19:51:44
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/etc_ro_fs/avrdude.conf"
User configuration file is "/root/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude done. Thank you.
Don't know where to go from here.
Hi John,
First check that you don't have any other services running that might be using the USB ports, just disable them through the web GUI before starting, you're right, the output does look corrupted. Once flashed, you can hook-up the node to your laptop to configure it using putty, you'll need to know the serial port that your USB has been assigned though.
I think the reason for the corruption is why there is now the "nocfg" version, when the HAH boots with the normal code, it seems to send characters down the USB port to the node, it has been known to reconfigure the node without you wanting/realising it. The nocfg version disable the configuration section.
So the steps to flash a node put simply should be :-
1. Flash HAHcentral
2. Configure node id and MHz band, remember each node should have a unique id but the MHz band should be 868 on them all
3. Flash HAHcentral_nocfg for the base node OR roomnode2 for a room node
I'm not sure if any of this helps, I can probably find time to test here if you get really stuck. See howq you get on, these are great devices, taking the HAH to a completely new level.
Karl
John,
I assume you curl'd your hex files from google - perhaps using the example commands from the wiki?
If so, check your filenames you downloaded for spellings you may not expect, and CaSe SenSetIvitY.
Here is a quick ls of my dev box:
# ls
HAHCentrol_nocfg.hex IRNode.hex roomnode2.hex
HAHcentral.hex rf12demo.hex
#
as i have a full programmer BUT do you have a current cost connected as well there is a small issue on reboots they sometimes swap usb0/1
if you do try doing it with just jeenode.
Dean
not much help i expect :(