D
D
Da3z1e2017-07-10 13:41:38
Arduino
Da3z1e, 2017-07-10 13:41:38

Can you recommend a script to send data to a port?

It is necessary that the script, under a certain condition, send a word or just a symbol to the port, and Arduino receives this data from the port side and, in turn, after receiving it, also performs its operation. It is desirable not to take data for sending from a file, but directly by a command. What exactly does a command look like in Bash that sends any data to the USB0 COM port?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Armenian Radio, 2017-07-10
@gbg

sudo echo "blablabla" > /dev/ttyUSB0

M
manefesto, 2017-07-10
@manefesto

look towards minicom, something like this https://stackoverflow.com/questions/24610085/minic...

V
vanyamba-electronics, 2017-07-11
@vanyamba-electronics

Perhaps the article Arduino Host Client in C (Linux) will not be useless .

I
Ilya, 2017-07-22
@mirspo

I use Python and don't worry:
import serial
arduino = serial.Serial('/dev/ttyUSB1', 115200, timeout=.1)
arduino.writelines("Hello")
print arduino.readline()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question