* How to talk with FreeRunner?
@ 2009-10-18 6:04 Gu, Yang
2009-10-19 17:13 ` Denis Kenzior
0 siblings, 1 reply; 6+ messages in thread
From: Gu, Yang @ 2009-10-18 6:04 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
Hi,
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?
Regards,
-Yang
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to talk with FreeRunner?
2009-10-18 6:04 How to talk with FreeRunner? Gu, Yang
@ 2009-10-19 17:13 ` Denis Kenzior
2009-10-19 18:22 ` Andrzej Zaborowski
0 siblings, 1 reply; 6+ messages in thread
From: Denis Kenzior @ 2009-10-19 17:13 UTC (permalink / raw)
To: ofono
[-- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to talk with FreeRunner?
2009-10-19 17:13 ` Denis Kenzior
@ 2009-10-19 18:22 ` Andrzej Zaborowski
2009-10-20 8:09 ` DJDAS
0 siblings, 1 reply; 6+ messages in thread
From: Andrzej Zaborowski @ 2009-10-19 18:22 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1566 bytes --]
Hi,
2009/10/19 Denis Kenzior <denkenz@gmail.com>:
>> 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
You can possibly avoid the cross compiling if you're going to run
oFono on PC anyway, by using netcat instead of ser2net. Either
"netcat" or "nc" is usually in the packages repo of any distribution.
The command would be
# nc -l -p 2000 < /dev/ttySAC0 > /dev/ttySAC0
All other steps would be same as Denis outlined.
If you find that the port is spitting corrupt data, it's probably not
initialised. I use picocom to initialise ttys, it's:
# picocom /dev/ttySAC0
then ^a^q to quit picocom without resetting the port and then re-run nc.
Regards
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to talk with FreeRunner?
2009-10-19 18:22 ` Andrzej Zaborowski
@ 2009-10-20 8:09 ` DJDAS
2009-10-20 8:32 ` Gu, Yang
0 siblings, 1 reply; 6+ messages in thread
From: DJDAS @ 2009-10-20 8:09 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2553 bytes --]
Andrzej Zaborowski ha scritto:
> Hi,
>
> 2009/10/19 Denis Kenzior <denkenz@gmail.com>:
>
>>> 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
>>
>
> You can possibly avoid the cross compiling if you're going to run
> oFono on PC anyway, by using netcat instead of ser2net. Either
> "netcat" or "nc" is usually in the packages repo of any distribution.
> The command would be
> # nc -l -p 2000 < /dev/ttySAC0 > /dev/ttySAC0
>
> All other steps would be same as Denis outlined.
>
> If you find that the port is spitting corrupt data, it's probably not
> initialised. I use picocom to initialise ttys, it's:
> # picocom /dev/ttySAC0
> then ^a^q to quit picocom without resetting the port and then re-run nc.
>
> Regards
> _______________________________________________
> ofono mailing list
> ofono(a)ofono.org
> http://lists.ofono.org/listinfo/ofono
>
Hi all,
I'm the project leader of a new Freerunner distribution which claims to
be AT MOST a stable telephone instead of replicate all the other
distributions who claim to port the desktop-style distribution paradigm
to the Freerunner. In this way of think we planned to use oFono as the
main telephone stack because, following the mailing list since the
starting of the project, I believe oFono is a very well planned and
developed platform.
At the moment I am able to cross compile oFono with my toolchain and it
works quite well on my Freerunner so if someone needs a tarball with
ofonod and everything "make install" produces I can provide them without
problems :)
Thank you very much for your great work good bye.
Dario.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: How to talk with FreeRunner?
2009-10-20 8:09 ` DJDAS
@ 2009-10-20 8:32 ` Gu, Yang
2009-10-20 9:05 ` DJDAS
0 siblings, 1 reply; 6+ messages in thread
From: Gu, Yang @ 2009-10-20 8:32 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 942 bytes --]
>Hi all,
>I'm the project leader of a new Freerunner distribution which claims to
>be AT MOST a stable telephone instead of replicate all the other
>distributions who claim to port the desktop-style distribution paradigm
>to the Freerunner. In this way of think we planned to use oFono as the
>main telephone stack because, following the mailing list since the
>starting of the project, I believe oFono is a very well planned and
>developed platform.
>At the moment I am able to cross compile oFono with my toolchain and it
>works quite well on my Freerunner so if someone needs a tarball with
>ofonod and everything "make install" produces I can provide them without
>problems :)
>Thank you very much for your great work good bye.
>Dario.
Very glad to hear this! Definitely I'm also interested with your steps to build oFono, and get it work within FR. By the way, which OS and version are you using?
Regards,
-Yang
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to talk with FreeRunner?
2009-10-20 8:32 ` Gu, Yang
@ 2009-10-20 9:05 ` DJDAS
0 siblings, 0 replies; 6+ messages in thread
From: DJDAS @ 2009-10-20 9:05 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 2132 bytes --]
Gu, Yang ha scritto:
> Very glad to hear this! Definitely I'm also interested with your steps to build oFono, and get it work within FR. By the way, which OS and version are you using?
>
> Regards,
> -Yang
>
Hi,
it's quite simple (joking :P)! We prepared a VirtualBOX VM (starting
from one prepared by a member of the Openmoko community list) with a
toolchain similar to the one described in the OM wiki page mentioned
earlier in this thread but rebuilt from OpenEmbedded git repository.
After this I downloaded the sources (tried both stable release and git
snapshots) and it's a matter of ./configure && make && make install ;)
If the list policy will let me send attachments I can send you the
package for the 0.7 version.
The test environment is a prototype we realized from scratch (distro
name: Neophysis, prototype code name: Armeniacum-RC2) and it's the core
with nothing more than the rootfs with some basic libraries, busybox,
monolithic kernel 2.6.29, dbus and, obviously, ofonod starting quite
after kernel boot. The startup time is about 15 secs with a X window
system without window managers (but we can provide a simple matchbox
package or, since yesterday ;) Echinos).
Our target is to have a system booting in less than 35-40 secs with all
the phone system up and running.
At the moment I tested the phone functionalities (calling and receiving
simple voice calls, sending and receiving sms) using dbus commands from
the console and it works very well with the modem registered (no PIN in
the SIM) in about 15-20 secs.
I was wondering if someone can provide us a simple C application to test
all the phone functionalities (OTOA the dbus notifications) because we
are very busy at the moment (we work on Neophysis on our spare time and
are about 10 people divided in development, graphics, system engineering
and documentation) and have no time to write down a proto in C language,
I saw in the sources the test applications are written in Python but we
haven't build the Python package yet so a C app would be very useful.
Thank you in advance, bye.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-20 9:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-18 6:04 How to talk with FreeRunner? Gu, Yang
2009-10-19 17:13 ` Denis Kenzior
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
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.