Click here to Skip to main content
15,917,709 members
Home / Discussions / Mobile
   

Mobile

 
GeneralStartMenu Pin
AKSIVAKUMAR21-Apr-03 19:30
AKSIVAKUMAR21-Apr-03 19:30 
GeneralRe: StartMenu Pin
João Paulo Figueira22-Apr-03 0:51
professionalJoão Paulo Figueira22-Apr-03 0:51 
GeneralRe: StartMenu Pin
AKSIVAKUMAR22-Apr-03 17:49
AKSIVAKUMAR22-Apr-03 17:49 
GeneralRe: StartMenu Pin
João Paulo Figueira22-Apr-03 22:34
professionalJoão Paulo Figueira22-Apr-03 22:34 
GeneralRe: StartMenu Pin
AKSIVAKUMAR22-Apr-03 22:36
AKSIVAKUMAR22-Apr-03 22:36 
GeneralRe: StartMenu Pin
João Paulo Figueira22-Apr-03 22:43
professionalJoão Paulo Figueira22-Apr-03 22:43 
GeneralWaitKey Pin
AKSIVAKUMAR21-Apr-03 19:24
AKSIVAKUMAR21-Apr-03 19:24 
Questionhow to connect to GPRS and send data? Pin
R.Rajesh20-Apr-03 23:33
R.Rajesh20-Apr-03 23:33 
hi all,
i am writing an application which needs to connect to the gprs network and send data(through web service).

i have written the application in evc++, using AT commands ,i am able to initlialize ,attach gprs and dial(ATD*99***1#) and i get "CONNECT" as response.
but after this stage how do i browse the internet or call my web service??

function which connects and attaches GPRS

function code,
void CTestGPRSCommandsDlg::OnModemOn()
{
BOOL bHangup = FALSE;
CString strInit;
CString res;
//to hang up any ongoing calls
while(!bHangup)
{

strInit = "+++";
Sleep(1000);
port.Send(strInit);
strInit = "ATH0\r";
Sleep(1000);

res=OnSendAndWait(strInit);
if(res=="OK")
{
bHangup=TRUE;
}

}

strInit = "AT+CGATT=1\r"; //GPRS
res=OnSendAndWait(strInit);
AfxMessageBox(res);
if(res!="OK")
{
AfxMessageBox(_T("GPRS Not Attached"));
return ;
}
else
{
AfxMessageBox(_T("yahooooo GPRS Attached"));

}


strInit = "AT+CGDCONT=1,IP";
res=OnSendAndWait(strInit);
//AfxMessageBox(_T("AT+CGDCONT=1 Response = ") +res);
if(res!="OK")
{
AfxMessageBox(_T("Modem Not Initialized"));
return;

}

strInit = "AT+CGDCONT=2,IP,\"airtelgprs.com\" ,0.0.0.0";
res=OnSendAndWait(strInit);
//AfxMessageBox(_T("AT+CGDCONT=2 Response = ") + res);
if(res!="OK")
{
AfxMessageBox(_T("Modem Not Initialized"));
return;

}
strInit = "ATD*99***1#";
res=OnSendAndWait(strInit);
//AfxMessageBox(_T("ATD*99***1 Response = ") +res);
if(res!="CONNECT")
{
AfxMessageBox(_T("Modem Not Initialized"));
return;
}

AfxMessageBox(_T("Connected"));



}


my platform:

EVC++ 3.0
pocketpc 2002

Device : intermec 760
with inbuilt GPRS modem.


AnswerRe: how to connect to GPRS and send data? Pin
João Paulo Figueira21-Apr-03 13:04
professionalJoão Paulo Figueira21-Apr-03 13:04 
Generalemulating propertysheet Pin
mengi18-Apr-03 1:27
mengi18-Apr-03 1:27 
GeneralRe: emulating propertysheet Pin
João Paulo Figueira19-Apr-03 6:58
professionalJoão Paulo Figueira19-Apr-03 6:58 
GeneralProblem with SELECT DISTINCT Queries Pin
Mahesh Varma17-Apr-03 23:46
Mahesh Varma17-Apr-03 23:46 
GeneralRe: Problem with SELECT DISTINCT Queries Pin
João Paulo Figueira19-Apr-03 1:31
professionalJoão Paulo Figueira19-Apr-03 1:31 
GeneralRe: Problem with SELECT DISTINCT Queries Pin
Mahesh Varma20-Apr-03 17:40
Mahesh Varma20-Apr-03 17:40 
GeneralRe: Problem with SELECT DISTINCT Queries Pin
João Paulo Figueira21-Apr-03 1:07
professionalJoão Paulo Figueira21-Apr-03 1:07 
GeneralDDI Hooking Pin
vikramlinux15-Apr-03 20:16
vikramlinux15-Apr-03 20:16 
GeneralCCeCommandBar isn't shown Pin
Niko Tanghe15-Apr-03 10:18
Niko Tanghe15-Apr-03 10:18 
GeneralRe: CCeCommandBar isn't shown Pin
João Paulo Figueira15-Apr-03 13:06
professionalJoão Paulo Figueira15-Apr-03 13:06 
GeneralCaptureing CFormView Pin
schmallaria15-Apr-03 2:31
schmallaria15-Apr-03 2:31 
GeneralRe: Captureing CFormView Pin
Daniel Strigl15-Apr-03 19:54
Daniel Strigl15-Apr-03 19:54 
GeneralSet theme / wallpaper Pin
João Paulo Figueira14-Apr-03 6:35
professionalJoão Paulo Figueira14-Apr-03 6:35 
GeneralAnd the answer is... Pin
João Paulo Figueira16-Apr-03 3:30
professionalJoão Paulo Figueira16-Apr-03 3:30 
GeneralRe: And the answer is... Pin
J. Dunlap16-Apr-03 8:52
J. Dunlap16-Apr-03 8:52 
GeneralRe: And the answer is... Pin
Daniel Strigl18-Apr-03 0:16
Daniel Strigl18-Apr-03 0:16 
GeneralRe: And the answer is... Pin
João Paulo Figueira19-Apr-03 1:25
professionalJoão Paulo Figueira19-Apr-03 1:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.