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.