AGG Software
Ask a question  Top  Previous  Next

The sign of the end of string

For identification of transmitting data packets you can add to the packet end its end sign. The program will extract data packets from common incoming information stream if string on receive is set. These parameters are set up in Options on "COM port/Signs of end of string" tab (pic.1).

 

serial-port-monitor-end-sign

Pic.1. Sign of end of string

 

In time of program work, the selected character or string will complete a data packet. In output this string will be added to the text, entered in input string or read from ASCII file. On data receive this character is the sign, on which string length will be counted and new string on display will be formed. Also this character considers event for plug in on the next string receive.

 

It is possible to consider string and character(s) on receive and transmit. And besides these characters can be different. Also you can disable any of the given characters (or combinations) selecting "None".

 

You can specify your custom end character(s). Just type it in the "Custom" input field. For example, if you need to set up ETX as end character, then type #03. Here 03 is hexadecimal value of the ETX ASCII code.

 

You need set up these signs for formatted display in data window. For example, if your device sends strings, which terminates with 0D byte, then specify "#0D - CR" in the group "String or character on receive" and you'll see in data window string by string as on pic.2.

 

serial-port-monitor-main-window-view

Pic.2 String by string

 

Some devices needs special framing characters in their requests. For example, common case is using STX and ETX ASCII characters as framing characters. Yes, of course, you can type this characters manually in each case, when you need send data to your device, but is more efficient specify #03 as terminate character on transmit and enable option "Add before data packet on transmit" and type #02 in a input field.




Copyright © 1999-2016, AGG Software.
All rights reserved.