[Solved] ad2pi with ser2sock problem
Posted: Thu Feb 06, 2014 10:40 am
Hi,
I manually made the changes to cmdline.txt and inittab to open up the gpio on my Pi.
I have compiled ser2sock, but when I start it with:
sudo /home/pi/ser2sock/ser2sock-master/ser2sock -p 1000 -s /dev/ttAMA0
I get this:
[✔] Serial 2 Socket Relay version V1.4.4 starting
[✔] Listening socket created on port 1000
[✔] Seting thread priority to HIGH
[✔] Start wait loop
[✘] Error can not open com port at /dev/ttAMA0
[✘] Error can not open com port at /dev/ttAMA0
One other thing, I haven't wired my ad2pi into the panel yet, was hoping to get this part working before I did that...hope that isn't the issue.
Any suggestions would be appreciated. I know my way around linux, but certainly no ninja with respect to trouble shooting the ports via the log files, etc.
thanks,
craig
ps. here is last line from inittab:
#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
and cmdline.txt
cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
I manually made the changes to cmdline.txt and inittab to open up the gpio on my Pi.
I have compiled ser2sock, but when I start it with:
sudo /home/pi/ser2sock/ser2sock-master/ser2sock -p 1000 -s /dev/ttAMA0
I get this:
[✔] Serial 2 Socket Relay version V1.4.4 starting
[✔] Listening socket created on port 1000
[✔] Seting thread priority to HIGH
[✔] Start wait loop
[✘] Error can not open com port at /dev/ttAMA0
[✘] Error can not open com port at /dev/ttAMA0
One other thing, I haven't wired my ad2pi into the panel yet, was hoping to get this part working before I did that...hope that isn't the issue.
Any suggestions would be appreciated. I know my way around linux, but certainly no ninja with respect to trouble shooting the ports via the log files, etc.
thanks,
craig
ps. here is last line from inittab:
#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
and cmdline.txt
cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait