EDS has added high level support within the HA7Net for a number of 1-Wire devices which are not currently reflected within the User Manual. This article briefly discusses the http requests which utilizes the high level support for the DS2406, T8A, DS2423 and supported humidity sensors.
SwitchControl - DS2406, D2, D2C, D2P, D2PC, TxSS
URL: /1Wire/SwitchControl.html?SwitchRequest={Address1, {{Channel1, Action1, Reset}, {Channel2, Action2, Reset}}}
Example: https://ha7.net/1Wire/SwitchControl.html?SwitchRequest={EC000000218E9D12, {{1, Read, False}, {2, OutputLow, False}}}
The SwitchControl function allows you to easily check and control the state of the PIO pins in the DS2406. This function also added support for many devices manufactured by Embedded Data Systems and AAG including the D2 product line, the TxSS product line, and the TAI8555 Switch.
The variables in the SwitchControl function are a little more complicated than many in other High Level Functions. Below is a brief description of the functions:
- Address1 = the ROM id of a specific DS2406
- Channel1 = which PIO pin on the DS2406 should be addressed:
- PIO-A = 1
- PIO-B = 2
- Action1 = what should be done to the DS2406:
- Read = check current state of PIO pin without changing the state
- InputRead = Sets the output transistor to not conducting (Off) which allows the DS2406 to sense whether the input is high or low
- OutputLow = Sets the output transistor to conducting (On)
- Reset
- True = Reset activity latch after reading
- False = Do not reset activity latch
ReadT8A - T8A
URL : /1Wire/ReadT8A.html?Address_Array=Address1,Address2,Address3,_
Example: https://ha7.net/1Wire/ReadT8A.html?Address_Array=EC000000218E9D12
The ReadT8A function allows you to read the current analog values from a list of T8As. When calling the URL, the HA7Net will sequentially read each T8A, and then return a single html page containing a list of the T8As, the analog channels, the analog values, units of measure, % of max, type of T8A, and current status.
ReadCounter - DS2423, GP1, GP1-R
URL: /1Wire/ReadCounter.html?Address_Channel_Array={Address1,Channel1},{Address2,Channel2},_
Example: https://ha7.net/1Wire/ReadCounter.html?Address_Channel_Array={ B80000000451C61D,A},{B80000000451C61D,B},{0C000000018DCB1D,A}
The ReadCounter function allows you to read the external counters on the DS2423. The DS2423 is used in a number of products including Embedded Data System’s GP1 and many of the 1-Wire Weather Stations. You provide a list of the counters to read, and for each counter, the channel (A or B) which you want to read. The HA7Net will sequentially read each counter, then return a single html page containing a list of the counters, and the channel’s count, and a status field indicating whether the message was transmitted successfully or not, as shown below.
ReadHumidty - HTP20, TAI8540D
URL: /1Wire/ReadHumidity.html?Address_Array=Address1,Address2,_
Example: https://ha7.net/1Wire/ReadHumidity.html?Address_Array=690000005AA65D26
The ReadHumidity function allows you to read the current temperature and humidity from alist of 1-Wire humidity sensors. Currently supported devices include:
- HTP (EDS’s Humidity Temperature Probe)
- TAI8540D (AAG’s Humidity Module)
When calling the URL, you provide a list of the sensors you want to be read. The HA7Net will sequentially read each humidity sensor, and then return a single html page containing a list of the sensors, the temperature of each sensor expressed in degrees Celsius, the Relative Humidity, and a status field indicating whether the message was transmitted successfully or not, as shown below.
Comments
0 comments
Article is closed for comments.