the short answer is that this is not possible. The Android GSM stack is already talking to the modem through the AT comment channel.
The AT protocol is not designed to allow several clients to talk to the modem, the latter assumes it only talks to a single device, and is very state-full. If you were able to send AT commands directly to the channel from an application, you could easily create a disconnect between the state of the modem and the state of the GSM stack, or even the state of your own app. Consider that you could randomly receive answers addressed to the stack, and the stack receive answers addressed to you. Both the stack and your application could send contradicting commands, the stack and your app could be oblivious to changes instructed by the other party, etc... In other words, if you want to send specific commands to the modem from an application, this must be performed through the APIs provided by the telephony stack, and this precludes direct AT command sequences. On Fri, Jan 16, 2009 at 6:37 PM, enri <enr...@gmail.com> wrote: > > Have you found any info on this, I'm looking to do essentially the > same thing > > On Jan 3, 9:53 pm, barqw <barqw1...@163.com> wrote: > > such as ATH.THANKS > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---