how to access hardware serial port on Raspberry Pi3, Ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
1
down vote

favorite












I have a Raspberry Pi3 running Ubuntu 16.04. I am logged in via ssh.



I want to connect a hardware device to UART0 at GPIO pins 8 and 10. As best I can figure this should correspond to /dev/ttyAMA0. But I try this shell command and the terminal hangs, the command never returns and even control-C does not work.



echo "testing 123" > /dev/ttyAMA0


It is not a simple permission problem. I'm in the dailout group. Here is what "ls" says



crw-rw---- 1 root dialout 204, 64 Jun 1 16:26 /dev/ttyAMA0


Here is the lines from dmesg | grep ttyAMA



[ 0.833340] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2






share|improve this question















  • 1




    Open the device with screen like screen /dev/ttyACM0 <baud rate>. Personally I use byobu-screen, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, but screen is easiest.
    – Sergiy Kolodyazhnyy
    Jun 2 at 1:58














up vote
1
down vote

favorite












I have a Raspberry Pi3 running Ubuntu 16.04. I am logged in via ssh.



I want to connect a hardware device to UART0 at GPIO pins 8 and 10. As best I can figure this should correspond to /dev/ttyAMA0. But I try this shell command and the terminal hangs, the command never returns and even control-C does not work.



echo "testing 123" > /dev/ttyAMA0


It is not a simple permission problem. I'm in the dailout group. Here is what "ls" says



crw-rw---- 1 root dialout 204, 64 Jun 1 16:26 /dev/ttyAMA0


Here is the lines from dmesg | grep ttyAMA



[ 0.833340] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2






share|improve this question















  • 1




    Open the device with screen like screen /dev/ttyACM0 <baud rate>. Personally I use byobu-screen, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, but screen is easiest.
    – Sergiy Kolodyazhnyy
    Jun 2 at 1:58












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a Raspberry Pi3 running Ubuntu 16.04. I am logged in via ssh.



I want to connect a hardware device to UART0 at GPIO pins 8 and 10. As best I can figure this should correspond to /dev/ttyAMA0. But I try this shell command and the terminal hangs, the command never returns and even control-C does not work.



echo "testing 123" > /dev/ttyAMA0


It is not a simple permission problem. I'm in the dailout group. Here is what "ls" says



crw-rw---- 1 root dialout 204, 64 Jun 1 16:26 /dev/ttyAMA0


Here is the lines from dmesg | grep ttyAMA



[ 0.833340] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2






share|improve this question











I have a Raspberry Pi3 running Ubuntu 16.04. I am logged in via ssh.



I want to connect a hardware device to UART0 at GPIO pins 8 and 10. As best I can figure this should correspond to /dev/ttyAMA0. But I try this shell command and the terminal hangs, the command never returns and even control-C does not work.



echo "testing 123" > /dev/ttyAMA0


It is not a simple permission problem. I'm in the dailout group. Here is what "ls" says



crw-rw---- 1 root dialout 204, 64 Jun 1 16:26 /dev/ttyAMA0


Here is the lines from dmesg | grep ttyAMA



[ 0.833340] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2








share|improve this question










share|improve this question




share|improve this question









asked Jun 2 at 0:14









user3150208

1061




1061







  • 1




    Open the device with screen like screen /dev/ttyACM0 <baud rate>. Personally I use byobu-screen, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, but screen is easiest.
    – Sergiy Kolodyazhnyy
    Jun 2 at 1:58












  • 1




    Open the device with screen like screen /dev/ttyACM0 <baud rate>. Personally I use byobu-screen, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, but screen is easiest.
    – Sergiy Kolodyazhnyy
    Jun 2 at 1:58







1




1




Open the device with screen like screen /dev/ttyACM0 <baud rate>. Personally I use byobu-screen, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, but screen is easiest.
– Sergiy Kolodyazhnyy
Jun 2 at 1:58




Open the device with screen like screen /dev/ttyACM0 <baud rate>. Personally I use byobu-screen, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, but screen is easiest.
– Sergiy Kolodyazhnyy
Jun 2 at 1:58















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1042796%2fhow-to-access-hardware-serial-port-on-raspberry-pi3-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1042796%2fhow-to-access-hardware-serial-port-on-raspberry-pi3-ubuntu-16-04%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491