• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1234
  • Last Modified:

Using Java to Make a GPRS Connection with a Wavecom Fasttrack (GPRS) Modem

Hi,

I have a basic Java application that communicates with over a GPRS connection. Until now we have been using the Motorola v66e GPRS mobile phone connected to a USB port as our GPRS modem. This phone comes with a handy tool called GPRS Manager which is used to make the initial connection to the APN (or whatever?).

I now have write a Java application that actually makes the connection aswell as communicate over it, but using a new Wavecom GPRS Modem connected to com1 and installed as a Standard Windows Modem (9600). I was wondering if there was a Java API out there that would allow me to make a connection (with the least hassle - ie with the smallest learning curve, as I know near to nothing about AT commands etc) or if someone has a simple piece of code in Java that can make a GPRS connection using the Wavecom Modem (or any modem, as I can adapt it to my own needs if I have to)?

Thanks
Scott Curtis
0
scurtis_1
Asked:
scurtis_1
  • 2
2 Solutions
 
objectsCommented:
You'll need to use the Java COMM api to talk to the modem:
http://java.sun.com/products/javacomm/ 

But you'll need to work out what commands need to be sent to the modem yourself.
0
 
scurtis_1Author Commented:
Thanks for your quick response.

I forgot to mention that this has to be done in a very short timeframe (end of tomorrow...). I have the Java Comm API set up but I have no knowledge of how to use it (and therefore was hoping to miss out the learning curve required in order to get something working with it - I know I am trying to cheat!!). I was hoping that would be my last option and instead there was someone out there with knowledge of this modem and the exact command set I would need to pass in order to get a connection. I am trying the Hardware vendors but they aren't very helpful on the subject, to date.

As an example of the sorts of thing I am looking for, I had to recently do a similar task over a GSM modem and I found a lot of nice Java API's and tools out there for communicating with GSM modems (ended up using jSMSEngine). I was hoping there might be something similar for GPRS communication but searches on all of my usually resources have proved unsuccessful.

In place of an actual silver bullet solution to this (that is, unless someone does have an existing solution, they would like to share???), does anyone have a good example of communicating with a modem using the Java Comm API? Maybe after finding out the exact command set I need, I can adapt the example to communicate with my particular modem?

(I will post this on the GPRS and modem channels aswell, just in case it seems out of place here? I was just hoping to concentrate on the Java perspective for now)

Thanks
0
 
objectsCommented:
I did a search as well and came up empty.

Javacomm includes a few examples of it's usage.

Posting in the GPRS/Modems topics is a good idea as they may know what needs to be sent to the modem.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now