# How to test WIP-TCP-Server example using UART

**URL:** <https://forum.sierrawireless.com/t/how-to-test-wip-tcp-server-example-using-uart/3140>\
**Category:** Open AT\
**Created:** [April 20, 2009, 3:21pm UTC](https://forum.sierrawireless.com/t/how-to-test-wip-tcp-server-example-using-uart/3140 "2009-04-20T15:21:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roko](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@Roko](https://forum.sierrawireless.com/u/Roko)\
**Post date:** [April 20, 2009, 3:21pm UTC](https://forum.sierrawireless.com/t/how-to-test-wip-tcp-server-example-using-uart/3140/1 "2009-04-20T15:21:36Z")

</div>

I am trying to test WIP-TCP-Server example using UART (comes with OpenAT) which uses Wiplib.  
What I have done is:

- Defined OVER\_UART\_PPP\_SERV in appli.c, PPP\_USER and PPP\_PASSWORD in cfg\_uart\_server.cfg
- Tried setting the PPP\_BEARER to UART2 and UART1
- Built application (both in release and debug mode) and ran it on Fastrack supreme
- Made connection using winxp (create new network connection-\>…-\>connect directly to another computer), set the ip address in the connection properties to 192.168.1.5  
When i try to connect:  
The moduel sends following messages to serial about 10 times:

```auto
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: startsrv: -> CONNECTING
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: startsrv: -> CONNECTING
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: startsrv: -> CONNECTING
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: startsrv: -> CONNECTING
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: startsrv: -> CONNECTING
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: startsrv: -> CONNECTING
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: open: -> DISCONNECTED
[UART2]: PPP start: -> PPP CONNECTING
[UART2]: startsrv: -> CONNECTING
+WIND: 13
+WIND: 1
+WIND: 7
```

Looks like the application stops running. (AT+WOPEN=7 gives me application not started).  
When I try to connect using my windows connection I get a windows error: Error777: The connection attempt failed because modem on the remote computer is out of order. If I power off/power on the modem and try to dial at the same time sometimes I get to the verifying user name and pass window (but not further).

If I use UART1 i get the

```auto
[UART1]: open: -> DISCONNECTED
[UART1]: PPP start: -> PPP CONNECTING
[UART1]: startsrv: -> CONNECTING
```

messages only once and the module stops reacting to at commands (have to erase the application using the boot cable).

My questions are:

1. What am I doing wrong? 🙂
2. Should I use PPP\_BEARER UART1 or UART2?
3. Should I set the ip address of the windows connection manually like i did?
4. Should I build the example in debug or release mode?

Similiar thread: [viewtopic.php?f=16&t=1393](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=16&t=1393) .

Bearer settings in the example are:

```auto
r = wip_bearerSetOpts( b, WIP_BOPT_IP_ADDR, local,
                         WIP_BOPT_IP_DST_ADDR, dest,
                         WIP_BOPT_IP_SETDNS, FALSE,
                         WIP_BOPT_IP_SETGW, TRUE,
                         WIP_BOPT_RESTART, FALSE,
                         WIP_BOPT_END);
```

Thank you for your help!
