tomojitakasu / RTKLIB

2.58k stars 1.63k forks source link

ntripcaster client in version 2.4.3b34 #709

Open jeanmarc0 opened 1 year ago

jeanmarc0 commented 1 year ago

After deep diving in the code (woaw, when you didin't wrote it and don't know everything about the way it works, it's not so evident ;-)), I found something which seems not updated. In app/consapp/rtkrcv.c, ISTOPT doesn't match the defines in src/rtklib.h original: #define ISTOPT "0:off,1:serial,2:file,3:tcpsvr,4:tcpcli,7:ntripcli,8:ftp,9:http" seems better: #define ISTOPT "0:off,1:serial,2:file,3:tcpsvr,4:tcpcli,6:ntripcli,7:ftp,8:http"

And I'm afraid some others defines, close to ISTOP, must be checked... If somebody who knows better could do it...

Hope that helps, JiM

Discussed in https://github.com/tomojitakasu/RTKLIB/discussions/708

Originally posted by **jeanmarc0** February 7, 2023 Hello, I switched to this version to use _galileo_ satellites. Before, my configuration included ``` inpstr2-type =ntripcli inpstr2-path =user:passwd@addr:port/loc npstr2-format =rtcm3 ``` to **get** correction from an _ntripcaster_. In this new version, there is a _wget_ operation at startup which use an ftp connection...??? The connection failed because my _ntripcaster_ is waiting for protocol _http_ and doesn't like the _/loc_... Maybe the syntax has changed, maybe I did something wrong...??? I can patch the code to specify _http_ through an option or something, but if there is another method, it'll surely be better. After the fail, it seems the connection to _ntripcaster_ stay down (no new client is seen on the _ntripcaster_)... Means don't get any correction :-( Thanks, JiM
jeanmarc0 commented 1 year ago

Following the same mechanism, I think, issue is the same for:

#define ISTOPT  "0:off,1:serial,2:file,3:tcpsvr,4:tcpcli,7:ntripcli,8:ftp,9:http"
#define OSTOPT  "0:off,1:serial,2:file,3:tcpsvr,4:tcpcli,6:ntripsvr,11:ntripc_c"
#define FMTOPT  "0:rtcm2,1:rtcm3,2:oem4,3:oem3,4:ubx,5:ss2,6:hemis,7:skytraq,8:gw10,9:javad,10:nvs,11:binex,12:rt17,13:sbf,14:cmr,15:tersus,18:sp3"

which could (should?) be replaced in app/consapp/rtkrcv.c by:

#define ISTOPT  "0:off,1:serial,2:file,3:tcpsvr,4:tcpcli,6:ntripcli,7:ftp,8:http"
#define OSTOPT  "0:off,1:serial,2:file,3:tcpsvr,4:tcpcli,5:ntripsvr,9:ntripc_c"
#define FMTOPT  "0:rtcm2,1:rtcm3,2:oem4,3:oem3,4:ubx,5:ss2,6:hemis,7:skytraq,8:javad,9:nvs,10:binex,11:rt17,12:sept,13:rinex,14:sp3,15:rnxclk"

Could a smart eye have a look on that? BR, JiM

windsoryin commented 1 year ago

Thanks so much for your reply @jeanmarc0 , This really help me get the ftp error problem fixed when i actually use ntripcli to get IGS correction data.
This problem really bothered me for a long time! Best regard. Windsor Yin