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.
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
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.
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.