Jump to content


Photo

Information and test with 3G Modems


  • Please log in to reply
103 replies to this topic

#101 konzen

konzen

    Member

  • Jr. Member
  • PipPip
  • 15 posts

Posted 02 February 2012 - 08:49 AM

Bug´s with USB debugging enabled:

Loop enables disables in adb service when in sleep mode, draining the battery
Extremely unstable USB connection to the 3G modem


Conclusion only enabled when needed and disable as soon as possible

(translated by google)



#102 amurchick

amurchick

    Newbie

  • Jr. Member
  • Pip
  • 3 posts
  • LocationIrkutsk/Russia

Posted 22 February 2012 - 08:36 AM

I will try connect AnyDATA ADU-510A to DroPAD fw 919
RIL library from a8x_huawei_ril.zip downloaded from this topic.
Look in log - some AT-commands are not recognized by this modem (see log below).
Anybody can helps? Thanks!
# logcat -b radio
logcat -b radio
I/RIL     (   61): Opening tty device /dev/ttyUSB0
D/RIL     (   61): killPPP 0
D/RIL     (   61): Open /dev/ttyUSB0 fd -1
D/RIL     (   61): Opening AT interface. retrying...
D/RIL     (   61): Open /dev/ttyUSB0 fd -1
D/RIL     (   61): Opening AT interface. retrying...
I/PHONE   (  188): Network Mode set to 0
I/PHONE   (  188): Cdma Subscription set to 1
I/PHONE   (  188): Creating GSMPhone
I/RILC    (   61): libril: new connection
I/RILC    (   61): RIL Daemon version: Huawei generic RIL 1.6.1
I/RILJ    (  188): Connected to 'rild' socket
D/RILJ    (  188): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_UNAVAILABLE
D/PHONE   (  188): mDoesRilSendMultipleCallRing=false
D/PHONE   (  188): mCallRingDelay=3000
W/GSM     (  188): Can't open /system/etc/voicemail-conf.xml
W/GSM     (  188): Can't open /system/etc/spn-conf.xml
D/GSM     (  188): [DSAC DEB] registerForPsRestrictedEnabled
D/GSM     (  188): [DSAC DEB] registerForPsRestrictedDisabled
D/GSM     (  188): [GsmDataConnection-1] DataConnection constructor E
D/GSM     (  188): [GsmDataConnection-1] clearSettings
D/GSM     (  188): [GsmDataConnection-1] DataConnection constructor X
D/GSM     (  188): [GsmDataConnection-1] Made GsmDataConnection-1
D/RILJ    (  188): [0000]> RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING
D/RIL     (   61): onRequest: REPORT_STK_SERVICE_IS_RUNNING (103)
D/RILJ    (  188): [0000]< RIL_REQUEST_REPORT_STK_SERVICE_IS_RUNNING error: com.android.internal.telephony.CommandException: RADIO_N
OT_AVAILABLE
D/STK     (  188): StkService: StkService: is running
D/STK     (  188): StkService: NEW sInstance
D/RILJ    (  188): [0001]> GET_CURRENT_CALLS
D/RIL     (   61): onRequest: GET_CURRENT_CALLS (9)
D/RILJ    (  188): [0001]< GET_CURRENT_CALLS error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
E/GSM     (  188): Wrong network type: 0
E/GSM     (  188): Wrong network type: 0
D/GSM     (  188): Poll ServiceState done:  oldSS=[1 home null null null  Unknown CSS not supported 0 0RoamInd: 0DefRoamInd: 0EmergO
nly: false] newSS=[1 home null null null  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=1 newGpr
s=1 oldType=unknown newType=unknown
D/GSM     (  188): [GsmDataConnection-1] DcInactiveState: msg.what=EVENT_RESET, ignore we're already reset
D/GSM     (  188): [GsmDataConnection-1] NotifyDisconnectCompleted
D/GSM     (  188): [DataConnection] Stop poll NetStat
D/GSM     (  188): [GsmDataConnection-1] clearSettings
D/GSM     (  188): [DataConnection] Stop poll NetStat
D/GSM     (  188): [DSAC DEB] trySetupData with mIsPsRestricted=false
D/GSM     (  188): [IccCard] Broadcasting intent ACTION_SIM_STATE_CHANGED NOT_READY reason null
D/RILJ    (  188): [0002]> REQUEST_GET_NEIGHBORING_CELL_IDS
D/RIL     (   61): onRequest: GET_NEIGHBORING_CELL_IDS (75)
D/RILJ    (  188): [0002]< REQUEST_GET_NEIGHBORING_CELL_IDS error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILA
BLE
D/RILJ    (  188): [0003]> REQUEST_SET_LOCATION_UPDATES: true
D/RIL     (   61): onRequest: SET_LOCATION_UPDATES (76)
D/RILJ    (  188): [0003]< REQUEST_SET_LOCATION_UPDATES error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/RIL     (   61): Open /dev/ttyUSB0 fd 17
D/AT      (   61): AT> ATE0Q0V1
D/AT      (   61): AT< ATE0Q0V1
D/AT      (   61): AT< OK
D/AT      (   61): AT> AT+CFUN=0
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> ATZV1
D/RILB    (  188): Notifying: radio available
D/RILJ    (  188): [0004]> SCREEN_STATE: true
D/RILJ    (  188): [0005]> RADIO_POWER
D/AT      (   61): AT< OK
D/AT      (   61): AT> ATE0
D/AT      (   61): AT< ATE0
D/AT      (   61): AT< OK
D/AT      (   61): AT> ATS0=0
D/AT      (   61): AT< OK
D/AT      (   61): AT> ATQ0
D/AT      (   61): AT< OK
D/AT      (   61): AT> ATX3
D/AT      (   61): AT< OK
D/AT      (   61): AT> AT&C1
D/AT      (   61): AT< OK
D/AT      (   61): AT> AT&D1
D/AT      (   61): AT< OK
D/AT      (   61): AT> AT+CMEE=1
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CMOD=0
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CRC=1;+CR=1
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CLIP=1
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CLIR=0
D/RILJ    (  188): [UNSL]< UNSOL_RESPONSE_RADIO_STATE_CHANGED RADIO_OFF
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CCWA=1
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+COLP=0
E/GSM     (  188): Wrong network type: 0
E/GSM     (  188): Wrong network type: 0
D/GSM     (  188): Poll ServiceState done:  oldSS=[1 home null null null  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1Em
ergOnly: false] newSS=[3 home null null null  Unknown CSS not supported -1 -1RoamInd: -1DefRoamInd: -1EmergOnly: false] oldGprs=1 ne
wGprs=1 oldType=unknown newType=unknown
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CUSD=1
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CMGF=0
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CSSN=0,1
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CSCS="IRA"
D/RILJ    (  188): [0006]> BASEBAND_VERSION
D/RILJ    (  188): [0007]> GET_IMEI
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+FCLASS=0
D/RILJ    (  188): [0008]> GET_IMEISV
D/AT      (   61): AT< OK
D/AT      (   61): AT> AT+CNMI=1,2,2,2,0
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CREG=2
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CREG=1
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CGREG=2
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CGEQREQ=1,4,0,0,0,0,2,0,"0E0","0E0",3,0,0
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT
D/AT      (   61): AT< OK
D/AT      (   61): AT> AT+CFUN?
D/AT      (   61): AT< ERROR
D/RIL     (   61): onRequest: SCREEN_STATE (61)
D/RIL     (   61): onRequest: RADIO_POWER (23)
D/AT      (   61): AT> AT+CFUN=1
D/RILJ    (  188): [0004]< SCREEN_STATE error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/AT      (   61): AT< ERROR
D/AT      (   61): AT> AT+CFUN?
D/AT      (   61): AT< ERROR
D/RIL     (   61): onRequest: BASEBAND_VERSION (51)
D/RIL     (   61): onRequest: GET_IMEI (38)
D/RIL     (   61): onRequest: GET_IMEISV (39)
D/RILJ    (  188): [0005]< RADIO_POWER error: com.android.internal.telephony.CommandException: GENERIC_FAILURE
D/RILJ    (  188): [0006]< BASEBAND_VERSION error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/RILJ    (  188): [0007]< GET_IMEI error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/RILJ    (  188): [0008]< GET_IMEISV error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE
D/PHONE   (  188): VM: PhoneSubInfo.getVoiceMailNUmber:
D/RILJ    (  188): [0009]> SET_MUTE false
D/RIL     (   61): onRequest: SET_MUTE (53)
D/RILJ    (  188): [0009]< SET_MUTE error: com.android.internal.telephony.CommandException: RADIO_NOT_AVAILABLE

ps. Moderator - please move log to spoiler - i was unable find this function in forums UI...

#103 Yan78

Yan78

    Newbie

  • Jr. Member
  • Pip
  • 6 posts

Posted 08 March 2012 - 03:08 PM

Guys,

just wanted to share with you all, that I've got my Huawei E220 3G modem working with A8X! :yahoo: :yahoo:
Will post some more news and pics of course later today.

UPDATE:
Pics added.

How to get 3G USB modem working on your A8X?

After reading a lot of info on the web, I decided to give it a try.
Connecting the A8X in debug mode to the PC and running "adb bugreport" to generate a log, I saw this:

...
<6>option: v0.7.2:USB Driver for GSM modems
...
<6>option 1-1:1.0: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
<6>option 1-1:1.1: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
<6>option 1-1:1.2: GSM modem (1-port) converter detected
<6>usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
This means that USB modem drivers library is present and that USB modem is recognized.
But, the Network options or APNs (because of the bug) or the network symbol on the upper right screen does not work. You see nothing new when pluging your modem.
I found a russion website with a solution for Dropad D9 and I decided to give it a shot!

What you need to do to make your 3G USB modem to work (tested with Huawei E220):
Modem:
1. Make sure the modem is set to modemonly.
1.1 In a Windows PC, connect to your modem COM port using Hyperterminal (or your perfered software for this. I use putty.)
1.2 Type the following in CAPS and press enter:
AT ^ U2DIAG = 0
(available options are:)
AT ^ U2DIAG = 0 (device-only modem)
AT ^ U2DIAG = 1 (the device as a modem CD-ROM)
AT ^ U2DIAG = 255 (the device as a modem CD-ROM Card Reader - Factory default in most cases)
AT ^ U2DIAG = 256 (the device as a modem Card Reader).

2. Disable PIN authentication.

Android:
1. Root your A8X
2. Install GScript Lite (Google Market)
3. Open file "cdma" and edit user and password for your operator. If not used, delete fields.
debug
ttyUSB0
460800
modem
noipdefault
defaultroute
ipcp-accept-local
lcp-echo-interval 60
lcp-echo-failure 5
usepeerdns
nopcomp
noauth
noaccomp
nodetach
user "USERNAME"
passsword "PASSWORD"
connect "chat -s -S -v -f /system/etc/ppp/Operator.chat"
3. Copy file "cdma" to /system/etc/ppp/peers with read and execute permissions (ppp script file. more info: http://www.linux.ie/...x-guide/ppp.php)
4. Open file "Operator.chat" and edit it accordingly to your operator definitions (AT commands file. Very interesting take a look here if interested to learn more about it: http://www.shapeshif...of-at-commands/)
ECHO ON
'AT-OK' 'ATZ'
'OK-AT-OK' 'ATI'
'OK' 'ATZ'
'OK-AT-OK' 'AT+CGDCONT=1,"IP","YOUR_OPERATOR_APN_SERVER"' -> Example: 'OK-AT-OK' 'AT+CGDCONT=1,"IP","net.operator.com"'
'OK' 'ATDT*99#'
'CONNECT'
5. Copy file "operator.chat" to /system/etc/ppp with read and execute permissions
6. Make sure that you have a folder named "gscript" on the SD card. If not there, create it.
7. Copy the files "ppp_start" and "ppp_stop" to the gscript folder on SD card.
8. Run Gscript Lite and add the 2 script files (7.) and select "Needs su".

Now test the connection. In GScript Lite, run the script "ppp_start" and wait a few seconds (around 30sec in my case). After that your are connected. To close your connection, run the script "ppp_stop".

As you can see, the network icon on the upper right corner of the screen says nothing (like it has no network). Also, in Network Options nothing really works (APNs or Mobile Networks). So to find out if you have network coverage just check your modem lights:
Blinking:
Green: GPRS/EDGE coverage
Blue: 3G coverage
Cyan: HSDPA coverage

Fixed:
Green: GPRS/EDGE connection
Blue: 3G connection
Cyan: HSDPA connection

video taken from russion website:


Can't seem to get the browser to load any webpage... everything else works. Will investigate later. Anyway, progress achieved! :drinks:
UPDATE: Just installed other browser and make it the default one. I installed Firefox and it works fine.
Also, I learned a lot about android file system and so on. Good, right? ;)

Compatible 3G modems on original website are: Huawei E1550, E150, E173, E220, E156G, ZTE MF 626, 627, 180.
Please post your results.
Cheers. :rolleyes:

NOTE: I'll take no credit for this. Also, I'll take no responsability for these actions. Original article can be found here: http://planshetik.co...em-to-gpad-g10/


Hi all ,
I tried step by step as the instruction above .
But I get an error when running script : unrecognised option : ttyUSB0 .
I tried adb bugreport to see if I get anything about GSM modem but when I search log I find nothing about ttyUSB0 .

Is it because I don't have the libraries for GSM modems?

#104 tapeer

tapeer

    Newbie

  • Jr. Member
  • Pip
  • 5 posts

Posted 10 January 2013 - 07:47 AM

Just waiting to get my account approved for download. But in the meantime, one Q. As I'm new with android stuff, I wonder would the precompiled libhuaweigeneric.so from zip work in my device? it has Allwinner A13 and Android 4.0.3? I would not like to build whole rom just to get one lib :)
How in general ril libs are compiled in android, i.e. how interchangeable those are in different devices and android versions?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users