From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: How to talk with FreeRunner?
Date: Mon, 19 Oct 2009 12:13:01 -0500 [thread overview]
Message-ID: <200910191213.02239.denkenz@gmail.com> (raw)
In-Reply-To: <38D9F46DFF92C54980D2F2C1E8EE313001B113BAEF@pdsmsx503.ccr.corp.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1809 bytes --]
Hi Yang,
> I just got a Openmoko FreeRunner and I wonder how oFono can talk with it.
> Use ser2net, but how? Can someone help on some simple steps or
> instructions? Thanks a lot! By the way, the OS installed in it is Android
> Cupcake. Need I change to other OS?
There are a couple of ways:
- Cross compile oFono itself to run directly on the device using the calypso
driver.
- Cross compile ser2net, but run oFono on the desktop using the phonesim
driver.
Either way you will need the cross compiler and toolchain here:
http://wiki.openmoko.org/wiki/Toolchain
Note that my device came stock with the OpenMoko rootfs, so I have no
experience with Android.
For ser2net:
- Cross compile ser2net using the supplied toolchain, I don't remember
exactly, but I think this will get you there: ./configure --prefix=/usr --
sysconfdir=/etc --host=arm-angstrom-linux-gnueabi
- Copy ser2net to the device.
- Create /etc/ser2net.conf with the following line:
2000:raw:600:/dev/ttySAC0:115200 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL RTSCTS
- Kill whatever daemon is managing the serial port, in my case
/etc/init.d/gsmd stop
- Reset the modem. For my rootfs here is the script I use:
PATH=/bin:/usr/bin:/sbin:/usr/sbin
[ -f /etc/default/gsmd ] && . /etc/default/gsmd
[ -n "$GSM_POW" ] && ( echo "0" >$GSM_POW; sleep 1 )
[ -n "$GSM_POW" ] && ( echo "1" >$GSM_POW; sleep 1 )
[ -n "$GSM_RES" ] && ( echo "1" >$GSM_RES; sleep 1 )
[ -n "$GSM_RES" ] && ( echo "0" >$GSM_RES; sleep 2 )
- start ser2net
You can test by telneting to your device on port 2000. Hitting enter a few
times should give you several OKs.
Setup your modem.conf as follows:
[freerunner]
Driver=phonesim
Address=<your device address>
Port=2000
Modem=calypso
Regards,
-Denis
next prev parent reply other threads:[~2009-10-19 17:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-18 6:04 How to talk with FreeRunner? Gu, Yang
2009-10-19 17:13 ` Denis Kenzior [this message]
2009-10-19 18:22 ` Andrzej Zaborowski
2009-10-20 8:09 ` DJDAS
2009-10-20 8:32 ` Gu, Yang
2009-10-20 9:05 ` DJDAS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200910191213.02239.denkenz@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox