Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue about the CAN Bus of Pocketbeagle #21

Open
zerulin opened this issue Jul 10, 2018 · 13 comments
Open

issue about the CAN Bus of Pocketbeagle #21

zerulin opened this issue Jul 10, 2018 · 13 comments

Comments

@zerulin
Copy link

zerulin commented Jul 10, 2018

Please can anybody help me? I try to use the can bus with SN65HVD230 can module. I enable the can pins by:
config-pin P2_09 can
config-pin P2_11 can
And then I test loopback, it works. But if I try to communicate with other CAN module, there are no data transmitted or received when I check with ifconfig can0. ( I also try with other CAN pins, but it still cannot work). Do I need other configuration or what' wrong with my operation?

@zerulin
Copy link
Author

zerulin commented Jul 10, 2018

BTW, I use the newest Debian 9.4

@mwelling
Copy link

Do you have the appropriate termination resistor on the transceiver?

How are you connecting the loopback?

Provide images of your hardware setup and the command sequences that you are using.

@zerulin
Copy link
Author

zerulin commented Jul 10, 2018

image
This is one of my connection, the module is https://www.waveshare.com/sn65hvd230-can-board.htm
I will test again and attach the images of commands

@zerulin
Copy link
Author

zerulin commented Jul 10, 2018

image
This is loopback test, it works.
But if I off the loopback mode, and try to send data, there is no data send via Tx when I check ifconfig can0:
image

@zerulin
Copy link
Author

zerulin commented Jul 10, 2018

image
Debian version I use

@mwelling
Copy link

Are you connecting the CAN transceiver to another CAN device?

@zerulin
Copy link
Author

zerulin commented Jul 10, 2018

:( , I connect to another BB Black with CAN CAPE. I have test the BB Black +CAPE x2, they are work, and if I change to the Pocketbeagle, It failed.

I have searched documents and tested for two day. I am going to give up

@jadonk
Copy link
Member

jadonk commented Jan 9, 2019

@Jabed-Akhtar
Copy link

In my case, I am not using CAN-transceiver at all, and I am able to monitor CAN-Messages over the wire. But I am not able to send out CAN-Messages. Could it be because of not using CAN-Transceiver? Can anyone please provide me any Datasheet or any Document, where I can see how the CAN is built in PocketBeagle!
Some more questions:

Is CAN-Transceiver build-in inside the PocketBegle?
Is the 120Ohm for CAN also build-in inside the PocketBegle?

@Tanmay-FuelDaddy
Copy link

I too would appreciate an answer to jabed's Questions

@gletchm
Copy link

gletchm commented May 23, 2023

I am pretty sure you need the transceiver. The CAN bus in a 2 wire differential bus. In my experience that CAN peripheral in the chip, expects to connected to a CAN transceiver. I can see how receiving CAN message could work, sending is a lot different. You have to control the signaling correctly. They make CAN transceiver that will work with 3.3V, if that is the issue. Here is a link to some good info: https://www.beyondlogic.org/adding-can-to-the-beaglebone-black/

@Jabed-Akhtar
Copy link

Jabed-Akhtar commented Jun 7, 2023

I am pretty sure you need the transceiver. The CAN bus in a 2 wire differential bus. In my experience that CAN peripheral in the chip, expects to connected to a CAN transceiver. I can see how receiving CAN message could work, sending is a lot different. You have to control the signaling correctly. They make CAN transceiver that will work with 3.3V, if that is the issue. Here is a link to some good info: https://www.beyondlogic.org/adding-can-to-the-beaglebone-black/

Thank you so much :). I started working with beagle-bone blue for some reason. But I really appreciate for your reply :)

@RobertPHeller
Copy link

RobertPHeller commented Jun 25, 2023

Have a look at https://github.com/RobertPHeller/LCC-PNET-Router for a board that connects to both CAN IFs on a PocketBeagle. One CAN IF (can0) connects to LCC's CAN Network and the other CAN IF (can1) connects to Pricom PNET. This board works properly (I have had some boards made and have tested it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants