Re: How to access the modem in QtMoko

2012-12-03 Thread Boudewijn
On Sunday 02 December 2012 21:17:08 Boudewijn wrote:
> On Sunday 02 December 2012 15:19:26 Radek Polak wrote:
> > On Sunday, December 02, 2012 02:06:39 PM robin wrote:
> > > (...) as it
> > > has been done with fso? 
> 
> I'll give it a try tonight anyway (that is, enabling FSO on v50).
> 

Ok, v50 installed and ran without a hitch. Installing FSO via neotool broke 
the modem: afterwards I didn't have network anymore, even not after switching 
FSO off again.

I didn't turn on any logging yet. The next few nights I won't have time for 
that; I'll send a reply to the list once I've got any result from logging.

(first I'll reinstall v50 so at least I can make calls ;-) )

Best regards,

Boudewijn


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-03 Thread robin
ok, I will give this a try... as Xmas is coming up there should be enough
time to learn how to do this.

br

robin


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-03 Thread Radek Polak
On Monday, December 03, 2012 11:40:56 AM robin wrote:

> hi radek,
> 
> thanks for pointing me there. please excuse my ignorance, but I have never
> build/compiled libraries myself beforehand. If my guess is correct after
> building one would have a new library
> 
> ./opt/qtmoko/lib/libqtopiaphonemodem.so.4
> 
> with the AT commands and new return values integrated.

exactly

> is this easy to do and if so could you or anyone on the list give me a hint
> eg
> 
> - clone that part of the githubtree,
> - change the code
> - compile (on the phone directly I guess and if possible as I think I would
> run into many troubles if setting up a whole build-environment)
> - try it out

There is README on github how to compile from sources. It should be quite 
easy. Check

https://github.com/radekp/qtmoko/

Compiling on phone is possible, but it takes days, so i think cross compiling 
is better for you.

After you are done with compiling, you can change the code and:

cd build/src/libraries/qtopiaphonemodem
make
make install

This will rebuild just the one library and you can scp the result to neo, 
restart QtMoko and try...

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-03 Thread robin
hi radek,

thanks for pointing me there. please excuse my ignorance, but I have never 
build/compiled libraries myself beforehand. If my guess is correct after 
building one would have a new library 

./opt/qtmoko/lib/libqtopiaphonemodem.so.4

with the AT commands and new return values integrated.

is this easy to do and if so could you or anyone on the list give me a hint eg 

- clone that part of the githubtree, 
- change the code
- compile (on the phone directly I guess and if possible as I think I would run
into many troubles if setting up a whole build-environment)
- try it out

thanks a lot 

robin





___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-03 Thread Radek Polak
On Monday, December 03, 2012 07:05:31 AM robin wrote:

> the AT commands are:
> 
> AT%EM=2,2  Serving Cell GPRS Information
> AT%EM=2,3  Neighbour Cell Information
> 
> but how do I pass those to the modem? or rather how do I slip those
> commands to qtmoko inbetween so I will still be able to receive calls?

I think you could try placing them e.g. after signal quality change, so 
probably somewhere here:

https://github.com/radekp/qtmoko/blob/master/src/libraries/qtopiaphonemodem/qmodemindicators.cpp

Maybe just output the results with qDebug(), then you can use 
"telephonyStatus" value space to set the values - the you can display them on 
homescreen - similar to how "SMSMemoryFull" works. And you will also see the 
values in vsexplorer.

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread robin
the AT commands are:

AT%EM=2,2  Serving Cell GPRS Information
AT%EM=2,3  Neighbour Cell Information

but how do I pass those to the modem? or rather how do I slip those commands to
qtmoko inbetween so I will still be able to receive calls?

br

robin


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread Boudewijn
On Sunday 02 December 2012 15:19:26 Radek Polak wrote:
> On Sunday, December 02, 2012 02:06:39 PM robin wrote:
> In either case has anyone an idea if the
> > variables I am looking for can be implemented in qtmoko as well as it
> > has been done with fso? personally I would like to stick to the standard
> > way qtmoko handles its modem and not change to fso as I always had much
> > complaints in shr about the audio quality.
> 
> I think you have to find out the AT commands that provide this information.
> E.g. you can try openmoko wiki, googling or FSO sources.
> 
What is the status of FSO in QtMoko supposed to be? I tried it in v47 but to 
no avail. I had other problems back then, so in case it was supposed to work 
chances are the rest of the system gave to many other problems to notice.

I'll give it a try tonight anyway (that is, enabling FSO on v50). 

Best regards,

Boudewijn


signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread Radek Polak
On Sunday, December 02, 2012 02:06:39 PM robin wrote:

> /opt/qtmoko/bin/vsexplorer is very nice indeed. so no problem anymore in
> getting the the cell id and lac directly. Now I looked a bit into the other
> values which can be returned as well. What I did not find is anything on
> 
> tav   <- timing advance / main cell only <- fixed radius from main cell in
> steps of 555m
> rxlev <- signal strength / all cells <- triangulation
> 
> and in general anything on how one can access the current neighbours.
> 
> So are all the values vsexplorer provides standard qtopia values, and the
> ones I am looking for are currently not implemented or did anyound (eg you
> radek) write the software to get this data in addition to the standard
> qtopia stack? In either case has anyone an idea if the variables I am
> looking for can be implemented in qtmoko as well as it has been done with
> fso? personally I would like to stick to the standard way qtmoko handles
> its modem and not change to fso as I always had much complaints in shr
> about the audio quality.

I think you have to find out the AT commands that provide this information. 
E.g. you can try openmoko wiki, googling or FSO sources.

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread robin
/opt/qtmoko/bin/vsexplorer is very nice indeed. so no problem anymore in 
getting the the cell id and lac directly. Now I looked a bit into the other
values which can be returned as well. What I did not find is anything on

tav   <- timing advance / main cell only <- fixed radius from main cell in
steps of 555m
rxlev <- signal strength / all cells <- triangulation

and in general anything on how one can access the current neighbours. 

So are all the values vsexplorer provides standard qtopia values, and the ones
I am looking for are currently not implemented or did anyound (eg you radek)
write the software to get this data in addition to the standard qtopia stack?
In either case has anyone an idea if the variables I am looking for can be
implemented in qtmoko as well as it has been done with fso? personally I would
like to stick to the standard way qtmoko handles its modem and not change to 
fso as I always had much complaints in shr about the audio quality.

robin






___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread Neil Jerram
Neil Jerram  writes:

> robin  writes:
>
>> I tried the excuting 
>>
>> root@neo:~# /opt/qtmoko/bin/vsexplorer 
>> /opt/qtmoko/bin/vsexplorer: error while loading shared libraries: 
>> libqtopiagfx.so.4: cannot open shared object file: No such file or directory
>>
>> I searched for qtopia but did not find anything specific for libqtopiagfx.
>
> Do
>
>   . /opt/qtmoko/qpe/env
>
> before that, then it should work.
>
>  Neil

Oops, I meant (for the record):

   . /opt/qtmoko/qpe.env

(Which includes the LD_LIBRARY_PATH change that worked for you.)

 Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread Neil Jerram
robin  writes:

> I tried the excuting 
>
> root@neo:~# /opt/qtmoko/bin/vsexplorer 
> /opt/qtmoko/bin/vsexplorer: error while loading shared libraries: 
> libqtopiagfx.so.4: cannot open shared object file: No such file or directory
>
> I searched for qtopia but did not find anything specific for libqtopiagfx.

Do

  . /opt/qtmoko/qpe/env

before that, then it should work.

 Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread robin
root@neo:/# LD_LIBRARY_PATH=/opt/qtmoko/lib
root@neo:/# export LD_LIBRARY_PATH

did do the job.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-02 Thread robin
I tried the excuting 

root@neo:~# /opt/qtmoko/bin/vsexplorer 
/opt/qtmoko/bin/vsexplorer: error while loading shared libraries: 
libqtopiagfx.so.4: cannot open shared object file: No such file or directory

I searched for qtopia but did not find anything specific for libqtopiagfx.

robin





___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-01 Thread Radek Polak
On Saturday, December 01, 2012 11:36:03 PM robin wrote:

> even if this becomes a bit off topic now, regarding the gsm-based location
> I am working on, I think that something similar could/must exist in qtmoko
> to get this information as already with mokofaen we have the lac and
> cellid of the serving cell being displayed on the home screen. this
> information already gives you a circular area around the serving cell
> where your phone is currently located in steps of 555m; so that is not too
> bad for a start. having neighbours or even being able to connect to other
> operators using roaming but to get their nearest cell would be the best
> and easiest way to narrow the position down even more. <--- so this is the
> part where I am wondering how to access this information in qtmoko, also
> if possible via at commands and getting the return information processed
> by python, which is not as nicely as with fso but it should work.

You can try /opt/qtmoko/bin/vsexplorer to browse all valuespace items - these 
are the ones displayed on home screen by themes. Themes are in /opt/qtmoko/etc 
so you can find in the xml which are the values for cell ids.

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-01 Thread robin
hi neil,

openbmap and cellhunter use fso to access the modem, and at least in openbmaps
code I have found a bit which checks if the modem is used by some other 
process and if not allows you to do the scanning of the main and neighbour
cells.

even if this becomes a bit off topic now, regarding the gsm-based location I
am working on, I think that something similar could/must exist in qtmoko to 
get this information as already with mokofaen we have the lac and cellid 
of the serving cell being displayed on the home screen. this information
already gives you a circular area around the serving cell where your phone is
currently located in steps of 555m; so that is not too bad for a start. having
neighbours or even being able to connect to other operators using roaming but
to get their nearest cell would be the best and easiest way to narrow the 
position down even more. <--- so this is the part where I am wondering how to
access this information in qtmoko, also if possible via at commands and getting
the return information processed by python, which is not as nicely as with fso
but it should work.

for my other intends on how to investigate further why gprs is not working for
my freerunner it would nonetheless be nice to have a simple way to try at
commands.

and in the end just use at commands to eg save power by shuting the modem 
down if you go to bed and don't want to be disturbed but still have a phone
which wakes you up, as suspend in qtmoko works only from suspend mode only but
not from turned off mode (some time delay problem).

best regards and many thanks to you and radek as well and the other developers
who do an amazing job (qtmoko/shr/androdi) + golden del for having the guts 
to go for a gta04!!!

robin


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-01 Thread Neil Jerram
robin  writes:

> dear neil,
>
> thanks for your answer. the reason I wanted to try sending commands to the 
> modem directly is that I have problems setting up my gprs connection with
> qtmoko. Now I have found one site http://www.gsmsite.de/gprs.htm where
> they state the AT-commands for manual modem configuration. So I wanted to
> try those out.

Is this with a Freerunner?  Do other Freerunner users have GPRS working?
If so I'd suggest logging and comparing your log with theirs.

> be explained by your answer: there can be only one for modem access... On the
> other hand I think that the openbmap logger and cellhunter allow to scan
> your main cell and neighbour cells and allow you to make calls as well, whilst
> they run (even though they might not do their scanning during the call).

Are openbmap and cellhunter implemented yet for QtMoko?  I thought they
were implemented for FSO-based distributions only - i.e. SHR and
FSO-based Debian - and in that case the access to the modem is managed
by FSO.

> Generally speaking I would like to 
> a) turn the modem off completely if I want to do GPS tracking only to save
>power

Yes, that would be a useful feature.

> b) scan main and neighbour cells and still be able to receive calls to bring
>my little progress on gsm-location also to qtmoko (works kind of in
>shr)

I think there are pieces of QtMoko that do that scanning, so the
question would be how to connect those with your work.  I'll try to look
into that a bit more.

Regards,
Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-01 Thread robin
Dear Radek,

can you pass something like

AT%EM=2,2  Serving Cell GPRS Information
AT%EM=2,3  Neighbour Cell Information

to minicom and get back the answer, so I could do somthing like this from my
python prorgram:

--
import subprocess
neighbour_info_call = "AT%EM=2,2"
neighbour_info = subprocess.check_output(neigbourg_info_call, shell=True)
print neighbour_info
--








___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-01 Thread Radek Polak
On Saturday, December 01, 2012 07:12:41 AM robin wrote:

> how do I communicate directly with the modem on /dev/ttySAC0?
> For the direct acces I tried  cu -l /dev/ttySAC0 as it is stated on the
> openmoko wiki site but I get 'cu command not found'. does anyone know which
> package I have to install and if it is still necessary to do
> chown uucp.uucp /dev/ttySAC0 to be able to access the modem?

You can use "apt-file search cu" to find package where file with given name 
is.

I am personally using minicom, it has nice gui and works very good.

Regards

Radek

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-01 Thread robin
dear neil,

thanks for your answer. the reason I wanted to try sending commands to the 
modem directly is that I have problems setting up my gprs connection with
qtmoko. Now I have found one site http://www.gsmsite.de/gprs.htm where
they state the AT-commands for manual modem configuration. So I wanted to
try those out.
Now I have found to the packages which is needed to be able to execute "cu" 
which is uucp. Now I can apparently connect to the modem with 
cu -l /dev/ttySAC0 as I get a connected statement printed on the screen after
having set the right permissions. Then the whole terminal freezes, but not
the phone. So I won't be able to send any AT commands. I guess this might be
be explained by your answer: there can be only one for modem access... On the
other hand I think that the openbmap logger and cellhunter allow to scan
your main cell and neighbour cells and allow you to make calls as well, whilst
they run (even though they might not do their scanning during the call).

Generally speaking I would like to 
a) turn the modem off completely if I want to do GPS tracking only to save
   power
b) scan main and neighbour cells and still be able to receive calls to bring
   my little progress on gsm-location also to qtmoko (works kind of in shr)
c) try to send some at commands to see if I can do something to get my gprs
   working in qtmoko/shr

so if anyone has some hints/ideas, please let me know.

best regards

robin





___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: How to access the modem in QtMoko

2012-12-01 Thread Neil Jerram
robin  writes:

> how do I communicate directly with the modem on /dev/ttySAC0?

I'm not sure that question makes sense.  When you're running QtMoko,
there's a component somewhere inside QtMoko whose job it is to
communicate with the modem, and it would be either impossible (because
of locking) or unwise for some other code to try to communicate with the
modem in parallel with that.

If you switch QtMoko off (/etc/init.d/qtmoko stop), then you're left
with a plain Debian squeeze system, and you can use any Debian squeeze
tools you like to communicate with /dev/ttySAC0.

> For the direct acces I tried  cu -l /dev/ttySAC0 as it is stated on the 
> openmoko wiki site but I get 'cu command not found'. does anyone know which
> package I have to install and if it is still necessary to do
> chown uucp.uucp /dev/ttySAC0 to be able to access the modem?

I don't know, but I typically investigate such questions by a
combination of 'apt-cache search ' and searching.  E.g. maybe
searching for 'modem' or 'serial' at packages.debian.org would help.

  Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


How to access the modem in QtMoko

2012-11-30 Thread robin
how do I communicate directly with the modem on /dev/ttySAC0?

Is there some easy eg python wrapper to communicate with the modem as eg in
shr?

For the direct acces I tried  cu -l /dev/ttySAC0 as it is stated on the 
openmoko wiki site but I get 'cu command not found'. does anyone know which
package I have to install and if it is still necessary to do
chown uucp.uucp /dev/ttySAC0 to be able to access the modem?

thank for your help


robin




___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community