Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

GPRS / Dialup - Internet Connection

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2008, 08:25 PM
Senior Member
 
Join Date: Apr 2008
Location: Duesseldorf, Germany
Posts: 154
Default GPRS / Dialup - Internet Connection

Hello,

i'm using a dial-up internet connection ( GPRS/UMTS(3G)) on the device.Sometimes it happens, that the dial-up connection itself is established, but no data can be transmitted or received.The connection appears to hang and neither the GPRS/UMTS phone nor the PPC recognizes this.

Until now just the WM controls my internet connection, i.e. i just access some host/IP in the internet and WM takes care of the connection.

- is there a way within B4P to control the dial-up connection ?

My plan is to disconnect from internet and re-establish the dial-up connection in these situations.At present i end up with my app not sending out any data due to the hung connection.

cheers

TWELVE
Reply With Quote
  #2 (permalink)  
Old 06-23-2008, 12:49 PM
Junior Member
 
Join Date: Apr 2008
Location: France
Posts: 19
Default

I have the same problem,
the connexion GPRS is breakable/fragile (device in the car for example)
should be an API/instruction for to stop/breaking the connexion GPRS !
to make a new request since the application 4PPC
Reply With Quote
  #3 (permalink)  
Old 06-23-2008, 01:00 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I believ that using one of Agraham dll it should be possible to call upon the CommManager and send systm messages to it, closing a partiular conection and re-estaleshing it...
but I never done that, so I'm just speculating....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #4 (permalink)  
Old 06-23-2008, 02:05 PM
Junior Member
 
Join Date: Apr 2008
Location: France
Posts: 19
Default

mummm nothing in Additional Libraries ?
Reply With Quote
  #5 (permalink)  
Old 06-23-2008, 02:25 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

I don't know of anyway to do this, but don't take that as absolutely definitive as I know little about mobile data connections.
Reply With Quote
  #6 (permalink)  
Old 06-23-2008, 02:37 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

@andrew,

I was under the imprecion that one of your dll could mimick the Key precess on application, by sending them the correspondent message(?)
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #7 (permalink)  
Old 06-23-2008, 04:24 PM
Junior Member
 
Join Date: Apr 2008
Location: France
Posts: 19
Default

for me is blocking under 4PPC !

My application must send the location GPS all 60 sec by GPRS on our server.

The customers being on the road, gprs connection is sometimes lost
a few moments !
at the request HTTP for the update, an occurrence error is displayed !
but I can not restart GPRS connexion, the application aborted in error.

I can not find solution

Last edited by miataman : 06-23-2008 at 04:43 PM.
Reply With Quote
  #8 (permalink)  
Old 06-23-2008, 05:28 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Cableguy View Post
I was under the imprecion that one of your dll could mimick the Key precess on application, by sending them the correspondent message(?)
I'm afraid not. KeyPress in the Hardware library can send characters to the control with the focus on a B4ppc form. dzHW can send low-level Windows messages to other apps if they are running in another window and so have a message loop. Somebody else may know of others that I can't remember/don't know.
Reply With Quote
  #9 (permalink)  
Old 06-23-2008, 06:01 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by miataman View Post
at the request HTTP for the update, an occurrence error is displayed !but I can not restart GPRS connexion, the application aborted in error.
Your app does not have to abort when an error occurs. You can trap the error using ErrorLabel. For a description of error handling see the help for my Exceptions library here. http://www.basic4ppc.com/forum/addit...g-library.html You don't need this library to actually handle exceptions, but you will need it if your code needs to identify what sort of exception occurred.
Reply With Quote
  #10 (permalink)  
Old 06-24-2008, 06:35 AM
Junior Member
 
Join Date: Apr 2008
Location: France
Posts: 19
Default

Thanks Agraham,

I use your bibiothéque Exceptions handling library in my application !
but if this error / exception is trap during the request HTTP
(example : bug connexion GPRS) , I can :

- display occurence error and stop the application (it does not suit me).

- wait a further 60 sec , a new request HTTP will be sent
(but if connexion GPRS is broken, I do not think a new GPRS connection
is launched automatically by object 'WebRequest' , the application will run but I would not have the location GPS user in my server !)

sorry for my english
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection between different socket mircome Questions (Windows Mobile) 3 07-19-2008 11:05 AM
PPC as an Internet Proxy Mr_Gee Questions (Windows Mobile) 1 04-18-2008 04:34 PM
Internet detector ( help ) Koxong Questions (Windows Mobile) 2 03-05-2008 12:55 PM
hold on a GPRS-connection schimanski Questions (Windows Mobile) 3 01-15-2008 04:48 PM
Connecting to the internet vinians Questions (Windows Mobile) 2 09-11-2007 06:05 PM


All times are GMT. The time now is 09:55 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0