Hello,
We want to develop an EPICS support for Residual Gas Analyzer from Inficon. Unfortunately, RGA is running a web server which is listening for http GET requests on port 80. The response from the web server is in JSON format. My question is if somebody already
develop an IOC for this type of device? If not, what would be the best solution? We were thinking that using simple stream device support and .proto file might be too messy in this case. Is there a library for http requests and simple JSON parser if we make
our own support? Do you have an example of http device support or use of JSON parser?
Here are two examples of the request and response (what you see in the web browser):
-
/mmsp/scanSetup/channel/1/get
{ "data": { "@id": 1, "channelType": "Sweep", "startMassRaw": 0, "stopMassRaw": 10000, "ppamu": 10, "dwell": 4.000, "emVoltage": null, "focusVoltage": null, "ionEnergy": null, "extra": 0, "leadIn": 0, "enabled": "True", "scaleFactor": 1, "relativeRef": 0, "reportType": "Absolute", "reportUnits": "Current", "equivIonFactor": -1, "digOutNum": -1, "digOutThresUpper": 1, "digOutThresLower": -1, "startMass": 0.00, "stopMass": 100.00, "channelMode": "Sweep", "rfEquivAMU": 0, "dcEquivAMU": 0, "rfEquivDAC": 0, "dcEquivDAC": 0 }, "name": "got", "origin": "/mmsp/scanSetup/channel/1" }
-
/mmsp/measurement/scans
-
{ "name": "got", "origin": "/mmsp/measurement/scans", "data": [ { "scannum": 31, "scansize": 503, "values": [ 538398, 4.475908e-10, 6.700834e-14, -6.796693e-14, ... ] }, { "scannum": 32, "scansize": 503, "values": [ 556335, 1.643438e-09, -1.408637e-13, ... ] } ] }
Thanks in advance!
Best,Janez
|