Hi,

If the modem is correctly attached to the emulator, since the very
beginning (Android initialization) you can see modem AT commands
activity on the logs. As Rakesh suggests you, launch "logcat -b radio"
command, and you will see what's Android trying to do with the serial
port.

There could be several reasons why your test is not working. One of
them is that

echo "ATD1234;" > /dev/ttySX

is not really safe and working in all cases.

If your modem serial device is /dev/ttyACM0 (please, make sure it is),
then you will see much activity on the logs. Also, opening the dialer
window on the emulator will make you able to dial any real number.

Send a "adb logcat -b radio > /tmp/log.txt" to the list (remember to
hide your PIN ;) ) and probably you will get more useful help :)

Kind regards,

On Thu, Jun 4, 2009 at 11:07 AM, Sayiram K N <sayiram.koth...@gmail.com> wrote:
> the setup is like this
>   first i switched my Motorola Phone to USB Modem mode and tried on Widnwos
> environment using AT commands could able to call. and tried on Linux
> environment too and its working fine. But from the Android not able to make
> any calls.
> The linux PC is recognising my Phone modem as ttyACM0.
> i am using emulator -radio /dev/ttyACM0 once the emulator launched from the
> consle launched adb shell and given the commands echo "ATD1234;" >
> /dev/ttyS0 can you let me know whether this is correct or not.
> can you let me know your ways of calling too.
>
> On Thu, Jun 4, 2009 at 2:25 PM, Rakesh Kumar <rakesh.y...@gmail.com> wrote:
>>
>> phone pn means what? I am using a external modem
>>
>> On Thu, Jun 4, 2009 at 2:12 PM, Sayiram K N <sayiram.koth...@gmail.com>
>> wrote:
>>>
>>> can you pl. let me know how to make calls using emulator's dialer?? i
>>> have connected my phone pn to /dev/ttyACM0 and tried all possibilities. but
>>> no luck.
>>> can you let me know the steps to make calls??
>>>
>>>
>>> On Thu, Jun 4, 2009 at 1:13 PM, Rakesh Kumar <rakesh.y...@gmail.com>
>>> wrote:
>>>>
>>>> You can make the call using the emulator dialer. And when you make the
>>>> call to your external modem than you can see the logs of incoming call 
>>>> using
>>>> adb shell.
>>>>
>>>> On Thu, Jun 4, 2009 at 12:37 PM, Sayiram K N <sayiram.koth...@gmail.com>
>>>> wrote:
>>>>>
>>>>> After the connection are you using the following
>>>>> adb shell
>>>>> # echo "ATD123445" > ttyS0
>>>>> ?? if not what  are the commands you are using>>
>>>>> Sram
>>>>>
>>>>> On Thu, Jun 4, 2009 at 10:07 AM, Rakesh Kumar <rakesh.y...@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> I am able to connect emulator with an external modem. My modem is
>>>>>> connected to PC at port /dev/ttyS0.
>>>>>> And with the command "emulator -radio /dev/ttyS0", its working.
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>> Rakesh
>>>>>>
>>>>>> On Wed, Jun 3, 2009 at 5:39 PM, David Turner <di...@android.com>
>>>>>> wrote:
>>>>>>>
>>>>>>> On Wed, Jun 3, 2009 at 11:24 AM, sram <sayiram.koth...@gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hi
>>>>>>>>  i am trying to connect USB external modem(my Motorola Phone) on to
>>>>>>>> Android emulator. i have tried the following command
>>>>>>>>  emulator -radio ttyACM0 -verbose -debug all
>>>>>>>> and from the ADB shell tried echo "ATD1234" > ttyS1 but there is
>>>>>>>> nothing happened.
>>>>>>>
>>>>>>> ttyS1 is not connected to the emulated modem at all. Actually, none
>>>>>>> of the emulated serial ports are,
>>>>>>> so it's not surprising that this doesn't work.
>>>>>>>
>>>>>>>>
>>>>>>>> as well itried using the local host 5554 and then gsm call 12344555
>>>>>>>> but got the rror message " KO: Modem Emulation not started" can any
>>>>>>>> one help me in this.
>>>>>>>
>>>>>>> Probably because the GSM stack tried to talk with your ttyACM0 device
>>>>>>> and got answers it could not
>>>>>>> parse properly, for some reason. Try "adb logcat -b radio" to display
>>>>>>> the radio log, which includes the
>>>>>>> AT commands exchanged between the modem and the stack.
>>>>>>>
>>>>>>>
>>>>>>>>
>>>>>>>> Sram
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>> >>
>



-- 
Daniel Baeyens
Warp Networks S.L. - http://www.warp.es

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to