Serial with wp7607

Hi all,
I’ve got a mangOH red board with WP7607. I need to receive some serial signals.
As I see here:
2.4.8 Raspberry Pi Rev B-compatible Connector
Uart1 pins are 8,10 (I suppose 8 is TX and 10 RX as the raspberry connector, am I right?)
Does Levels are 5v, 3.3v, 1.8v?
I already use the “IoT connector” for this board
Talon IoT CAN Board wich I supposed use SPI, so I don’t need to route the UART1 to “IoT connector #0”.

I got 3 questions:

  1. How I route UART1 to “raspberry-like” connector?
  2. What is the correspondant /dev/tty* in the Legato framework? (ttyHS0, ttyHSL1, other?)
  3. What is the default baudrate, parity, bytesize and wiring/voltage?

Subsidiary question:

In fact, I will need another serial interface. Does Legato provide a way to do “SoftwareSerial” over free gpio (pins 7,11,13,15)?

Best regards

Hi Naej

Uart1 pins are 8,10.(Pin 8 is TxD; Pin 10 is RxD)

Levels is: 3.3v?

I got 3 questions:

  1. How I route UART1 to “raspberry-like” connector?
    –> You can send AT command: AT!MAPUART=17,1 to set UART1 is Customer Linux application. Now you can see /dev/ttyHS0
  2. What is the correspondant /dev/tty* in the Legato framework? (ttyHS0, ttyHSL1, other?)
    –>/dev/ttyHS0
  3. What is the default baudrate, parity, bytesize and wiring/voltage?
    –> default is 115200 but you can set by yourself
    // Set the baud rates to 9600...
	cfsetispeed(&options, B9600);
	cfsetospeed(&options, B9600);
	// Enable the receiver and set local mode...
	options.c_cflag |= (CLOCAL | CREAD);
	// No parity (8N1):
	options.c_cflag &= ~PARENB;
	options.c_cflag &= ~CSTOPB;
	options.c_cflag &= ~CSIZE;
	options.c_cflag |= CS8;
 	// enable hardware flow control (CNEW_RTCCTS)
	// options.c_cflag |= CRTSCTS;
	// if(hw_handshake)
	// Disable the hardware flow control for use with mangOH RED
	options.c_cflag &= ~CRTSCTS;

You can refer to :
https://github.com/nxthongbk/SpeechRecognizer

Hope it can help you.

1 Like

Hi @Thong,
Thanks it helps me a lot.