PHYTEC Mira Board with i.MX6 Processor
Yocto Image created using the BSP provided by PHYTECSource with minimal packages in it.
The board has an UART board called UART3 and its software interface within the OS is
/dev/ttymxc2 Hardware Manual. The only thing available to check/set serial port on board is
I wish to interface an Adafruit Ultimate GPS to the UART3 to read information from it on the Mira Board.
I connected both components in the following manner.
UART3_RXD_RS232 (MIRA) --> TX pin (GPS) UART3_TXD_RS232 (MIRA) --> RX pin (GPS)
Set the serial port as follows:
stty -F /dev/ttymxc2 speed 9600
Result: Garbage Values. Tried all possible settings and still obtained garbage values. Wrote a simple
node script to try to read the information coming from the port but I got error stating that the characters (garbage values) are not recognized.
Initially I tried to connect the GPS to a simple Arduino Nano to obtain the values from the GPS and this works, confirming that the GPS sends information and no defect occurred.
I connect the Serial Ports of the Mira and the Arduino and try to send information from the Mira to the Arduino's serial interface and read it through serial console.
MIRA_Board (serial UART3) ---> Arduino Nano (Serial Pins) --USBCable--> Computer
UART3_RXD_RS232 (MIRA) --> RX PIN NANO UART3_TXD_RS232 (MIRA) --> TX PIN NANO
I am logged into the Mira board through SSH. The following command is triggered, hoping to expect the same value on the computer's serial console through the Arduino
echo 'hello' > /dev/ttymxc2
The configuration for
/dev/ttymxc2 is as
stty -F /dev/ttymxc2 -a speed 9600 baud;stty: /dev/ttymxc2 line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread clocal –crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke
If this issue is due to serial configuration mismatch, how do I troubleshoot it using
P.S.: Baud rate for GPS should be
9600 which is the case