Gprs

jgbozza

Member
Licensed User
Longtime User
I have a system running over Wifi using the libraries httputils2 for request, JSON for parsing, Network, etc... but now I need a version running over GPRS connection and the point is: I don't have even a clue on how to start it. I havent found much stuff in the community or even outside it.:sign0104:
As far as I know, the GPRS is only the physical layer so all the rest would work perfectly. To get it straight, firstly I want to set up the tablet for a connection and understand how to reach a fixed given IP or Dns (my own server/modem) and afterwards, how to connect peer to peer to other tablet.

Would someone clarify me how to get started ?

Thank you! :sign0085:
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It depends on what you are trying to do. Calling an online web server (with HttpUtils2) will work as is.

You can also use the Network library to create a low level connection to an online server. However most mobile network providers block incoming connections. This means that you will not be able to directly connect two tablets over GPRS.

This example is a bit relevant: No-IP Android client - Access your device over the internet
 
Upvote 0

jgbozza

Member
Licensed User
Longtime User
I understood the conception.
What I need to do actually is use the job.poststring("http://mydomain.com", "var1=abc&var2=123") basically.
Is there a sample code where I can check an example on how to proceed with the configuration of the gprs and use the httputils afterward?

Thanks again!
 
Upvote 0

timwil

Active Member
Licensed User
Longtime User
If you have a working application now it should work on GPRS also. I have applications running on EDGE and HSDPA (GPRS was the first generation - EDGE the second and HSPDA the third or 3G)
 
Upvote 0

jgbozza

Member
Licensed User
Longtime User
Got it, have just tested and it's running.
The job.GetRequest.Timeout is set to 10000 (10 sec). What timeout you use to set for your application?
 
Upvote 0

timwil

Active Member
Licensed User
Longtime User
we have crappy telephone service here in the Bahamas (Cable & Wireless/LIME) so I use 20 - 30 seconds
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…