AD2PI, Raspberry Pi 3, Home Assistant

General Discussion

AD2PI, Raspberry Pi 3, Home Assistant

Postby goyney » Fri Apr 28, 2017 7:14 pm

I just got my AD2PI. I have connected to the GPIO pins on the Pi3 and wired it up to my Vista 15P alarm panel. My Pi 3 already is running Jessie with Home Assistant installed on it.

The light on the AD2PI is blinking consistently. When I try to connect to the device to send it commands, communication with the device never starts and locks up the device completely until I reboot the Pi.

I have stopped and disabled getty and rebooted:

Code: Select all
sudo systemctl stop serial-getty@ttyAMA0.service
sudo systemctl disable serial-getty@ttyAMA0.service


When I try to connect to the device with screen, I get a blank screen and it does not respond to any commands, such as C.

Code: Select all
screen /dev/ttyAMA0 115200


At this point, I'm not sure where to go next in terms of troubleshooting.
goyney
newt
newt
 
Posts: 5
Joined: Fri Apr 28, 2017 7:09 pm

Re: AD2PI, Raspberry Pi 3, Home Assistant

Postby kevin » Fri Apr 28, 2017 10:00 pm

Try /dev/serial0

Also make sure it is connected to the proper GPIO ports - the ones closest to the USB/Ethernet are unpopulated.

If that fails, try our image to rule out bad hardware
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: AD2PI, Raspberry Pi 3, Home Assistant

Postby goyney » Sat Apr 29, 2017 4:57 am

I will need to go get another SD card to test your image. Again, I'm trying to implement this into an already established system running Home Assistant.

Also, /dev/serial0 doesn't seem to work.

Code: Select all
screen /dev/serial0 115200
Cannot exec '/dev/serial0': No such file or directory


EDIT: /dev/serial1 exists, but does the same thing as /dev/ttyAMA0

Just to clarify, should I be able to communicate with the device under any circumstance once connected to the Pi? Or, do the connections to the alarm panel also need to be present? Is it possible I have an incorrect/bad wiring between the AD2PI and alarm panel that would cause me to be unable to communicate with the device?

EDIT: Double-checked all wiring connections, it's connected correctly and securely. Still nothing. I cannot download your Raspbian image, it starts to download and never receives any data.
IMG_20170429_115855.jpg
IMG_20170429_115855.jpg (3.29 MiB) Viewed 6901 times
goyney
newt
newt
 
Posts: 5
Joined: Fri Apr 28, 2017 7:09 pm

Re: AD2PI, Raspberry Pi 3, Home Assistant

Postby kevin » Sat Apr 29, 2017 9:30 am

Hi,

Please email ad2usb@support.nutech.com so we can setup a phone conf/remote session if possible - what version of Pi is that? Make sure you are using correct GPIO pins. Yes it needs power from both the raspberry pi as well as the alarm panel. On newer raspbian images, it is no longer /dev/ttyAMA0 but /dev/serial0 but that does not appear to apply to you. Seeing nothing from the serial port is strange for sure - usually when this happens it is a power/data wiring/GPIO problem.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: AD2PI, Raspberry Pi 3, Home Assistant

Postby goyney » Sat Apr 29, 2017 11:28 am

I got the device working. I needed to follow some of the steps from this guide: http://spellfoundry.com/2016/05/29/conf ... ding-pi-3/

Additionally, I might suggest somewhere you define the LED's patterns on the AD2PI board. When you say "heartbeat," that literally translates to "blink blink [pause] blink blink [pause]". Before I got things working, it was simply flashing consistently and I assumed that to be the heartbeat.

Thanks!
goyney
newt
newt
 
Posts: 5
Joined: Fri Apr 28, 2017 7:09 pm

Re: AD2PI, Raspberry Pi 3, Home Assistant

Postby kevin » Sat Apr 29, 2017 4:04 pm

That is actually documented here: https://www.alarmdecoder.com/wiki/index ... edback_LED

You can issue an "E" command to see an error report.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am


Return to General

Who is online

Users browsing this forum: No registered users and 5 guests

cron