Home/Support/Support Forum/UART /dev/ttymxc0 on connectcore6
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

UART /dev/ttymxc0 on connectcore6

0 votes

I try to use the UART port 1 /dev/ttymxc0 on ConnectCore6. I am not sure that I have configure it well.
I am using the default configuration for this UART under linux Yocto 1.6.2. When I type "echo 'test' > /dev/ttymxc0 " in CC6 something happend and I receive something on my PC, but not what i am sending. I guess the problem comes from stty and setserial parameters.

Can someone explain me brieffly how to set this UART up to perform a serial-communication? Do i have to recompile something?

Thank you very much
asked Apr 14, 2016 in Linux by Tristan New to the Community (4 points)

Please log in or register to answer this question.

1 Answer

+1 vote
Hello Tristan,

It seems like baud rate problem.
Set the baud rate and test as shown below.

1.set baud rate
# stty -F /dev/ttymxc0 115200

2.read baud rate
# stty -F /dev/ttymxc0 speed

3.Open the serial console at PC side with the below settings
Baud Rate: 115200
Data Bits: 8
Parity: None
Stop Bits: One

4. Now send data to the port
#echo "text" > /dev/ttymxc0

You should receive "text" at your PC side.

answered Apr 15, 2016 by cpigilam Veteran of the Digi Community (655 points)