Capture messages based on CR-LF

We are serial logging on a machine. Bytes of Tx and Rx data are saved at 1mS intervals. Messages are truncated per 1mS, and Rx and Tx are interchanged, making the analysis of the log files very difficult.

How can we log the messages in response to CR-LF which indicates the end of a message Tx or Rxd?

A simple TX/RX Filter could be sufficient in many cases. If you want to "de-interlace" the traffic by accumulating TX/RX data and postponing adding it to the log until a certain character (CR/LF) arrives -- a simple custom layer plugin could work. Finally, you can save captured data streams into an .njlog file and post-process it with any scripting language of your choice.

Could you please share an .njlog or at least a screenshot of communications? That would help to choose the best approach.