Disconnect GPRS using EVC++ 4.x - Networking

Hello,
I am writting Phone application using EVC++ (4.2) on PPC 2003. I am unable to crack following two issues,
1. I am successful in connecting to GPRS using Connection Manager API. To disconnect GPRS, I am using ReleaseConnection api but it does not disconnects GPRS connection. Is there any other API or RIL reference available to do this ?
2.After disconnecting from GPRS, I wanted to place a GSM TAPI call. In my program, I am able to place call, but the delay between disconnect GPRS and GSM Call Active is almost 20 seconds. I hope this is because I am not able to disconnect GPRS and TAPI does this when I issue a new outgoing call command and this scenario puts this delay.
Please help If anybody have any ideas in this regard...
best regards,
Sachin Mahajan

Dear Sachin!
You can try to do following:
1. Establish GPRS connection by using ConnMgrEstablishConnection()
2. Wait for end of establishing by using ConnMgrConnectionStatus(); CONNMGR_STATUS_CONNECTED means end of waiting
3. By using RasEnumConnections() you can find and store HRASCONN of your active GPRS connection (by name or simply first found)
4. Some actions...
5. ConnMgrReleaseConnection() releases ConnMgr connection
6. RasHangUp( HRASCONN ) hangs up RAS connection if p. 5 didn't do it
Sincerely
Ruslan.

Hello Ruslan,
Many Many thanks for your kind help in GPRS disconnect. I will try this today and will let you know the status.
best regards,
Sachin Mahajan

Also you can get some interesting statistics before hanging up RAS connection by using RasGetLinkStatistics(). Connection duration, number of sent and received bytes...

Related

Compatability issues between RAS GPRS and phone

I'm having problems using the receivng and making phone calls whilst a GPRS session is active. I'm using third part components to make the RAS connection, but when a phone call is made or received the connection utility is locked out and cannot make another successful connection until the device is reset. Even manual connections cannot be done until the device is reset. I have tried connecting manually, and when a phone call is made or received the GPRS session is simply suspended, and reactivates when the phone call is over. I have tested several third party components and they all have the same problem. One of them said there was nothing they could do about it as it was a problem with the RAS DLL. Is this true? Is it not possible to programatically create a GPRS connection via the RAS DLL whilst also being compatible with phone usage? Does anyone know a way around this problem?

Blue Angel GPRS dial by TAPI ...... ?

Hi, can anyone tell me if its possible to do a gprs dial via TAPI without using the connection manager on the i-mate PDA2K ?, I am developing a piece of software that needs full control of the dial process, GSM is not a problem and this is working succesfully using the virtual COM9 comm port once connected. GPRS however is a different story. I can find no way of configuring the APN via TAPI (I'm sure there is a way, I just haven't found it yet!). All attempts to do a GPRS dial by TAPI result in a succesful return from linemakecall but in reality does nothing, no dial, no connection made.
I have made a GPRS connection using the internal modem COM2 succesfully with AT commands but had to silence the RIL layer first, this has the unfortunate side effect of disconnecting the phone software so that incoming calls are missed, this is not acceptable for my aplpication.
Any thoughts/suggestiong greatfully received ....
cheers,
Dave

GPRS re-connect hack

Does anyone have the code to invoke the send and recive command from the messaging. ie force the GPRS to re-connect. I have set the auto download emails every 1 minute but this is not reliable. I need to call re-connect as and when I send data.
XDA2 and XDA2i UK O2 connections.
Any help pointer etc appreciated.
would this work? i have lots of problems getting gprs to re-connect after its dis-connected sometimes. It really bugs me because this is the only phone ive ever had that can't always connect to gprs when its blatently available!

GPRS Datacall

Hi,
I' am trying to connect two Smartphones over GPRS. At first I used TAPI to establish a connection between the two devices, but I don't want to use a CSD-connection. Then I took a look at the Connection Manager from EVC++, but I think with the Connecttion Manager you are not able to connect the two phones by there phonenumbers, like with modems or tapi.
Is it even possible to do a data call over GPRS? Or is GPRS just used to connect to the internet?
thx foobar
I had an audiovox rtm8000 and I put my home phone number into the gprs connection settings. I was able to log in with terminal services client. I don't know how it could be done using a normal phone hardware.
Thanx, for your post. Could you describe a little more what you did? Which APIs did you use?
I did not do it myself. It was a tool that came with the audiovox phone card. It only works with that card.

XDA 2 with T Mobile - GPRS Problems

Hi
I apologise in advance because I'm sure my problem is simply solved but I;ve not used the XDa for a while and I'm back to square 1. I have tried searching for the anser but I think my question is just to basic.
My XDA2 is unlocked and I use a T-Mobile sim in it. The problem I have is with the TOMTOM. When i try to update traffic info on the fly I get a message saying modem hung up (or something similar). It works fine when connecting via the cradle and my PC.
Now I think this is because the XDA2 is trying to connect using the O2 settings when I am on the road.
So my question is how do enter and then I get the XDA2 to use the T-Mobile settings?
EDIT: Sorry forgot to say so far I have done the following:
Start
settings
connections
Add new modem connection
enrtered T-Mobile
selected cellular line (GPRS)
entered access point as general.t-mobile.uk
user name as user
password as wap
Ok and update
seems it is connecting after all. Problem is I have to connect via GPRS first then up date the traffic. It's not picking up the connection if I just update direct from TomTom
any ideas?
I don't think you can do much about that, cause the tomtom, must automatically try to establish the GPRS connection.. like Internet Explorer does, it automatically checks if you have GPRS or Wi-fi connection, if not connected for you automatically. after reading your post. it does not start your GPRS connection, have you look into the settings of the tomtom, to see if he has an option that you can let it connect through your GPRS automatically?

Categories

Resources