Changeset 10503 in ntrip
- Timestamp:
- Jun 7, 2024, 11:41:06 AM (6 months ago)
- Location:
- trunk/BNC/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccaster.cpp
r10355 r10503 312 312 QString("Decoding %1 stream(s)").arg(_staIDs.size()).toLatin1(), true) ); 313 313 if (_staIDs.size() == 0) { 314 emit(newMessage("bncCaster: Last get thread terminated", true));315 314 emit getThreadsFinished(); 316 315 } -
trunk/BNC/src/bncgetthread.cpp
r10470 r10503 334 334 connect((RTCM3Decoder*) newDecoder, SIGNAL(newMessage(QByteArray,bool)), 335 335 this, SIGNAL(newMessage(QByteArray,bool))); 336 } else if (_format.indexOf("ZERO") != -1) { 337 emit(newMessage(_staID + ": Get data in original format", true)); 338 _decoder = new bncZeroDecoder(_staID); 339 } else if (_format.indexOf("RTNET") != -1) { 336 } else if (_format == "ZERO") { 337 emit(newMessage(_staID + ": Forward data in original format", true)); 338 _decoder = new bncZeroDecoder(_staID, false); 339 } 340 else if (_format == "ZERO2FILE") { 341 emit(newMessage(_staID + ": Get data in original format and store it", true)); 342 _decoder = new bncZeroDecoder(_staID, true); 343 } 344 else if (_format.indexOf("RTNET") != -1) { 340 345 emit(newMessage(_staID + ": Get data in RTNet format", true)); 341 346 _decoder = new bncRtnetDecoder(); -
trunk/BNC/src/bnchelp.html
r10461 r10503 1455 1455 The screenshot below shows an example setup of BNC when converting streams to RINEX. Streams are coming from Ntrip Broadcaster 1456 1456 <a href="http://igs-ip.net:2101" target="_blank">http://igs-ip.net:2101</a>. 1457 Specifying a decoder string 'ZERO ' would mean to not convert the affected stream but save its content as received.1457 Specifying a decoder string 'ZERO2FILE' would mean to not convert the affected stream but save its content as received. 1458 1458 On Wed Oct 5 2022 that would result for the Mountpoint 'FFMJ00DEU0' into a file named 'FFMJ00DEU0_221005'. 1459 1459 </p> … … 3410 3410 BNC can output streams related to the above specified 'Mountpoint' through a TCP/IP port of your local host. 3411 3411 Enter a port number to activate this function. The stream content remains untouched. BNC does not decode or reformat the data for this output. 3412 If the decoder string is not an accepted one ('RTCM_2.x', 'RTCM_3.x' and 'RTNET'), please change the decoder string to <ul> 3413 <li> 'ZERO' (forward the raw data) or </li> 3414 <li> 'ZERO2File' (forward and store the raw data)</li> </ul> in addition. 3412 3415 </p> 3413 3416 … … 5318 5321 enter your preferred decoder and then hit Enter. Accepted decoder strings are 'RTCM_2.x', 'RTCM_3.x' and 'RTNET'.</li> 5319 5322 <li>In case you need to log the raw data as it is, BNC allows users to by-pass its decoders and directly save the input in daily logfiles. 5320 To do this, specify the decoder string as 'ZERO '. The generated filenames are created from the characters of the streams mountpoints plus5321 two-digit numbers each for year, month, and day. Example: Setting the 'decoder' string for mountpoint WTZZ00DEU0 to 'ZERO ' and5323 To do this, specify the decoder string as 'ZERO2FILE'. The generated filenames are created from the characters of the streams mountpoints plus 5324 two-digit numbers each for year, month, and day. Example: Setting the 'decoder' string for mountpoint WTZZ00DEU0 to 'ZERO2FILE' and 5322 5325 running BNC on December 01, 2022 would save raw data in a file named WTZZ00DEU0_221201.</li> 5326 <li> BNC allows as well to forward streams related to the specified 'Mountpoint' on top of the 'Miscellaneous Panel' 5327 through a TCP/IP port of your local host. In this case, the stream content remains untouched; BNC does not decode or reformat the data for this output. 5328 If the decoder string is not an accepted one, please change the decoder string to 'ZERO' (forward the raw data only) or 'ZERO2FILE' (forward and store the raw data) in addition.</li> 5323 5329 <li>BNC can also retrieve streams from virtual reference stations (VRS). To initiate these streams, an approximate rover position needs to be sent 5324 5330 in NMEA format to the Ntrip Broadcaster. In return, a user-specific data stream is generated, typically by Network RTK software. … … 5518 5524 <li>Enter the IP port number of the stream providing host.</li> 5519 5525 <li>Specify a mountpoint. Recommended is a 9-character station ID. Example: FFMJ00DEU</li> 5520 <li>Specify the stream format. Available options are 'RTCM_2', 'RTCM_3', 'RTNET', and 'ZERO'.</li>5526 <li>Specify the stream format. Available options are 'RTCM_2', 'RTCM_3', 'RTNET', 'ZERO' and 'ZERO2FILE'.</li> 5521 5527 <li>Enter the approximate latitude of the stream providing rover in degrees. Example: 50.09.</li> 5522 5528 <li>Enter the approximate longitude of the stream providing rover in degrees. Example: 8.66.</li> … … 5536 5542 <li>Enter the local port number where the UDP stream arrives.</li> 5537 5543 <li>Specify a mountpoint. Recommended is a 9-character station ID. Example: FFMJ00DEU</li> 5538 <li>Specify the stream format. Available options are 'RTCM_2', 'RTCM_3', 'RTNET', and 'ZERO'.</li>5544 <li>Specify the stream format. Available options are 'RTCM_2', 'RTCM_3', 'RTNET', 'ZERO' and 'ZERO2FILE'.</li> 5539 5545 <li>Enter the approximate latitude of the stream providing rover in degrees. Example: 50.09.</li> 5540 5546 <li>Enter the approximate longitude of the stream providing rover in degrees. Example: 8.66.</li> … … 5550 5556 <ul> 5551 5557 <li>Specify a mountpoint. Recommended is a 9-character station ID. Example: FFMJ00DEU</li> 5552 <li>Specify the stream format. Available options are 'RTCM_2', 'RTCM_3', 'RTNET', and 'ZERO'.</li>5558 <li>Specify the stream format. Available options are 'RTCM_2', 'RTCM_3', 'RTNET', 'ZERO' and 'ZERO2FILE'.</li> 5553 5559 <li>Enter the approximate latitude of the stream providing rover in degrees. Example: 50.09.</li> 5554 5560 <li>Enter the approximate longitude of the stream providing rover in degrees. Example: 8.66.</li> -
trunk/BNC/src/bncipport.cpp
r10062 r10503 83 83 _ipPortLineEdit->setWhatsThis(tr("<p>Enter the IP port number of the stream providing host.</p>")); 84 84 _ipMountLineEdit->setWhatsThis(tr("<p>Specify a mountpoint.</p><p>Recommended is a 9-character station ID.<br>Example: FFMJ01DEU</p>")); 85 _ipFormatLineEdit->setWhatsThis(tr("<p>Specify the stream format.</p><p>Available options are 'RTCM_2', 'RTCM_3', RTNET, and 'ZERO'.</p>"));85 _ipFormatLineEdit->setWhatsThis(tr("<p>Specify the stream format.</p><p>Available options are 'RTCM_2', 'RTCM_3', RTNET, 'ZERO' and 'ZERO2FILE'.</p>")); 86 86 _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 87 87 _ipLonLineEdit->setWhatsThis(tr("<p>Enter the approximate longitude of the stream providing receiver in degrees.<p></p>Example: -15.20</p>")); -
trunk/BNC/src/bncserialport.cpp
r10062 r10503 100 100 // -------------------------------------- 101 101 _serialMountpointLineEdit->setWhatsThis(tr("<p>BNC allows to retrieve streams via serial port without using the Ntrip transport protocol.</p><p>Specify a mountpoint. Recommended is a 9-character station ID.<br>Example: FFMJ01DEU</p>")); 102 _serialFormatLineEdit->setWhatsThis(tr("<p>Specify the stream format.</p><p>Available options are 'RTCM_2', 'RTCM_3', 'RTNET', and 'ZERO'.</p>"));102 _serialFormatLineEdit->setWhatsThis(tr("<p>Specify the stream format.</p><p>Available options are 'RTCM_2', 'RTCM_3', 'RTNET', 'ZERO' and 'ZERO2FILE'.</p>")); 103 103 _serialLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 104 104 _serialLonLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); -
trunk/BNC/src/bncudpport.cpp
r10062 r10503 81 81 _ipPortLineEdit->setWhatsThis(tr("<p>BNC allows to pick up streams arriving directly at one of the local host's UDP ports without using the Ntrip transport protocol.</p><p>Enter the local port number where the UDP stream arrives.</p>")); 82 82 _ipMountLineEdit->setWhatsThis(tr("<p>Specify a mountpoint.</p><p>Recommended is a 9-character station ID.<br>Example: FFMJ01DEU</p>")); 83 _ipFormatLineEdit->setWhatsThis(tr("<p>Specify the stream format.</p><p>Available options are 'RTCM_2', 'RTCM_3', 'RTNET', and 'ZERO'.</p>"));83 _ipFormatLineEdit->setWhatsThis(tr("<p>Specify the stream format.</p><p>Available options are 'RTCM_2', 'RTCM_3', 'RTNET', 'ZERO' and 'ZERO2FILE'.</p>")); 84 84 _ipLatLineEdit->setWhatsThis(tr("<p>Enter the approximate latitude of the stream providing receiver in degrees.<p></p>Example: 45.32</p>")); 85 85 _ipLonLineEdit->setWhatsThis(tr("<p>Enter the approximate longitude of the stream providing receiver in degrees.<p></p>Example: -15.20</p>")); -
trunk/BNC/src/bncwindow.cpp
r10479 r10503 1500 1500 _miscIntrComboBox->setWhatsThis(tr("<p>BNC can average latencies per stream over a certain period of GPS time. The resulting mean latencies are recorded in the 'Log' tab at the end of each 'Log latency' interval together with results of a statistical evaluation (approximate number of covered epochs, data gaps).</p><p>Select a 'Log latency' interval or select the empty option field if you do not want BNC to log latencies and statistical information. <i>[key: miscIntr]</i></p>")); 1501 1501 _miscScanRTCMCheckBox->setWhatsThis(tr("<p>Tick 'Scan RTCM' to log the numbers of incoming message types as well as contained antenna coordinates, antenna height, and antenna descriptor.</p><p>In case of RTCM Version 3 MSM streams, BNC will also log contained RINEX Version 3 observation types. <i>[key: miscScanRTCM]</i></p>")); 1502 _miscPortLineEdit->setWhatsThis(tr("<p>BNC can output an incoming stream through an IP port of your local host.</p><p>Specify a port number to activate this function. <i>[key: miscPort]</i></p>")); 1502 _miscPortLineEdit->setWhatsThis(tr("<p>BNC can output an incoming stream through an IP port of your local host.</p><p>Specify a port number to activate this function. In this case, the stream content remains untouched; BNC does not decode or reformat the data for this output.</p><p> If the decoder string is not an accepted one ('RTCM_2.x', 'RTCM_3.x' and 'RTNET'), please change the decoder string to <ul>" 1503 "<li> 'ZERO' (forward the raw data) or </li>" 1504 "<li> 'ZERO2File' (forward and store the raw data)</li> </ul> in addition. <i>[key: miscPort]</i></p>")); 1503 1505 1504 1506 // WhatsThis, PPP (1) … … 1642 1644 // WhatsThis, Streams Canvas 1643 1645 // ------------------------- 1644 _mountPointsTable->setWhatsThis(tr("<p>Streams selected for retrieval are listed in the 'Streams' section. Clicking on 'Add Stream' button opens a window that allows the user to select data streams from an Ntrip Broadcaster according to their mountpoints. To remove a stream from the 'Streams' list, highlight it by clicking on it and hit the 'Delete Stream' button. You can also remove multiple streams by highlighting them using +Shift and +Ctrl.</p><p>BNC automatically allocates one of its internal decoders to a stream based on the stream's 'format' as given in the source-table. BNC allows users to change this selection by editing the decoder string. Double click on the 'decoder' field, enter your preferred decoder and then hit Enter. Accepted decoder strings are 'RTCM_2.x', 'RTCM_3.x' and 'RTNET'.</p><p>In case you need to log raw data as is, BNC allows to by-pass its decoders and directly save the input in daily log files. To do this specify the decoder string as 'ZERO'.</p><p>BNC can also retrieve streams from virtual reference stations (VRS). VRS streams are indicated by a 'yes' in the 'nmea' column. To initiate such stream, the approximate latitude/longitude rover position is sent to the Ntrip Broadcaster together with an approximation for the height. Default values for latitude and longitude can be change according to your requirement. Double click on 'lat' and 'long' fields, enter the values you wish to send and then hit Enter. <i>[key: mountPoints]</i></p>")); 1646 _mountPointsTable->setWhatsThis(tr("<p>Streams selected for retrieval are listed in the 'Streams' section. " 1647 "Clicking on 'Add Stream' button opens a window that allows the user to select data streams from an Ntrip Broadcaster " 1648 "according to their mountpoints. To remove a stream from the 'Streams' list, highlight it by clicking on it " 1649 "and hit the 'Delete Stream' button. You can also remove multiple streams by highlighting them using +Shift and +Ctrl.</p><p>" 1650 "BNC automatically allocates one of its internal decoders to a stream based on the stream's 'format' as given in the source-table. " 1651 "BNC allows users to change this selection by editing the decoder string. " 1652 "Double click on the 'decoder' field, enter your preferred decoder and then hit Enter. " 1653 "Accepted decoder strings are 'RTCM_2.x', 'RTCM_3.x' and 'RTNET'.</p><p>" 1654 "In case you need to log raw data as is, BNC allows to by-pass its decoders and directly save the input in daily log files. " 1655 "To do this, specify the decoder string as 'ZERO2FILE'.</p><p>" 1656 "BNC allows as well to forward streams related to the specified 'Mountpoint' on top of the 'Miscellaneous Panel' " 1657 "through a TCP/IP port of your local host. " 1658 "In this case, the stream content remains untouched; BNC does not decode or reformat the data for this output. " 1659 "If the decoder string is not an accepted one, please change the decoder string to 'ZERO' (forward the raw data only) or 'ZERO2FILE' (forward and store the raw data) in addition.</p><p>" 1660 "BNC can also retrieve streams from virtual reference stations (VRS). VRS streams are indicated by a 'yes' in the 'nmea' column. " 1661 "To initiate such stream, the approximate latitude/longitude rover position is sent to the Ntrip Broadcaster " 1662 "together with an approximation for the height. Default values for latitude and longitude can be change according to your requirement. " 1663 "Double click on 'lat' and 'long' fields, enter the values you wish to send and then hit Enter. <i>[key: mountPoints]</i></p>")); 1645 1664 _actAddMountPoints->setWhatsThis(tr("<p>Add stream(s) to selection presented in the 'Streams' canvas.</p>")); 1646 1665 _actDeleteMountPoints->setWhatsThis(tr("<p>Delete stream(s) from selection presented in the 'Streams' canvas.</p>")); -
trunk/BNC/src/bnczerodecoder.cpp
r8203 r10503 35 35 * Created: 24-Apr-2007 36 36 * 37 * Changes: 37 * Changes: 38 38 * 39 39 * -----------------------------------------------------------------------*/ … … 47 47 48 48 // Constructor 49 //////////////////////////////////////////////////////////////////////// 50 bncZeroDecoder::bncZeroDecoder(const QString& fileName) { 49 //////////////////////////////////////////////////////////////////////// 50 bncZeroDecoder::bncZeroDecoder(const QString& fileName, bool writeFile) { 51 _writeFile = writeFile; 51 52 52 bncSettings settings; 53 QString path = settings.value("rnxPath").toString(); 54 expandEnvVar(path); 53 if (_writeFile) { 54 bncSettings settings; 55 QString path = settings.value("rnxPath").toString(); 56 expandEnvVar(path); 55 57 56 if ( path.length() > 0 && path[path.length()-1] != QDir::separator() ) { 57 path += QDir::separator(); 58 if ( path.length() > 0 && path[path.length()-1] != QDir::separator() ) { 59 path += QDir::separator(); 60 } 61 62 _fileName = path + fileName; 58 63 } 59 60 _fileName = path + fileName;61 64 62 65 _out = 0; … … 64 67 65 68 // Destructor 66 //////////////////////////////////////////////////////////////////////// 69 //////////////////////////////////////////////////////////////////////// 67 70 bncZeroDecoder::~bncZeroDecoder() { 68 71 delete _out; … … 70 73 71 74 // Reopen Output File 72 //////////////////////////////////////////////////////////////////////// 75 //////////////////////////////////////////////////////////////////////// 73 76 void bncZeroDecoder::reopen() { 74 77 QDate currDate = currentDateAndTimeGPS().date(); 75 78 if (!_out || _fileDate != currDate) { 76 79 delete _out; 77 QByteArray fileName = 80 QByteArray fileName = 78 81 (_fileName + "_" + currDate.toString("yyMMdd")).toLatin1(); 79 82 bncSettings settings; … … 89 92 90 93 // Decode Method 91 //////////////////////////////////////////////////////////////////////// 94 //////////////////////////////////////////////////////////////////////// 92 95 t_irc bncZeroDecoder::Decode(char* buffer, int bufLen, vector<string>& errmsg) { 93 96 errmsg.clear(); 94 reopen(); 95 _out->write(buffer, bufLen); 96 _out->flush(); 97 if (_writeFile) { 98 reopen(); 99 _out->write(buffer, bufLen); 100 _out->flush(); 101 } 97 102 return success; 98 103 } -
trunk/BNC/src/bnczerodecoder.h
r5738 r10503 32 32 class bncZeroDecoder: public GPSDecoder { 33 33 public: 34 bncZeroDecoder(const QString& fileName );34 bncZeroDecoder(const QString& fileName, bool writeFile); 35 35 ~bncZeroDecoder(); 36 36 virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg); … … 40 40 std::ofstream* _out; 41 41 QDate _fileDate; 42 bool _writeFile; 42 43 }; 43 44
Note:
See TracChangeset
for help on using the changeset viewer.