QFW SDK

The previous chapters extended QInsight on the PC side — custom drivers, protocols, and controls. The QFW SDK extends the other side: the firmware of your own device. It adds a communication protocol that QInsight communicates with; you write neither a protocol nor a parser.

The device then provides QInsight with live measurements straight from the running firmware, parameter calibration at runtime, logging and replay; the communication code in your product consists only of the engine sources and the glue layer, compiled by your own compiler.

Where to find the SDK

The SDK is part of the QInsight installation — it is not offered as a separate download. After installing QInsight you find it in the SDK subfolder of the QInsight installation folder as the package SDK\qfw-xcp-sdk-<version> (QInsight 1.0.0 ships qfw-xcp-sdk-1.0.0) with its documentation, the example project and the tools. The QInsight folder in the Start menu contains the shortcuts QFW XCP SDK folder and QFW XCP SDK - Integration guide (a link to Integration: XCP on TCP). The QInsight installer is available after signing in at account.qenex.net.

SDK structure

Every SDK protocol has the same layout:

  • An engine in source code — a set of source files with the protocol core and a single public header. The engine is OS-free: no threads, sockets, heap, or blocking calls. It receives transport bytes or frames, returns data to transmit, and gets everything else (time, locking, logging) through callbacks at initialization. It therefore depends on neither the operating system nor the network stack.
  • A glue layer — a reference binding of the engine to a concrete environment (RTOS, network stack or CAN peripheral), shipped as a source template that you adapt to your project. The SDK contains glue for FreeRTOS + lwIP (XCP on TCP), FreeRTOS + FDCAN (XCP on classic CAN) and the lwIP RAW API without an RTOS (XCP on TCP from the main loop); for another RTOS or stack you write your own following the same pattern.
  • Ready-made integration examples — complete CubeMX/CMake projects for the NUCLEO-H723ZG board, from initialization to live measurement in QInsight: with FreeRTOS for both transports and without an RTOS for Ethernet.
  • Variable address tools — scripts that read the variable addresses from the ELF file of your firmware and prepare an import file for QInsight.

Integrating into your own firmware then consists of adding the engine sources to your project (the included CMake snippet does that for you), adding the glue and the clock port, filling in the glue configuration and three calls from your application. The chapter Integration: XCP on TCP describes the procedure step by step.

Licensing

The SDK is part of the QInsight license — it has no separate price, no licensing mechanism of its own and is the same for every license: no activation key, no time limit in the engine, no per-customer build. The sources come under the QENEX Software License Agreement (Annex B): you compile the engine with your own toolchain, you may ship the compiled engine only as part of the firmware of your own product, and the sources themselves are not redistributed (they may only be shared with a supplier developing your product for you, under a written confidentiality obligation).

The QInsight license sets the scope: with Free and Trial, QInsight measures for 30 minutes per start and then returns to edit mode by itself; with Commercial there is no limit. Under Free and Trial the SDK may be used for evaluation and pilot integration (Free: personal, educational and non-commercial purposes only); firmware delivered to third parties or used in productive operation requires a Commercial license. Academic Seats do not include the right to distribute products with the SDK. Use of the SDK is governed by the QENEX Software License Agreement, which is included in the package (LICENSES/QENEX-SDK-EULA.txt) and in the QInsight installer.

Available protocols

  • XCP — the measurement and calibration protocol (ASAM MCD-1 XCP) over TCP or classic CAN: polling, DAQ with device timestamps, writes, STIM and block mode for calibration maps. The first protocol of the SDK family; more will follow the same model over time.

Chapters of this section