![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() |

|
![]() |
|
http / Ftp / Ping requests on GPRS
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
The next step is the following : How to make those http / FTP / and Ping from this modem.... not an easy task, isnt it ? any AT command for that? i would be surprised... ![]() My preferer language is Delphi... but if you know how to help me in VB, c++, or any other...i wont make the Diva!!! Thanks a lot... |
|
|
|
|
|
|
|
|
#2 (permalink) |
|
Fixed Error!
Posts: 4,202
Join Date: Mar 2007
Rep Power: 6
IM:
|
the APN. (ref. "internet.netcom.no" from my earlier post). To be able to do so, issue the CGDATA command: AT+CGDATA=<L2P>,<cid> The execution command causes the MT to perform whatever actions are nec- essary to establish communication between the TE and the network using one or more GPRS PDP types. This may include performing a GPRS attach and one or more PDP context activations. Commands following +CGDATA com- mand in the AT command line shall not be processed by the MT. <L2P> layer 2 protocol to be used between the TE and MT [PPP] Values: PPP - Point-to-Point Protocol (standard internet protocol) <cid> PDP Context Identifier is a numeric parameter which specifies a particular PDP context definition. The parame- ter is local to the TE-MT interface and is used in PDP context-related commands. If no context is specified, an internal context 0 with default QoS (network subscribed). Example: AT+CGDATA=PPP,1 You will now get a lot of "garbage" data on your screen, and after some seconds, you connection will die. This is because you have entered the PPP data mode and the server expects answers from it's authentication requests (ie. PAP, CHAP). If you don't have a PPP-stack, you need to create one yourself (ref. RFC-1661). However, as I have a lot of experience with Delphi in my earlier developments, I would also suggest another solution to your problem: This will use your GSM/GPRS unit/cellular as a "modem" and connect you to the internet using the Windows PPP- stack and then your whole windows session will have access to internet - and from Delphi, you can use any Internet component you'd wish - just like you were using a normal dial-up session. This is the how-to: Since I don't know your preferred Windows version, I go for a normal Windows XP explanation: Step 1. Add a modem Start --> Settings --> Control Panel --> Phone and modem settings Check the checkbox called "Don't detect my modem...." Now just add a 19200 modem from the panel "Standard Modem Types", and bind it to the COM port where your unit is connected. Step 2. Configure modem Change the connection preferences like this: Maximum Speed: 57600 Databits: 8 Parity: None Stop bits: 1 Advanced connection params: Check of to use Flow Control (Hardware RTS/CTS) as a initstring, you can add your AT+CGDCONT=...... string from my previous post - but most operators takes care of giving you the proper information serverside. Step 3. Add a phonebook entry Start --> Settings --> Control Panel --> Network Places Next, click "Create a new connection" Press "Next" Choose "Connect to the Internet", Click "Next" Choose "Set up my connection manually", Click "Next" Choose "Connect using a dial-up modem", Click "Next" Choose your newly added modem, Click "Next" Enter any name in the "ISP Name" dialog box, Click "Next" Now, for the special part: In the "Phone number" dialog, enter: *99# This number requests a IP GRPS session from your operator. Click "Next", then "Finish". Don't bother entering any username or password. Step 4. Configure TCP/IP settings When the Dial-up dialog pops up, click on "Properties". Click on the "Networking" tab. Click on "Internet Protocol (TCP/IP)", then click on "Properties". Click on the "Use the following DNS server addresses" Here you enter your preferred DNS server. Could be the same as your regular dialup/adsl etc.. Click on the "Advanced" button and deselect "Use IP header compression". Close everything and test your new GPRS dialup. If everything is done correct, you should now have a internet connection using your Windows PPP-stack and work just like a normal dial-up connection. Much better considering your developments in Borland Delphi and the Internet components there. Sorry I had to make this little tutorial so "detailed", but that's just how I like to explain things. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|