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

#11 Post by Karl Klammer »

these questions may seem silly, but just to clarify further on 4), as this behaviour appears to be rather odd:
5 ) both gps programms are started within the same wine environment?
6 ) ... by the same linux user ?
7 ) ... and only one gps programm runs at a time?
8 ) ... and the execution order (gpsA then gpsB vs gpsB then gpsA) has no impact?

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

#12 Post by Shawn »

correct on all points
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

#13 Post by SHEEPMAN! »

1. Yes.
2. I do not symlink as some change or other in .wine has started to pick it up automatically. Let's use Navigator for an example:
/home/j/.wine/dosdevices/c:/Program Files (x86)/LEADTEK/Navigator is the PWD.(present working directory) In the past I used symlinks.
This was installed by .wine program loader. Settings for com port and baud were done in Navigator.
3. Yes
4. Yes

Code: Select all

j@mak9:~$ cd ~/.wine
j@mak9:~/.wine$ ls
dosdevices  drive_c  system.reg  userdef.reg  user.reg
j@mak9:~/.wine$ cd dosdevices
j@mak9:~/.wine/dosdevices$ ls
c:  d::  e::  f::  g::  h::  z:
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

#14 Post by Shawn »

Here is how a guy did it using much older versions.

http://www.mp3car.com/linux/128951-garm ... -good.html
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

#15 Post by Karl Klammer »

issue must be with the garmin software / missing wine dlls
which version of garmin are you trying out? the mp3car thread says 5.00.6.0 is last wine-supported version

this outdated version history page https://www8.garmin.com/support/downloa ... sp?id=4049
mentioned changes with the C# (dotnet) bindings between 5.00.6.0 and 5.00.7.0: "Ensure the C# API bindings work well."

maybe you need to import windows dot net dlls into wine for more recent garmin versions than 5.00.6.0? just a wild guess
https://appdb.winehq.org/objectManager. ... n&iId=2586

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

#16 Post by Shawn »

Pretty sure I am using 5.00.7.0. It's either "6" or "7"..The version of Wine in the mp3car thread is so different than the current version, I got lost.
I will have to put one of the Linux drives in and see for sure.

Import dot net dll's ...hmm, interesting.

What is the procedure for importing the dot net dll's? Does it matter what version of dot net?
Life will beat you into submission.

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

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

#17 Post by Shawn »

Language binding
From Wikipedia, the free encyclopedia

In computing, a binding from a programming language to a library or operating system service is an application programming interface (API) providing glue code to use that library or service in a particular programming language.

Binding generally refers to a mapping of one thing to another. In the context of software libraries, bindings are wrapper libraries that bridge two programming languages so that a library written for one language can be used in another language.[1] Many software libraries are written in system programming languages such as C or C++; in order to use these libraries from another (usually higher-level) language such as Java, Common Lisp, Python or Lua, a binding to the library must be created in that language, possibly requiring the recompilation of the language's code depending on the amount of modification necessary.[2] However, most languages offer an interface to foreign functions, such as Python's and OCaml's ctypes, and Embeddable Common Lisp's cffi and uffi.[3][4][5]

For example, Python bindings are used when an already existing C library written for some purpose is to be used from Python. Another example is libsvn, which is written in C and provides an API for accessing Subversion; in order to access Subversion from within Java code, libsvnjavahl can be used, which depends on libsvn being installed and acts as a bridge between the Java programming language and libsvn, thus providing an API that invokes functions from libsvn to do the real work.[6]

Software reuse is a major motivation for creating library bindings, rather than reimplementing the library in several languages. Another is the impossibility of implementing certain algorithms efficiently in high-level languages.
Life will beat you into submission.

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

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

#18 Post by Shawn »

So, my Garmin problem is possibly not the com port at all, but the translation of the data between the different OS's and programming languages?
Or the translation of the precise location of the data.
The DLL's are "translators"..dynamic LINK libraries. Emphasis on link as in linking things together. The bindings insure everything is using the same and correct translator.
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

#19 Post by Karl Klammer »

well, yes the net dll thing makes only partial sense, but it's the best bet I have at the moment

I'd start with net 4.0 framework https://appdb.winehq.org/objectManager. ... &iId=17886

how to do it (quoted from above link):
wget http://winetricks.googlecode.com/svn/tr ... winetricks
bash winetricks dotnet40 corefonts

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

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

#20 Post by Shawn »

Hopefully tonight I will be in a good enough state of mind to attempt Garmin .60 version and net framework 4.0.
Life will beat you into submission.

Post Reply

Return to “The LINUX forum!!!”