cronologic-de / webusb

Configure a Raspberry Pi Pico using SCPI over WebUSB
Mozilla Public License 2.0
6 stars 1 forks source link

Parse the required SCPI commands #4

Open scy opened 3 years ago

scy commented 3 years ago

Note that we’re not using USBTMC for this first iteration, but simple CDC (“USB serial”).

scy commented 3 years ago

A problem has come up: We were planning to use Vrekrer_scpi_parser, a C++ library, to parse the SCPI commands in the firmware.

When trying to add the library to the firmware, I found out that it’s an Arduino library:

In file included from /home/scy/proj/cronologic/webusb/firmware/lib/vrekrer_scpi_parser/src/Vrekrer_scpi_parser.cpp:1:0:
/home/scy/proj/cronologic/webusb/firmware/lib/vrekrer_scpi_parser/src/Vrekrer_scpi_parser.h:30:21: fatal error: Arduino.h: No such file or directory
 #include "Arduino.h"
                     ^
compilation terminated.

There is no official Arduino support for the Pico boards (yet), only a third-party project.

We have three options now:

I’ll try out another SCPI parser library first and report back.

scy commented 3 years ago

I’ve managed to include the j123b567 library I was talking about in the previous comment in c943d9b21bd805bf250b0565a5697f9fa0f403dd and make it work with the Pico’s CMake-based SDK. Next step will be to actually implement some C code to parse the SCPI and respond.