Hi.
I have a problem initializing and starting a GPRS Bearer.
I work with a Fasttrack Extend EDGE (FXT 009)
I have this Code from a example of Sierra Wireless but it doesn´t work:
#include “adl_global.h”
#include “generated.h”
#include “wip.h”
/* bearer handle */
/* bearer events handler */
wip_bearer_t myBearer;
/* bearer events handler */
void myHandler ( wip_bearer_t br, s8 event, void context )
{
switch( event) {
case WIP_BEV_IP_CONNECTED:
/IP connectivity we can start IP application from here/
TRACE((1,“GPRS connected”));
break;
case WIP_BEV_IP_DISCONNECTED:
/stop IP application/
TRACE((1,“GPRS disconnected”));
break;
/ other events: */
default:
/cannot start bearer: report error to higher levels/
break;
}
}
/* initialize and start GPRS bearer */
bool myConnectToGPRS( void)
{
wip_netInit();
/* open bearer and install our event handler */
if( wip_bearerOpen( &myBearer, "GPRS", myHandler, NULL) != 0) {
/* cannot open bearer */
TRACE((1,"bearer open error"));
return FALSE;
}
/* configure GPRS interface */
if( wip_bearerSetOpts ( myBearer,
WIP_BOPT_GPRS_APN, "internet.eplus.de",
WIP_BOPT_LOGIN, "blau",
WIP_BOPT_PASSWORD, "blau",
WIP_BOPT_END) != 0) {
/* cannot configure bearer */
wip_bearerClose( myBearer);
TRACE((1,"set bearer options error"));
return FALSE;
}
/* start connection */
if(wip_bearerStart(myBearer) != 0) {
/* cannot start bearer */
wip_bearerClose( myBearer);
return FALSE;
}
/* connection status will be reported to the event handler */
return TRUE;
}
void main ( void )
{
myConnectToGPRS();
}
What is the problem?
Do I need some dirvers etc.?
I have a SIM Card of Blue.de with access to the Internet.
-“Developer Studio”,“2.1.0.201108081252-R6801”
-“Open AT Embedded Software Suite package”,“2.36.0.201108300638”
-“Open AT OS Package”,“6.36.0.201108111228”
-“Firmware Package”,“7.46.0.201108091301”
-“WIP Plug-in Package”,“5.42.0.201108100923”
“ROM”,“800000”
“RAM”,“200000”
“DWLNAME”,“FXT009”
Lot of thanks