This discussion is archived
9 Replies Latest reply: Nov 12, 2009 2:09 AM by 843851 RSS

AT Commands with J2ME

843851 Newbie
Currently Being Moderated
Hi all.

Is posible send AT Commands with J2ME?, If it's posible how I can do it?.

Regards
  • 1. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    Do you mean to a modem, or modem like device?

    If so, It depends on what I/O services that the underlying platform provides. I believe the proposed method is to specify the physical device using a (possibly platform dependent) URL, and get the stream associated with it. Once you have the stream, it is relatively easy to read and write to the stream.

    Unfortunately, I don't remember the convention (or even if there is one) for specifying a URL to a device like that. Hopefully there is platform documentation that might describe how.

    -John
  • 2. Re: AT Commands with J2ME
    800384 Newbie
    Currently Being Moderated
    Actually, the real name for the URL connected to a device is not URL but is URI
    anyway, check out the IETFs RFCs on HTTP (2616), URLs, and URIs.

    Try also using the Java COMM API, that has serial connection support.
    Also, try JavaPhone and Java Telecom API these all should have
    some support.

    Also, I have been replying to posts on the same type of questions on hardware-based
    programming in Java (in view of modems/hardware) in the Jini Technology and
    General Distributed Networking forums. Try doing a search.


    P.S. May I have some duke dollars?? Please?? Thank you for your support.
  • 3. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    No, you cannot send AT commands from J2ME. This is because the AT command set is incredibly powerful and would allow you to access low level parts of the phone (such as making phone calls, accessing address book, etc); J2ME was designed to be secure, so Midlets (like applets) operate in a sandbox that protects the user from it accessing personal data and acting on its behalf without its knowledge.

    This doesn't mean it is not powerful, there are many things, like networking, screen manipulation, file storage, etc you can do but in order to access these features you must use the MIDP APIs.
  • 4. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    hello to all,

    My Questions...... is the statement from spm24 still up to date?
    Or can i send AT- commands meantime over J2ME? (API�s)??

    best regards!!
  • 5. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    I am interested in something Similiar,

    I wondering is it yet possible to have a Java Midlet running on a mobile phone, and for the Midlet to call an AT Command (on the phone itself)?

    I appreciate any information you can provide me with.
  • 6. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    U can execute the AT commands via j2me
  • 7. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    Hello!

    How?

    Edited by: cjliu on May 15, 2009 7:23 AM
  • 8. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    Hi, I also got the same question, how do you execute the AT commands via j2me, thanks
  • 9. Re: AT Commands with J2ME
    843851 Newbie
    Currently Being Moderated
    We can implement it using AT commands!