Home

here - Homechip

image

Contents

1. Send Read Memory Page Send F000m command Receive F0000110000000COS5EE7A099D50C00 000000000000000000000000000000000015009CC7 Send a lt CR gt to end Byte A lt CR gt lt LF gt pair is returned mode Wait one second before additional commands Tell the SmartSlave Wall TH to turn its LED on or off Table 8 Tell the SmartSlave Wall TH to turn its LED on if it is the only slave on the bus using SkipROM function Full Command Send rbCCA50001 Response P Response to reset r Slave is present CCA50001 Characters entered in byte mode are echoed Breakdown of command as follows Reset Send r Receive P Byte mode Send b No characters are returned in response SkipROM Function Command Send CC Receive CC Send AS50001 Receive AS50001 Send LED control command 0001 Turn on LED Send a lt CR gt to end Byte mode A lt CR gt lt LF gt pair is returne d Table 9 Tell the SmartSlave Wall TH to turn its LED off if it is the only slave on the bus using SkipROM function Full Command Send rbCCA50000 Response P CCA50000 Response to reset r Slave is present Characters entered in byte mode Smart Slave Wall TH User Manual V1 0 Docx iButtonLink Confidential Page 11 of 12 iButtonLink are echoed Breakdown of command as follows Reset Send r Receive P Byte mode Send b N
2. SmartSlave Wall TH User Manual vo Presented by iButtonLink LLC June 27 2013 Developer iButtonLink Description The SmartSlave Wall TH is a 1 Wire sensor housing a humidity and temperature sensor The SmartSlave Wall TH contains the electronics to interface the sensor to a 1 Wire network for communication to a 1 Wire master device iButtonLink SmartSlave devices have a family code of OxFE In addition the high twelve bits of the 1 Wire address contain a 0x002 specifying that this slave is produced by iButtonLink LLC SmartSlave s produced by iButtonLink have a serial number of the form CC002xxxxxxxxxFE where CC is the CRC8 of the next 7 bytes 002 is the manufacturer code assigned to iButtonLink LLC by Maxim Integrated Products Inc and OxFE is the family code indicating that the slave is NOT produced by Maxim Integrated Products Inc xxxxxxxxx 36 bits is the unique serial number for all SmartSlave produced by iButtonLink It is impossible to infer the functionally of a SmartSlave from the family code or manufacturer ID A Read Memory OxFO00 command should be issued to acquire the slave characteristics byte and software version number always the 1 and gma by of the first memory page SmartSlave Wall TH Family Code and Identification All iButtonLink Smart Slaves have a family code of OxFE which designates that this slave is not made by Maxim Integrated Products Inc In additi
3. are multiple slaves and the address of the slave of interest is known then a Match ROM 55h function is the best choice To use the Match ROM function the 1 Wire address byte order must be reversed Please see the examples below Table 2 Example of using the Match ROM function to select a slave 1 Wire address to be selected 10002 1B1000001FE as labeled 1 Wire address to be selected 10002 B1 00 0001 FE split into bytes 1 Wire address to be selected FE 01 00008 21 00 10 with bytes in reverse order 1 Wire address to be selected FE010000B1210010 as used in master commands Full Command Send rb55FE010000B1210010 Response P Response to reset r Slave is present S5FE0100008 1210010 Characters entered in byte mode are echoed Breakdown of command as follows Reset Send r Receive P Byte mode Send b No characters are returned in response Match ROM Function Send 55 Command Receive 55 Smart Slave Wall TH User Manual V1 0 Docx Page 5 of 12 iButtonLink Confidential iButtonLink 1 Wire address reversed Send FEO010000B 1210010 Receive FEOQ10000B1210010 If there are multiple slaves on the bus and the address of the SmartSlave Wall TH is NOT known There are two ways to get the address of a 1 Wire slave They are 1 Connect the slave to the master and issue an F command for first which will print out the first 1 Wire sl
4. 2 iButtonLink Confidential iButtonLink The reset command returns one of the following possible values Response Description P No error and at least one slave is on the bus N No error no slaves are present If a SmartSlave Wall TH is expected to be present on this bus there is a wiring issue the master is not supplying 5V power or the SmartSlave Wall TH has failed S Short the 1 Wire bus is shorted If this error is received the problem should be addressed by troubleshooting the cabling and slaves on the bus This is most likely not an issue with the SmartSlave Wall TH E Undefined protocol error This indicates that a slave did not respond properly to the reset or the master has an internal problem If this is a consistent problem try to power cycle the 1 Wire master or remove slaves from the bus until the problem is found Sending a ROM Function command to select a particular slave or group of slaves Once the bus master has detected a presence pulse generated by the reset command it can issue one of the four ROM function commands All ROM function commands are 8 bits long The ROM command to use depends on the number of slaves on the bus and if the 1 Wire addresses of each slave are known If there is exactly one slave on the bus If the SmartSlave Wall TH is the only slave on the bus a Skip ROM CCh function is the easiest way to address it A Skip ROM command says that all sla
5. High byte Conversion formula is 0078125 degrees C temperature high byte 256 temperature low byte Negative values are in binary 2 s complement 96 Binary temperature in Celsius Low byte Binary relative humidity High byte Conversion formula is 0 0078125 RH 256 high byte low byte Smart Slave Wall TH User Manual V1 0 Docx Page 8 of 12 pT a 8 Ooo 9 Oo M 6 M2 B pS iButtonLink Confidential iButtonLink 8 16 o Temperature in Fahrenheit 100 sdigitin ASC 17 b7 Temperature in Fahrenheit 10 sdigitin ASCH 9 18 9 Temperature in Fahrenheit I sdigitinASCH ________ 10 29 0 Reserved o O 30 0 Reserved S O 31 0 Reserved S O The following two examples show a complete Read Memory Page command sequence Table 6 Read Memory Page command example using Skip ROM Selection Usable if only one slave on the bus If a convert command immediately proceeded this command wait one second Full Command Send rbCCF000m Response P Response to reset r Slave is present CCF000 Characters entered in byte mode are echoed 0110000000CO5EE7A099DS50C Return data is sent from F000m 00000000000000000000000000 000000000015009CC7 comand Breakdown of command as follows Reset Send r Receive P Byte mode Send b No characters are returned in response SkipROM Function Send CC Smart Slave Wall TH User Manual V1 0 Docx Page 9 of 12
6. a wires connected to 1 Wire bus and 5V signals with wire nuts The SmartSlave Wall TH requires 5 volt power for normal operation Programming the 1 Wire System for the SmartSlave Wall TH Four steps are necessary for any 1 Wire transaction l Initialization of the bus by a reset command 2 Sending a ROM Function command to select a slave 3 Sending a command to the slave 4 Receiving data from the slave if the command generates data This sequence of four steps must be executed twice to retrieve data from the SmartSlave Wall TH The first sequence will send a command to the SmartSlave Wall TH to read the temperature and humidity The second sequence will read the results from the SmartSlave Wall TH There must be at least one second of delay between the two command sequences to give the SmartSlave Wall TH time to read the sensor Each step of these sequences will be detailed below with examples to follow Initialization of the bus by a reset command All transactions on the 1 Wire bus begin with an initialization sequence The initialization sequence consists of a reset pulse transmitted by the bus master followed by presence pulse s transmitted by the slave s The presence pulse lets the bus master know that the SmartSlave Wall TH is on the bus and is ready to operate For iButtonLink Masters the ASCII command is r reset Smart Slave Wall TH User Manual V1 0 Docx Page 3 of 1
7. ave address on the bus Type the N command for next to show the next 1 Wire slave address If your slave is the only device on the bus and the master does not have an ID chip you will get one result If your master has an ID chip then remove your slave and execute the same F and N command Look at the difference and the missing ID is the one you need 2 Note that all SmartSlave Wall TH units have an ID that ends with FE Making the SmartSlave Wall TH do something sending a device command Now that the bus has been reset and the SmartSlave Wall TH has been selected as in the previous examples it is now time to tell the SmartSlave Wall TH to do something There are four basic functions available tell the SmartSlave Wall TH to read and convert the data from the sensor tell the SmartSlave Wall TH to display the results tell the SmartSlave Wall TH to turn on its LED tell the SmartSlave Wall TH to turn off its LED eS Tell the SmartSlave Wall TH to read and convert data from the sensor To tell the slave to read the sensor the Convert V B4h command must be sent to the SmartSlave Wall TH This will cause the SmartSlave Wall TH to read the values of both the temperature and humidity sensors and store the result in local RAM on the SmartSlave Wall TH This process takes a little less than one second so the SmartSlave Wall TH will not respond for second after this command is issue
8. d Two examples are below Table 3 Example of telling the SmartSlave Wall TH to read the sensor using MatchROM function 1 Wire address to be 10002 1B 1000001FE converted as labeled 1 Wire address to be 10 00 21 B1 00 00 01 FE converted split into bytes 1 Wire address to be FE 01 00 00 B1 21 00 10 converted with bytes in reverse order Smart Slave Wall TH User Manual V1 0 Docx Page 6 of 12 iButtonLink Confidential iButtonLink 1 Wire address to be FE010000B1210010 converted as used in master commands Full Command Send rb55FE010000B 1210010B4 Response P Response to reset r Slave is present 55FE010000B1210010B4 Characters entered in byte mode are echoed Breakdown of command as follows Reset Send r Receive P Byte mode Send b No characters are returned in response Match ROM Function Send 55 Command Receive 55 1 Wire address reversed Send FE010000B1210010 Receive FEO10000B 1210010 Send Convert command Send B4 Receive B4 Send a lt CR gt to end Byte mode A lt CR gt lt LF gt pair is returned Wait one second before additional commands Table 4 Tell the SmartSlave Wall TH to read the sensor if it is the only slave on the bus using SkipROM function Full Command Send rbCCB4 Response P Response to reset r Slave is present CCB4 Characters entered in byte mod
9. e are echoed Breakdown of command as follows Reset Send r Receive P Byte mode Send b No characters are returned in response Match ROM Function Send CC Command Receive CC Send Convert command Send B4 Smart Slave Wall TH User Manual V1 0 Docx Page 7 of 12 iButtonLink Confidential iButtonLink Receive B4 Send a lt CR gt to end Byte A lt CR gt lt LF gt pair is returned mode Wait one second before additional commands Tell the SmartSlave Wall TH to send the data from the sensor to the master The Read Memory Page command tells the SmartSlave Wall TH to return data to the master 32 bytes of data are returned The format of the data returned from the Read Memory Page command is listed in Table 5 Table 5 Data return format from F0 Read Memory Page command Example sent b55FE010000B1210010F000m String Received P Received 55FE010000B1210010F000 041200000D9614D52B3032372E31372B3038302E39312B3034312E3636000000A513 o lo D04 IBLSlave type always 4 for the SmartSlave Wall TH 1 12 Slave software version number two nibbles high nibble is version number low nibble is minor release number The initial release of the SmartSlave Wall TH contains an 0x12 high nibble of 1 low nibble of 2 p 2 Conversion status Must be zero for a valid conversion 3 Conversion status Must be zero for a valid conversion oo C a Binary temperature in Celsius
10. iButtonLink Confidential ButtonLink Command Receive CC Send Read Memory Page Send F000m command Receive FO000110000000COS5EE7A099D50C00 000000000000000000000000000000000015009CC7 Send a lt CR gt to end Byte A lt CR gt lt LF gt pair is returned mode Wait one second before additional commands Table 7 Read Memory Command example using Match ROM selection If a convert command immediately proceeded this command wait one second 1 Wire address to be 10002 1B 1000001FE converted as labeled 1 Wire address to be 10 00 21 B1 00 00 01 FE converted split into bytes 1 Wire address to be FE 01 00 00 B1 21 00 10 converted with bytes in reverse order 1 Wire address to be FEO10000B 1210010 converted as used in master commands Full Command Send rb55FEO100008 12 0010F000m Response P Response to reset r Slave is present 55FE010000B1210010F000 Characters entered in byte mode are echoed 0110000000C05EE7A099D50C Return data is sent from F000m 00000000000000000000000000 000000000015009CC7 command Breakdown of command as follows Reset Send r Receive P Byte mode Send b No characters are returned in response Match ROM Function Send 55 Command Receive 55 Smart Slave Wall TH User Manual V1 0 Docx Page 10 of 12 iButtonLink Confidential iButtonLink Send FE010000B1210010 Receive FEO10000B 1210010 1 Wire address reversed
11. o characters are returned in response SkipROM Function Command Send CC Receive CC Send LED control command Send A450000 Receive AS50000 0000 turn off LED Send a lt CR gt to end Byte mode A lt CR gt lt LF gt pair is returned Errata If a reset is issued in the middle of a 1 Wire transaction when the SmartSlave Wall TH is selected a presence pulse will not be issued by the SmartSlave Wall TH This will be fixed in future versions of the code Two possible workarounds are 1 Always have the SmartSlave Wall TH on a network with another type of slave 2 Issue the reset twice 1 Wire is a trademark of Maxim Integrated Products Inc Smart Slave Wall TH User Manual V1 0 Docx iButtonLink Confidential Page 12 of 12
12. on the high twelve bits of the 1 Wire address contain a 0x002 specifying that this slave is produced by iButtonLink LLC An iButtonLink SmartSlave has a serial number of the form CC002xxxxxxxxxFE where CC is the CRC8 of the next 7 bytes 002 is the manufacturer code assigned to iButtonLink LLC by Maxim Integrated Products Inc and OxFE is the family code indicating that the slave is NOT produced by Maxim Integrated Products Inc xxxxxxxxx 36 bits is the unique serial number for a SmartSlave produced by iButtonLink Each SmartSlave Wall TH has a unique serial number The family code and serial number determine that the slave is made by iButtonLink LLC However there is no information in the serial number that indicates this sensor is a Humidity Temperature sensor To determine the type of iButtonLink LLC SmartSlave the master should issue a Read Memory 0xF000 command as shown in the examples below The first and second byte of the first memory page indicate the slave type and software version number The first byte byte zero will contain a 1 if the SmartSlave is a SmartSlave Wall TH slave The second byte byte one will contain the software version number which is currently a 0X10 for the first version of the code Smart Slave Wall TH User Manual V1 0 Docx Page 2 of 12 iButtonLink Confidential iButtonLink 1 Wire Hardware Configuration The SmartSlave Wall TH interfaces via 1 Wire using three 20g
13. ves on the bus should be selected This is only valid if there is exactly one slave on the bus The proper command on an iButtonLink LLC master is as follows bCC The b tells the master to enter byte mode where hexadecimal character pairs are sent to the 1 Wire bus The master echoes the response from the bus The response should be the same Table 1 contains an example Skip ROM command sequence Table 1 Example of Skip ROM command to select slave Full Command Send rhCC The b will not be echoed Response P Response to reset r Slave is present CC Characters entered in byte mode are echoed Breakdown of command as follows Reset Send r Receive P Byte mode Send b No characters are returned in response Smart Slave Wall TH User Manual V1 0 Docx Page 4 of 12 iButtonLink Confidential iButtonLink Skip ROM Function Command Send CC Receive CC Note Most commands entered into the master are case sensitive It is important to match the case used in the examples exactly If the received data returned from the link does not match the above example then the command has not been sent to the bus properly due to noise a slave error a short or other external condition The command should be retried and if the failure continues the bus should be repaired If there are multiple slaves on the bus and the address of the SmartSlave Wall TH is known If there

Download Pdf Manuals

image

Related Search

Related Contents

  ロー ラ ン ド ピ ア ノ ・デ ジ タ ル  Programmable Device Server User Manual  Kompernass KH 3460 Operating Instructions  Tote Vision LCD-1540HD User's Manual  Manual Kerr KM3250PT & KM3300PT  

Copyright © All rights reserved.
Failed to retrieve file