Serial monitor window

Usually when debugging I have a debug UART spitting out information on my boards. It would be really useful if I could take one of the pins from the analyser and use it to receive ASCII text in a separate terminal like window. Saves me having to plug in another usb device, open another terminal program. Is this possible?

Trev

Hey Trev,

I’m not sure that I understand. Would you like the data of each UART channel to be displayed on a different terminal? or would you like to use your own terminal instead of the built-in one?

Thanks for the feedback!

I want the option to display ASCII uart data like a terminal program. So it displays lines of text, \n\r stuff is processed\ etc. You know when you connect to a the debug port of a linux board for example and you get the full boot messages? It would be nice to be able to use a logic analyser to read that data in whilst doing other stuff as well.

https://www.google.com/search?q=ascii+terminal&safe=off&client=firefox-b-d&sxsrf=ACYBGNSTklcxM88XhemOYOiA_J-C8MeDNA:1576684929260&source=lnms&tbm=isch&sa=X&ved=2ahUKEwjTk4aJyb_mAhVJZ8AKHcpICQQQ_AUoAXoECBAQAw&biw=2560&bih=1327&dpr=1.5

Have you tried the serial terminal?

1 Like

Hi, have finally sat down to debug some work and can properly explain the requirement. I have a unit that I am debugging. I have serial data coming out that gives me useful messages. It would be nice to be able to read them properly like a terminal window. The Terminal output doesn’t format well as can be seen from the screenshot.

Being able to use a pin or 2 of the analyzer as a serial connection with properly formatted data would be a nice feature.

1 Like

You’re absolutely right. The issue is the output format of the analyzers and we’re working on fixing that (Async Serial for a start).

1 Like

Well if the data could be streamed to a network port maybe something like putty could pick it up and it would save you a job?

We can stream it to a network port, however, I’m not sure how it’d help if the format is “broken”.

Well once fixed if each analyser could output to a port that would be great

Can you elaborate on that? What’s the purpose of streaming it to a network port?
I want to make sure that we’ll build this feature correctly

If its streamed to a port I think putty can pick it up and that means the debug data window is outside of the saleae app. I can resize the putty window and move it to a different display.

2 Likes

Thumb up for the request. It would be incredibily useful and data can be formatted very well with something like YAT or Putty. Actually for windows it so easy: it would be enough that the program would open one or more than one virtual COM port and send everything there. Almost all the necessary is written… could be just an expansion. And with the “stream mode” it would be a extremely nice tool to sniff SPI, I2C, and every existing protocol!

So the feature would be reducted in this sentence: streaming the decoded protocol into a virtual COM port opened “ad hoc”.

This would open a lot of more scenarios for using the logic analyzer.

Interesting! We’ve actually implemented something very similar a few weeks ago, however we haven’t exposed the functionality to users yet. We rewrote the terminal implementation and changed 2 things:

  1. We improved the formatting of terminal results for Serial, SPI, and I2C, to behave much more like an actual terminal. For serial, it displays most bytes in Latin-1, but for non-displayable characters, I added fallbacks to Windows-1252 and to Unicode Control Pictures.
  2. We’ve started using native named pipes, one for each analyzer, to stream results to the UI. Right now, you can’t open that named pipe without disrupting the software, but we’ll open that up in the future so you can easily read from the named pipe from any application, or route it into a file.
    PUTTY also supports reading from named pipes.

Here is a sample of writing all bytes 0-255 to the new terminal. This has been in the last few releases. The tiny text you can’t quite read are the Unicode control pictures for characters like null. tabs, line feeds and carriage returns are interpreted as the correct control character by the terminal. I think there are still 5 characters that fall back to “?” because there is no displayable version in any encoding scheme.

It is intresting, but redirecting everything to virtual COM port would be:

  1. incredibily easy from the point of view of the internal development. If you have an API that catch the real time decode of a char, everyone can even program an extension in C# or python that does that.
  2. leave the user free to use terminal programs that are unreplaceable and improved with the top of features. Do you imagine something like this in real time? https://prnt.sc/s88199 The parallelism is incredibly useful analyzind multi protocol devices! And every terminal can be displayed with dozens of (useful) parameter.
    The serial analyzer would be much more than a serial analyzer, but a multi-purpose sniffer.