Re: Chronojump on Maemo (Nokia 770 / Nokia 800) status, problems and screenshots!!
- From: "Xavi de Blas" <xaviblas gmail com>
- To: "For Chronojump developers (english, spanish)" <chronojump-devel-list gnome org>
- Subject: Re: Chronojump on Maemo (Nokia 770 / Nokia 800) status, problems and screenshots!!
- Date: Fri, 6 Apr 2007 02:29:24 +0200
More on the USB HOST thing:
*CABLES*
I found this cables & hubs interesting:
http://www.hcilab.org/projects/nokia770/nokia770.htm
http://tabletblog.com/2006/01/usb-power-injector-2.html
http://tabletblog.com/2006/01/no-solder-usb-host-method.html
but finally i bought this 3 things from pearl france (pearl.fr)
http://nokia770.ldeweb.net/blog/index.php?2006/05/04/39-cable-usb-host-pearl
Prices:
PE3324 ADAPTATEUR USB COUDE 2.90 €
PE4477 BOITIER CHARGEUR A PILES USB AA 4.90 €
TG1070 CABLE USB DOUBLE 3.90 €
Total: 11,7 €
Send to spain: 19,50€
TOTAL: 31,20€
the most difficult thing was to put a telephone that was accepted on
the new user form. Finally i put: 0 6xx xxx xxx
without the +34 or 0034 spanish codes
*ENABLING USB HOST*
http://www.internettablettalk.com/forums/showthread.php?t=3013&highlight=usb+host
"you have to do in root mode:
to enable host mode
echo host > sys/devices/platform/tahvo-usb/otg_mode
/etc/init.d/ke-recv restart
to enable peripheral mode:
echo peripheral > sys/devices/platform/tahvo-usb/otg_mode
/etc/init.d/ke-recv restart
(one thing, this only work if you put in peripheral mode via the
flasher utility, then it works all the time without reflashing it)
and this works for me.
I made two scripts and I run them with the cpu mem aplet. If anybody
want, I can post them."
I will write with more info when i receive the cables
2007/4/5, Xavi de Blas <xaviblas gmail com>:
We started working on a release of Chronojump for the Maemo platform.
http://www.maemo.org/
http://nokia770.com
http://www.nokiausa.com/N800/1,9008,,00.html
from: http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#overview
"Maemo is an open source development platform for Linux-based handhelds"
The nice thing is: we will use chronojump on a handheld computer, and
in the future, mono-maemo will be working on more devices. It's like a
return to original Ergojump PSION device but with chronopic.
There are two main things to solve:
1.- receiving data from chronopic
2.- chronojump application working on Maemo
1.- receiving data from chronopic
770 has a MiniUSB port, the good thing is that it can be used in
"peripheral mode" (like all pdas, ...) and in host mode. For our needs
we use host mode, But there are two caveats:
1.- it cannot power the attached peripheral (chronopic). This is not a
problem because chronopic gets powered with batteries or a voltage
adapter (alimentador)
2.- the usb chipset needs to be powered itself in some way
https://maemo.org/maemowiki/HowTo_SwitchToHostMode
https://maemo.org/maemowiki/Easy_USB_Host_Hub_setup
https://maemo.org/maemowiki/FabricationCableUSBHost
when it's working we hope there are no problems to comunicate with chronopic
It seems Nokia 800 has some usb host chips that probably make this
easier (but the kernel is compiled without the option)
http://www.internettablettalk.com/forums/showthread.php?t=4177
http://maemo.org/pipermail/maemo-users/2007-March/004370.html (and
continue thread...)
http://maemo.org/pipermail/maemo-developers/2007-March/008846.html
(and continue thread...)
http://maemo.org/pipermail/maemo-developers/2007-March/008872.html
(and continue thread...)
http://tabletblog.com/2007/01/nokia-n800-hacking-volume-1.html
important:
http://maemo.org/pipermail/maemo-developers/2007-March/008899.html
2.- chronojump application working on Maemo
There are mono packages for maemo since a month:
http://everaldo.simios.org/mono-on-nokia
http://www.mono-project.com/Maemo
chronojump_mini is working at the first time (no gtk, no sqlite)
[see atacched screenshot chronojump_mini_maemo.png]
Chronojump sqlite is not a problem because we copied by hand (from
another Mono on installation on Linux)
[Linux box] $ cp
~/mono-1.2.3.1/lib/mono/gac/Mono.Data.SqliteClient/1.0.5000.0__0738eb9f132ed756/Mono.Data.SqliteClient.dll
/media/usbdisk/.
[Nokia 770] # cp /media/mmc1/Mono.Data.SqliteClient.dll /usr/lib/mono/gac/.
and worked!!
chronojump is compiled with gtk1 (not gtk2) and mono-maemo packages
are for gtk2. Then there are two possible solutions:
2.a.- compile chronojump to gtk2
2.b.- try that mono-maemo works with gtk1
2.a.- compile chronojump to gtk2
Problems:
1.-The NPlot packages (graphs in stats) not work with gtk2 (probably
someone has worked on this last months), then we have to loose graph
stats commenting:
//w.Add (plot);
on src/stats/main.cs
2.- The comboboxes are deprecated on gtk2, and we should migrate all
to other type of combos
3.- The treeStores are not working ok, this fails: (used lots of times
on chronojump)
string selectedAsString = (string) model.GetValue (iter, 0);
also this:
int selectedAsInt = (int) model.GetValue (iter, 0);
We will write to mono-maemo packages to fix this GetValue problem
4.- a dialog can be "modal" but be hidden by main window (unpossible
to clic on "accept") We will try to use Hildon widgets or change
initial "chronojump simulated" dialog to be topLevel ...
We managed to make work chronojump (except for the important problems
above) and we include this screenshots
[see atacched screenshots chronojump_maemo*.png
Makefile changes this:
CHRONOJUMP_LIB = -pkg:gtk-sharp -pkg:glade-sharp -r:System.Data
-r:Mono.Data.SqliteClient -r:System.Web.Services
to
CHRONOJUMP_LIB = -pkg:gtk-sharp-2.0 -pkg:glade-sharp-2.0
-r:System.Data -r:Mono.Data.SqliteClient -r:System.Web.Services
Probably this doesn't work on Windows with .NET and Novell
gtkinstallerForWin... check this!
2.b.- try that mono-maemo works with gtk1
we copied by hand (from another Mono on installation on Linux)
gtk-sharp, glib-sharp, atk-sharp, gdk-sharp
but it doesn't find glibsharpglue
we tried lots of things with no result:
-copy gnome-sharp, pango-sharp, gtksourceview-sharp
-put libglibsharpglue.so [from Linux Box] to [Nokia 770] /usr/lib/.
-install maemo-sharp, libmono-system1.0-cil, libmono-system-data1.0-cil
-write log info with: export MONO_LOG_LEVEL=debug & export MONO_LOG_MASK=dll
-cp libglibsharpglue.so to gac
-cp libglibsharpglue.so to gac/glib-sharp
-cp libglibsharpglue.so to chronojump dir
-put a value on LD_LIBRARY_PATH, tried:
export LD_LIBRARY_PATH=/etc/lib
export LD_LIBRARY_PATH=/etc/lib/
export LD_LIBRARY_PATH=/etc/lib/mono/
export LD_LIBRARY_PATH=/etc/lib/mono/gac
-ldconfig cannot be used because there's no /etc/ld.so.conf
-see more debug info with: export MONO_LOG_MASK=
now we are going to try to compile with scratchbox kit...
http://maemo.org/platform/docs/tutorials/Maemo_tutorial.html#Installation
it seems this library comes with libglib1 package (missing on
mono-maemo packages)
Try to include library on compilation (don't know how to do it now)
We will write to mono-maemo packager to fix this glibsharpglue problem
and gtk1 related packages
check also this (but it seems previous to mono-maemo packages):
http://test.maemo.org/support/wiki/howtowriteamonoapplication/
Regards!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]