Download HA7Net User Manual - Embedded Data Systems

Transcript
Address Device Command
URL: /1Wire/AddressDevice.html
Example: http://ha7.net/1Wire/AddressDevice.html?Address=9D00080027AF4A10
‘Address DS18S20 having
ROMId=9D00080027AF4A10
Description
This command will reset the 1-Wire bus, and then select the particular 1-Wire device on the 1-Wire bus
that you want to talk to. Generally, communications on the 1-Wire bus occur between the bus master
(HA7Net), and a single 1-Wire device. Before you can have communications with that particular
device, you must select the device which accomplishes two things:
1. It tells the device you are addressing that you intend to communicate with it.
2. All other devices drop off of the bus until the next bus reset.
Parameters:
Required
Optional
Address
LockID
8 byte 1-Wire ROM Address expressed as 16 HEX characters
Ten byte decimal number previously returned by GetLock.
Returns
‘Addresses’ –Table that contains the single 8 byte 1-Wire ROM address code. This value is stored in a
text field named ‘Address_0’, and is the same value that was passed in the ‘Address’ parameter.
Sample Response:
Sample address table from HTML page:
<table name="Addresses" id="Addresses">
<tr>
<td>
<input TYPE="TEXT" NAME="Address_0" SIZE="16" MAXLENGTH="16" VALUE="9D00080027AF4A10">
</td>
</tr>
</table>
Embedded Data Systems, LLC.; 1446 Gilberts Creek Rd; Lawrenceburg, KY 40342; Phone/Fax 502-859-5490
25-37