Confused :§

5 replies [Last post]
mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012

I'm not sure if anyone still visits here. I know I don't visit enough but my system has been so stable for so long that I have had no need. Sorry.

I'm currently having various issues with my HAH. A pity really as it's been running well for so long. So long that some things about it are a dim and distant memory. 

My main issue at the moment is no RF from the HAH relay board as well as no data from the 1wire sensor. I have replaced the RF module and 1 wire sensor. I have also copied the contents of the LiveboxHAH AVR onto a new AVR as I can't see anything coming from the RF pin on the existing AVR. Is it possible that the code has become corrupted?

I could reflash the hex if I wasn't using a BBB. Plus I use a 4x20 LCD and the hex is for a 2x8 LCD. I do have the LiveboxHAH.pde, so I could make the edits I need but then I will have to make edits to the boards.txt file or the frequency will be wrong (Arduino defaults to 16MHz but the board is designed to run at 7.3728MHz)

Any ideas on best course of action or maybe something I have missed?

Mark

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
It has been a bit quiet

Yes, stuff that 'just works' does kinda have the disadvantage that you can forget how it was put together in the first place. I'm currently struggling to build up a HAH PCB - the lappy that I use to program AVR devices wouldn't boot - so long since i used it.

Before a recent power cut, the 'uptime' on my HAH was more than a year.

Yes, you will need to allow for the frequency when recompiling - the unusual xtal was used to get accurate serial comms at 115200baud. Random thought ... have you checked that the 15V feed to the HAH PCB is good? Also, check the 5V rail on the PCB and see what that is reading.

Derek.

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
hiya Derek,hope you are well.

hiya Derek,

hope you are well. I have a 12V feed direct to the RF module and the 5V is at 4.91V and steady. A few things I can't figure out;

1) I have compiled the code for this AVR before (to change to a 4x20 lcd) so how come it worked up until now without changing the frequency when compiling.

2) It has never need the '+++' sent from the serial to get things going.

3) nothing changed except I lost RF and 1wire. When I powered off for 30mins then started back up it ALL worked for 2hrs maybe but now it's permanently faulty.

I'm baffled but struggling on. I've come to the conclusion that either the code on the AVR has corrupted and so when I copied to another AVR it's still corrupted OR the AVR I copied to is also faulty.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
It been a very long time

The +++ should not be necessary as the xap-livebox process will send it for you.  Normally when using the LiveBox router this is sent by a init.d script.   But not for for non livebox platforms.  If you are debugging the extra hardware without this process then YES you are going to have to type it in manually.

See http://www.homeautomationhub.com/content/portable-issues-beaglebone-black

or do a forum search on the keyword initserial.

NOTE: This feature is only available in the src code for the portable distribution branch of xap-livebox its not he main TRUNK.

https://github.com/dbzoo/hah/blob/portable/userapps/hah/xap-livebox/seri... line 374

Brett

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Hiya Brett, glad you're still here

I never had an issue with '+++'. My AVR would start up anyway. But then again I did have to restart serial after a reboot. I've added the +++ to init serial.

I've just found my original AVR I bought in 2012ish. I know it's only set up for 2x8 LCD but that is a minor issue for now. I'll be trying it later (well a duplicate of it)

mark_baldwin
Offline
Blackburn, United Kingdom
Joined: 19 May 2012
Success!

RF back up, just gotta figure out the 1wire now.

Hardware Info