# Serial with wp7607

**URL:** <https://mangoh.discourse.group/t/serial-with-wp7607/2562>\
**Category:** mangOH Red\
**Created:** [April 17, 2019, 12:34pm UTC](https://mangoh.discourse.group/t/serial-with-wp7607/2562 "2019-04-17T12:34:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naej](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@Naej](https://mangoh.discourse.group/u/Naej)\
**Post date:** [April 17, 2019, 12:34pm UTC](https://mangoh.discourse.group/t/serial-with-wp7607/2562/1 "2019-04-17T12:34:59Z")

</div>

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](http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Reference%20Manual/mangOH%20Red%20Developers%20Guide/#t=41110401_mangOH_Dev_Guide_-_HTML5%2F41110401_Architecture%2F41110401_Architecture.htm%23TOC_2_4_8_Raspberry_Pi_Rev_Bbc-13&rhtocid=_1_3_7)  
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](https://mangoh.io/uploaded-documents/Buy/IoT%20Cards/CAN%20IoT%20Card/Talon-mangOH-CAN-Bus-Module-Brief-2018.pdf) 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

---

<div class="post-metadata">

**Author:** ![Thong](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/thong/32/1017_2.png) [@Thong](https://mangoh.discourse.group/u/Thong)\
**Post date:** [April 25, 2019, 7:51am UTC](https://mangoh.discourse.group/t/serial-with-wp7607/2562/2 "2019-04-25T07:51:33Z")

</div>

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

```auto
    // 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](https://github.com/nxthongbk/SpeechRecognizer)

Hope it can help you.

---

<div class="post-metadata">

**Author:** ![Naej](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@Naej](https://mangoh.discourse.group/u/Naej)\
**Post date:** [April 25, 2019, 8:52am UTC](https://mangoh.discourse.group/t/serial-with-wp7607/2562/3 "2019-04-25T08:52:50Z")

</div>

Hi @Thong,  
Thanks it helps me a lot.
