Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand getconfig() error message to be more informative? #359

Open
drf5n opened this issue Dec 7, 2017 · 1 comment
Open

Expand getconfig() error message to be more informative? #359

drf5n opened this issue Dec 7, 2017 · 1 comment

Comments

@drf5n
Copy link

drf5n commented Dec 7, 2017

sprintf(msg,"getconfig error (%d)",(int)GetLastError());

maybe this could be something like:

sprintf(msg,"getconfig: GetCommConfig System Error Code: %d",(int)GetLastError());

that could help point folks towards interpretation of the printed error codes.

I'm trying to run RTKNAVI within Wine on a Mac and currently getting a message like:

(1) getconfig error (1010) 

...which looks like a "The configuration registry key is invalid" error per the System Error Codes listed in https://msdn.microsoft.com/en-us/library/windows/desktop/ms681383(v=vs.85).aspx

@drf5n
Copy link
Author

drf5n commented Dec 7, 2017

Going further into my OSX+Wine issue, I appear to need a registry key in my ~/.wine/system.reg file so GetCommConfig can find the key.

Hints of this are at:

After adding this section to ~/.wine/system.reg to complement my ln -s /dev/tty.usbmodemFD121 ~/.wine/dosdevices/COM1 then RTKNAVI could connect to COM1 and at least log the serial data to a log file.

[Hardware\\Devicemap\\Serialcomm] 1231984861
"Serial0"="COM1"

This isn't so much a rtklib issue as an overly complicated OSX+u-blox M8T serial port+Wine+Registry configuration issue, and I wanted to link these hints together somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant