tomojitakasu / RTKLIB

2.5k stars 1.6k forks source link

(1) device open error (5) #456

Open AKKIH opened 5 years ago

AKKIH commented 5 years ago

Hello, I am very interested in “RTKLIB” and using it.

I have a question. I read doc , “RTKLIB manual”, and I tried to run RTKNAVI ver.2.4.2 (3).
But it was displayed “(1) device open error (5)” and didn't work.

Please teach me about this error.

I ran the following configration.

error config

I use novatel FLEX6D-D2Q-Y0G-TT0 included Novatel OEM6.

CGEOS commented 5 years ago

The problem seems your serial connection ! Please check that COM 3 is valid by using a terminal session application like putty as RTK-NAVI is pretty much robust for handling any streams.

Joel Van Cranenbroeck Mng. Director CGEOS - Creative Geosensing sprl-s www.cgeos.com

Le 26 févr. 2019 à 04:53, AKKIH notifications@github.com a écrit :

Hello, I am very interested in “RTKLIB” and using it.

I have a question. I read doc , “RTKLIB manual”, and I tried to run RTKNAVI ver.2.4.2 (3). But it was displayed “(1) device open error (5)” and didn't work.

Please teach me about this error.

I ran the following configration.

I use novatel FLEX6D-D2Q-Y0G-TT0 included Novatel OEM6.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

AKKIH commented 5 years ago

Thank you for your reply. I have already checked that com3 is valid. port_check Could you tell me the other reason ?

CGEOS commented 5 years ago

Did you check using another software like Putty or Termite that you can access the com port and the data stream ? There should be no other reason ...

The com port is locked or in use ... so better to reboot your PC and check again.

Is that a physical com port or a virtual one ?

Joel Van Cranenbroeck Mng. Director CGEOS - Creative Geosensing sprl-s www.cgeos.com

Le 26 févr. 2019 à 06:49, AKKIH notifications@github.com a écrit :

Thank you for your reply. I have already checked that com3 is valid.

Could you tell me the other reason ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

AKKIH commented 5 years ago

Thank you very much. I understand properly. I could connect rtknavi. error2

But N and E wasn't displayed. If you know, please tell me about this question.

tomojitakasu commented 5 years ago

The "device open error (5)" with a serial device means the error code #5 returned by calling Win32 API CreateFile().

The error code #5 indicates "ERROR_ACCESS_DENIED" as follows. So your device is busy or you have no access permission.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d

CGEOS commented 5 years ago

Ok good point and now you need more messages from your Novatel board as you only set BestPos message and there is nothing about the observations and the ephemeris.

Once you will have setup all the messages you will enjoy RTKNAVI !

Joel Van Cranenbroeck Mng. Director CGEOS - Creative Geosensing sprl-s www.cgeos.com

Le 26 févr. 2019 à 08:07, Tomoji Takasu notifications@github.com a écrit :

The "device open error (5)" with a serial device means the error code #5 returned by calling Win32 API CreateFile().

The error code #5 indicates "ERROR_ACCESS_DENIED" as follows. So your device is busy or you have no access permission.

https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/18d8fbe8-a967-4f1c-ae50-99ca8e491d2d

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

AKKIH commented 5 years ago

Hello. I tried to do it. But It didn't work. serial

I search the following document. input_config manual

https://www.manualslib.com/manual/1395596/Novatel-Oem615.html?page=6#manual https://www.novatel.com/assets/Documents/Manuals/om-20000139.pdf https://www.novatel.com/assets/Documents/Manuals/om-20000129.pdf

I didn't understand how to use the config commands.

If you know, please tell me about this question.

CWenYx commented 5 years ago

'config' is a way to send command to your receiver. Different receivers may have different command.

zwnk commented 5 years ago

Novatel OEM 6 port speed should be 115200kb/s.

zwnk commented 5 years ago

@AKKIH i did not see your comment about the struggle with the config. putty or the novatel software (quite resource hungry) can do the job.

what do you want to log and what is your actual gps receiver?

log USB3 RANGECMPB ONTIME 1
log USB3 RAWEPHEMB ONCHANGED
log USB3 GLOEPHEMERISB ONCHANGED
log USB3 GLOEPHEMERISB ONCHANGED

these commands will log glonass and gps RAW data on USB3 (you have to look up the COM Port). now you can use the novatel sw or putty to log the output to a file. afterwards it is possible to post process the data with the waypoint sw. to identify the com port(pc) and usb number on the novatel, just connect with putty to the first com port (lowest number) of the novatel recognized by windows. the console shows the usbX as the command prompt. If you use the same port for logging and config, the logging output will start right after you sent the command. there are also different options for logging nmea messages.

log USB1 BESTPOSA ONTIME 1 will give you such an output.

i never used rtklib for logging data from a novatel receiver, so i cant say much about that. you could try this:

  1. connect to the receiver via putty
  2. type in log USB1 BESTPOSA ONTIME1 and hit enter
  3. type in SAVECONFIG and hit enter (this will save the config so you don't have to do it again)
  4. connect rtklib to the specified COM Port and see if you get data