UART /dev/ttymxc0 on connectcore6

Hello,

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

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

115200

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

  1. Now send data to the port
    #echo “text” > /dev/ttymxc0

You should receive “text” at your PC side.

Thanks.

1 Like