Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I would like to send an ACII string over a com port using the linux terminal. How can I do that.

I am using Kubuntu 12.04

I am brand new to linux and serial communication. I just got an arduino. I got it up and running using the arduino serial manager. But I would like to use linux terminal instead so I will have more flexibility.

My arduino is /dev/ttyACM0

Thank you for help.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

GNU Screen or something like that would do the job.

sudo apt-get update
sudo apt-get install screen

Then to connect to the board,

screen /dev/ttyACM0

You might have to change the baud rate, check the specs on the Arduino and read the screen manual to work out how to do that.

share|improve this answer

If your interested in making Linux 'talk' to your Arduino as in.. A Linux program does something and then tells the arduino to do something (or vice versa).

Then you may want to look into pySerial (a part of the Python scripting environment).

Need a working example? I made some code for DIY CNC machines.

You can find it here if you'd like to see it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.