pHAT doesn't seem to communicate with ECP bus

General Discussion

pHAT doesn't seem to communicate with ECP bus

Postby kd7mlg » Thu Oct 22, 2020 8:31 pm

So ... got my pHAT in the mail today, got the header soldered on, and with both the pi I had intended to use (an older Pi B Plus) and a Pi 3 Model B, I have nothing but frustration.

I've verified all my wiring is correct. I've verified that all keypad addresses are active (for now). Using a fresh image of the official raspbian image (without any updates/upgrades so far), and I get bupkiss.

I can connect to the device over serial (assuming I shut down ser2sock first)
I can connect to the device by 'telnet localhost 10000'
I can interact with the device (it responds to it's command repertoire)
But I cannot get it to decode any ECP data.

I turned on debugging (@48) and see the following:
Code: Select all
!DBG:[fe][e0][e0][f8][3c][80][00][fe][f8][00][1f][0f][2a][2a][6d][64][26][fe][e0][fe][e0]
!DBG:[00][8f][fe][00][0f][00][ff][00][fe][0f][00][1c][08][2a][56][77][c7][00][80][00][00]
!DBG:[0f][e0]
!DBG:*e0*[e0][f8][f8][e0][e0][fc][fe][80][ff][00][00][00][1c][ef][49][a6][f7][8e][f6][03]
!DBG:[00][00][00][00][03][f8][b5][fe][c7][2a][2a][72][fe][00][fe][fc][fe][00][3c][e0][fe]
!DBG:[00][fe][e0][f8][ff][00][fc][00][80][00][fc][00][f7][38][76][b6][fe][3c][ff][00][fe]
!DBG:[f8][00][00][ff][00][fc][ff][00][fe][00][75][4e][fe][03][00][f8][e0][e0][e0][e0][f7]
!DBG:[ff][00][2a][77][fe][00][fe][e0][fe][00][fe][e0][00][3c][ff][00][0f][00][c1][e0][f8]
!DBG:[00][50][77][5b][6f][fc][e0][00][fe][e0][fe][00][00][ff][00][03][00][fe][f8][fe][e0]
!DBG:[f8][e0][03][00][00][fe][ff][00][ff][fe][00][1c][2a][f7][fc][fe][00][25][e1][f7][f8]
!DBG:[00][f8][ff][80][00][80][fc][00][2a][77][5b][fc][00][e0][f8][fe][8f][00][0f][00][ff]
!DBG:[00][fc][ff][00][00][00][8c][5d][47][00][00][3c][ff][00][00][00][00][3c][ff][00][fe]
!DBG:[00][00][00][00][7f][dc][4e][ee][fe][e0][00][f8][e0][fe][00][e0][f8][f8][fe][00][f8]
!DBG:[f8][e0][00][fc][80][ff][00][fc][f8][00][0f][00][1c][2a][56][77][00][00][c7][f8][e0]


As best I can tell, the device has a proper configuration in it...
Code: Select all
!CONFIG>MODE=A&CONFIGBITS=ff05&ADDRESS=18&LRR=Y&COM=Y&EXP=NNNNN&REL=NNNN&MASK=ffffffff&DEDUPLICATE=N

(I've tried with the emulations both on and off. Presently the panel is not configured for them.)

My old faithful 10-year-old AD2USB interacts with the ECP bus as expected (even though the webapp and modern keypad app will not interact with the old hardware).

Thoughts? Ideas? Where to look next?
kd7mlg
Junior Nut
Junior Nut
 
Posts: 20
Joined: Sat Oct 03, 2020 4:40 pm

Re: pHAT doesn't seem to communicate with ECP bus

Postby mathewss » Thu Oct 22, 2020 8:49 pm

Hmm. That data looks odd indeed. What is this panel model info.

Best
Sean M.
mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Re: pHAT doesn't seem to communicate with ECP bus

Postby kd7mlg » Thu Oct 22, 2020 9:42 pm

It's a new out of the box Ademco Vista 20P rev 10.23.

The odd thing - to me, knowing enough about all of this to be dangerous - is that I do see a proper decode from the old AD2 but not the new pHAT.

The green blinkenlight flashes about 2.5 times every second. At one point I had found a link on the wiki that described the blinkenlight behavior but can't locate it now.

I've defaulted the panel (it came that way, supposedly! lol) and still no joy. Even doing a full power-down and power-up cycle yields nothing useful. System keypads work as intended.
kd7mlg
Junior Nut
Junior Nut
 
Posts: 20
Joined: Sat Oct 03, 2020 4:40 pm

Re: pHAT doesn't seem to communicate with ECP bus

Postby mathewss » Thu Oct 22, 2020 9:55 pm

Could be a bad board :(

The debug data looks very odd for a 20p

What firmware version are you running?

Also I noted you had LRR and COM enabled. I suggest these be disabled until normal operations can be achieved.

Since you had the USB working I have no other ideas as that would have the wiring etc all good.

Send me a bigger capture.

Is anything else connected to the panel?
If so press a few keys on a keypad while logging.

Send me your order number and I will send a unit I QA tested.

Best
Sean M.
mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Re: pHAT doesn't seem to communicate with ECP bus

Postby kd7mlg » Thu Oct 22, 2020 11:09 pm

I just started a putty logging session and put the panel through all the various ways to arm (away, stay, night-stay, max, instant). Here's what I've got so far... i'll let the log run overnight if you want more.
kd7mlg
Junior Nut
Junior Nut
 
Posts: 20
Joined: Sat Oct 03, 2020 4:40 pm

Re: pHAT doesn't seem to communicate with ECP bus

Postby mathewss » Thu Oct 22, 2020 11:29 pm

Not good. I do not see any data from the DI line and the data on the DO line looks very odd.

I need to send a known good board to confirm. Send me the order # and I will ship it out first thing tomorrow.

Best
Sean M
mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Re: pHAT doesn't seem to communicate with ECP bus

Postby mathewss » Thu Oct 22, 2020 11:39 pm

Ya I just did a test. I get a very similar result if I don't have my DI line connected properly.

Code: Select all
!Reading configuration.
!UART init.
!Ready. Press ! for configuration.
!>Diag. Flag (0) :>48
!DBG:[f7][00][00][4f][10][08][00][0c][08][02][00][00][2a][2a][2a][2a][44][49][53][41][52]
!DBG:[4d][45][44][2a][2a][2a][2a][48][69][74][20][2a][20][66][6f][72][20][66][61][75][6c]
!DBG:[74][73][6e][00][00][00][f7][00][00][10][00][08][00][1c][28][02][00][00][20][44][49]
!DBG:[53][41][52][4d][45][44][20][43][48][49][4d][45][20][20][20][52][65][61][64][79][20]
!DBG:[74][6f][20][41][72][6d][20][20][e4][00][00][00][fb][81][5d][fb][18][f7][00][00][4f]
!DBG:[10][08][00][0c][08][02][00][00][2a][2a][2a][2a][44][49][53][41][52][4d][45][44][2a]
!DBG:[2a][2a][2a][48][69][74][20][2a][20][66][6f][72][20][66][61][75][6c][74][73][6e][00]
!DBG:[00][00][f9][c3][02][53][ef][83][f7][00][00][10][00][08][00][1c][28][02][00][00][20]
!DBG:[44][49][53][41][52][4d][45][44][20][43][48][49][4d][45][20][20][20][52][65][61][64]
!DBG:[79][20][74][6f][20][41][72][6d][20][20][e4][00][00][00][f7][00][00][4f][10][08][00]
!DBG:[0c][08][02][00][00][2a][2a][2a][2a][44][49][53][41][52][4d][45][44][2a][2a][2a][2a]


Best
SM
mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Re: pHAT doesn't seem to communicate with ECP bus

Postby kd7mlg » Thu Oct 22, 2020 11:45 pm

mathewss wrote: Send me the order #


1999.

Regarding the test you did, I did verify continuity between all four terminals on the pHAT and the control and all the wiring is confirmed, so if there's something buggered up it's probably on the pHAT.

Thanks for you help.
kd7mlg
Junior Nut
Junior Nut
 
Posts: 20
Joined: Sat Oct 03, 2020 4:40 pm

Re: pHAT doesn't seem to communicate with ECP bus

Postby kd7mlg » Fri Oct 23, 2020 8:46 am

After sleeping on your last comment about the DI line... I just checked, and there is no continuity between the screw terminal and the solder point when the screw terminal is plugged into the header. Have any spares or a part number? That will be an easier/cheaper replacement to rule out other problems.

(If i was more confident with my ability to not completely screw something up, I'd jury rig something as a test...)
kd7mlg
Junior Nut
Junior Nut
 
Posts: 20
Joined: Sat Oct 03, 2020 4:40 pm

Re: pHAT doesn't seem to communicate with ECP bus

Postby mathewss » Fri Oct 23, 2020 9:38 am

Sounds like a bad mechanical part. I will send out a new board you should get it in a few days.

Best
Sean M.
mathewss
Moderator
Moderator
 
Posts: 188
Joined: Fri Dec 06, 2013 11:14 am

Next

Return to General

Who is online

Users browsing this forum: No registered users and 40 guests

cron