Send SMS Using a GSM Modem

893 views
Skip to first unread message

juan franco

unread,
Mar 15, 2011, 6:09:55 PM3/15/11
to Android-x86
Hi Everyone,
I am wondering if there is a way to make android-x86 work with an
external USB GSM Modem to send SMS? Is this posibble? If so how can i
do that?

thank you very much for your suggestions.

Chih-Wei Huang

unread,
Mar 15, 2011, 9:15:38 PM3/15/11
to andro...@googlegroups.com
Yes, it is supported.
But the only modem I've tested it
Huawei's 3G USB modem.

To make it work, you have to
* ensure the proper driver is loaded
* change rild port to match your modem

2011/3/16 juan franco <juanfr...@gmail.com>:


> Hi Everyone,
> I am wondering if there is a way to make android-x86 work with an
> external USB GSM Modem to send SMS? Is this posibble? If so how can i
> do that?

--
Chih-Wei
Android-x86 project
http://www.android-x86.org

juan franco

unread,
Mar 16, 2011, 10:09:08 AM3/16/11
to Android-x86
Thanks for the reply. That sounds easy enough. When you say the proper
driver, do you mean the usbserial driver? Also do you know if the
phone uses AT commands to communicate? This way to modem only needs to
support AT commands.


On Mar 15, 9:15 pm, Chih-Wei Huang <cwhu...@android-x86.org> wrote:
> Yes, it is supported.
> But the only modem I've tested it
> Huawei's 3G USB modem.
>
> To make it work, you have to
> * ensure the proper driver is loaded
> * change rild port to match your modem
>
> 2011/3/16 juan franco <juanfranc...@gmail.com>:

Thisara Kasun

unread,
Feb 21, 2016, 8:46:35 AM2/21/16
to Android-x86
Hi chih-wei,is this still supported (i mean on lollipop branch)? as i noticed there's no libhuawei-ril in 5.1.1 sorce tree.

Chih-Wei Huang

unread,
Feb 22, 2016, 8:40:59 PM2/22/16
to Android-x86
2016-02-21 21:46 GMT+08:00 Thisara Kasun <thisara...@gmail.com>:
> Hi chih-wei,is this still supported (i mean on lollipop branch)? as i noticed there's no libhuawei-ril in 5.1.1 sorce tree.

No.
It was dropped because it can't be compiled
and seems nobody cares it anymore.
(Mauro has tried to fix it but not succeeded yet)

If you still want it, try to fix it and
provide a patch. Thanks!

Midi Jari

unread,
Feb 27, 2016, 4:27:24 PM2/27/16
to Android-x86
that's weird, on the latest MM build, I could definitely connect to 3G using my internal modem (USB internal Huawei MU736), but after a sleep-wake cycle it wouldn't work.

Povilas Staniulis

unread,
Feb 27, 2016, 4:59:17 PM2/27/16
to andro...@googlegroups.com
If the modem can be switched to CDC Ethernet mode (in which it works like a USB network card), Internet access will work.
But not phone functionality.
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

Jihyun Son

unread,
Mar 16, 2016, 8:14:55 AM3/16/16
to Android-x86
Dear Midi Jari,

I do not understand how Android can talk with your MU736 modem without proprietary or generic Huawei ril.
Do you give me some clue or help? I have been trying to get my ME706E USB internal modem working on MM build.

Thanks.

Jihyun Son

unread,
Mar 16, 2016, 8:23:53 AM3/16/16
to Android-x86
Hi Povilas,

Thanks for your help last time about PAE.

I installed Huawei ME706E M.2 internal modem which is recognized as USB device.
Several modules are loaded, cdc_ether, usbserial, usb_wwan, etc.
Also got /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2 for controlling the modem.

Now I have eth0 interface by cdc_ether module and have tried to get it work.
I found that I need to know some AT commands to connect to carrier.
Those command can be entered to /dev/ttyUSB# and I can see responses.

Finally I can connect to the carrier network but I'm stuck here.
What I need more is using pppd but no information how to use that.

In MM build, there are several files already, such as:
 - /etc/ppp/peers/gprs
 - /etc/ppp/ip-up
 - /etc/ppp-ip-down

They are needed to negotiate ppp connection after the modem connect to a carrier network.

Do you have any idea?
I think Midi Jari can help how to deal with this situation.

Thanks.

Povilas Staniulis

unread,
Mar 16, 2016, 9:25:37 AM3/16/16
to andro...@googlegroups.com
Can't find any info about that modem.
If it's like other Huawei modems, wvdial should work with it.

Can you post the USB IDs ?
(output of lsusb command)

Jihyun Son

unread,
Mar 16, 2016, 9:57:22 AM3/16/16
to Android-x86
Here it is:

root@x86:/ # lsusb
Bus 001 Device 002: ID 0bda:5757
Bus 001 Device 003: ID 06cb:2819
Bus 001 Device 004: ID 114d:1002
Bus 001 Device 006: ID 12d1:1573 <- This is the one for Huawei ME906E
Bus 001 Device 005: ID 8087:0a2a
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0003

Povilas Staniulis

unread,
Mar 16, 2016, 11:03:43 AM3/16/16
to andro...@googlegroups.com
This modem probably uses the tty interfaces to connect and CDC Ethernet
for data.
I couldn't find any info on how to manually setup this modem but it
supposedly works under Linux.
Will keep looking and update if I find anything.

Jihyun Son

unread,
Mar 16, 2016, 7:05:59 PM3/16/16
to andro...@googlegroups.com

Yes, it uses /dev/ttyUSB# interfaces to control to control a modem.

I found a way how to use pppd so the modem connected to a carrier network, ppp0 interfaces was created, and was able to ping google dns!
But chrome browser did not recognize this ppp0 interface connected to internet.

It is kind of mess so does not always work.
I have been looking for information about wvdial, it looks like using pppd and AT commands to get those work easy.

Is there a way to integrate wvdial + wvstream source into Android?
Maybe better to just make some script if it is too much work..

2016. 3. 17. 00:03에 "Povilas Staniulis" <wdmo...@gmail.com>님이 작성:

Povilas Staniulis

unread,
Mar 17, 2016, 1:51:58 PM3/17/16
to andro...@googlegroups.com
Try setting DNS servers:

setprop net.dns0 8.8.8.8
setprop net.dns1 8.8.4.4

Yes, it's possible to integrate wvdial.
The easiest way would be to make a script and put it somewhere, eg /system/bin or /system/xbin and run it from some init script or manually from terminal.

Jihyun Son

unread,
Mar 17, 2016, 8:22:38 PM3/17/16
to andro...@googlegroups.com

I thought that was kind of hard because of library dependancies.
I am going to build wvdial on a linux host and put them under /system of Android target tonight and test how it goes.

Well dns setting is also helpful. thanks!
I will keep this things updated.

2016. 3. 18. 02:51에 "Povilas Staniulis" <wdmo...@gmail.com>님이 작성:

Jihyun Son

unread,
Mar 17, 2016, 9:09:32 PM3/17/16
to andro...@googlegroups.com

Another thing:
I successfully built huaweigeneric-ril for MM.
It has a lot of build errors about audio so I just modified some codes(removed).
I will post a result if it works or not.
I guess it needs further modification to have enough AT commands for ME906E.

Thisara Kasun

unread,
Mar 18, 2016, 9:11:07 PM3/18/16
to Android-x86
Please provide a patch for upstream. :)

Jihyun Son

unread,
Mar 19, 2016, 12:29:48 AM3/19/16
to Android-x86
Okay, another update.

The modified huaweigeneric-ril does not work.
A big part of a problem is as below:

RILJ : Couldn't find 'rild' socket; retrying after timeout

There IS a rild socket under /dev/socket, owner is root:radio.

srw-rw---- root radio 2016-03-19 13:11 rild

On KK build, included huaweigeneric-ril at least communicate with control interface, but on MM build it does not.

I'm looking at the codes but very hard to go further as I'm not a coder.
logcat_radio.txt.gz

Thisara Kasun

unread,
Apr 1, 2016, 10:19:14 PM4/1/16
to Android-x86
Possibly because the source at https://github.com/DerArtem/huaweigeneric-ril haven't been updated for long time?? As i see the last commit is at Feb 14, 2013. i doubt that might be the reason it not getting compiled after KK. but if developers at jide have any plans to add support for 3g modems,they will have to find a way out.

Midi Jari

unread,
Apr 2, 2016, 2:42:32 AM4/2/16
to Android-x86

Even if they do, for now they still haven't showed any source code. So even if this feature is added to the next releases you would still have to wait until sources are released.


On Sat, 2 Apr 2016 03:19 Thisara Kasun, <thisara...@gmail.com> wrote:
Possibly because the source at https://github.com/DerArtem/huaweigeneric-ril haven't been updated for long time?? As i see the last commit is at Feb 14, 2013. i doubt that might be the reason it not getting compiled after KK. but if developers at jide have any plans to add support for 3g modems,they will have to find a way out.

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/QOIg5wonaME/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.

Thisara Kasun

unread,
Apr 3, 2016, 7:28:57 AM4/3/16
to Android-x86
But they have stated that they will contribute and share the improvements made at kernel level and hals with the android-x86 project,so i still have a hope :)
Reply all
Reply to author
Forward
0 new messages