FYI High Level Analyzer and Claude Code. easy-peasy

I already had a rough python library of functions and data tables (really rough) that used the python serial module and the struct module for decoding binary messages. I included a dictionary that referenced the structs (which contain the type info) against field names.

I created a new HLA via the Logic2 app “Create Extension” button, opened the folder in vscode, culled up Claude code and used the following prompt (spelling errors and all). Please note the references protocol is proprietary to our company but is just a pretty standard binary message protocol with a header structure and a weird checksum, also encoded into my referenced python library.

I need to develope a HighLevelAnalyzer extension for the saleae Logic2 application. Documentation os located at High-Level Analyzer (HLA) Extensions | Saleae . The extension should leverage the data from up to two existing “Async Serial” analyser. The purpose of the this new analyzer is to provide a decoded view of rs485 or single stream async serial traffic that uses the litenet protocol. An example of the litenet protocol as applied to a serial driver is in the file litenet_ref.py. I have never built one of these High Level Analyzer extensions before.

Claude read the saleae documentation, my python code, and came back with some questions about how I wanted it structured, and then just did it. The only revision I had it make after testing was to limit the range of the displayed data in the data table view in the Analyzers window to the original struct.py definition widths.

30 minutes start to finish. We are living in interesting times.

2 Likes