On Thu, Jun 6, 2019 at 2:59 PM <[email protected]> wrote:

> We recently purchased the GHI Comms cape, in order to have a nice RS485
> port available.
> However, even the latest Debian image for the BeagleBone black does not
> have the required overlay dtbo file!
> When the BeagleBone Black boots, I get this:
> [ *1.493924] bone_capemgr bone_capemgr: loader: failed to load slot-2
> BBORG_COMMS:00A2 (prio 0)*
> The cause is that the file BBORG_COMMMS-00A2.dtbo is missing.
> And sure enough, there is no overlay written for this cape in:
>
> https://github.com/beagleboard/bb.org-overlays
>

I just did a pull request to add it:
https://github.com/beagleboard/bb.org-overlays/pull/122


>
> I am guessing that there is an alternative way to get this Cape up and
> running. I’m moderately OK with linux as a user and admin, but rather new
> to IoT.
>
For the RS485, you just need
config-pin p9.11 uart
config-pin p9.13 uart
...and then use /dev/ttyS4

For the CAN, you just need
config-pin p9.24 can
config-pin p9.26 can
...and then you can use something like
https://gist.github.com/jadonk/90d3462c8569d11fa3f7caf14f4769f1, but
replace can0 with can1

For the 4-20mA loop, the ADC overlay should already be loaded and you can
cat /sys/bus/iio/devices/iio\:device0/in_voltage5_raw
cat /sys/bus/iio/devices/iio\:device0/in_voltage6_raw
...but you'll need to do the voltage to data conversion

For the sink drivers, you can do:
# Sink A
config-pin p9.15 gpio
echo out > /sys/class/gpio/gpio48/direction
echo 1 > /sys/class/gpio/gpio48/value
# Sink B
config-pin p9.23 gpio
echo out > /sys/class/gpio/gpio49/direction
echo 1 > /sys/class/gpio/gpio49/value
...and that should turn them on.


>
> Best,
> Todd
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/12c383d2-80a0-45d5-b0d5-452eb2b49437%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/12c383d2-80a0-45d5-b0d5-452eb2b49437%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
https://beagleboard.org/about - a 501c3 non-profit educating around open
hardware computing

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2BT6QPmcuw_6Zjgqvc3CeCLrzbXLizgaOrJAj8aiwjLS5pQoPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to