Hi Bryan,

Thank for your reply.

With regard to the customization of the libril files, may I know what are
the areas in the ril.cpp and reference-ril.c which will be needed to be
customized so that the android emulator is able to work properly with the
external modem?

Thank you.


2010/1/12 bryan.c.hsu <[email protected]>

> U need to custom libril to according to the external modem.
> From your trace , it seems that the modem enabled ECHO when u sending
> AT+CFUN=0
>
> -----邮件原件-----
> 发件人: [email protected]
> [mailto:[email protected]] 代表 hihi hi
> 发送时间: 2010年1月12日 12:09
> 收件人: android-porting
> 主题: [android-porting] Issue on ril communication with external modem
>
> Hi
>
> I am currently trying to test a 2G USB modem with the Android emulator. I
> have used the -radio <device> option to connect the modem emulation
> (emulator -radio /dev/ttyUSB0). However when the emulator is launched, it
> is
> set to airplane mode instead of full network service.
>
> From the radio log, using logcat -b radio, it is observed the following,
> the
> network was camped on initially, however it is set to airplane mode later
> (AT+CFUN=0). Do you know why the modem is set to airplane mode? And how can
> I resolved this issue?
>
> D/AT      (   28): AT< +CREG: 1,"005E","24A6"
> I/AT      (   28): readline
> I/AT      (   28): findNextEOL
> ^[[5~^[[5~I/PHONE   (  102): Network Mode set to 0
> I/PHONE   (  102): Cdma Subscription set to 1
> I/RILC    (   28): libril: new connection
> I/RIL     (   28): currentState [4]
> I/RILJ    (  102): Connected to 'rild' socket
> D/RILJ    (  102): Radio ON @ init; reset to OFF
> D/RILJ    (  102): [0000]> REQUEST_SET_PREFERRED_NETWORK_TYPE : 0
> D/RIL     (   28): onRequest: SET_PREFERRED_NETWORK_TYPE
> D/RILJ    (  102): [0001]> RIL_REQUEST_CDMA_SET_SUBSCRIPTION : 1
> D/RIL     (   28): onRequest: CDMA_SET_SUBSCRIPTION
> D/RILJ    (  102): [0002]> RADIO_POWER
> D/PHONE   (  102): mDoesRilSendMultipleCallRing=true
> D/PHONE   (  102): mCallRingDelay=3000
> D/RILJ    (  102): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED
> RADIO_UNAVAILABLE
> D/RILJ    (  102): [0000]< REQUEST_SET_PREFERRED_NETWORK_TYPE error:
> com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
> D/RILJ    (  102): [0001]< RIL_REQUEST_CDMA_SET_SUBSCRIPTION error:
> com.android.internal.telephony.CommandException: REQUEST_NOT_SUPPORTED
> D/RIL     (   28): onRequest: RADIO_POWER
> I/RIL     (   28): requestRadioPower
> D/AT      (   28): AT> AT+CFUN=0
> D/AT      (   28): AT< AT+CFUN=0
> I/AT      (   28): isSMSUnsolicited
> I/AT      (   28): processLine
> I/AT      (   28): isFinalResponseError
> I/AT      (   28): handleUnsolicited
> I/RIL     (   28): onUnsolicited
> D/AT      (   28): AT< OK
>
> Thank a lot.
>
>
> --
> unsubscribe: 
> [email protected]<android-porting%[email protected]>
> website: http://groups.google.com/group/android-porting
>
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to