hello William,
Robert said to follow the steps on the like he sent me for github. It sends me to his code do I don’t quite follow? Do I go back to the main page on overlays and do all the steps?
Thanks,
Cory
hello William,
Robert said to follow the steps on the like he sent me for github. It sends me to his code do I don’t quite follow? Do I go back to the main page on overlays and do all the steps?
Thanks,
Cory
Did you disable cape_universal=enable in /boot/uEnv.txt and reboot?
Then just:
wget https://raw.githubusercontent.com/beagleboard/bb.org-overlays/master/examples/BB-W1-P9.12/example.sh
sudo /bin/bash ./example.sh
* assuming you plug your device in P9.12
Regards,
thanks robert. I did what william said. I removed the bold text in his reply. I did the wget as well as the bin bash. What is suppose to happen after I run bin/bash?
thanks,
Cory
It’ll load the w1( one wire ) driver module if not already loaded, then it’ll get the temperature from the device every 5 seconds. It’ll also load the BB-W1-P9.12 device tree file. I’d assume you’d need to edit this file, or change the overlay file to be loaded if you need to use a different pin.
if [ ! -f /sys/bus/w1/devices/28-*/w1_slave ] ; then
modprobe w1-gpio
echo 'BB-W1-P9.12' > /sys/devices/platform/bone_capemgr/slots
sleep 1
fi
That pretty much mean if file /sys/bus/w1/devices/28-*/w1_slave exists -> modprobe w1-gpio -> load the BB-W1-P9.12 file into capemanager
then of course -> sleep for 1 second.
If you need a different pin for one wire, then you'll have use another device tree file in place of BB-W1-P9.12
You have the hardware..
dmesg
and look under:
/sys/bus/w1/devices/
You'll figure it out..
Regards,
That pretty much mean if file /sys/bus/w1/devices/28-*/w1_slave exists → modprobe w1-gpio → load the BB-W1-P9.12 file into capemanager
then of course → sleep for 1 second.
If file DOESNT exist. Sorry I missed the exclamation mark there initially. which is boolean NOT.
thanks guys,
I got messages when i hit demsg just need to play around a bit and learn what’s going on. You guys saved me so much time.
Thank,s
Cory
In the picture is the error im getting. Any advice on what is happening?
THanks,
Cory

dmesg | grep bone
Regards,
Is it loaded three times and only the first one worked? slot 4

Why did you load it more then once?
Regards,
I couldn’t find your example file this morning. Said it didn’t exsist. I was troubleshooting and decided I should start from scratch. Didn’t realize it was loading it into the cape overlay each time
When it says not registered does that mean the program is running but can find any onewire devices?
thanks,
Cory

got it working!!! ow man I jumped out of my chair and gave a shout! thanks for the help!