Solved

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

Posted on 2003-11-19
3
1,157 Views
Last Modified: 2008-02-01
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
Comment
Question by:scurtis_1
  • 2
3 Comments
 
LVL 92

Assisted Solution

by:objects
objects earned 500 total points
Comment Utility
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
 

Author Comment

by:scurtis_1
Comment Utility
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
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now