Lock Up's

20 replies [Last post]
g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011

 

 

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.

 

the symptoms are the livebox loses the HAH pcb and this becomes apparant after a software reboot 304/1.0 as oppossed to 304/3.4

 

This happens on 2 totally diffo bit of hardware, 2 liveboxes 2 psu's 2 hah pcb's.

 

Tommorrow i am going to run a sepearate supply and i have purchased some transit suppressors (purchased is not the right word, found in my junk box would be better)

 

Has anyone else who switches high loads noticed this?

 

Dean

 

P.S Super HAH is coming :)

http://www.packetradio.co.uk/gallery/index.php/HAH/IMG_1107

 

See http://www.packetradio.co.uk/gallery/index.php/HAH/IMG_1107

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Awesome!

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

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Spares

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

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Ok 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

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
0.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.

 

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Now 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

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
The 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.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Ta

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

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
another 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

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Test 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

brett
Offline
Providence, United States
Joined: 9 Jan 2010
INI 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

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Yes version 305

Latest release and still seeing file corruption.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
yes

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.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
I have now disabled everything i am not using

I am going to systematically disable everything till i get to the bottom of this!

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Clean 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.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Just 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

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
improbable

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.

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Clean 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

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
TA

And thanks for the warning :)

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Ok 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?

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
rf 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

Hardware Info