Trouble shooting the hardware board

17 replies [Last post]
rwillett
Offline
United Kingdom
Joined: 13 Apr 2012

I've just finished building the microprocessor board.

I got to the end of the instructions and guess what, no power to pin 7 of the CPU socket when compared to pin 8.

I can measure 18V at the input connection (should be be 15V?) but I have no other way to check the board. Whilst I'm not the worlds best solderer, I'm not the worst, I suspect my cat isn't very good.

I've checked the back of the board and can't see any obvious dry joints or crossed connections.

I'm clueless on electronics so haven't the faintest idea what to check next, so any help gratefully received.

On an upside I have got my PIC controlled working on the internet as a web server, the next session is to write an XAP client/server for it.

Thanks,

Rob.

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Start with the basics

Hi Rob,

First thing. Don't panic! Many folks have gotten their HAH PCB up and running after a bit of help. If all else fails, I offer a 'return to base for fix' warranty.

The first thing to check is that 5V is being fed to the PCB by the MMJ to RJ11 cable that connects the PCB to the Livebox. So, look at the schematic diagram for the PCB at http://www.dbzoo.com/_media/livebox/pcb_rev1.jpg

and you will see that 5V is on pin 5 of the RJ11 socket and Gnd is on pin 6.

Do you get a 5V reading here with your multimeter (careful not to let the probes slip & accidentally short Gnd to 5V)?

Don't plug in the AVR microcontroller until you get 5V between pins 7 (5V) & 8 (Gnd) on the microcontroller socket.

Cheers,
Derek.

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
Derek,Thanks for reply.I get

Derek,

Thanks for reply.

I get 3.18V between pins 5 and 6 on the RJ11.

 

Rob 

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Not right

That's not good. There should be at least 4.8VDC coming out of the Livebox & into the PCB.

Disconnect the PCB from the Livebox & check the same pins directly on the RJ11 end of the cable (you will need pretty fine points on the probes on your multimeter to do this).

It's just possible that yuor Livebox is not feeding 5V or that the cable is in some way duff.

Derek

 

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
ThanksI'll get an RJ11 cable

Thanks

I'll get an RJ11 cable from work, cut it down and check the cables.

is the RJ11 cable supplied specific in any way to the livebox?

rob

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
That wont work

Its rj45 one end and mmj on the livebox end.

 

check the psu voltage unplugged from livebox mines apx 16V others may comment but 18 does sound a bit high.

 

3.18v is very low unless you have display and all 4 relays engaged (even then it is a bit low) sounds like a faulty cable or poor joint somewhere but Derek is the expert :)

 

Dean

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
Now I'm confused. The cable I

Now I'm confused. The cable I had was a small grey cable around 150mm long with two click to insert connectors. I didn't look closely to see if it was RJ45 or RJ11. I thought it was RJ11 but I could (and probably was) confused.

I fitted one end to the port on the Livebox that was hidden by a sticker as per the diagram on the Wiki and the other end went to my HAH board. I wasn't aware that they had different ends to the cable.

I can fully belive it's a poor joint somewhere but I can check that when I get home.  I have no relays engaged as I never got anything working :)

Rob

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Cable check

I had meant that the MMJ to RJ11 cable be tested by plugging in the MMJ and checking the 5V at the RJ11 end (without the PCB being plugged in). 18V under load from the PSU does seem excessive. It's supposed to be a regulated 15V. However, the 12V vreg that takes this voltage down to that which the RF module requires can cope with an 18V input. 

Unfortunately, I'm not at home so can't check any of my devices.

Derek.

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
Derek,I understand now. The

Derek,

I understand now. The previous comment mentioned RJ45 (which is Ethernet) and that confused me.

We have hundreds of RJ11 cable at work (and I do mean hundreds) from all the CISCO kit we have. It's easy enough to get one, cut the end off, strip the cable and make sure that I get exactly the right cables for measurement.

I've looked at the schematic again and have a better idea. It seems a lot simpler on the schematic than in real life :)

My only concern is that I've blown something, somewhere.

The only queries I did have on the assembly were:

1. The zimmer diode adjacent to the RJ11 connector has a red band and a black band on it. Which is the 'right' band to orientate the diode?

2. I had a jumper left over which I couldn't see where to use.

It was like this when I fixed the washing machine, bits left over that didn't seem to be there when I started :)

Rob.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
sorry got my 11's and 45's fuddled

:)

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
Progress of sorts

After fixing the Jumper J1 into the right place, I then measured the voltage at pins 7 and 8 and got 4.8V. Woohoo.

Put the chip in (the right way round this time) and powerd up. Started up xFX Hub and could see nothing in the windows.

Put the LCD in and restarted the livebox and could see Booting V3.4 come up in the LCD and then 192.168.0.21 displayed on the LCD. That gave me confidence that it was working.

However nothing appears in the XfX hun window apart from a heartbeat from the Windows 7 VMWare session I'm running. 

I've ssh'ed into the box and tried to access the controller. I can see the processes running and kill them off according to this page here, http://www.dbzoo.com/livebox/hah_microcontroller.

I enter 

 

# killall xap-livebox
# microcom -s 115200 /dev/ttyS0

 

I checked that the process was running against /dev/ttyS0 and it was so the microcom command looks correct. the ssh session then hangs, I type +++ and get no echo back.  I have to kill the putty session and start again.

It must get getting the right IP address from the livebox so there is some communication.

Suggestions as always welcomed.

Rob

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Sounds like progress

If you point your browser at the address shown on the LCD, do you get the HAH serving you the web UI?

Some folks have reported firewall issues with xFx Viewer. It might be worth temporarily disabling any firewall while getting going.

Derek.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
VPN

I have found XFX viewer latches onto my VPN ip if i am vpn'ed into anywhere (i access several remote sites)

 

and when it does this i only see my laptop in XFX viewer :)

 

Just a thought.

 

Dean

 

P.S your 99% there :)

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
I can point the web browser

I can point the web browser and get the HAH web page. I can control the LCD from the web browser as well, I turned a relay on and it was reported on in the web browser.

Have turned off the firewall(s) on Windows 7 and wow, was that a pain the arse to do :)

Do I need to have done something to the controller card to trigger ad xAp message? Or will it generate a heartbeat similar to the xFx viewer by default?

It all appears to be working apart from nothing comes up in the xFx viewer hub/

Rob

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
No VPN sessions are running,

No VPN sessions are running, though I am running on a VMWare Fusion instance on a Mac. I might just shut down Windows 7 and reboot as Windows XP and see if that makes a difference.

Rob

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
Solved

The problem appears to be the @#$RT^@#$%^&@#$%^& firewalls as provided by Windows 7.

Rebooting to Windows XP and turning off that firewall seems to have worked and now I get a whole screenful of messages, none of which I understand.

I had forgotten how much pain and misery Windows causes me, stuff this I'm back to my Mac and Linux after IO get this working.

Thank you for all the help give, especially Derek.

I will updatet the Wiki with this useful information.

Rob.

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
windows 7

yep found same the other day tftp port shown as opened but it was NOT or it was doing strange thing :(

 

glad you found it.

 

xp compatibility mode is the only saving grace with win7

rwillett
Offline
United Kingdom
Joined: 13 Apr 2012
The more I use Windows 7 the

The more I use Windows 7 the more I start to think what a wonderful system Windows XP was.

My employee (IBM) has moved to Windows 7 as the main OS for our laptops and it's not gone down well. In fact so many people hate it that they are personally buying Mac AirBooks and using those as their main computer. IBM is happy for you to choose one of Linux, Max OSX or Windows 7 (but not Windows XP).

The only thing stopping me is money and paying my money out to go to work.

Anyway, back onto the thread topic, I'll keep looking at why Windows 7 stops things working even when ALL the firewalls are turned off.

Hardware Info