EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Is it possible to make an IOC for an HTTP device?
From: "J. Lewis Muir" <[email protected]>
To: "Sobhani, Bayan" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 22 May 2018 17:05:10 -0500
On 05/22, Sobhani, Bayan wrote:
> I am looking at this device:
> 
> https://www.embeddeddatasystems.com/HA7Net--Ethernet-1-Wire-Host-Adapter_p_22.html
> 
> It says that communication is done with the HTTP protocol  - is this significant? Would it be doable for me to make an IOC that uses let's say StreamDevice to communicate with this?

It just depends on what the device's communication interface is like.
You said it's the HTTP protocol, but you need to know what the requests
look like (e.g., what resource do you request with an HTTP GET) and
what responses look like.  If things are really simple, you could use
StreamDevice.  Even if the responses are real web pages, you could still
potentially use StreamDevice if you can figure out how to match on the
parts of the response that you want.  This is known as screen scraping
or web scraping; it's a hack, but it could be sufficient.  If it returns
a complex HTML document, complex XML document, or some nontrivial binary
response, etc., then you would want to move beyond StreamDevice and
write something (probably based on asyn) that can actually properly
parse the response.

Regards,

Lewis

Replies:
RE: Is it possible to make an IOC for an HTTP device? Freddie Akeroyd - UKRI STFC
References:
Is it possible to make an IOC for an HTTP device? Sobhani, Bayan

Navigate by Date:
Prev: Re: msi "Could not open" error on Windows with file absolute path Johnson, Andrew N.
Next: RE: Is it possible to make an IOC for an HTTP device? Freddie Akeroyd - UKRI STFC
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Is it possible to make an IOC for an HTTP device? Sobhani, Bayan
Next: RE: Is it possible to make an IOC for an HTTP device? Freddie Akeroyd - UKRI STFC
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 22 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·