Wireless development

Moderators: None (Apply to moderate this forum)
Number of threads: 207
Number of posts: 313

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Establishing GPRS connection Posted by weicco on 13 May 2003 at 12:30 AM
This message was edited by weicco at 2003-5-13 2:52:22

Hi.

I'm working on a project which has to establish GPRS connection with AT commands. Software is supposed to run on Windows CE.

I have written a small terminal software and I can send AT commands to modem and read responses. Everything works fine, I can make calls and send SMS stuff and things like that.

But now I'm facing problems with GPRS. I've managed to set correct settings with AT+CGDCONT message and I can set up somekind of connection with AT+CGATT & AT+CGDATA. I get an IP address from the other end and things look to go well. But when I open browser (IE) it gives me an error that it can't make connection to server. I go to Internet Options, set connection to GPRS, try again and still not connection to server. Any ideas what goes wrong in here or am I totally missing something?

Then I tried another approach (or I don't know if this really is another approach, I'm not really familiar with GPRS). I send ATD*99# to modem (*99# is the number I'm supposed to call). Modem tells me CONNECT 57600 and gives unsoliticied result code +CREG: 1,1 (connection to home network). But after few seconds I get NO CARRIER message. Is there something I must send after CONNECT xxx part or what?

Any answers and ideas are greatly appreciated.

EDIT: I did some research and came to conclusion that I need to alter routing table. Am I right?

Report
Re: Establishing GPRS connection Posted by xjtuandrew on 10 Jun 2003 at 10:02 PM
You can realize Sending SMS and Making Call. I am doing the same thing and meet some difficult. Can you help me to solve this problem? I am using the Pocket PC2002 to develop a program to make call through the GSM/CDMA modem. My problem is the serial port problem. When I send the AT command to the serial port,I cannot get the reply. No response from the serial port. But from the super terminal, I can operate the GSM/CDMA modem correctly. How I can solve this problem?
Thanks a lot


Report
Re: Establishing GPRS connection Posted by weicco on 11 Jun 2003 at 9:57 PM
Hmm.. Are you sure you are using the port and rigth port settings? My code just opens port to COM5: with CreateFile, calls SetCommState and SetCommTimeouts, starts thread that calls SetCommMask with EV_RXCHAR flag and reads port with ReadFile. If that goes well I just send "AT\r" (with WriteFile) to modem and it answers with "\r\nOK\r\n" string. Did you remember to add \r at the end of your command string?

: You can realize Sending SMS and Making Call. I am doing the same thing and meet some difficult. Can you help me to solve this problem? I am using the Pocket PC2002 to develop a program to make call through the GSM/CDMA modem. My problem is the serial port problem. When I send the AT command to the serial port,I cannot get the reply. No response from the serial port. But from the super terminal, I can operate the GSM/CDMA modem correctly. How I can solve this problem?
: Thanks a lot
:
:
:

Report
Re: Establishing GPRS connection Posted by harveywang on 23 Jun 2003 at 4:06 AM
1) You need link your COM5 serial port device driver to Microsoft RAS service
2) uses RAS to dial up the remote server in the Internet
e.g.
RasEnumConnections (...)
RasHangUp (...)
// Try to establish a RAS connection.
if ((dwError = RasDial (
NULL, // Extension is not supported in Windows CE
NULL, // Phone book is in the registry
&RasDialParams, // RAS configuration for the connection
0xFFFFFFFF, // Must use this value for Windows CE
hDlgWnd, // Window receives the notification message
&hRasConn)) != 0) // Connection handle

Report
Re: Establishing GPRS connection Posted by rammuru on 7 Apr 2004 at 8:18 PM
Dear Developers

I am developing application in similar area. Could you send me sample application will be great help to me? Thanks

Report
Re: Establishing GPRS connection Posted by edbz on 23 Apr 2004 at 6:01 AM
give your email where i can send samples
thank u
Report
Re: Establishing GPRS connection Posted by onur_yuce98 on 17 May 2004 at 3:36 AM
: give your email where i can send samples
: thank u
:
Hi,I saw your writings and recently I am also workıng on GPRS same sort of thing. I wonder do anyone has a sample code on establıshıng GPRS connection. If so here is my mailing adress:onur_yuce98@yahoo.de
Thanks a lot!
Report
Re: Establishing GPRS connection Posted by rammuru on 19 May 2004 at 2:43 AM
please send me rammuru@hotmail.com. Million thanks for your help

Thanks and best regards
Muru



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.