Help with Serial Terminal Logging and Data Parsing

Hello everyone

IoNinja is a great tool for testing and logging serial communications, which is why I recently started using it. I could use some assistance with a couple problems I hve encountered, though.

Logging data from several serial devices at once is part of my current project. I hve configured the Serial Tap and created distinct sessions for every device; but I am having trouble efficiently handling the log files. Can the log files be automatically labeled or arranged according to the session name or device ID?

I have to extract certain information from the logs; including error codes and timestamps; and export it for additional examination. Although I am not familiar with jancy, IoNinja appears to support scripting with it. Is there a straightforward sample script that shows me how to extract and process particular data fields from logs?

I would be very grateful if someone could share some advice on how to maximize performance when handling large volumes of data.

I appreciate your help in advance

Hello,

It's not very clear what you mean by "automatically labeling log files according to the session name or device ID". When you create a new IO Ninja session, the log is stored in a temporary file. When you save the session, you explicitly specify a directory name to store the session data (or a single file name if you only need to save the log file) -- so you are the one picking the file names.

If you need to post-process the log files externally, you can do it in any language of your choice (Python, JavaScript, C, etc.) The .njlog file format is very simple. A brief overview can be found here: https://ioninja.com/doc/developer-manual/logging-engine.html) and all the internal structures are open-source; see scripts/api/log_RecordCode.jnc and scripts/api/log_RecordFile.jnc for all the relevant declarations.

Let me know if you have any follow-up questions regarding the file format.