# UARTs with ConnectCore Wi9P9215

**URL:** <https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959>\
**Category:** NET+OS\
**Tags:** connectcore9p\
**Created:** [April 27, 2012, 3:08pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959 "2012-04-27T15:08:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [April 27, 2012, 3:08pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/1 "2012-04-27T15:08:34Z")

</div>

Hello,  
I work with the ConnectCore Wi9p9215. It has 4 UARTs. So I have implemented 3 DB9 in RS232 (serial A, B, C) and 1 TTL link (serial D). I have configured 4 UARTS in 2 wires with the NET+OS software.  
Only one DB9 works (serial B) !?  
I don’t know why other link doesn’t work. I know that all TTL signals go to the module but it doesn’t read datas.  
Have you got an idea ?

Best regards,  
AC

---

<div class="post-metadata">

**Author:** ![kjensen8](https://avatars.discourse-cdn.com/v4/letter/k/8e8cbc/32.png) [@kjensen8](https://forums.digi.com/u/kjensen8)\
**Post date:** [April 27, 2012, 3:33pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/2 "2012-04-27T15:33:56Z")

</div>

AC,  
I’m assuming you’ve got the wi9p on your custom board instead of the digi prototype board. In order to know if the problem is hardware or software you might want to try it on the digi board first and make sure it’s working. that way you’ll know at least NETOS is setup correctly.

Have you seen the wi9p hardware guide:  
[http://ftp1.digi.com/support/documentation/90000879\_P.pdf](http://ftp1.digi.com/support/documentation/90000879_P.pdf)  
?

keith

---

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [April 30, 2012, 12:59pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/3 "2012-04-30T12:59:23Z")

</div>

With the prototype board, only UART B and D (in RS232) works. UARTs A and C (in TTL) don’t work. I have read the hardware guide but it doesn’t help me.

Thx

---

<div class="post-metadata">

**Author:** ![mcarver](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@mcarver](https://forums.digi.com/u/mcarver)\
**Post date:** [April 30, 2012, 3:04pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/4 "2012-04-30T15:04:09Z")

</div>

You probably need to enable the two ports. Right click on your project, go to Properties, then find the configuration section for the serial ports.

---

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [May 1, 2012, 9:22am UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/5 "2012-05-01T09:22:51Z")

</div>

I enable the 4 ports in UART 2 wires. I checked all connections. I think there is no hardware problem. But i don’t find…

---

<div class="post-metadata">

**Author:** ![rdeabill](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rdeabill](https://forums.digi.com/u/rdeabill)\
**Post date:** [May 1, 2012, 10:46am UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/6 "2012-05-01T10:46:36Z")

</div>

Hi,

When you say you have enabled the Serial ports have you done this in both bsp\_serial.h, AND in gpio.h.

You can do this in the Properties dialog but it is also woth checking the actual files to make sure it is correct.

I am not totally sure but I believe that the settings for the multiplexed I/O signals in gpio.h actually get set in the bootloader code, rather than the standard application, so you may find that you need to dowload an updated version of the bootloader as well as the application.

I am using the non wifi version of 9P9125 and I have all four serial ports operating, and have even got a fifth port operating on the IOP, so it will work.

Regards  
Roy

---

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [May 1, 2012, 10:56am UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/7 "2012-05-01T10:56:04Z")

</div>

Hi Roy,  
Thank you for your help. I have only enabled the serial ports with the properties dialog. So I will see this tomorrow (1st May is unworked in France)

---

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [May 4, 2012, 3:03pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/8 "2012-05-04T15:03:17Z")

</div>

Hi Roy,  
I believe too that the settings for the multiplexed I/O signals in gpio.h actually get set in the bootloader code, rather than the standard application. But where can I change this and how ?

Best regards

---

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [May 2, 2012, 4:38pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/9 "2012-05-02T16:38:26Z")

</div>

Hi,  
Today, 2 ports work (serial B and D). I set for these ports 2 wires alternate path and use internal only for gpio.h.  
But ports A and C don’t work. I use 2 wires UART. I try some choices with gpio. h (use internal only, alternate path, …) I dont know why…

---

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [May 3, 2012, 8:48am UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/10 "2012-05-03T08:48:10Z")

</div>

Hi,  
Only ports B and D work.  
I am aware that ports A and C are TTL levels. So I use the same converter that ports B and D to use RS232 (because RS232 devices are connected).  
In gpio.h, I have defined all ports like this :  
#define BSP\_GPIO\_MUX\_SERIAL\_A BSP\_GPIO\_MUX\_SERIAL\_2\_WIRE\_UART

#define BSP\_GPIO\_MUX\_SERIAL\_B BSP\_GPIO\_MUX\_SERIAL\_2\_WIRE\_UART\_USE\_ALTERNATE\_PATH

#define BSP\_GPIO\_MUX\_SERIAL\_C BSP\_GPIO\_MUX\_SERIAL\_2\_WIRE\_UART

#define BSP\_GPIO\_MUX\_SERIAL\_D BSP\_GPIO\_MUX\_SERIAL\_2\_WIRE\_UART\_USE\_ALTERNATE\_PATH

Ports B and D work. Ports A and C are defined but they don’t work.  
With a scope, I can see that 0-3,3V signals go to RXA and RXD but the soft can’t read datas…

Regards

---

<div class="post-metadata">

**Author:** ![rdeabill](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@rdeabill](https://forums.digi.com/u/rdeabill)\
**Post date:** [May 8, 2012, 7:58am UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/11 "2012-05-08T07:58:14Z")

</div>

HI,

You need to build you project in “Release” mode.  
Goto Project/Properties. Select C/C++ Build then manage Configurations, Highlight Release and click Set Active

Once you have done the above you need to do a full rebuild. This will generate a Release folder that will contain “rom.bin”. If you download this it wil update the bootloader.

Regards  
Roy

---

<div class="post-metadata">

**Author:** ![cavard](https://avatars.discourse-cdn.com/v4/letter/c/c57346/32.png) [@cavard](https://forums.digi.com/u/cavard)\
**Post date:** [May 9, 2012, 2:07pm UTC](https://forums.digi.com/t/uarts-with-connectcore-wi9p9215/4959/12 "2012-05-09T14:07:09Z")

</div>

Thank you very much Roy.  
It works fine.

Best regards
