2g/3g huawei modem support

Post Reply
andrewww
Posts: 26
Joined: Tue May 28, 2013 4:43 pm
languages_spoken: english
ODROIDs: x2
Has thanked: 0
Been thanked: 0
Contact:

2g/3g huawei modem support

Unread post by andrewww » Thu Aug 29, 2013 4:21 pm

kernel recompile
Device Drivers --->
[*] Network device support --->
<*> PPP (point-to-point protocol) support
<*> PPP BSD-Compress compression
<*> PPP Deflate compression
<*> PPP support for async serial ports
<*> PPP support for sync tty ports
[*] USB support --->
<*> USB Modem (CDC ACM) support
<*> USB Serial Converter support --->
[*] USB Generic Serial Driver
<*> USB driver for GSM and CDMA modems


edit source android
---
frameworks/base/core/res/res/values/config.xml

Code: Select all

   
 <string-array translatable="false" name="networkAttributes">
        <item>"wifi,1,1,1,-1,true"</item>
        <item>"mobile,0,0,0,-1,true"</item>
        <item>"mobile_mms,2,0,2,60000,true"</item>
        <item>"mobile_supl,3,0,2,60000,true"</item>
        <item>"mobile_hipri,5,0,3,60000,true"</item>
        <item>"ethernet,9,9,1,-1,ture"</item>
        <item>"mobile_fota,10,0,2,60000,true"</item>
        <item>"mobile_ims,11,0,2,60000,true"</item>
        <item>"mobile_cbs,12,0,2,60000,true"</item>
        <item>"wifi_p2p,13,1,0,-1,true"</item>
    </string-array>

    <!-- Array of ConnectivityManager.TYPE_xxxx constants for networks that may only
         be controlled by systemOrSignature apps.  -->
    <integer-array translatable="false" name="config_protectedNetworks">
        <item>10</item>
        <item>11</item>
        <item>12</item>
    </integer-array>

    <!-- This string array should be overridden by the device to present a list of radio
         attributes.  This is used by the connectivity manager to decide which networks can coexist
         based on the hardware -->
    <!-- An Array of "[ConnectivityManager connectionType],
                      [# simultaneous connection types]"  -->
    <string-array translatable="false" name="radioAttributes">
        <item>"1,1"</item>
        <item>"0,1"</item>
        <item>"9,1"</item>
    </string-array>
---init.rc add

Code: Select all

service ril-daemon /system/bin/rild
    class main
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    user root
    group radio cache inet misc audio sdcard_rw log

---ueventd.odroidx2.rc add

Code: Select all

/dev/ttyUSB*    0777    root     	root
--- build.prop

Code: Select all

rild.libpath=/system/lib/libhuaweigeneric-ril.so
rild.libargs=-d /dev/ttyUSB2 -v /dev/ttyUSB1
keyguard.no_require_sim=1
chmod 0755 (root root)
/system/bin/rild
/system/bin/pppd

chmod 0644 (root root)
/system/lib/libhuaweigeneric-ril.so
/system/lib/libreference-ril.so
/system/lib/libril.so

chmod 4755 (root root)
/system/etc/ppp/ip-up
Attachments
huawei.zip
(174.95 KiB) Downloaded 412 times

User avatar
odroid
Site Admin
Posts: 31760
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 83 times
Been thanked: 241 times
Contact:

Re: 2g/3g huawei modem support

Unread post by odroid » Thu Aug 29, 2013 9:13 pm

Really appreciate your codes.
Can you tell me the exact model name of 3g modem you tested?

andrewww
Posts: 26
Joined: Tue May 28, 2013 4:43 pm
languages_spoken: english
ODROIDs: x2
Has thanked: 0
Been thanked: 0
Contact:

Re: 2g/3g huawei modem support

Unread post by andrewww » Thu Aug 29, 2013 9:25 pm

huawei e173

User avatar
sert00
Posts: 745
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: ODROID-U2*2__ODROID-U3__ODROID-XU-E__ODROID-XU-Ebeta__ODROID-C1__ODROID-XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: 2g/3g huawei modem support

Unread post by sert00 » Thu Aug 29, 2013 10:15 pm

i remember on android Honeycomb 3.2 i had to do all manually on tablets to support the interney keys...then instead with jellybean i discvered this applications and with it,never had to tinker with doing it manually.Have you tried it on odroid?
https://play.google.com/store/apps/deta ... dget&hl=it
2x Odroid-U2
2x Odroid-XU-E
Odroid-U3
Odroid-C1+
Odroid-XU4
Lcd touch panel 10.1"
....and many of the goodies available....

andrewww
Posts: 26
Joined: Tue May 28, 2013 4:43 pm
languages_spoken: english
ODROIDs: x2
Has thanked: 0
Been thanked: 0
Contact:

Re: 2g/3g huawei modem support

Unread post by andrewww » Thu Aug 29, 2013 10:15 pm

source
Attachments
huawei-generic.tar.gz
(99.63 KiB) Downloaded 359 times

andrewww
Posts: 26
Joined: Tue May 28, 2013 4:43 pm
languages_spoken: english
ODROIDs: x2
Has thanked: 0
Been thanked: 0
Contact:

Re: 2g/3g huawei modem support

Unread post by andrewww » Thu Aug 29, 2013 10:16 pm

sert00 wrote:i remember on android Honeycomb 3.2 i had to do all manually on tablets to support the interney keys...then instead with jellybean i discvered this applications and with it,never had to tinker with doing it manually.Have you tried it on odroid?
https://play.google.com/store/apps/deta ... dget&hl=it
yes ... work

mdrjr
Site Admin
Posts: 11710
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 0
Been thanked: 6 times
Contact:

Re: 2g/3g huawei modem support

Unread post by mdrjr » Thu Aug 29, 2013 10:22 pm

In case:

Here's the original author sources: https://github.com/DerArtem/huaweigeneric-ril
Here's a modified one that I've tested and performs better: https://github.com/trevd/huaweigeneric-ril
Here's a android device that actually uses it: https://github.com/trevd/pa_device_archos_archosg9
Yet this android device that implements that also uses usb_modeswitch that is required to change the dongle from ZeroCD mode to a GSM Modem.

Those are the sources that I've used to create my test profile, I haven't said a word on this before because I was waiting for time to get easy and I would be able to add this to official rom. But..
Its possible with those above.. and it will work on most of USB Modems. Almost any modem that usb_modeswitch and move out of ZeroCD mode

andrewww
Posts: 26
Joined: Tue May 28, 2013 4:43 pm
languages_spoken: english
ODROIDs: x2
Has thanked: 0
Been thanked: 0
Contact:

Re: 2g/3g huawei modem support

Unread post by andrewww » Fri Aug 30, 2013 2:18 pm

I tried the original source, but he has not work ...
and thanks to that we decided to make an official 3g modem support .... why so long :D ...

mdrjr
Site Admin
Posts: 11710
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 0
Been thanked: 6 times
Contact:

Re: 2g/3g huawei modem support

Unread post by mdrjr » Fri Aug 30, 2013 2:29 pm

it worked for me...
Because I need to clear the sources make it work for 4 boards and so on.. with 3 different Android versions ;)

frengo
Posts: 8
Joined: Mon Mar 21, 2016 1:27 am
languages_spoken: english, italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: 2g/3g huawei modem support

Unread post by frengo » Sun Apr 10, 2016 8:04 pm

Hello, how are you?

I read the thread but now I see that and 'a little' stale ....
Can you kindly tell me a link to a step-by-step guide to getting going on the internet a ODROID C1+ (ArchLinux or Debian based OS) connecting it to a stick GSM 2G / 3G USB type Huawei D22HG (E122?).

Many thanks in advance....

User avatar
odroid
Site Admin
Posts: 31760
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 83 times
Been thanked: 241 times
Contact:

Re: 2g/3g huawei modem support

Unread post by odroid » Mon Apr 11, 2016 9:06 am

Don't wake 3 years old thread up.
Post a question on the C1 sub-forum.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest