how to access hardware serial port on Raspberry Pi3, Ubuntu 16.04
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
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
hardware raspberrypi serial-port
add a comment |Â
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
hardware raspberrypi serial-port
1
Open the device withscreen
likescreen /dev/ttyACM0 <baud rate>
. Personally I usebyobu-screen
, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, butscreen
is easiest.
â Sergiy Kolodyazhnyy
Jun 2 at 1:58
add a comment |Â
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
hardware raspberrypi serial-port
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
hardware raspberrypi serial-port
asked Jun 2 at 0:14
user3150208
1061
1061
1
Open the device withscreen
likescreen /dev/ttyACM0 <baud rate>
. Personally I usebyobu-screen
, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, butscreen
is easiest.
â Sergiy Kolodyazhnyy
Jun 2 at 1:58
add a comment |Â
1
Open the device withscreen
likescreen /dev/ttyACM0 <baud rate>
. Personally I usebyobu-screen
, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, butscreen
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Open the device with
screen
likescreen /dev/ttyACM0 <baud rate>
. Personally I usebyobu-screen
, it might be easier, it opens session window automatically. Then try typing and press enter. There's other ways, too, butscreen
is easiest.â Sergiy Kolodyazhnyy
Jun 2 at 1:58