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
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono