I seem to be suffering with lock ups due to high power switching.
I use seperate PSU for HAH and relay after relay's (HAH relays power seperate mains 12v relays on a seperate PSU) they are switching quite high loads circa 750W-2KW on the same spur as the HAH is powerd and i noticed that the LCD goes Booting 3.4 (but that both hah and pcb keep working). But saying that sometimes it locks up and only a full power off/on resolves this.
Member for
15 years 7 monthsAwesome!
Dean
Cant comment on your problem unfortunately as only use them to trigger house alarm and have not had any issues.
However I must say the super HAH looks awesome. Makes me want to go tidy my install up right now!
Cheers for sharing
Garry
Member for
15 years 10 monthsSpares
I ripped out an old access system that gave me the box (fitted with a key lock) and i thought what can i do with this?
ant on right is 433 left is 868 (jeenode)
top LHS relay board not connected
RHS top HAH PCB
mid LHS Livebox
mid RHS psu from ac system 3 outputs 12V 15V and 5V with battery backup, Jeenode is on top RHS usb is nr livebox pcb
see http://www.packetradio.co.uk/gallery/index.php/HAH?page=8 for more phots's
I have now 3 of these boxes (1 shown above)
But i am hunting for more key's :)
Dean
Member for
15 years 10 monthsOk now i need help
2 different liveboxes, 2 different HAH pcb's 2 different psu's
a different current cost and still i suffer with lock ups.
the only common factor is the cc lead and usb HUB.
the symptoms are the livebox loses connectivity with the HAH pcb (305/1.0) displayed on web rather than 3.4. also on a side note i see the display "contrast" change when i engage relay's,
I am suspecting the 5V rail is getting a bit "hammered" as i have a .1V diffo when hah pcb is connected/not connected (havent looked at it with relays energised)
If i was to feed HAH with a seperate 5V feed (already ran additional ground's) can i assume correctly it would be the yellow wire in the cable that carries the 5V supply?)
Dean
Member for
17 years0.1V drop is pretty normal
From memory, I see 4.8V on the HAH PCB. My 'uptimes' are like weeks and weeks between planned resets.
Don't go by colour on the MMJ to RJ11 cable. I've supplied various cables and orientations ... any one cable should be good. On the RJ11, you should see Gnd at one end of the connector (pin 6) and 5V (ish) on the adjacent pin 5. Pin 1 connects to one end of D6, so you can work out which way around things are.
LCD contrast change is due to the slight voltage drop when relays pull in - quite normal. The LCD isn't really designed for beauty ... it's a basic part that gets you a quick view of the boot sequence and the assigned IP address.
If the comms between the HAH PCB and the Livebox break down, you will see the 305/1.0 report instead of the correct AVR firmware version.
Are you using different RJ11 to MMJ cables (or just one)?
I'd be happy to send you a 'soaked in' HAH PCB/MMJ to RJ11 cable to remove two important variables in the loop.
Derek.
Member for
15 years 10 monthsNow i need someone else to confirm
Can someone (who is confident) measure the voltage on the header of the HAH pcb that says rlybrd between the point labelled 10 and the one directly below it.
you should see 5V +/- 0.1V ish. BE VERY WARY IF YOU SHORT METER PROBES YOU COULD DO UNTOLD DAMAGE.
then switch on 1,2,3,4 relays and measure the voltage at each time.
I measured 4.96,4.8,4.1.3.6 with each relay energised which to me says the livebox has some sort of current limiting.
Now i may be unlucky and have 2 liveboxes both with current limiting and maybe some do not,.
now after looking at the schematic i cut the yellow wire and have fed it from a seperate 5V regulator and now as i energize relays i see no drop in the voltage.
can someone please confirm my findings please as this could mean a slight change to HAH pcb/wiring to ensure total compatibility with all versions of liveboxes.
Think i have covered everything Derek but it does look like some kind of current limiting on the port (i have tried it now without usb connected)
Dean
Member for
17 yearsThe ATMEGA328P-PU is pretty tolerant
Hi Dean,
We used this part instead of some cheaper micros because it will keep going even if the Vcc drops a 'lot'. Datasheet has this part working between 2.7V and 5.5V at the xtal frequency used on the HAH PCB.
I'm not at home just now, but I'll be happy to test & report back on the weekend.
Derek.
Member for
15 years 10 monthsTa
Just seems odd the Vcc should drop so dramatically by such a small load.
I have also confirmed the data on micro but a voltage shift of such an amount can cause spikes etc, i am still playing.
Dean
Member for
15 years 10 monthsanother worrying thing
I seem to get a lot of xap-livebox.ini corruptions.
I lose rf parameters, 1 wire and suffer corruption of the ini etc etc and it all seems linked.
I am investigating but cannot pin-point the problem but i can re-produce it on a regular basis.
Dean
Member for
16 years 5 monthsTest Results
Hi Dean,
Here are my measurements :-
All relays off : 4.8
relay 1 on : 4.5
Relays 1 & 2 on : 4.2
Relays 1, 2 & 3 on : 3.9
Relays 1, 2, 3 & 4 on : 3.7
The readings did fluctulate a bit, but I guess your looking at a 0.3 drop each time.
Karl
Member for
16 years 10 monthsINI file corruptions - yeah
INI file corruptions - yeah this is a real worry. What I would like to do, and this is MAJOR surgery, is have a configuration file for each program rather than combing them all into one monolithic file.
So /etc/xap/livebox.ini, /etc/xap/currentcost.ini etc..
At least this way the I would hope to minimize any cross corruption that could occur. Also it would make it easy to locate and edit the configuration file for the program in question.
To do this would take a bit of work, I'd also need to create some sort of AUTO UPGRADE program that would on first boot up automaticallly break all the sections out into their own configuration file.
One thing I did fix in the latest release was caching of the 1wire label. Before this release it would lookup the ini file EVERY time it required its value. This woudl mean a lot of I/O and possibly a read, when something else was trying to write, and I thought that could result in a corruption. If you are on the latest release and are still seeing this then I can at releast rule out constant 1-wire lookup's as a possible cause.
Brett
Member for
15 years 10 monthsYes version 305
Latest release and still seeing file corruption.
Member for
15 years 10 monthsyes
2 different mmj cables, i now have a seperate 5v running hah pcb.
symptom is rf and relays stop working so i reboot and i get the 305/1.0 only a full power off/on gets it back, it does tie in as when this happens i seem to get ini corruptions about the same time as well-but i may not notice till pachube feed (some of them) freeze.
Member for
15 years 10 monthsI have now disabled everything i am not using
I am going to systematically disable everything till i get to the bottom of this!
Member for
16 years 5 monthsClean Update
Have you tried a clean update, this wipes everything off your system but could be a good base of trying to work out what's wrong. The filesystem may have become corrupted at some point in the past and this might be causing the lockups.
Member for
15 years 10 monthsJust looked
My lockups seem to follow a pattern of "time" i thought originally it was heating/pump/high energy related. Now i suspect google cal related noticed the below ini file corruption and this one could have been there a while, anyone comment?
[googlecal]
enable=0
user=mb7ush@gmail.com
passwd=xxx
[twitter]
enable=0
consumer_key=xxx
enable=1
[iserver]
enable=1
[googlecal]
enable=1
user=mb7ush@gmail.com
passwd=xxx
Member for
15 years 10 monthsimprobable
2 totally seperate systems.
2 liveboxes upgraded/HAHed at different times
2 hah pcbs one old one new style.
both do exactly the same only similarity is that i restored the new one from the old backup....hang on you might be on to something here?
ok how do i do a clean update etc or rather factory reset the HAH back to originality?
Might take a while to redo everything ut at least it would eliminate that possibility.
Member for
16 years 5 monthsClean Build
To carry out a clean HAH update run the command below :-
# /etc/init.d/update clean
This will erase everything, scripts, your config, the lot, so you might want to copy these off before running the command.
Karl
Member for
15 years 10 monthsTA
And thanks for the warning :)
Member for
15 years 10 monthsOk whilst backing up
I found 2 aliasApplet.lua files the difference between them was one started witha capital letter.
one was version 1 the other 1.1
is it possible this was part of my problem?
Member for
15 years 10 monthsrf same string
If an rf string was the same as another rf string e.g. rf1 = rf2 but only on the off position could this cause problems?
or
I found 2 aliasApplet.lua files the difference between them was one started witha capital letter.
one was version 1 the other 1.1
is it possible this was part of my problem?
I am trying to hammer down WHY?
one thing i noted was when i turned off an RF device sometimes a lock up would occur (i have started to time the lock up's) and i found that the off string was the same for 2 devices.
Its just i found already if joggler is trying to get info on something that does not exist it polls a lot causing hich xap messages, i solved this and have helped 2 other people ref this, so if i can figure out my "lock up" problems it should help others :) picture of my "new" set up, Just need to get some trunking to hide cables but it is in the garage/office/shack/clothes drying place (its in same room as boiler) so not that important and yes 3 thermostats :)
Dean