Yes, you need to compile, but how to create SDK from it?. I am not sure about it. I am having the repo sync output, where I am making changes in the source code and running the emulator.
Thanks Rakesh On Thu, Jun 4, 2009 at 3:19 PM, Sayiram K N <[email protected]>wrote: > on my modem AT+CGREG=? is displaying (0-2) but when i tried to set the > value to 1 then its giving error. > as i installed the SDK only , then after changing the file reference-ril.c, > need to compile right? > then create theSDK once again? > > > > On Thu, Jun 4, 2009 at 3:11 PM, Rakesh Kumar <[email protected]>wrote: > >> >> You are facing problem with AT command "AT+CGREG". Please remove this AT >> command from the source code in the file reference-ril.c or use a modem >> which supports AT+CGREG command. >> >> >> Thanks >> Rakesh >> >> >> On Thu, Jun 4, 2009 at 3:00 PM, Sayiram K N <[email protected]>wrote: >> >>> Hi here is the log that i got using the logcat >>> >>> I/RIL ( 21): Opening socket /dev/socket/qemud_gsm >>> >>> D/AT ( 21): AT> ATE0Q0V1 >>> >>> D/AT ( 21): AT< ATE0Q0V1 >>> >>> D/AT ( 21): AT< OK >>> >>> D/AT ( 21): AT> ATE0Q0V1 >>> >>> D/AT ( 21): AT< OK >>> >>> D/AT ( 21): AT> ATS0=0 >>> >>> D/AT ( 21): AT< OK >>> >>> D/AT ( 21): AT> AT+CMEE=1 >>> >>> D/AT ( 21): AT< OK >>> >>> D/AT ( 21): AT> AT+CREG=2 >>> >>> D/AT ( 21): AT< OK >>> >>> D/AT ( 21): AT> AT+CGREG=1 >>> >>> D/AT ( 21): AT< TAPI ERROR: 6 >>> >>> I/RILJ ( 86): Connected to 'rild' socket >>> >>> W/GSM ( 86): Can't open /system/etc/voicemail-conf.xml >>> >>> D/RILJ ( 86): [0000]> GET_CURRENT_CALLS >>> >>> D/GSM ( 86): Poll ServiceState done: oldSS=[1 home null null null ] >>> newSS=[1 home null null null ] oldGprs=1 newGprs=1 oldType=unknown >>> newType=unknown >>> >>> D/GSM ( 86): [DataConnectionTracker] Radio is off and clean up all >>> connection >>> >>> D/GSM ( 86): [DataConnectionTracker] Clean up connection due to >>> radioTurnedOff >>> >>> D/GSM ( 86): [DataConnection] Stop poll NetStat >>> >>> D/GSM ( 86): [DataConnectionTracker] ***trySetupData due to roamingOff >>> >>> D/GSM ( 86): [DataConnectionTracker] trySetupData: Not ready for data: >>> dataState=IDLE gprsState=1 sim=false UMTS=false phoneState=IDLE >>> dataEnabled=true roaming=false dataOnRoamingEnable=false >>> >>> D/GSM ( 86): [GsmSimCard] Broadcasting intent SIM_STATE_CHANGED_ACTION >>> NOT_READY reason null >>> >>> D/RILJ ( 86): [0001]> SCREEN_STATE: true >>> >>> D/RILJ ( 86): [0002]> PDP_CONTEXT_LIST >>> >>> D/RILJ ( 86): WAKE_LOCK_TIMEOUT mReqPending=0 mRequestList=3 >>> >>> D/RILJ ( 86): 0: [0] GET_CURRENT_CALLS >>> >>> D/RILJ ( 86): 1: [1] SCREEN_STATE >>> >>> D/RILJ ( 86): 2: [2] PDP_CONTEXT_LIST >>> >>> >>> >>> i have one question while launching emulator i am specifiying >>> /dev/ttyACM0 but when in android shell i tried all possibilities but not >>> luck. >>> >>> >>> >>> On Thu, Jun 4, 2009 at 2:47 PM, Daniel Baeyens <[email protected]> wrote: >>> >>>> >>>> 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 <[email protected]> >>>> 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 <[email protected]> >>>> wrote: >>>> >> >>>> >> phone pn means what? I am using a external modem >>>> >> >>>> >> On Thu, Jun 4, 2009 at 2:12 PM, Sayiram K N < >>>> [email protected]> >>>> >> 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 <[email protected] >>>> > >>>> >>> 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 < >>>> [email protected]> >>>> >>>> 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 < >>>> [email protected]> >>>> >>>>> 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 <[email protected]> >>>> >>>>>> wrote: >>>> >>>>>>> >>>> >>>>>>> On Wed, Jun 3, 2009 at 11:24 AM, sram < >>>> [email protected]> >>>> >>>>>>> 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: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
