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

fail to send data to can bus #12371

Open
jhx2002 opened this issue Oct 4, 2019 · 8 comments
Open

fail to send data to can bus #12371

jhx2002 opened this issue Oct 4, 2019 · 8 comments
Assignees
Labels
Area: drivers Area: Device drivers Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Comments

@jhx2002
Copy link

jhx2002 commented Oct 4, 2019

  1. hardware: stm32f4 and sn65hvd230 can transceiver
  2. test code: tests/conn_can/
  3. use command: test_can send
  4. sampling with oscilloscope, I can see regular square wave on TX pin of transceiver. But
    there is no regular wave on CANH or CANL pin of transceiver .
@miri64 miri64 added Area: drivers Area: Device drivers Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) labels Oct 7, 2019
@miri64 miri64 added this to the Release 2019.10 milestone Oct 7, 2019
@Supern00dle
Copy link

Hello jhx2002,

did you add a CAN Termination? the Tranceiver cannot send something on the physical bus without a 60 Ohm termination.

@jhx2002
Copy link
Author

jhx2002 commented Oct 26, 2019

Hello jhx2002,

did you add a CAN Termination? the Tranceiver cannot send something on the physical bus without a 60 Ohm termination.

Yes I did, I add 120 Ohm termination.

@vincent-d
Copy link
Member

@jhx2002 did you check the configuration of your transceiver (most transceivers have a low power mode where they don't emit anything)? Is there another node up on the bus that can acknowledge the frames (if frames are not acknowledged, the controller will try to re-emit endlessly)?

@jhx2002
Copy link
Author

jhx2002 commented Oct 28, 2019

There is a can-analyzer on the bus, analyzer did not receive frame.

@Supern00dle
Copy link

@jhx2002 Many CAN analyzers do not send acks on the bus so for a communication you need a second CAN device.
As there is data on the tx line of the micro controller this seems not an OS issue.

Please provide a schematic of your implementation and detailed configuration of your settings in the micro controller.

@fjmolinas
Copy link
Contributor

@jhx2002, is this still an issue for you?

@jhx2002
Copy link
Author

jhx2002 commented Jan 15, 2020

Sorry I have no time to trace this issue recently. I'm not sure.

@MrKevinWeiss MrKevinWeiss removed this from the Release 2021.07 milestone Jul 15, 2021
@wosym
Copy link
Member

wosym commented Nov 20, 2021

Two year old issue that has been added and removed from Release milestones over and over again without any more input. Can this be closed? Since it was most likely a setup-problem and not a driver issue. Also: the CAN system in RIOT has changed quite substantially since then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

No branches or pull requests

7 participants