[SOLVED] Onewire - offline communication error

Hi folks, any tips on this please?

I’m connecting onewire temperature devices to openhab using DS9490R USB to 1-wire adapter.

I have it all working on my laptop (ubuntu), very nicely but when transferring the same hardware to raspbian the OW SERVER thing reports OFFLINE COMMUNICATION_ERROR

I have bindings version 2.5.0 M1, with owfs owserver owhttpd etc installed and working on both setups

The log reports “Handler OwserverBridgeHandler tried updating the thing status although the handler was already disposed.” repeatedly

Any ideas please - ive tried the latest MASTER addon, checking that the onewire devices are working in owserver and owhttpd etc

OK so i have solved this

netstat -lptu reported that owserver was listening on tcp6 IPv6. I was able to force owserver to listen on tcp IPv4 by editing /etc/owfs and replacing all instances of localhost with 127.0.0.1

bonza

thanks all

1 Like

Oh thank you for this post. I have been staring at this for hours wondering why owserver was working fine but openhab couldn’t see anything locally. Turns out owserver was binding to IPv6 localhost, but not IPv4 localhost. From owdir/owread -s localhost:4304 worked fine, (or ::1:4304) but specifying ‘localhost’ in the onewire bridge binding didn’t work. I had to use ‘::1’ to get comms to occur.
This v4/v6 split is a whole new set of issues I’ve not had to worry about before.
Seems to me that specifying ‘localhost’ in openhab should just DTRT, as it does in owdir. It may be a bug that it doesn’t? I’m not sure of how the sematics of this are supposed to work.