# PPP over UART1

**URL:** <https://forum.sierrawireless.com/t/ppp-over-uart1/6419>\
**Category:** Open AT\
**Created:** [July 4, 2013, 11:39pm UTC](https://forum.sierrawireless.com/t/ppp-over-uart1/6419 "2013-07-04T23:39:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![keithnicholas](https://avatars.discourse-cdn.com/v4/letter/k/db5fbb/32.png) [@keithnicholas](https://forum.sierrawireless.com/u/keithnicholas)\
**Post date:** [July 4, 2013, 11:39pm UTC](https://forum.sierrawireless.com/t/ppp-over-uart1/6419/1 "2013-07-04T23:39:20Z")

</div>

I’m trying to establish a PPP connection over UART1

```auto
r = wip_netInitOpts( 
						  WIP_NET_OPT_BUF_MAX, 1500,
						  WIP_NET_OPT_IP_FORWARD, TRUE,
						  WIP_NET_OPT_IP_NAT_TO_TCP, 600,
						  WIP_NET_OPT_IP_ROUTE_MAX, 20,
						  WIP_NET_OPT_SOCK_MAX, 16,
						  WIP_NET_OPT_IP_NAT_DUMPTABLE, TRUE,
						  WIP_NET_OPT_END)) != 0 )   

...

r = wip_bearerOpen( &g_GPRSBearer, "UART1", evh_bearer, NULL);

...

r = wip_bearerSetOpts( g_GPRSBearer, 
					WIP_BOPT_DIAL_MSNULLMODEM, TRUE,					
					WIP_BOPT_END); // tried playing with turning this option on and off...
...

r = wip_bearerStart( g_GPRSBearer);
```

This doesn’t seem to work, When I monitor the port nothing is coming out the port, According to the docs, the modem should send an LCP packet out the UART to initiate the PPP connection. But its not happening. It will come back with WIP\_BERR\_PPP\_LCP\_FAILED

Before trying to establish the connection I set the port to AT+WMFM=0,0,1 to stop it being used as a terminal port and then use it to configure the external modem. I then close that serial port. However I’m not sure this is the right state or not for the PPP connection to be established, and there doesn’t seem to be any documentation that talks about what state it should be in.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Rex\_alex](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rex\_alex](https://forum.sierrawireless.com/u/Rex_alex)\
**Post date:** [July 10, 2013, 9:56am UTC](https://forum.sierrawireless.com/t/ppp-over-uart1/6419/2 "2013-07-10T09:56:46Z")

</div>

Hi,

Use the SDK sample (say tcp server). Configure the application for using PPP over UART1.  
Execute the application on UART2.  
Then create a new Dial-up onnection with configuration “Coomunication cable between 2 computers” using UART1.

Give the user name and password which are already defined in the application. And connect.

It should work.

Thanks
