Ntrip协议访问千寻位置服务

Ntrip协议获取千寻位置差分数据步骤:

1.Ntrip Client使用TCP方式连接Ntrip Caster(Ntrip Caster当前即指千寻位置服务)
①地址
域名:rtk.ntrip.qxwz.com 或 IP:60.205.8.49 (尽量使用域名,IP会经常变动)
②端口
端口:8001 对应ITRF2008坐标系
端口:8002 对应WGS84
端口:8003 对应CGCS2000

2.Ntrip Client获取源列表,发送以下数据给Ntrip Caster

GET / HTTP/1.0
User-Agent: NTRIP GNSSInternetRadio/1.4.10
Accept: */*
Connection: close


成功,NtripCaster返回源列表

SOURCETABLE 200 OK
Server: POP_GW_Ntrip_1.0_1514199594/1.0 
Via: n5_129
Date: 2017/12/26 09:29:58
Content-Type: text/plain; charset=UTF-8
Content-Length: 390
Connection: close

STR;RTCM30_GG;RTCM30_GG;RTCM3X;1005(10),1004-1012(1),1033(10);2;GNSS;POPNet;CHN;0.00;0.00;1;1;POP Platform;none;B;N;500;POP
STR;RTCM23_GPS;RTCM23_GPS;RTCM2X;1(1),31(1),41(1),3(10),32(30);2;GNSS;POPNet;CHN;0.00;0.00;1;1;POP Platform;none;B;N;500;POP
STR;RTCM32_GGB;RTCM32_GGB;RTCM3X;1005(10),1074-1084-1124(1);2;GNSS;POPNet;CHN;0.00;0.00;1;1;POP Platform;none;B;N;500;POP
ENDSOURCETABLE

3.Ntrip Client获取差分数据
//千寻差分账号和差分密码
qxngy005:103e7be 转成Base64编码:cXhuZ3kwMDU6MTAzZTdiZQ==
qxngy004:c57d9a6 转成Base64编码:cXhuZ3kwMDQ6YzU3ZDlhNg==
qxngy007:a0d9758 转成Base64编码:cXhuZ3kwMDc6YTBkOTc1OA==

Ntrip Client获取差分数据,我们选择挂载点RTCM30_GG,填入上面算出的差分账号和差分密码的base64编码,组包发送以下数据,

GET /RTCM30_GG HTTP/1.0
User-Agent: NTRIP GNSSInternetRadio/1.4.10
Accept: */*
Connection: close
Authorization: Basic cXhuZ3kwMDU6MTAzZTdiZQ==

返回

ICY 200 OK


4.然后Ntrip Client发送$GPGGA,052114.93,3115.2739300,N,12133.8922600,E,1,00,1.0,-10.643,M,11.353,M,0.0,*5D
到Ntrip Caster,Ntrip Caster会以1HZ的频率返回数据到Ntrip Client
以为只能是GPGGA,GNGGA也可以,不用转换成GPGGA
$GNGGA,031202.00,3109.91846,N,12123.97022,E,1,03,18.63,-0.7,M,9.7,M,,*6F
$GNGGA,031200.00,3109.91893,N,12123.97023,E,1,03,18.54,-0.6,M,9.7,M,,*61
$GNGGA,031159.00,3109.91931,N,12123.97035,E,1,03,18.49,-0.6,M,9.7,M,,*6C

相关资料链接:

千寻位置服务官方配置解释:

https://www.qxwz.com/help-document-location-service.html

Ntrip通讯协议:

https://blog.csdn.net/hanford/article/details/53025771

你可能感兴趣的:(Ntrip协议访问千寻位置服务)