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)
