Per Malmberg
Everything is possible, including the impossible. It just takes a little longer…
Everything is possible, including the impossible. It just takes a little longer…
Today (night rather, it is 01:33 *cough*) I built myself a RS232/1-Wire adapter (replacement for a DS9097E) and managed, using Maxim/Dallas .Net wrappers for their J# classes, to read the current temperature value from a 18S20-temperature device. Apparently the underlying J# code is written for J# 1.1, which feels a bit…old.
Anyway, there was only one problem along the way; the method doTemperatureConvert() in the OneWireContainer10-class only throws a OneWireException, and so does all other methods that writes to the sensor network. In the end I had to resort to use a call to DSPortAdapter.putByte(0×40) which is the same as calling doTemperatureConvert(), but on a lower level.
I suspect that it is the home built adapter that doesn’t allow me to write to the device, but I’ll have to dig deeper into this. I seems I’m not the only one with this problem.
Comments are closed.
2007/05/31 - 22:14
Hej, jag sitter med samma problem som dig. Har precis köpt en kit från temperatur.nu och försöker hacka ihop ett C#-program för att läsa av temperaturen. Men doTemperatureConvert ger “Hardware option not available”, och putByte(0×40) får jag inte heller att fungera. Har du någon fungerande kod du skulle kunna tänka dig att skicka över?
2007/06/01 - 0:57
Hej David!
Kul att du hittade hit. Se inlägget http://www.pmalmberg.com/2007/05/31/1-wire-test-kod/
// Per