SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

Due to overwhelming demand, we have created a forum just dedicated to Toughbook users who use Linux!
Message
Author
User avatar
Karl Klammer
Posts: 193
Joined: Tue Oct 13, 2015 3:19 am
Location: Old Europe

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#21 Post by Karl Klammer »

do you have a download link for any of the garmin versions? guess I won't need no license or map data as I just want to see the GPS (not) working
I'd be happy to give it a try on a linux vm with virtualbox pass-through for com3.

just to add one more layer of indirection, what could possible go wrong? ;-)

BR,
Karl Klammer

User avatar
Shawn
Posts: 2960
Joined: Fri Jan 18, 2013 11:35 am

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#22 Post by Shawn »

This is oem version for Toshiba..It "may" work................http://download.garmin.com/files/GMPCToshiba.exe

It's from this page...........https://buy.garmin.com/en-US/US/on-the- ... 28129.html

Check PM's
Life will beat you into submission.

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#23 Post by SHEEPMAN! »

Thanks Karl good post.

dll can be added (I've not done it) through wine config from menu. My reading yesterday mentioned having all packages in the same directory whatever that happens to be.

Another thing is the serial number required by Garmin. Did I read to use the computer serial number NOT the GPS number?

sudo lshw #may help you see hardware i.d.s from terminal.
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
Shawn
Posts: 2960
Joined: Fri Jan 18, 2013 11:35 am

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#24 Post by Shawn »

Garmin serial is found inside the program after it is loaded...
Life will beat you into submission.

User avatar
Karl Klammer
Posts: 193
Joined: Tue Oct 13, 2015 3:19 am
Location: Old Europe

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#25 Post by Karl Klammer »

these three additional system.reg lines should enable com3 gps for garmin 5.00.70g

Code: Select all

[Hardware\\Devicemap\\Serialcomm] 1231984861
"Serial2"="COM3"
"ttyS2"="Serial2"


yesterdays dot net guess was wrong

not sure if the below mentioned mfc42.dll is required for garmin, it was required for some other gps tool

the gpsd and gps-client packages are only required for testing on linux. they have no benefit for running wine software.


how to reproduce:

Code: Select all

karl@lubuntuvm:~$ sudo apt-get install gpsd gpsd-clients wine cmatrix

karl@lubuntuvm:~$ ls -la /dev/ttyS2
crw-rw---- 1 root dialout 4, 66 Nov  4 16:54 /dev/ttyS2
karl@lubuntuvm:~$ groups # verify I am in dialout group
karl adm dialout cdrom sudo dip plugdev lpadmin sambashare

# test gps on linux
karl@lubuntuvm:~$ gpscat -s 4800N1 /dev/ttyS2 | head -3
2681,E,0,00,50.0,551.0,M,47.6,M,0.0,0000*43
$GPGSA,A,1,,,,,,,,,,,,,50.0,50.0,50.0*05
$GPRMC,160734.957,V,4808.5437,N,01132.2681,E,0.0,0.00,041115,,,N*47

# symlink gps to wine and install mfc42.dll
karl@lubuntuvm:~$ ln -s /dev/ttyS2 /home/karl/.wine/dosdevices/com3
karl@lubuntuvm:~$ winetricks mfc42

# test with http://www.gpsutility.co.uk/files/gpsu524setup.exe
karl@lubuntuvm:~/.wine/drive_c/Program Files (x86)/GPS Utility$ wine ./gpsu524.exe
# does not work with GPS->Setup->Interface mode "NMEA            " on com3 with 4800 baud
# does     work with GPS->Setup->Interface mode "NMEA (via modem)" on com3 with 4800 baud
          
# install garmin thingy after extracting SFX EXE via 7zip
karl@lubuntuvm:~/Desktop/tmp$ wine msiexec /i GarminMobilePC_50070/MAIN.msi

# figure out garmin unit und unlock codes for SW.UNL
karl@lubuntuvm:~$ cmatrix

# run garmin thingy 
karl@lubuntuvm:~/Desktop/tmp$ wine C:\\GarminMobilePC\\Que.exe
# garmin gps settings menu only offers usb and bluetooth, not com ports

# add these lines to system.reg, as garmin thingy seems to rely on registry stuff while ignoring IRQ stuff
> [Hardware\\Devicemap\\Serialcomm] 1231984861
> "Serial2"="COM3"
> "ttyS2"="Serial2"

# run garmin thingy again
karl@lubuntuvm:~/Desktop/tmp$ wine C:\\GarminMobilePC\\Que.exe
# seems to work, altough takes ages for additional sattelites to appear
# did not get a full fix, probably as I am indoors ... will post update if/when that happens
does that work for you?

BR,
Karl Klammer
Attachments
garmin-screenshot.png
garmin-screenshot.png (246.34 KiB) Viewed 8843 times

User avatar
Shawn
Posts: 2960
Joined: Fri Jan 18, 2013 11:35 am

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#26 Post by Shawn »

[Hardware\\Devicemap\\Serialcomm] 1231984861
Where did that number come from?

What dos this line do?
~$ cmatrix

I will try this tonight and let you know...
Life will beat you into submission.

User avatar
Karl Klammer
Posts: 193
Joined: Tue Oct 13, 2015 3:19 am
Location: Old Europe

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#27 Post by Karl Klammer »

the number seems to be a timestamp

cmatrix is deep haxxxor shit, it will tell you the unlock code if you stare at it long enough ;-)

best #satellites I got so far was 5, without location fix

BR,
Karl Klammer

EDIT: I'm using wine-1.6.2, not sure if that matters.

User avatar
SHEEPMAN!
Posts: 2239
Joined: Thu Oct 14, 2010 1:13 pm
Location: TDR-HQ California

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#28 Post by SHEEPMAN! »

So....the three lines at the top are the answer and the rest is just how you got there?
Fair for you/ Fair for me.
I chose to NOT be organized.

-------------------------------------------------------------------[/color]
http://toughbooktalk.com/
http://forum.notebookreview.com/panasonic/

User avatar
Karl Klammer
Posts: 193
Joined: Tue Oct 13, 2015 3:19 am
Location: Old Europe

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#29 Post by Karl Klammer »

yes, the three system.reg lines are the answer - if they indeed are the answer.
(i didnt get a fix yet and shawn didnt confirm that it is working for him yet)

the rest is information on how to reproduce the whole thing for someone starting from scratch

BR,
Karl Klammer

User avatar
Shawn
Posts: 2960
Joined: Fri Jan 18, 2013 11:35 am

Re: SERIAL PORTS , COM PORTS AND EXTREME FRUSTRATION ON GPS

#30 Post by Shawn »

Did not feel well last night..
Hopefully tonight will be better...
Life will beat you into submission.

Post Reply

Return to “The LINUX forum!!!”