How to test WIP-TCP-Server example using UART

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:
[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

[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? :slight_smile:
  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 .

Bearer settings in the example are:

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!