Hi everyone,
I’m trying to have a ppp server on the uart2 of a q2686.
I use this code to initialize the server and some handler after (not shown here)
sReturn = wip_bearerOpen( &pppWipBearer, "UART2", ppp_BearerHandler, NULL); // return 0 ok
wip_inet_aton( "10.0.0.1", &pppLocalIP);
wip_inet_aton( "10.0.0.2", &pppDestIP);
sReturn = wip_bearerSetOpts( pppWipBearer,
WIP_BOPT_IP_ADDR, pppLocalIP, /* Local PPP server IP*/
WIP_BOPT_IP_DST_ADDR, pppDestIP, /* Dest PPP client IP */
WIP_BOPT_IP_SETDNS, FALSE, /* Don't set dns parameters after connection */
WIP_BOPT_IP_SETGW, FALSE, /* Don't set PPP as default gateway */
WIP_BOPT_RESTART, TRUE, /* Restart server after connection closed */
WIP_BOPT_END);
// returns 0 ok
sReturn = wip_bearerStartServer( pppWipBearer, ppp_bearerServerHandler, NULL); // returns 0 ok
I put breakpoints in the different handler but nothing occur when I’m trying to connect using windows.
Here is the log :
05-30-2007 10:43:21.296 - File: C:\WINDOWS\system32\tapisrv.dll, Version 5.1.2600
05-30-2007 10:43:21.296 - File: C:\WINDOWS\system32\unimdm.tsp, Version 5.1.2600
05-30-2007 10:43:21.296 - File: C:\WINDOWS\system32\unimdmat.dll, Version 5.1.2600
05-30-2007 10:43:21.296 - File: C:\WINDOWS\system32\uniplat.dll, Version 5.1.2600
05-30-2007 10:43:21.296 - File: C:\WINDOWS\system32\drivers\modem.sys, Version 5.1.2600
05-30-2007 10:43:21.296 - File: C:\WINDOWS\system32\modemui.dll, Version 5.1.2600
05-30-2007 10:43:21.296 - File: C:\WINDOWS\system32\mdminst.dll, Version 5.1.2600
05-30-2007 10:43:21.296 - Modem type: Standard 56000 bps Modem
05-30-2007 10:43:21.296 - Modem inf path: mdmgen.inf
05-30-2007 10:43:21.296 - Modem inf section: Gen556F
05-30-2007 10:43:21.296 - Matching hardware ID: moto1_gen
05-30-2007 10:43:21.984 - 115200,8,N,1, ctsfl=1, rtsctl=2
05-30-2007 10:43:21.984 - Initializing modem.
05-30-2007 10:43:21.984 - DSR is low while initializing the modem. Verify modem is turned on.
05-30-2007 10:43:21.984 - CTS is low while initializing modem.
05-30-2007 10:43:22.000 - Send: AT<cr>
05-30-2007 10:43:24.000 - Timed out waiting for response from modem
05-30-2007 10:43:24.000 - The modem failed to respond to the initialization command, Retrying one more time
05-30-2007 10:43:24.000 - 115200,8,N,1, ctsfl=0, rtsctl=1
05-30-2007 10:43:24.000 - CD is high while initializing modem.
05-30-2007 10:43:24.015 - Send: AT<cr>
05-30-2007 10:43:26.015 - Timed out waiting for response from modem
05-30-2007 10:43:26.015 - The modem failed to respond to the initialization command, Retrying one more time
05-30-2007 10:43:26.015 - 115200,8,N,1, ctsfl=0, rtsctl=1
05-30-2007 10:43:26.015 - CD is high while initializing modem.
05-30-2007 10:43:26.031 - Send: AT<cr>
05-30-2007 10:43:28.031 - Timed out waiting for response from modem
05-30-2007 10:43:28.031 - Session Statistics:
05-30-2007 10:43:28.031 - Reads : 0 bytes
05-30-2007 10:43:28.031 - Writes: 0 bytes
When the code is not running, I can send at commands on uart 2 with this paramaters : 115200 bps 8n1.
I’m using OpenAT 4.12. Someone have an idea ?
Thanks in advance
Best regards,
gdt
[/code]