Mini-Circuits ISC-2425-25+ Quick Start Manual page 19

Hide thumbs Also See for ISC-2425-25+:
Table of Contents

Advertisement

2. It attempts to write the command string to the ISC through the serial port interface, and waits up to 250ms for an
indication that the transmission has begun. If the transmission has begun, the outbound message is also printed in the
communications log.
Notably a 'carriage return' (\r) and 'line feed' (\n) are appended to the command string when writing it out. These are
treated as an end of message indicator by the ISC board. Without them the board would wait indefinitely for additional
inputs and not respond.
3. In a while loop, the function awaits a response by the ISC that contains "\r\n", indicating the end of the response. The
function waits for up to 500ms at a time until SG_port indicates with a 'readyRead' signal that there is something to be
read from the read buffer of SG_port. When the SG_port is ready to be read (or if the timer expires), the contents of the
read buffer are appended to the QString 'rx'. 'rx' is then parsed for a possible error, indicated by an "ERR" string. The
open state of SG_port is also checked to make sure the serial port is still working while it is stuck in the while loop. If it
turns out there's an error response from the SG or the serial port has closed for some reason, the while loop is broken
prematurely, otherwise it keeps looping till a "\r\n" is detected in the contents of rx.
4. After breaking out of the while loop, the response string is printed in the communications log, and 'rx' is returned to
the function which called writeRead, allowing further interaction with the response string if necessary.
AN-50-008
Rev: OR
This document and its contents are the property of Mini-Circuits.
DCO-000822
(03/07/22)
File: AN-50-008.docx
Page 19 of 26

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ISC-2425-25+ and is the answer not in the manual?

Related Products for Mini-Circuits ISC-2425-25+

Table of Contents