#ntrip-client
##Usage
First, you need a NtripCuster and a TCP Server.
Then,
var client = require('./build/Release/ntrip-client');
new client.NtripClient(
mountpoint,casterIP,casterPort,casterUser,casterPassWord,
serverIP,serverPort);
// all args are string
This client will receive data from custer and sent observed value and ephemeris to your TCP server.
If you need more clients, you just need to new more NtripClient.
##Output stream protocol
Your TCP server will receive String like below.
UTC time likes 2017-07-06:16-31-54 ;
####Observed value
%mountpoint,1,satellite count,UTC$value_1;……;value_N*
value_N likes G01,25288463.609,132891770.389,25288478.351,103552091.454 ;
Demo:
%BPM002,1,18,2017-07-14:07-56-57$G01,25288463.609,132891770.389,25288478.351,103552091.454;G02,24191810.917,127128831.564,24191818.547,99061460.239;G03,22339063.112,117392625.879,22339074.280,91474846.052;G06,20746967.831,109026107.459,20746979.392,84955483.985;G09,24043127.280,126347519.618,24043139.788,98452672.568;G17,20614910.355,108332126.931,20614919.147,84414694.147;G19,20290331.472,106626441.410,20290338.244,83085584.589;G22,24680702.704,129697956.108,24680709.548,101063438.417;G23,23953647.540,125877303.445,23953655.545,98086250.874;G28,23204010.756,121937882.871,23204020.566,95016566.975;C01,37874817.175,197224103.849,37874818.819,152506194.155;C02,38414199.655,200032805.704,38414202.728,154678071.087;C04,38858358.880,202345672.857,38858363.830,156466541.618;C05,40445195.861,210608757.403,0.000,0.000;C06,39339784.614,204852606.471,39339789.117,158405036.107;C07,40623007.596,211534648.517,0.000,0.000;C08,36318371.989,189119292.774,36318375.527,146239051.538;C10,39369665.944,205008178.268,0.000,0.000*
####ephemeris
%mountpoint,2,satellite identification,UTC$ephemeris info*
Demo:
%BPM002,2,G06,2017-07-14:08-00-00$
57,57,0,0,1500019200,1500019200,1500019018,2.65607204045342E+07,6.83300313539803E-04,9.68020876195040E-01,3.00503025884077E+00,-1.05217718146009E+00,2.08094584646723E+00,4.30589364346800E-09,-8.12140971788477E-09,-9.46467995619624E-11,2.82781250000000E+02,-6.99062500000000E+01,-3.53343784809113E-06,5.12413680553436E-06,-1.86264514923096E-09,-3.72529029846191E-09,4.60800000000000E+05,4.00000000000000E+00,3.76849435269833E-04,4.54747350886464E-12,0.00000000000000E+00,4.65661287307739E-09,1,0*