[OSM-talk] i-gotU GPS logger and Linux: bad news

2008-03-07 Thread Bborie Park

Howdy Niccolo,

I am currently working on the i-gotU logger and getting it to work 
without the Windows Desktop application.  I also asked Mobile Action in 
January for help but got no response to date.


I have attached my test python code to date.  Currently, I am able to 
interact with the device and have confirmed with PortMon that the 
communication from my code matches that of the Desktop application.  I 
have only tested the software in Windows XP with the win32 and serial 
addons.  No idea as to Linux, yet.  I am currently looking at the raw 
data from the device but have yet to figure out its structure.


I doubt the desktop program will work easily in Linux w/ Wine as the 
program uses a MS Access database to store all settings and gps data. 
This database is typically found in the Window user's Application Data 
directory...


C:\Documents and Settings\USERNAME\Application 
Data\MobileAction\GPSTracer\Tracer.mdb


The database uses the password 'mytracer' (without the quotes).

I am looking for help in decoding the raw data as I don't have much time 
available.


If you are looking to use NMEA or SiRF's binary protocol, don't bother. 
  Though the device may use a SiRFStar III chipset, it will not talk in 
the same manner as other SiRF devices.  I spent over a week trying to 
see what would make the device respond in an identical manner to their 
software before realizing that the communication is time dependent.


-bborie
--
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
[EMAIL PROTECTED]
###
# $Id: r2v.py
#
# Purpose:  test code to connect to and dump Mobile Action's i-gotU devices
# device used for this is GT-100
# Author:   dustymugs, [EMAIL PROTECTED]
#
###
#
###
# Copyright (c) 2008, dustymugs <[EMAIL PROTECTED]>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software foundation, Inc., 
# 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
###

import serial, time, sys
from dhc import hex2char as h2c, char2hex as c2h, hexString

def csNMEA(STR):
cs = 0
for c in STR:
if c == '$':
continue
if c == '*':
break

cs = cs ^ ord(c)
return cs

def csSiRF(STR):
cs = 0
for c in STR:
cs = cs + ord(c)
return cs & 32767

def buildSiRF(payload):
sq = h2c('A0') + h2c('A2')
eq = h2c('B0') + h2c('B3')
pl = ("%X" % len(payload))
cs = csSiRF(payload)

return sq + pl + payload + ("%X" % cs) + eq

def flush(r, count = 1):
i = 0
while i < count:
r.flushOutput();r.flushInput()
i = i + 1

def removeDataHeader(STR):
if not STR.startswith(DATAHEADER):
return STR
return STR[3:]

NULL = chr(0)
BUFFERSIZE = 8192
DATAHEADER = hexString('93 10 00', ' ')
VALIDMSG = hexString('93 00 00', ' ')
ERRORMSG = hexString('93 FF FE', ' ')

f = open('test.ig', 'w')

s = serial.Serial()

s.port = 'com8'
s.baudrate = 115200
s.bytesize = 8
s.parity = 'N'
s.stopbits = 1
s.timeout = 2
s.queuesize = BUFFERSIZE

# open serial port
s.open()

# clean
time.sleep(1)
flush(s)

# connect
s.write(hexString('93 01 01 03 00 00 00 00', ' '))
time.sleep(0.05)
if s.read(3) == VALIDMSG:
print 'valid'
s.write(hexString('00 00 00 00 00 00 00 68', ' '))
time.sleep(0.05)
if s.read(3) == VALIDMSG:
print 'valid'

flush(s)

# config dump ???
# i-gotU Desktop does this
s.write(hexString('93 05 07 10 00 04 03 00', ' '))
time.sleep(0.05)
if s.read(3) == VALIDMSG:
print 'valid'
s.write(hexString('00 00 00 00 00 00 00 4A', ' '))
time.sleep(0.5)
#print "%s" % s.read(s.inWaiting())
s.read(s.inWaiting())

flush(s)

# ???
# i-gotU Desktop does this
s.write(hexString('93 0A 00 00 00 00 00 00', ' '))
time.sleep(0.05)
if s.read(3) == VALIDMSG:
print 'valid'
# generates a 13 byte response
# 93 00 0A 04 02 00 00 01 24 00 01 11 00
s.write(hexString('00 00 00 00 00 00 00 63', ' '))
time.sleep(0.05)
#print "%s" % s.read(s.inWaiting())
s.read(s.inWaiting())

flush(s)

"""
dumps start with head

Re: [OSM-talk] High Visibility Vests - Printed OSM

2008-03-07 Thread Raphaƫl Jacquot
Edoardo Marascalchi wrote:
> Hi..
> I would like to have a couple of vest if possible. I will be in Israel 
> in 2 weeks and if the vests are now availlable i will take it with me.
> If some israeli people would one i can give 'em one.
> 
> Edo

you'd probably want the bulletproof version there :-)

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Osmosis error while trying to import planet file into Mysql

2008-03-07 Thread Lambertus
Thanks a lot! Starting Osmosis using the shell script in the osmosis/bin 
directory did the trick.

  The database driver is not on your classpath. You could (should?) use the 
shell script in the osmosis/bin directory, or copy the classpath arguments from 
it (specifically the mysql-connector-java bit).

  Karl
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] [tagging] Voting - skyhook

2008-03-07 Thread Michael Collinson
At 11:05 AM 3/7/2008, Hakan Tandogan wrote:

>On Fri, March 7, 2008 10:41, Andy Robinson \(blackadder\) wrote:
> > I think the point was to have a little fun and show that the process of
> > creating tags needn't be so formal and boring. If people just posted their
> >  cool tag usage, rather than the lengthy discussions on the anal aspects
> > of a tag, we'd get a lot more stuff with useful data attached to it in the
> >  database.
>
>Dammit, I was just about to write up a proposal to extend the database to
>multiple globes (OpenMarsMap anyone?) ;-)

Sounds good. I think the main issue for the British will be whether 
to keep amenity=pub or go for amenity=mars_bar  :-)

Mike


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Street mapping novice needs some help

2008-03-07 Thread kat anderson
Hi Andy,

thanks for the reply and thanks for the links.  To give more detail, I am an
artist and I'm wanting to map points of African-Caribbean culture initially
in my city.  I want to do this by using key drawings that I am creating
instead of the icons already featured e.g. arrows and dots.  Does this make
it clearer?

Cheers
Kat

On Fri, Mar 7, 2008 at 9:33 AM, Andy Robinson (blackadder) <
[EMAIL PROTECTED]> wrote:

> kat Anderson wrote:
> >Sent: 07 March 2008 8:47 AM
> >To: talk@openstreetmap.org
> >Subject: [OSM-talk] Street mapping novice needs some help
> >
> >Hi,
> >
> >I am new to the world of street maps.  I am wanting to create my own key
> >and use osm as an overlay, does anyone know how to do this?
>
> You probably need to explain a bit better what you are wanting to do here
> so
> that someone can better answer.
>
> >Also I'm trying to set up a website with osm maps integrated within it as
> >opposed to just hyperlinks to maps.  Is this possible and if so can
> anyone
> >explain the best way to do it?
>
> Embedding OSM maps where the map tiles are provided by OSM is ok as long
> as
> it's not going to see heavy use. If you expect a lot of visitors then you
> need to generate and host your own map tiles created from the OSM data.
>
> For more on setting up a slippy map check out:
>
> http://wiki.openstreetmap.org/index.php/Deploying_your_own_Slippy_Map
>
> For info on rendering your own tiles check out:
>
> http://wiki.openstreetmap.org/index.php/Mapnik
>
> Cheers
>
> Andy
>
>
>
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] [tagging] Voting - skyhook

2008-03-07 Thread Frederik Ramm
Hi,

> I think the point was to have a little fun and show that the process of
> creating tags needn't be so formal and boring. If people just posted their
> cool tag usage, rather than the lengthy discussions on the anal aspects of a
> tag, we'd get a lot more stuff with useful data attached to it in the
> database.

+1

Bye
Frederik

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


[OSM-talk] High Visibility Vests - Printed OSM

2008-03-07 Thread Edoardo Marascalchi
Hi..
I would like to have a couple of vest if possible. I will be in Israel 
in 2 weeks and if the vests are now availlable i will take it with me.
If some israeli people would one i can give 'em one.

Edo
-- 
Edoardo Marascalchi
ICT Consultant

website: http://www.edoardomarascalchi.it
skype: My status 

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] [tagging] Voting - skyhook

2008-03-07 Thread Stephen Gower
On Fri, Mar 07, 2008 at 02:28:20AM +0100, Ulf Lamping wrote:
>
> I'm still not sure if this proposal was actually *intended* to 
> discourage anyone spending his time to work on the current mess of 
> proposals and to improve the map features page - or if it only was a bad 
> joke with an unwanted side effect.

  Neither, obviously.  I don't think it's a great joke, but neither
  is it a bad joke.  

  Best wishes
  
  s

___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] [tagging] Voting - skyhook

2008-03-07 Thread Richard Fairhurst
Ulf Lamping wrote:

> I'm still not sure if this proposal was actually *intended* to
> discourage anyone spending his time to work on the current mess of
> proposals and to improve the map features page - or if it only was a bad
> joke with an unwanted side effect.

It is, as Andy says, a bit of fun. Nothing more, nothing less. If you  
don't like it you can happily ignore it.

Though, of course, you then won't be able to map skyhooks.

cheers
Richard


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] [tagging] Voting - skyhook

2008-03-07 Thread Hakan Tandogan

On Fri, March 7, 2008 10:41, Andy Robinson \(blackadder\) wrote:
> I think the point was to have a little fun and show that the process of
> creating tags needn't be so formal and boring. If people just posted their
>  cool tag usage, rather than the lengthy discussions on the anal aspects
> of a tag, we'd get a lot more stuff with useful data attached to it in the
>  database.

Dammit, I was just about to write up a proposal to extend the database to
multiple globes (OpenMarsMap anyone?) ;-)


Regards,
Hakan

-- 
The key to immortality is first living a life worth remembering...



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] [tagging] Voting - skyhook

2008-03-07 Thread Andy Robinson (blackadder)
Ulf Lamping wrote:
>Sent: 07 March 2008 1:28 AM
>To: Stephen Gower
>Cc: talk@openstreetmap.org
>Subject: Re: [OSM-talk] [tagging] Voting - skyhook
>
>Stephen Gower schrieb:
>>   Voting is now open on the Skyhook proposal - please add your
>>   support:
>>
>> http://wiki.openstreetmap.org/index.php/Proposed_features/Skyhook
>>
>>   s
>>
>I'm still not sure if this proposal was actually *intended* to
>discourage anyone spending his time to work on the current mess of
>proposals and to improve the map features page - or if it only was a bad
>joke with an unwanted side effect.
>

I think the point was to have a little fun and show that the process of
creating tags needn't be so formal and boring. If people just posted their
cool tag usage, rather than the lengthy discussions on the anal aspects of a
tag, we'd get a lot more stuff with useful data attached to it in the
database.

I don't want that to detract from the great job of documenting and
discussing tags in general but this process of making maps is supposed to be
a lot of fun, not a chore :-)

Cheers

Andy

>However, is was a great job in that regard - thanks a lot :-/
>
>Regards, ULFL
>
>___
>talk mailing list
>talk@openstreetmap.org
>http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


Re: [OSM-talk] Street mapping novice needs some help

2008-03-07 Thread Andy Robinson (blackadder)
kat Anderson wrote:
>Sent: 07 March 2008 8:47 AM
>To: talk@openstreetmap.org
>Subject: [OSM-talk] Street mapping novice needs some help
>
>Hi,
>
>I am new to the world of street maps.  I am wanting to create my own key
>and use osm as an overlay, does anyone know how to do this?

You probably need to explain a bit better what you are wanting to do here so
that someone can better answer.

>Also I'm trying to set up a website with osm maps integrated within it as
>opposed to just hyperlinks to maps.  Is this possible and if so can anyone
>explain the best way to do it?

Embedding OSM maps where the map tiles are provided by OSM is ok as long as
it's not going to see heavy use. If you expect a lot of visitors then you
need to generate and host your own map tiles created from the OSM data.

For more on setting up a slippy map check out:

http://wiki.openstreetmap.org/index.php/Deploying_your_own_Slippy_Map

For info on rendering your own tiles check out:

http://wiki.openstreetmap.org/index.php/Mapnik

Cheers

Andy



___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk


[OSM-talk] Street mapping novice needs some help

2008-03-07 Thread kat anderson
Hi,

I am new to the world of street maps.  I am wanting to create my own key and
use osm as an overlay, does anyone know how to do this?
Also I'm trying to set up a website with osm maps integrated within it as
opposed to just hyperlinks to maps.  Is this possible and if so can anyone
explain the best way to do it?

Cheers
___
talk mailing list
talk@openstreetmap.org
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk