Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2017-02-14 06:33:18

mcarroll
Member
From: Australia
Registered: 2017-02-14
Posts: 18

Owread connection failed

Hi all

I'm trying to get started using the DS18B20 temp sensor with the Raspberry Pi 2 and having some issues with the OwsDrv block.  I can interrogate the sensor on the command-line using

owread 28.888195080000/temperature

which returns the correct temperature.

However after I compile and download to the device, in the system log it shows OwsDrv: ow_read(): '28.888195080000/temperature', 'Connection failed' (index=0, type=0x0118) while the program is running.

I am using the demo license currently, not sure if this is the issue.

Kind regards
Michael

Offline

#2 2017-02-14 14:23:15

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Owread connection failed

Hi Michael,
your issue is probably caused by conflict in IPv4 and IPv6 notation.

Try to edit /etc/owfs.conf so it contains following code:

!server: server = localhost:4304
allow_other
server: port = localhost:4304
server: i2c=ALL:ALL
timeout_volatile = 2

Similarly change "Target computer name" in OwsDrv configuration dialog in REX to:

localhost:4304

Let me know if I can be of assistance.

Regards, Tomas

Offline

#3 2017-02-14 22:40:45

mcarroll
Member
From: Australia
Registered: 2017-02-14
Posts: 18

Re: Owread connection failed

Tomas you sir are a legend!  Working perfectly now.

Offline

#4 2017-02-15 08:27:10

tomáš čechura
Administrator
Registered: 2016-02-22
Posts: 371

Re: Owread connection failed

Glad I could help smile

Good luck with your project!

Tomas

Offline

Board footer

Powered by FluxBB