| Reply | « Previous Thread | Next Thread » |
|
Hi,
I am writing a java application for the Nokia 6600 that displays information such as the GSM Cell ID that the phone is currently connected to. I have been informed that this information can be obtained using "AT Commands", and have downloaded the guide from Nokia but am in the dark as to how I issue these commands. I assumed that it was like a normal modem, and that I could open a serial connection to the internal modem and start issuing commands but I have had no luck here. I tried to obtain a list of available ports using: - String ports = System.getProperty("microedition.commports"); but this returns null.. When I try and open a CommConnection ( to comm:0, say ) I get a class not found exception for "com.symbian.midp.io.protocol.comm.Protocol" Does anyone know if this is actually supported by the 6600? Also, does anyone know how I can issue "AT commands" to the "GSM Module". Apologies if I have my terminology wrong here.. Thanks James |
| james_m_sharp |
| View Public Profile |
| Find all posts by james_m_sharp |
|
Hi James!
If you are writing a java application that read a GSM sygnal from the phone you can try following: 1. At first connect Irda or something else(for connecting with a phone) to serial port; 2. Connect your phone to Irda; 3. Open ComPort to which Irda connected; 4. Write to CommPort, receive an OuputStream, write At Command(E.g.: AT+CSQ\r\n); 5. On serial event DATA_AVAILABLE open InputStream and read the data. |
|
You can't issue AT-Commands from J2ME MIDlets. You have to get serial connection to your phone over USB-cable, IR or Bluetooth. Speaking rouhly by cable you can connect to your phone's built-in modem and you can talk to it using modem language - AT-Commands.
Well.. just a wild guess: you can try using Bluetooth connection to connect your MIDlet to the phone |
|
Thanks for the information..
|
| james_m_sharp |
| View Public Profile |
| Find all posts by james_m_sharp |
|
Hi, I am facing the same problem too.
My question is, can I access the modem inside Nokia 6600 through serial comm in a Java MIDlet? I need to send AT commands to query the Cell ID. If I can do it from PC using the InfraRed serial comm, then can I do it thru a serial comm in a MIDlet? Isn't that possible since there is serial comm available for J2ME? Darren |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|