This is a catch all page that you’ll probably be linked to from the startup process if Elsinore cannot find your One Wire temperature probes

What is One Wire?

The One Wire protocol from Dallas, allows lots (up to 255 I think, but way more then Elsinore’ll need) of devices to be attached to one pin. The devices are 64 bit addressed, so pin order doesn’t matter.

Elsinore uses One Wire for temperature probes and volume reading.

There’s a difference in setting up One Wire for Linux Kernels below 3.8 (normally RaspberryPi) and 3.8+ (normally Beaglebone)

Linux Kernel 3.6 (RaspberryPi) (provided by Cank)

Set up your DS18 probes

Then run this code in the LXTerminal to automatically load the One-Wire modules on start up

Open /etc/modules to edit

sudo nano /etc/modules

Add these lines to the bottom of the file /etc/modules

w1-gpio
w1-therm

Then reboot

sudo reboot

Linux Kernel 3.8 (BeagleBone Black)

Do not use a kernel above 3.8 at the moment, you may need to install the 3.8 kernel on a newer image: sudo apt-get install linux-image-3.8.13-bone67

For beagleboard to get OneWire support, and GPIO control, you need to install a Device Tree Overlay file. I have added these under the support directory.

The dts file will show you the pin, but it’s P8.11

To compile the overlay:

sudo dtc -O dtb -o /lib/firmware/w1-00A0.dtbo -b 0 -@ w1.dts

Or copy the w1-00A0.dtbo in the support directory to /lib/firmware (as root), the above command copies the file for you.

Login as root (such as “sudo su”) and run

echo w1 > /sys/devices/bone_capemgr.8/slots

Note: bone_capemgr.8 may be bone.capemgr.9 depending on your setup

I have provided a file which will install the One Wire (and jGPIO DTO files):

./extras/w1_setup.sh

OWFS

OWFS is used to only read analogue inputs (DS2450) for pH Sensors and Volume Reading.

The easiest way to set it up once it’s installed is to first stop the OWFS Server process, if you have it installed as a service you can use something like:

sudo service owserver stop or sudo /etc/init.d/owserver stop

Then, replace the /etc/owfs.conf file with a valid file, I have included mine below as an example.

This sets up the server on port 4304, the ftp server on 2120 and the HTTP server on 2121.

# Elsinore Basic configuration file for the OWFS suite for Debian GNU/Linux.
#
#
# This is the main OWFS configuration file. You should read the
# owfs.conf(5) manual page in order to understand the options listed
# here.

######################## SOURCES ########################
#
# With this setup, any client (but owserver) uses owserver on the
# local machine...
! server: server = localhost:4304
#
# ...and owserver uses the real hardware, by default fake devices
# This part must be changed on real installation
#server: FAKE = DS18S20,DS2405
#
# USB device: DS9490
server: w1 = all
#
# Serial port: DS9097
#server: device = /dev/ttyS1
#
# owserver tcp address
#server: server = 192.168.10.1:3131
#
# random simulated device
#server: FAKE = DS18S20,DS2405
#
######################### OWFS ##########################
#
mountpoint = /mnt/1wire
allow_other
#
####################### OWHTTPD #########################

http: port = 2121

####################### OWFTPD ##########################

ftp: port = 2120

####################### OWSERVER ########################

server: port = 4304