[OSGeo-Discuss] GPRS connection API

dorra labidi dorrdor at yahoo.fr
Mon Apr 14 09:48:41 EDT 2008


Hi Miguel;
The GPS device is a hardware equipment; there is no OS; it can detect the GPRS signals; it accepts commands and send NMEA frames (frames that contain the geographic position od the device; speed, ..etc), collected from the satellite...My problem is how to send commands  to it via the GPRS network. 
NB: I can send ommand through the serial port or the HyperTerminal...
Anyway; thank you for your time.

Miguel Montesinos <mmontesinos at prodevelop.es> a écrit : Hi Dorra,
 
I don't know your requisites, but are you really sure you need to program low-level GPRS communications?
 
I mean, if you have a device with a right set-up, it will automatically connect to your GPRS/UMTS/HSDPA provider whenever any process needs an IP connection.
 
For instance in gvSIG Mobile, we use gnu.io to connect to a GPS through a serial port, but we don't need to program any specific communications software to access a remote WMS service. The device automatically starts-up the connection when the application tries to reach an URL.
 
You can test this by openning your Internet browser in the device and typing any URL. The device should try to connect automatically.
 
Does this help?
 
Cheers
 

---------------------------------

Miguel Montesinos

Director Técnico

PRODEVELOP

C/ Conde Salvatierra, 34 - 10

46004 Valencia. Spain

e-mail: mmontesinos at prodevelop.es

http://www.prodevelop.es

Tlf: +34 963510612

 

 


________________________________

 From: discuss-bounces at lists.osgeo.org [mailto:discuss-bounces at lists.osgeo.org] On Behalf Of dorra labidi
 Sent: Monday, April 14, 2008 11:22 AM
 To: OSGeo Discussions
 Subject: RE : RE: [OSGeo-Discuss] GPRS connection API
 
 
 Hi Miguel, Thank you for your advice; 
 
 No problem for the OS; my Os is windows. 
 Do you think that the GPRS connexion depends on the GPS device?
 The javax.comm.*, as far as I know, offer 3 connection types: serial,parallel and using sockets.
 
 In my case; I have two parameter for the connexion: the APN and the port number. Perhaps, should I deal with the APN as an URL and the connexion will be set up transparently?!!!!
 
 Miguel Montesinos  a écrit : 

  Hi,
  
  Just one note. Javax.comm.* only runs on Solaris and Windows. If you need Linux, Mac OS X, ... support, you'll need other "plug-ins" for original Sun package.
  
  Here you have one GPL project we're using at gvSIG[1]
  
  I've not used AT commands and GPRS communications in Java, but have done in C++. One advise: think in all possible problems, link failures, coverage problems, ... They'll certainly happen ;-)
  
  Regards
  
  [1] http://www.rxtx.org/
  
  ---------------------------------
  Miguel Montesinos
  Director Técnico
  PRODEVELOP
  C/ Conde Salvatierra, 34 - 10
  46004 Valencia. Spain
  e-mail: mmontesinos at prodevelop.es
  http://www.prodevelop.es
  Tlf: +34 963510612
  
  
  
  >-----Original Message-----
  >From: discuss-bounces at lists.osgeo.org 
  >[mailto:discuss-bounces at lists.osgeo.org] On Behalf Of Mateusz Loskot
  >Sent: Friday, April 11, 2008 1:44 PM
  >To: OSGeo Discussions
  >Subject: Re: [OSGeo-Discuss] GPRS connection API
  >
  >dorra labidi wrote:
  >> Hello all; I am developping a fleet management application 
  >using java. 
  >> I need to connect to the GPS box using GPRS network.
  >> 
  >> My question: Is there a java API for the GPRS connection?
  >
  >AFAIK, there is no dedicated GPRS API. Instead, you can use 
  >Java Comm API [1] and issue AT commands to GPRS modem manually 
  >to establish and control connection. After connection is 
  >established, you can use sockets to exchange data.
  >
  >That's the common solution I'm aware of.
  >
  >[1] http://java.sun.com/products/javacomm/index.jsp
  >--
  >Mateusz Loskot
  >http://mateusz.loskot.net
  >_______________________________________________
  >Discuss mailing list
  >Discuss at lists.osgeo.org
  >http://lists.osgeo.org/mailman/listinfo/discuss
  >
  _______________________________________________
  Discuss mailing list
  Discuss at lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/discuss
  


 ________________________________

 Envoyé avec Yahoo! Mail  .
 Une boite mail plus intelligente. 

_______________________________________________
Discuss mailing list
Discuss at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/discuss


       
---------------------------------
 Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/discuss/attachments/20080414/d6c62770/attachment.html


More information about the Discuss mailing list