Error with HEADLESS

Everything is fine with QA40x.exe and QA40x.exe -C, but QA403 does not work with QA40x.exe -HEADLESS.

There are three kinds of faults:

1, The Link LED is not on with QA40x.exe -HEADLESS (USB is connected before the command, and voltage is correct, >4.9V). Link LED is on with QA40x.exe and QA40x.exe -C.

2, Command GET /Status/Version works, but there are some errors.

Headless operation specified. Closing the console will close the application.
Logging started.
Assembly: QA40x, Version=1.1.6.8, Culture=neutral, PublicKeyToken=null
Version: 1.215
Model not specified on the command line, defaulting to QA403, equivalent to -QA403 switch
Attempting to open model QA403…
Usb Connected
Device successfully opened.
Factory calibration data loaded from flash
Calibration data loaded
Server started listening on port 9402

Time 20:50:13.296
GET Request:/Status/Version
Return: { “SessionId”:“0”, “Value”:“1.215” }
Exception in HTTP Loop Status: OK
Exception in HTTP Exception: Object reference not set to an instance of an object.
Exception in HTTP Inner Exception:
Inner exception in HTTP Exception handler: Object reference not set to an instance of an object.
OK
Status: 400 (Elapsed: 17.73 mS)

3, Command /Settings/IdleGen/On and some other commands will cause serious error. See pic.

Time 20:51:08.9
PUT Request:/Settings/IdleGen/On
Return: { “SessionId”:“0” }
Exception in HTTP Loop Status: OK
Exception in HTTP Exception: Object reference not set to an instance of an object.
Exception in HTTP Inner Exception:
Inner exception in HTTP Exception handler: Object reference not set to an instance of an object.
OK
Status: 400 (Elapsed: 39.06 mS)

Hi @Thomas, as I remember, the -headless was put in a log time ago for a customer using the product in a factory. I will put it on the list to be looked at, but for now you are correct there does seem to be some issues. Even setting to Default throws an exception.

Thanks very much for report this!

Thanks for your attention.

Before the issue is solved, can I use some old FW and SW version to support headless?

I tried SW 1.215 + 1.1.6.8 and 1.202 + 1.1.6.8, no working.

Hi @Thomas, it looks like -HEADLESS was first debuted in release 1.167 in November of 22. That release is on GIT. it will roll your firmware back to 58 automatically.

Just curious, is there a specific need you have for headless that minimizing the window can’t accomplish?