Re: Help needed with GSM Geolocation without GPS
Sounds good. I wonder what the trade-off is between implementing something like this from scratch for GTA04, and trying to integrate an existing partial solution such as GeoClue? hi neil, as far as I understand geoclue comprises a communication between a provider and your phone, so that would mean data transfer via the modem. This would certainly be one solution, but it would be nice if the user could choose between: a) GSM - Provider - Location b) GSM - offline database - Location (saves money and battery(?)) I don't know if geoclue can be easily extended to use the cells.txt.gz file as an alternative input. That would be nice, because then one could actually choose between a) and b). So I started with step 1 and I am a bit stuck. The numbers for the location that the Mokofaen theme displays somehow do not match any of the cell towers my phone is most likely to be connected to: Most likely I am connected to mcc 262; mnc 3; lac 40096 and cellid 137380532 [2] How do you get those numbers? They look like UMTS ones (which are bigger than GSM). which has nowhere the numbers I get on my home screen: 296/25326 Those numbers look like GSM. Are you actually connected by GSM or by UMTS? (Some background on the GSM/UMTS difference is here: http://lists.goldelico.com/pipermail/gta04-owner/2012-September/002923.html) Thanks for pointing me to the link / I vaguely remembered reading something about this on the list. I also found the gsm-cell which corresponds to my numbers so all fine. Regarding the consistency of the databases one apparently has to be a bit careful. I checked the cells around me with the openbmap map interface, and there are certainly cells marked as standard GSM which have to be UMTS cells according to the long numbers they have for their idenfication. But I would think that this would only matter, if their signal strength rate/decay over distance is different from the GSM cells. Then one would indeed need to know what cell type it is to apply the correct function to estimate the distance to it. Otherwise the more cells the better it should be. Could you point me in the right direction on how to extract the cell and neighbouring cell ids/signal strengths in qtmoko. br roibn ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
hi daniele, maybe you can help me with your code: what I get import dbus from dbus.mainloop.glib import DBusGMainLoop DBusGMainLoop(set_as_default=True) bus = dbus.SystemBus() gsm_device_obj = bus.get_object( 'org.freesmartphone.ogsmd', '/org/freesmartphone/GSM/Device' ) gsm_cell_monitor = dbus.Interface(gsm_device_obj, 'org.freesmartphone.GSM.Monitor') gsm_connected_cell = gsm_cell_monitor.GetServingCellInformation() lac = int(gsm_connected_cell[lac]) cellid = int(gsm_connected_cell[cid]) quality = int(gsm_connected_cell[rxlev]) print - Information about the Connected Cell -- print str(lac)+ / +str(cellid)+ / +str(quality) gsm_neighbour_cells = gsm_cell_monitor.GetNeighbourCellInformation() print gsm_neighbour_cells I can now get the info about the connected cell but for the neighbours I get: root@om-gta02:~# python /media/card/Maps/Cells/getPositionFromCells.py - Information about the Connected Cell -- 296 / 25326 / 39 Traceback (most recent call last): File /media/card/Maps/Cells/getPositionFromCells.py, line 19, in module gsm_neighbour_cells = gsm_cell_monitor.GetNeighbourCellInformation() File /usr/lib/python2.7/site-packages/dbus/proxies.py, line 145, in __call__ **keywords) File /usr/lib/python2.7/site-packages/dbus/connection.py, line 651, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freesmartphone.GSM.DeviceFailed: OK any ideas why the call does not work? br robin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
Question: Is is possible to do cell-based location with an de-activated SIM ?I recall that many phones will allow for an Emergency Call (911 in North America) without an active subscription. Can the Cell ID (CID) be obtained on the GTA02 in such a situation ? -Pascal ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
On 06.11.2012 13:52, Pascal Gosselin wrote: Question: Is is possible to do cell-based location with an de-activated SIM ?I recall that many phones will allow for an Emergency Call (911 in North America) without an active subscription. Can the Cell ID (CID) be obtained on the GTA02 in such a situation ? I haven't specifically checked. However, the several USB modems I've tried this with were quite happy to show a list of operators available, with cells. http://wiki.openmoko.org/wiki/Manually_using_GSM#List_available_carriers http://wiki.maemo.org/N900_Hardware_Phone At+cops=? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
On Mon, 5 Nov 2012 16:01:21 + (UTC) robin spielr...@web.de wrote: Hi, I wanted to give the GSM location a try. So what I would like to acchieve in the end is: 0. GPS off 1. GSM Cells are detected 2. Triangulation takes place (I don't know yet if eg signal strength is used) 3. Look-up in the OpenCellID offline (!) text database 4. Position being shown in NeronGPS as in eg in the Whereabouts-Mappingdemo shown on the QtMokoDev Page [1] Will the result work on SHR or on QtMoko or on both? Denis. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
I guess one could split the whole thing in three parts so it would be adaptable to both qtmoko and shr. I can only program in python and may add a sqlite data base. having read a bit more about triangulation, the task will be much more difficult than I though, but one will see. the three parts of the program could be somewhat like: 1) get cell id and neighbour cell ids SHR) via FSO QtMoko) ? 2) python script + sqlite db compare cells to cells in database select the relevant ones and their position apply some function to estimate the real position 3A) display position SHR) maybe via foxtrot-gps QtMoko) NeronGPS if possible 3B) create some sort of fake NMEA and alter navit.xml to read from there (as far as I remember navit can take quite a lot of sources, so this might be an option for both SHR and QtMoko br robin ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
On 06.11.2012 11:37, robin wrote: hi daniele, maybe you can help me with your code: what I get snip dbus.exceptions.DBusException: org.freesmartphone.GSM.DeviceFailed: OK any ideas why the call does not work? Because FSO supports getting the subsequent cell IDs, but the modem does not support reporting these, so you get a FAILED. You cannot (as I understand it) get any information of this form from the GTA01/2 modem. (Please note, this is fuzzy memory, it's been a while). ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
so is there any other way to get this information? also I think that the openbmap logger which worked nicely on my gta02 was somehow able to get the neighbouring cells. but I might be mistaken. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
2012/11/6 robin: so is there any other way to get this information? GetNeighbourCellInformation works on the GTA02, I used it the following code works for me, I just checked it with SHR-20101205, it used to work also on Debian but some update broke something, and I can't get it to work with QTmoko 48 I installed fso from neocontrol and rebooted the phone, but I guess I need to edit a configuration file to start fso it is almost identical to yours except the try/except block and in fact it fails often to print neighbour cells: #!/usr/bin/env python # License CC0 import dbus import time bus = dbus.SystemBus() gsm_device_obj = bus.get_object( 'org.freesmartphone.ogsmd', '/org/freesmartphone/GSM/Device' ) gsm_monitor_iface = dbus.Interface(gsm_device_obj, 'org.freesmartphone.GSM.Monitor') while True: try: print (gsm_monitor_iface.GetServingCellInformation(), gsm_monitor_iface.GetNeighbourCellInformation()) except: pass time.sleep(10) -- Daniele Forsi ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
thanks I will give that a try. Does anyone know if there has been a major change with fso. I just installed cellhunter on shr and when I hit the button to get the cell the console gives while len(self.cell_la) 4: TypeError: object of type 'dbus.Int32' has no len() does anyone know about these changes? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
2012/11/6 robin: Does anyone know if there has been a major change with fso. I just installed cellhunter on shr and when I hit the button to get the cell the console gives while len(self.cell_la) 4: TypeError: object of type 'dbus.Int32' has no len() you can find a patched version here (I didn't test it) http://shr-project.org/trac/ticket/1299 -- Daniele Forsi ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
regarding qtmoko v48 and fso. does installing and using fso to get cell information mean that you fso then also takes over all the communication with the modem (eg. calls, and so on)? or can the qt-system and fso live in peace next to each other? ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Open Hard/Software Workshop in Munich, Germany
As in previous years there will be an open hard- and software development and meeting workshop (http://www.ohsw.de) in Munich, organized by local freaks coming from Zaurus, Openmoko, OpenPandora, GTA04, etc. Well, this time not really *in* Munich but in the town of Garching, which is just nearby (15km). And which is world famous for some scientific research facilities (e.g. fastest supercomputer in Europe, fusion energy research, gravitational wave research, ESO [1]). Please take a look at the (preliminary) Agenda (in German): http://www.ohsw.de/agenda_2012.html If you have wishes, suggestions, changes or want to talk about something or moderate another workshop topic, please notify the organizers through: open-hard-software-ev...@goldelico.com And, please add yourself to the participation list if you plan to come: http://www.doodle.com/d7d3fv9ivfqsytyn Please forward to other lists where readers may be interested. Nikolaus [1] European Organisation for Astronomical Research in the Southern Hemisphere ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
robin spielr...@web.de writes: Sounds good. I wonder what the trade-off is between implementing something like this from scratch for GTA04, and trying to integrate an existing partial solution such as GeoClue? hi neil, as far as I understand geoclue comprises a communication between a provider and your phone, so that would mean data transfer via the modem. This would certainly be one solution, but it would be nice if the user could choose between: a) GSM - Provider - Location b) GSM - offline database - Location (saves money and battery(?)) I don't know if geoclue can be easily extended to use the cells.txt.gz file as an alternative input. That would be nice, because then one could actually choose between a) and b). Last time I looked, my impression was that the geoclue architecture should support offline - but I'm not sure. Could you point me in the right direction on how to extract the cell and neighbouring cell ids/signal strengths in qtmoko. I believe the code that sources this information is src/libraries/qtopiaphone/qnetworkregistration.cpp: look for the lines in that file that say emit locationChanged. Regards, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
On Tuesday 06 November 2012 15:29:52 mauve wrote: On 06.11.2012 11:37, robin wrote: hi daniele, maybe you can help me with your code: what I get snip dbus.exceptions.DBusException: org.freesmartphone.GSM.DeviceFailed: OK any ideas why the call does not work? Because FSO supports getting the subsequent cell IDs, but the modem does not support reporting these, so you get a FAILED. It does, but not if you're currently registered with a network. You cannot (as I understand it) get any information of this form from the GTA01/2 modem. You can, but you need to unregister first. Just tested on a very old SHR with an expired SIM. On power up it registers sufficiently to make emergency calls. At this point GetServingCellInformation returns correct data but GetNeighbourCellInformation does not. Call org.freesmartphone.GSM.Network.Unregister and subsequent GetNeighbourCellInformation calls will return data for the cells it can see. Those bits of the API may have changed since the version I tested on, but if it can't get the data it's a bug rather than a problem with the modem. (Please note, this is fuzzy memory, it's been a while). Understandable. I had to test it to see if I remembered correctly. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Missing icons in current QtMoko git build
Radek wrote at https://github.com/radekp/qtmoko/commit/871fe7f2bd712311ff88f2ef9042eb3112d65b1a: + * Currently there is bug when generating qtopia_db.sqlite. As a result you + will se no icons in the application menu. As a workaround copy that db from + some older release: + +cp good_old_release/opt/qtmoko/qtopia_db.sqlite /opt/qtmoko/qtopia_db.sqlite Hooray, thanks, I have all my icons back again now. Can I help with fixing that bug? Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
On Tuesday, November 06, 2012 06:19:13 PM robin wrote: regarding qtmoko v48 and fso. does installing and using fso to get cell information mean that you fso then also takes over all the communication with the modem (eg. calls, and so on)? Yes, all the phone functions will use FSO dbus calls. The qtopiaphonemodem will not be used. or can the qt-system and fso live in peace next to each other? No. Onle one of them (FSO, qtopiaphonemodem or oFono) can open the modem. Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
robin spielr...@web.de writes: I guess one could split the whole thing in three parts so it would be adaptable to both qtmoko and shr. I can only program in python and may add a sqlite data base. having read a bit more about triangulation, the task will be much more difficult than I though, but one will see. the three parts of the program could be somewhat like: 1) get cell id and neighbour cell ids SHR) via FSO QtMoko) ? You should be able to get the LAC/CELLID string - i.e. the same as displayed on the QtMoko home page - using code like this: QValueSpaceItem *lac_cell_id = new QValueSpaceItem(/Telephony/Status/CellLocation); qLog() LAC/CELLID is lac_cell_id-value().toString(); Regards, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
On Tuesday 06 November 2012 08:09:58 robin wrote: Sounds good. I wonder what the trade-off is between implementing something like this from scratch for GTA04, and trying to integrate an existing partial solution such as GeoClue? hi neil, as far as I understand geoclue comprises a communication between a provider and your phone, so that would mean data transfer via the modem. This would certainly be one solution, but it would be nice if the user could choose between: a) GSM - Provider - Location b) GSM - offline database - Location (saves money and battery(?)) I don't know if geoclue can be easily extended to use the cells.txt.gz file as an alternative input. That would be nice, because then one could actually choose between a) and b). http://www.freedesktop.org/wiki/Software/GeoClue#Learn_more As far as geoclue's concerned a Provider is anything that implements the dbus interface. There's no reason for data to go over the modem, it's just that most of the current Provider implementations use online data services for lookup. You can install whichever Providers you want. All(!) that's needed is a Provider that implements the Position interface, looking up current and/or neighbouring cells in the local file/database and returning a location extimate. IIRC that would be quite a simple dbus service to implement, at least as a proof-of-concept, but I've probably forgotten somehting important. Applications can pick whether to use the Master Provider (which uses data from the 'best' available Provider) or a specific Provider, so you can have a choice between a) and b). ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
the patched version works nicely. thanks for pointing me there. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
does anyone know if the agps-onlinec works on SHR? because then one could already make use of the location of the main cell nearby to get the right coordinates for the assisted-gps query (one then needs gprs/wlan though and an account with u-blox). #!/bin/sh echo 1 /sys/bus/platform/drivers/neo1973-pm-gps/neo1973-pm-gps.0/pwron ./agps-onlinec -c full -u youraccount -k yourpasswd -la 25.073270 -lo 121.574805 -p 99.00 cat /dev/ttySAC1 is this program also working on qtmoko somehow? I remember that radek managed to store gps-data and then send it back to the modem when needed. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Help needed with GSM Geolocation without GPS
On Wednesday, November 07, 2012 07:28:41 AM robin wrote: does anyone know if the agps-onlinec works on SHR? because then one could already make use of the location of the main cell nearby to get the right coordinates for the assisted-gps query (one then needs gprs/wlan though and an account with u-blox). #!/bin/sh echo 1 /sys/bus/platform/drivers/neo1973-pm-gps/neo1973-pm-gps.0/pwron ./agps-onlinec -c full -u youraccount -k yourpasswd -la 25.073270 -lo 121.574805 -p 99.00 cat /dev/ttySAC1 is this program also working on qtmoko somehow? I remember that radek managed to store gps-data and then send it back to the modem when needed. IIRC QtMoko uses just offline agp data. The code is here: https://github.com/radekp/gta02-agps and the scripts are in /opt/qtmoko/bin (those with agps or gps in name). Regards Radek ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community