Failed to open device /dev/ttyAMA0/: Not a directory

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
jabeard3
Posts: 4
Joined: 12 Aug 2019 23:32

Failed to open device /dev/ttyAMA0/: Not a directory

Post by jabeard3 » 12 Aug 2019 23:49

New install on a new Pi with Razberry 2 daughter board. Installed zway and I can access the web interface but the z-wave controller/board doesn't seem to be connecting to the /dev/ttyAMA0 port.
The port does exist
root@raspberrypi:/var/log# ls -l /dev/ttyAMA0
crw-rw---- 1 root dialout 204, 64 Aug 12 15:47 /dev/ttyAMA0
root@raspberrypi:/var/log#
The z-way server is running
root@raspberrypi:/var/log# ps -ef | grep z-w
root 534 416 0 15:48 ? 00:00:00 ssh -i /tmp/zbw_connect.priv -T -o StrictHostKeyChecking no -o UserKnownHostsFile /dev/null -o BatchMode yes -o SendEnv ZBW_* -o ExitOnForwardFailure yes -o ServerAliveInterval 30 -o ServerAliveCountMax 3 -R 0.0.0.0:10000:127.0.0.1:8083 remote@find.z-wave.me
root 1224 1 3 16:11 ? 00:01:17 z-way-server
root 1278 841 2 16:44 pts/0 00:00:00 grep z-w
root@raspberrypi:/var/log#

I do see that something else is connected to that port
root@raspberrypi:~# lsof | grep AMA
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
hciattach 387 root 3u CHR 204,64 0t0 6065 /dev/ttyAMA0
root@raspberrypi:~#

I googled hciattach and it looks to be related to bluetooth. Any assistance is appreciated.
Jason

User avatar
PoltoS
Posts: 5054
Joined: 26 Jan 2011 19:36

Re: Failed to open device /dev/ttyAMA0/: Not a directory

Post by PoltoS » 13 Aug 2019 05:42

How have you installed Z-Way? Which Pi h/w and which Raspbian?

jabeard3
Posts: 4
Joined: 12 Aug 2019 23:32

Re: Failed to open device /dev/ttyAMA0/: Not a directory

Post by jabeard3 » 13 Aug 2019 18:36

Raspian Buster, looking at the forums I'm assuming that's the issue? Need to re-install with Jessie?
Pi is Zero-W
Installed with wget -q -O - https://storage.z-wave.me/RaspbianInstall

User avatar
PoltoS
Posts: 5054
Joined: 26 Jan 2011 19:36

Re: Failed to open device /dev/ttyAMA0/: Not a directory

Post by PoltoS » 14 Aug 2019 04:21

Please use Stretch

jabeard3
Posts: 4
Joined: 12 Aug 2019 23:32

Re: Failed to open device /dev/ttyAMA0/: Not a directory

Post by jabeard3 » 14 Aug 2019 20:33

Re-installed the OS (Stretch) and after disabling bluetooth everything is working fine. Thank you.

Post Reply