Beagle board GSM support

71 views
Skip to first unread message

Joel Parker

unread,
Jun 8, 2010, 1:10:07 PM6/8/10
to 0xlab-discuss
Which pins should be used to access the android's RIL layer to talk to
a GSM modem ? I am new to the Beagle Board project, so please forgive
an obvious question like this one.

Noob.

Erin Yueh

unread,
Jun 9, 2010, 11:46:40 AM6/9/10
to 0xlab-...@googlegroups.com
Hi Noob, 

I was trying RIL with an external GSM modem card and it's a USB device. Android can recognize it as a device from Linux kernel. 

Regards,
Erin Yueh
http://0xlab.org



--
You received this message because you are subscribed to the Google Groups "0xlab-discuss" group.
To post to this group, send email to 0xlab-...@googlegroups.com.
To unsubscribe from this group, send email to 0xlab-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/0xlab-discuss?hl=en.


Message has been deleted

Joel Parker

unread,
Jun 10, 2010, 11:36:21 AM6/10/10
to 0xlab-discuss
Eventually, I want to use an embedded modem but for now I was just
trying to use an external gsm modem plugged into an usb hub. I can see
the rild come up in the console of the beagle board and I can see the
sim registered and get signal strength if I use AT commands with the
modem but I cannot figure out how to get Android to talk to the modem
through rild. Is there something I need to configure, what am I
missing here ?

-- noob

On Jun 9, 10:46 am, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Noob,
>
> I was trying RIL with an external GSM modem card and it's a USB device.
> Android can recognize it as a device from Linux kernel.
>
> Regards,
> Erin Yuehhttp://0xlab.org
>
> On Wed, Jun 9, 2010 at 01:10, Joel Parker <joel.parker...@gmail.com> wrote:
> > Which pins should be used to access the android's RIL layer to talk to
> > a GSM modem ? I am new to the Beagle Board project, so please forgive
> > an obvious question like this one.
>
> > Noob.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "0xlab-discuss" group.
> > To post to this group, send email to 0xlab-...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > 0xlab-discus...@googlegroups.com<0xlab-discuss%2Bunsu...@googlegroups.com>
> > .

Erin Yueh

unread,
Jun 11, 2010, 6:02:34 AM6/11/10
to 0xlab-...@googlegroups.com
HI noob,

If you'd like to see real GSM network signal in Android, you can
modify the options of rild. Like rild.libargs=-d /dev/ttyS2, change it
with your device name in Android.

Regards,
Erin Yueh
http://0xlab.org

> To unsubscribe from this group, send email to 0xlab-discus...@googlegroups.com.

Message has been deleted

Joel Parker

unread,
Jun 11, 2010, 3:32:09 PM6/11/10
to 0xlab-discuss
I am using a prolific usb to serial converter and it seems to be
picked up during the boot process (I can see it in the console as /dev/
ttyUSB0). However, when I type echo AT > /dev/ttyUSB0 I don't see
anything returned. If I disconnect the modem from the beagle board and
connect it to my laptop the modem responds to AT commands, etc. Any
ideas what I am doing wrong ? Also, this I am sure is a dumb question,
but how do you get the buld.prop file off the beagle board to edit
it ? All I have is a console cable hooked up to the thing and it
wouldn't let me perform a mv onto the mounted sdcard ?

-- Joel

On Jun 11, 5:02 am, Erin Yueh <eriny...@gmail.com> wrote:
> HI noob,
>
> If you'd like to see real GSM network signal in Android, you can
> modify the options of rild. Like rild.libargs=-d /dev/ttyS2, change it
> with your device name in Android.
>
> Regards,
> Erin Yuehhttp://0xlab.org

Erin Yueh

unread,
Jun 15, 2010, 12:09:52 AM6/15/10
to 0xlab-...@googlegroups.com
Hi Joel,

1. no response on /dev/ttyUSB0 in Android: type echo AT > to GSM
modem? I guess you probably can use a minicom utility and it can allow
you to set some settings to modem, like baud rate and hardware flow
control.

2. build.prop: i modified this system.prop as below and then rebuild
the system image from Android building env.
erin@midnight:~/work/eclair/beagle-eclair/vendor/0xlab/beagleboard$
cat system.prop
#
# system.prop
#

rild.libpath=/system/lib/libreference-ril.so
rild.libargs=-d /dev/ttyUSB2

3. cannot use mv: you mean you dont have mv utility? if so, you could
upload a busybox to Beagle board and then you can execute much more
commands.


Regards,
Erin Yueh
http://0xlab.org

Joel Parker

unread,
Jun 23, 2010, 1:19:59 PM6/23/10
to 0xlab-discuss
I have my build.prop ril pointed to /dev/ttyUSB0 should I see some AT
commands in the console or something or do I need to start a ppd
deamon or should everything be working at this point ? I do not have a
signal yet from my modem (antenna on back order), just wanted to see
if there was somewhere I could look to see if the ril interface was
working now or if I still needed to do something.

-- Joel

On Jun 14, 11:09 pm, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Joel,
>
> 1. no response on /dev/ttyUSB0 in Android: type echo AT > to GSM
> modem? I guess you probably can use a minicom utility and it can allow
> you to set some settings to modem, like baud rate and hardware flow
> control.
>
> 2. build.prop: i modified this system.prop as below and then rebuild
> the system image from Android building env.
> erin@midnight:~/work/eclair/beagle-eclair/vendor/0xlab/beagleboard$
> cat system.prop
> #
> # system.prop
> #
>
> rild.libpath=/system/lib/libreference-ril.so
> rild.libargs=-d /dev/ttyUSB2
>
> 3. cannot use mv: you mean you dont have mv utility? if so, you could
> upload a busybox to Beagle board and then you can execute much more
> commands.
>
> Regards,
> Erin Yuehhttp://0xlab.org

Erin Yueh

unread,
Jun 24, 2010, 5:17:56 AM6/24/10
to 0xlab-...@googlegroups.com
Hi Joel,

Can you see /dev/ttyUSB0 in Android? My 3G modem card would generate 4
ports device in Android, like /dev/ttyUSB0 to /dev/ttyUSB3, the first
one is for GSM and the third one is for GPRS. I am not sure about your
device, but you could use minicom to verify each port.

about pppd, did you apply these patches in system/core and
external/ppp for dial-up network? if yes, then you could type "start
ppp". then it would execute a gprs script. You will need to know how
to modify the script for your local network operator.

Regards,
Erin Yueh
http://0xlab.org

Joel Parker

unread,
Jun 24, 2010, 9:14:07 AM6/24/10
to 0xlab-discuss
I am not sure what you mean by "in Android". in the console port if I
type ls -l /dev/ttyUSB* it comes back with /dev/ttyUSB0 radio radio.
I don't know what patches you are referring to for ppp? (Can you point
me to them) I have a Telit Quad band modem and running the eclair-0x4
build on beagleboard-C4. Is minicom already installed in Android or do
I need busy box installed ? Should Signal Strength, SMS, and other RIL
stuff be working at this point ?

-- Joel

On Jun 24, 4:17 am, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Joel,
>
> Can you see /dev/ttyUSB0 in Android? My 3G modem card would generate 4
> ports device in Android, like /dev/ttyUSB0 to /dev/ttyUSB3, the first
> one is for GSM and the third one is for GPRS. I am not sure about your
> device, but you could use minicom to verify each port.
>
> about pppd, did you apply these patches in system/core and
> external/ppp for dial-up network? if yes, then you could type "start
> ppp". then it would execute a gprs script. You will need to know how
> to modify the script for your local network operator.
>
> Regards,
> Erin Yuehhttp://0xlab.org

Joel Parker

unread,
Jun 24, 2010, 11:27:18 AM6/24/10
to 0xlab-discuss
I can see RIL talking to the modem now, thx.

-- Joel

On Jun 24, 4:17 am, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Joel,
>
> Can you see /dev/ttyUSB0 in Android? My 3G modem card would generate 4
> ports device in Android, like /dev/ttyUSB0 to /dev/ttyUSB3, the first
> one is for GSM and the third one is for GPRS. I am not sure about your
> device, but you could use minicom to verify each port.
>
> about pppd, did you apply these patches in system/core and
> external/ppp for dial-up network? if yes, then you could type "start
> ppp". then it would execute a gprs script. You will need to know how
> to modify the script for your local network operator.
>
> Regards,
> Erin Yuehhttp://0xlab.org

Joel Parker

unread,
Jul 1, 2010, 9:43:07 AM7/1/10
to 0xlab-discuss
The modem is talking to Android through RIL now and the phone and SMS
seem to work fine. I entered the APN settings for my network and sent
an MMS/WAP to Android. I received the message with a download button
but it failed to download, I also cannot get a GPRS connection to surf
the internet. Is there something else that I need to configure to get
GPRS / Multimedia working ?

-- Joel

On Jun 24, 4:17 am, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Joel,
>
> Can you see /dev/ttyUSB0 in Android? My 3G modem card would generate 4
> ports device in Android, like /dev/ttyUSB0 to /dev/ttyUSB3, the first
> one is for GSM and the third one is for GPRS. I am not sure about your
> device, but you could use minicom to verify each port.
>
> about pppd, did you apply these patches in system/core and
> external/ppp for dial-up network? if yes, then you could type "start
> ppp". then it would execute a gprs script. You will need to know how
> to modify the script for your local network operator.
>
> Regards,
> Erin Yuehhttp://0xlab.org

Erin Yueh

unread,
Jul 3, 2010, 1:19:51 PM7/3/10
to 0xlab-...@googlegroups.com
Hi Joel,

About GPRS, you need to use pppd to set up the dial up network. Did
you apply those patches in system/core and


external/ppp for dial-up network? if yes, then you could type "start
ppp". then it would execute a gprs script. You will need to know how
to modify the script for your local network operator.

Regards,
Erin Yueh
http://0xlab.org

Joel Parker

unread,
Jul 6, 2010, 4:23:07 PM7/6/10
to 0xlab-discuss
Where do I get the patches to setup ppd under system core ?

-- Joel

On Jul 3, 12:19 pm, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Joel,
>
> About GPRS, you need to use pppd to set up the dial up network. Did
> you apply those patches in system/core and
> external/ppp for dial-up network? if yes, then you could type "start
> ppp". then it would execute a gprs script. You will need to know how
> to modify the script for your local network operator.
>
> Regards,
> Erin Yuehhttp://0xlab.org

Erin Yueh

unread,
Jul 7, 2010, 6:41:22 AM7/7/10
to 0xlab-...@googlegroups.com

Joel Parker

unread,
Jul 7, 2010, 3:01:04 PM7/7/10
to 0xlab-discuss
Forgive my ignorance. what are the commands to apply a patch with git.

-- Joel

On Jul 7, 5:41 am, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Joel,
>
> You could check 0xdroid project in gitorious.
>
> external ppphttp://gitorious.org/0xdroid/external_ppp/commit/6624b6760d8fde02993f...
>
> system corehttp://gitorious.org/0xdroid/system_core/commit/81b121623c3f05298b516...
>
> Regards,
> Erin Yuehhttp://0xlab.org

Jim Huang

unread,
Jul 8, 2010, 12:18:37 AM7/8/10
to 0xlab-...@googlegroups.com
2010/7/8 Joel Parker <joel.pa...@gmail.com>:

> Forgive my ignorance. what are the commands to apply a patch with git.
>

hi Joel,

I would suggest you to learn git first. You can use "git cherry-pick"
for picking 0xlab's changes into your tree:
http://www.kernel.org/pub/software/scm/git/docs/git-cherry-pick.html

Alternatively, you can rebase to 0xdroid HEAD.

Sincerely.
Jim Huang (jserv)
http://0xlab.org/

Joel Parker

unread,
Aug 26, 2010, 11:47:33 AM8/26/10
to 0xlab-discuss
How do you figure out how to modify the script (gprs-connect-chat ?)
for your local network operator ? Where would you look for this
information or who could I ask ?

-- Joel

On Jul 3, 12:19 pm, Erin Yueh <eriny...@gmail.com> wrote:
> Hi Joel,
>
> About GPRS, you need to use pppd to set up the dial up network. Did
> you apply those patches in system/core and
> external/ppp for dial-up network? if yes, then you could type "start
> ppp". then it would execute a gprs script. You will need to know how
> to modify the script for your local network operator.
>
> Regards,
> Erin Yuehhttp://0xlab.org

Erin Yueh

unread,
Aug 26, 2010, 10:29:33 PM8/26/10
to 0xlab-...@googlegroups.com
I google it and check ubuntu forum. The script would be the same like
people use 3G network in Ubuntu machine.

Regards,
Erin Yueh
http://0xlab.org

Reply all
Reply to author
Forward
0 new messages