How to use PocketBeagle CAN Pins?

828 views
Skip to first unread message

Igor.s...@hotmail.com

unread,
Jan 7, 2018, 7:59:37 PM1/7/18
to BeagleBoard
Hello Folks!

We are currently experimenting with the PocketBeagle CAN Connection but haven't got much success yet. The PocketBeagle will be connected to a car. To accomplish this we use a CAN Board (https://www.waveshare.com/sn65hvd230-can-board.htm) in connection with  a step down converter and a OBD2 Male Connector.

Our first thought was that we can use the dcan1 Pins (P2.09 for RX, P2.11 for TX) to connect the hardware and just test everything with the socketcan tool - without success.
 
We then tried different Tutorials:
They didn't work either.

Another problem is that there is almost no documentation on how to use the PocketBealge CAN or maybe we just can't find it.

Has someone got a good tutorial or hints how to use the CAN Pins correct? Do we need the Device Tree Overlays? How can we test that a Device Tree Overlay is working properly or something is connected to the CAN pins? 
We are really thankful for any advise or solution! 

Robert Nelson

unread,
Jan 7, 2018, 9:17:50 PM1/7/18
to Beagle Board, Igor.s...@hotmail.com
https://github.com/beagleboard/pocketbeagle/wiki/Peripherals

If you see any mistakes feel free to help improve ^ it..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Gwen Stouthuysen

unread,
Jan 16, 2019, 5:35:09 AM1/16/19
to BeagleBoard
Is there a method of using these commands at boot so that the CAN interface is available?

config-pin P1_28 can    # rx
config-pin P1_26 can    # tx
I have trouble to find the necessary information on how to create a CANbus related overlay. But in fact I only need these two commands to execute at boot.
Gwen

Op maandag 8 januari 2018 03:17:50 UTC+1 schreef RobertCNelson:

Tarmo Kuuse

unread,
Jan 16, 2019, 10:36:55 AM1/16/19
to BeagleBoard
Hi Gwen,
Googling for "beaglebone config-pin on boot" matches a good example to get you going: https://gist.github.com/pdp7/d4770a6ba17e666848796bf5cfd0caee 

--
Kind regards,
Tarmo

Gwen Stouthuysen

unread,
Jan 17, 2019, 8:04:06 AM1/17/19
to BeagleBoard
this was spot on
Thanks for the tip of leaving out CANbus on the google search.

Op woensdag 16 januari 2019 16:36:55 UTC+1 schreef Tarmo Kuuse:
Reply all
Reply to author
Forward
0 new messages