Hi, All
Now, I'm intergrating HUAWEI 3G Modem E261 to my system. customer board is based on SabreAuto 6Q, android 4.3.
After insert modem, uart log is as below:
usb 1-1: new high speed USB device number 5 using fsl-ehci
usb 1-1: device v12d1 p1446 is not supported
scsi3 : usb-storage 1-1:1.0
scsi4 : usb-storage 1-1:1.1
scsi 3:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
scsi 4:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
sd 4:0:0:0: [sda] Attached SCSI removable disk
sda: detected capacity change from 4005527552 to 0
===========
and /sys/bus/usb/devices information is as below:
root@sabreauto_6q:/sys/bus/usb/devices # ls
1-0:1.0
1-1
1-1:1.0
1-1:1.1
2-0:1.0
usb1
usb2
==============
there is nothing in /proc/bus:
root@sabreauto_6q:/proc/bus # ls
input
pci
usb
root@sabreauto_6q:/proc/bus # cd usb
root@sabreauto_6q:/proc/bus/usb # ls
root@sabreauto_6q:/proc/bus/usb # ls
I don't know why it recognized as Mass storage device, could someone help me? many many thx..
Hi jianhua, message
"device v12d1 p1446 is not supported"
means that there is no driver for it (or it is incompatible, from other kernel).
You should find correct driver for this device.
Also many 3G modems has second "Mass Storage"
capability, as you see. Actually this subject is well described on web.
Connect ANY 3G dongle to ANY android tablet... - xda-developers
Success with USB 3G modems on Android | freedune
Additionally please be aware of huge power consumption of 3G modems (up to 2.5A peak),
probably you will have to use separate power supply for it.
Best regards
chip
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Chip
thx for your reply. I've read the website you provided.
I think it is because of USB-OTG port.
I change to a common USB port ( I use HUAWEI-EM770W now, not use E261), the modem can be recognized. but it still cannot connect to internet (gprs) function.
following is logcat -b radio:
============
2|root@sabreauto_6q:/ # logcat -b radio
I/use-Rlog/RLOG-RIL( 2267): 3G modem monitor thread is start
I/RIL ( 2267): Opening tty device /dev/ttyUSB2
I/use-Rlog/RLOG-RIL( 2267): Runtime 3G port found matched device with Name:Huawei-EM770W idVendor:12d1 idProduct:1404
E/RILC ( 2267): RIL_register: RIL version 8
D/use-Rlog/RLOG-AT( 2267): pppcheckLoop start
D/use-Rlog/RLOG-AT( 2267): pppcheckLoop listen s_fdPPP
D/use-Rlog/RLOG-AT( 2267): pppcheckLoop start accept s_fdPPP
D/RIL ( 2267): setRadioState(0)
D/AT ( 2267): AT> ATE0Q0V1
D/AT ( 2267): AT< ATE0Q0V1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT< OK
I/use-Rlog/RLOG-RIL( 2267): Runtime 3G port found matched device with Name:Huawei-EM770W idVendor:12d1 idProduct:1404
I/use-Rlog/RLOG-RIL( 2267): Current modem type = 0
I/RIL ( 2267): Found GSM Modem
D/AT ( 2267): AT> ATE0Q0V1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> ATS0=0
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CMEE=1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CREG=2
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CGREG=1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CCWA=1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CMOD=0
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CMUT=0
D/AT ( 2267): AT< ERROR
D/AT ( 2267): AT> AT+CSSN=0,1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+COLP=0
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CSCS="HEX"
D/AT ( 2267): AT< ERROR
D/AT ( 2267): AT> AT+CUSD=1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CGEREP=1,0
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CMGF=0
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CFUN?
D/AT ( 2267): AT< +CFUN: 1
D/AT ( 2267): AT< OK
D/RIL ( 2267): setRadioState(10)
D/RIL ( 2267): getSIMStatus(). sState: 10
D/AT ( 2267): AT> AT+CPIN?
D/AT ( 2267): AT< +CPIN: READY
D/AT ( 2267): AT< OK
I/RIL ( 2267): SIM_READY
D/AT ( 2267): AT> AT+CSMS=1
D/AT ( 2267): AT< +CSMS: 1,1,1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CNMI=1,2,2,1,1
D/AT ( 2267): AT< OK
D/AT ( 2267): AT> AT+CPMS="ME","ME","ME"
D/AT ( 2267): AT< +CMS ERROR: 500
D/AT ( 2267): AT> AT+CMGD=1,4
D/AT ( 2267): AT< +CMS ERROR: 500
D/TelephonyManager( 2262): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied)
D/TelephonyManager( 2262): /proc/cmdline=
D/AT ( 2267): AT< +CREG: 2
D/AT ( 2267): AT< ^SIMST:1
D/AT ( 2267): AT< ^SRVST:2
D/AT ( 2267): AT< +CREG: 1, A54D, D9A278B
D/AT ( 2267): AT< +CGREG: 0
D/AT ( 2267): AT< +CREG: 1, A54D, D9A2795
D/AT ( 2267): AT< +CREG: 1, A54D, D9A2795
D/AT ( 2267): AT< +CGREG: 1
D/AT ( 2267): AT< ^RSSI:2
D/AT ( 2267): AT< +CREG: 1, A54D, D9A278B
D/AT ( 2267): AT< ^STIN:1,1,0
D/AT ( 2267): AT< +CREG: 1, A54D, D9A2789
D/TelephonyManager( 2716): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/TelephonyManager( 2716): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
I/PhoneFactory( 2716): Network Mode set to 0
D/TelephonyManager( 2716): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
I/PhoneFactory( 2716): lteOnCdma is 0 use SUBSCRIPTION_FROM_NV
I/PhoneFactory( 2716): Cdma Subscription set to 1
D/RILJ ( 2716): RIL(context, preferredNetworkType=0 cdmaSubscription=1)
D/RILJ ( 2716): Not starting RILReceiver: wifi-only
D/UiccController( 2716): Creating UiccController
I/PhoneFactory( 2716): Creating GSMPhone
D/TelephonyTester( 2716): register for intent action=com.android.internal.telephony.gsm.action_detached
D/TelephonyTester( 2716): register for intent action=com.android.internal.telephony.gsm.action_attached
D/PhoneBase( 2716): mDoesRilSendMultipleCallRing=true
D/PhoneBase( 2716): mCallRingDelay=3000
D/RILJ ( 2716): setPhoneType=1 old value=0
D/SMSDispatcher( 2716): SMSDispatcher: ctor mSmsCapable=true format=3gpp mSmsReceiveDisabled=false mSmsSendDisabled=false
D/DCT ( 2716): DCT.constructor
D/Dcc ( 2716): E ctor
D/Dcc ( 2716): X ctor
D/DcTesterFailBrinupAll( 2716): register for intent action=com.android.internal.telephony.dataconnection.action_fail_bringup
D/DcTesterFailBrinupAll( 2716): register for intent action=com.android.internal.telephony.gsm.action_detached
D/DcTesterFailBrinupAll( 2716): register for intent action=com.android.internal.telephony.gsm.action_attached
D/DCT ( 2716): GsmDCT.constructor
D/DcTesterDeacativeAll( 2716): register for intent action=com.android.internal.telephony.dataconnection.action_deactivate_all
D/DcTesterDeacativeAll( 2716): register for intent action=com.android.internal.telephony.gsm.action_detached
D/IccCardProxy( 2716): Creating
D/IccCardProxy( 2716): Broadcasting intent ACTION_SIM_STATE_CHANGED NOT_READY reason null
D/IccCardProxy( 2716): Setting radio tech UMTS
D/TelephonyManager( 2716): getLteOnCdmaMode=0 curVal=-1 product_type='' lteOnCdmaProductType=''
D/IccCardProxy( 2716): updateQuietMode: 3GPP subscription -> newQuietMode=false
D/IccCardProxy( 2716): updateQuietMode: QuietMode is false (app_type=1 isLteOnCdmaMode=false cdmaSource=-1)
D/CallManager( 2716): registerPhone(GSM Handler (com.android.internal.telephony.PhoneProxy) {41955fd0})
D/RILJ ( 2716): [0000]> GET_CURRENT_CALLS
D/RilRequest( 2716): [0000]< GET_CURRENT_CALLS error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/PHONE ( 2716): [ServiceState] setNullState=1
D/GsmSST ( 2716): [GsmSST] Poll ServiceState done: oldSS=[1 1 home null null null Unknown Unknown CSS not supported 0 0 RoamInd=0 DefRoamInd=0 EmergOnly=false] newSS=[1 1 home null null null Unknown Unknown CSS not supported -1 -1 RoamInd=-1 DefRoamInd=-1 EmergOnly=false] oldMaxDataCalls=1 mNewMaxDataCalls=1 oldReasonDataDenied=-1 mNewReasonDataDenied=-1
D/GsmSST ( 2716): [GsmSST] useDataRegStateForDataOnlyDevice: VoiceRegState=1 DataRegState=1
D/PHONE ( 2716): [ServiceState] setVoiceRegState=1
D/PHONE ( 2716): [ServiceState] setNullState=1
D/PHONE ( 2716): [ServiceState] setNullState=1
D/GsmSST ( 2716): [GsmSST] updateSpnDisplay: radio is on but out of service, set plmn='No service.'
D/GsmSST ( 2716): [GsmSST] updateSpnDisplay: changed sending intent rule=0 showPlmn='true' plmn='No service.' showSpn='false' spn=''
D/GsmSST ( 2716): [GsmSST] operatorNumeric is null
D/DCT ( 2716): handleMessage msg={ what=270369 when=-212ms obj=android.os.AsyncResult@41964238 }
D/DCT ( 2716): handleMessage msg={ what=270342 when=-158ms obj=android.os.AsyncResult@41968b90 }
D/DCT ( 2716): onRadioOffOrNotAvailable: is off and clean up all connections
D/DCT ( 2716): cleanUpAllConnections: tearDown=false reason=radioTurnedOff
D/DCT ( 2716): stopNetStatPoll
D/DCT ( 2716): stopDataStallAlarm: current tag=14322 mDataStallAlarmIntent=null
D/DCT ( 2716): handleMessage msg={ what=270345 when=-158ms obj=android.os.AsyncResult@41968e68 }
D/DCT ( 2716): onDataConnectionDetached: stop polling and notify detached
D/DCT ( 2716): stopNetStatPoll
D/DCT ( 2716): stopDataStallAlarm: current tag=14323 mDataStallAlarmIntent=null
D/DCT ( 2716): notifyDataConnection: reason=dataDetached
D/DCT ( 2716): handleMessage msg={ what=270348 when=-159ms obj=android.os.AsyncResult@41968fc0 }
D/DCT ( 2716): onRoamingOff
D/DebugService( 2716): DebugService DebugService:
D/SipService( 2716): SipService: started!
D/SipService( 2716): start:
D/SipBroadcastReceiver( 2716): SIP VOIP not supported: android.net.sip.SIP_SERVICE_UP
D/AT ( 2267): AT< ^STIN:1,1,0
D/AT ( 2267): AT< ^STIN:1,1,0
D/AT ( 2267): AT< ^STIN:1,1,0
D/AT ( 2267): AT< ^STIN:1,1,0
D/AT ( 2267): AT< ^STIN:1,1,0
D/AT ( 2267): AT< +CREG: 1, A54D, D9A2793
Hi jianhua,
suggest to check sim and network settings
in modem.
Best regards
chip