> > I'm looking to develop a solution that isn't dependant on > motherboard / VGA connections. Interesting to hear that it's > a sequential read of the eight buses, Guess in this > situation, you might consider a DS2482-100 to provide a > dedicated 'alarm' bus. > > Perhaps you could tell us a bit more about your hardware? > bitbanging i2c is quite easy.
What about an Arduino with a FTDI USB port on the PC side and use the digital I/O to drive the 1-wire LAN directly using the existing 1-wire library. See: http://arduino.cc/en/Main/ArduinoBoardDuemilanove 1-Wire Library http://www.arduino.cc/playground/Learning/OneWire Below is the source code for my DS28AE00 temperature sensors test rig I used to test the boards one-by-one as I was building them. It searches for a device, then it toggles it's I/O to flash an on-board LED and the it reads the temperature and loops around again. Hope that helps Alex Shepherd #include <DallasTemperature.h> #include <OneWire.h> /* DS18S20 Temperature chip i/o */ OneWire ds(18); // Pass our oneWire reference to Dallas Temperature. DallasTemperature sensors(&ds); void setup(void) { Serial.begin(9600); Serial.println("DS28EA00 Tester"); // Start up the library sensors.begin(); } void loop(void) { byte i; byte present = 0; byte data; byte addr[8]; if ( !ds.search(addr)) { ds.reset_search(); delay(250); return; } Serial.print("Found: "); Serial.print(addr[0], HEX); Serial.print("."); for( i = 1; i < 8; i++) { Serial.print(addr[i], HEX); } if ( OneWire::crc8( addr, 7) != addr[7]) { Serial.print("CRC is not valid!\n"); return; } Serial.print(" LED On"); present = ds.reset(); ds.select(addr); ds.write(0xA5); // Write PIO ds.write(0xFC); ds.write(0x03); present = ds.reset(); ds.select(addr); ds.write(0xF5); // Read PIO delay(1000); Serial.print(" LED Off"); present = ds.reset(); ds.select(addr); ds.write(0xA5); // Write PIO ds.write(0xFF); ds.write(0x00); delay(1000); Serial.print(" Request Temperature: "); sensors.requestTemperatures(); // Send the command to get temperatures Serial.println(sensors.getTempCByIndex(0)); Serial.println(); } ------------------------------------------------------------------------------ _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
