You Are Here:

Community: Developer Discussion Boards

#1 Old AT Commands - 2004-05-27, 15:42

Join Date: May 2004
Posts: 4
james_m_sharp
Offline
Registered User
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
Reply With Quote

#2 Old 2004-05-28, 11:42

Join Date: May 2004
Posts: 2
j2lena
Offline
Registered User
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.
Reply With Quote

#3 Old 2004-05-28, 16:14

Join Date: Jul 2003
Posts: 1,094
Location: Finland, Tampere
doctordwarf
Offline
Super Contributor
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
Reply With Quote

#4 Old 2004-06-02, 15:51

Join Date: May 2004
Posts: 4
james_m_sharp
Offline
Registered User
Thanks for the information..
Reply With Quote

#5 Old 2004-09-22, 03:52

Join Date: Sep 2004
Posts: 7
darrenpyw
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia