LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2016, 07:51 PM   #1
lionelflores
LQ Newbie
 
Registered: Nov 2014
Posts: 11

Rep: Reputation: Disabled
not able to send incomingBytes to my Arduino Mega 2560 from my terminal [antegros linux 64 bit]


Hi,

I'm running antegros linux on my desktop computer and am working on my arduino mega 2560 board through the serial port.

I have my arduino board programmed to where start a sequence when it recieves the incomingByte 'r'. when I send the 'r' via "serial monitor" tool on the arduino IDE program it works fine.

If I run the following command through my terminal nothing happens.

echo r > /dev/ttyACM0

But when I run

sudo echo r > /dev/ttyACM0

it works only the first time (even after I reset my arduino). I have to restart the computer for the command to work again.

I'm stuck I need to fix it to where it works with out the sudo for a script.
 
Old 11-18-2016, 01:18 PM   #2
dab1414
Member
 
Registered: May 2011
Location: OK, USA
Distribution: Slackware 14.1_64
Posts: 70

Rep: Reputation: 50
Quote:
Originally Posted by lionelflores View Post
I'm stuck I need to fix it to where it works with out the sudo for a script.
You probably need to add your user to group dialout
Code:
sudo usermod -a -G dialout MY_USER_NAME
Quote:
it works only the first time (even after I reset my arduino). I have to restart the computer for the command to work again.
Probably just have to reset your serial port, check this out
http://www.question-defense.com/2009...ys0-ttyam0-etc
 
1 members found this post helpful.
Old 11-18-2016, 10:20 PM   #3
lionelflores
LQ Newbie
 
Registered: Nov 2014
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dab1414 View Post
You probably need to add your user to group dialout
Code:
sudo usermod -a -G dialout MY_USER_NAME

Probably just have to reset your serial port, check this out
http://www.question-defense.com/2009...ys0-ttyam0-etc


I tried this but got the message

"usermod: group 'dialout' does not exist"

Here are the groups I am part of: sys tty lp wheel uucp lock scanner users
 
Old 11-19-2016, 08:08 AM   #4
dab1414
Member
 
Registered: May 2011
Location: OK, USA
Distribution: Slackware 14.1_64
Posts: 70

Rep: Reputation: 50
Quote:
Originally Posted by lionelflores View Post
"usermod: group 'dialout' does not exist"
Sorry about that, I guess its been awhile since I used the serial port. But a little digging later and looks like it is probably uucp group. So not sure why its not working but here is some links with info that might help you troubleshoot this.
http://tldp.org/HOWTO/Serial-HOWTO.html
http://www.oreilly.com/openbook/linag2/book/ch04.html
https://www.cyberciti.biz/faq/find-o...ith-setserial/
https://wiki.archlinux.org/index.php...serial_console
 
  


Reply

Tags
arch, arch linux, arduino


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
1334.55 mega bit download on Linux jimmieveges Linux - Software 2 06-23-2016 09:21 PM
LXer: New Arduino Srl SBC merges Arduino, WiFi, and Linux LXer Syndicated Linux News 0 05-17-2016 02:04 AM
LXer: Meet Arduino Tian, a 32-bit ARM IoT SBC That Runs an OpenWrt-Based Linux OS LXer Syndicated Linux News 0 01-11-2016 06:01 PM
[SOLVED] Arduino MEGA 2560 REV3, Arduino IDE working software versions jamesf Slackware 1 05-02-2012 01:56 AM
Slack 11 has found me a mega bit !! bgeddy Slackware 4 10-18-2006 11:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration