This program enumerates all the adapters and devices connected to a TStik
just like the ListOW program. The main difference is that it also uses
those devices to do useful things. The three devices connected to a
TStik and Tilt.400 socket board are:
- A read-only mac address part used to provide a physical
address to TStik.
- A DS2433 eeprom that can be used for both
netboot and other functions
- A DS1920 temperature sensor used
to measure temperature
The mac address part can be read, but should not be written under any
circumstances. Unpredicatable behavior may result.
The DS2433 eeprom demonstrates that all devices on a 1-Wire net with
general purpose memory banks can be read and written without including
the container in the code. This way, 1-Wire devices can be changed
without changing any of the code that reads them. You still must include
the
device family 0x23 dependancy in the build file. This example uses a
PagedMemoryBank to write data with a length byte and CRC the way many
Dallas programs use to validate data from 1-Wire devices. This API
is optional for general purpose data, but is required for creating a
netboot 1-Wire device and other applications.
The DS1920 temperature sensor is enabled by installing JP12 on your
TILT 400 pro board. The use of this temperature sensor is demonstrated
in the code and is written in such a way that any temperature sensor
can be used with the same code base. Once again, you must include device
family 0x10 dependancy in your build file. |