dl5di / OpenDV

Open Digital Voice software for Amateur Radio based on Jonathan Naylor's (G4KLX) "ircDDBGateway" and "PCRepeaterController" for D-Star
GNU General Public License v2.0
107 stars 63 forks source link

Issues with TTY with RPI 3 / Debian Jessie DV-Mega #85

Closed majorgearhead closed 8 years ago

majorgearhead commented 8 years ago

I have successfully compiled the DStarRepeater and ircDDBGateway code on my RPI 3 with fresh Raspbian (Debian Jessie) installed. I am running into a bit of a TTY issue. I understand that with the NEW HW ttyAMA0 is being utilized by the Bluetooth modules. Seems like GPIO is assigned ttyS0, which has a getty setup on it. Here is what I did to be able to communicate with my DV-Mega (Disable this getty unit): sudo systemctl stop serial-getty@ttyS0.service sudo systemctl disable serial-getty@ttyS0.service sudo systemctl mask serial-getty@ttyS0.service

This was enough to get it communicating with the board. My issue is this. ircDDBGateway connects to DstarRepeater and also out to the various services. I can issue remote commands and it links, however it will not send RF. I know this is more a dev thread and not a support thread, but has anyone been able to compile this on an RPI Under Debian Jessie and have it work with the DV-MEGA?

majorgearhead commented 8 years ago

Looks like things work when I disable all of bluetooth and use the ttyAMA0 as normal. Testing clean right now to make sure of this.

johnhays commented 8 years ago

That is correct ... bluetooth must be disabled to use the GPIO serial port.

On Thu, Mar 24, 2016 at 9:17 AM, majorgearhead notifications@github.com wrote:

Looks like things work when I disable all of bluetooth and use the ttyAMA0 as normal. Testing clean right now to make sure of this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/dl5di/OpenDV/issues/85#issuecomment-200907206


John D. Hays K7VE

PO Box 1223, Edmonds, WA 98020-1223 http://k7ve.org/blog http://twitter.com/#!/john_hays http://www.facebook.com/john.d.hays

majorgearhead commented 8 years ago

Thanks for the confirmation. In case anyone else is interested, here is how I disabled it:

sudo systemctl stop bluetooth
sudo systemctl stop hciuart
sudo systemctl disable bluetooth
sudo systemctl disable hciuart

Then I added the following to /boot/config.txt

dtoverlay=pi3-disable-bt

Then I removed the console=serial0,115000 line from /boot/cmdline.txt

Everything works great.