Table of Contents

BeagleBone Black setup and configuration

vi /etc/init.d/led_aging.sh

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          led_aging.sh
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start LED aging
# Description:       Starts LED aging (whatever that is)
### END INIT INFO

x=$(/bin/ps -ef | /bin/grep "[l]ed_acc")
if [ ! -n "$x" -a -x /usr/bin/led_acc ]; then
    /usr/bin/led_acc &
fi
apt-get install owfs


mkdir /mnt/1wire


vi /etc/owfs.conf
# uncomment:
mountpoint = /mnt/1wire


vi /etc/init.d/owfs
#!/bin/sh
owserver -u -p 4304


chmod 777 /etc/init.d/owfs


# igonre warnings!
update-rc.d owfs defaults


apt-get install rrdtool


apt-get install ow-shell


# start owfs manually
/usr/bin/owfs --allow_other -u /mnt/1wire


# if owSERVER doesn't start at startup
killall owserver
sudo /etc/init.d/owfserver

DS9097 1-wire adapter pin-out (Latvian)

Testing

Temp sensor pin-out

Sensor mapping

ID Address Type Location
T01 28.FF24983E0400 Temp Sauna main
T02 28.FF959C3C0400 Temp Sauna boiler
T03 28.FFAB583A0400 Temp Server room
T04 28.FF1D983E0400 Temp Outdoors highest
T05 28.FFC4583A0400 Temp not in use
T06 28.FFE88B521400 Temp Livingroom (TV)
T07 28.FF7D09521400 Temp Livingroom (office)
T08 28.FF628B521400 Temp Bedroom (TV)
T09 28.FF4420521400 Temp not in use
T10 28.FF20C2511400 Temp not in use
T11 28.FFFE88521400 Temp not in use
T12 28.FF148F521400 Temp not in use
T13 28.FF1114531400 Temp not in use
T14 28.FFBAB3521400 Temp not in use
T15 28.FFD08B521400 Temp not in use
T16 Temp not in use
T17 Temp not in use
T18 Temp not in use
T19 Temp not in use