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

"Bus error: an error counter reached the 'heavy'/'warning' limit" with Elobau Canopen angle sensor #305

Closed
Topper69 opened this issue Mar 17, 2022 · 2 comments

Comments

@Topper69
Copy link

Hi,

I'm trying to read & configure Elobau canopen angle sensor with a Peak PCAN-USB FD reader.
Wiring :
DEUTSCH Sensor connector --- PEAK
PIN 1 GND
PIN 2 +12V power supply
PIN 5 (can L) --- CAN L
PIN 6 (can H) --- CAN H
120Ohm between pin 5&6.

OS : Windows 10 64b + python3.10.2
Example python sketch:

import canopen
network = canopen.Network()
network.connect(bustype='pcan', channel='PCAN_USBBUS1', bitrate=250000)
##green light is flashing
network.scanner.search()
##error : Bus error: an error counter reached the 'heavy'/'warning' limit
##Peak is flashing red

Any clue what's going on?

Many thanks.

af-silva added a commit that referenced this issue Mar 18, 2022
Following the changes done #304, #305
@af-silva
Copy link
Collaborator

Hi @Topper69,

PCAN_ERROR_BUSHEAVY: Indicates a bus error within the given PCAN Channel. The hardware is in bus-heavy status

It can a number of things related to Network:

  • Is the bus correctly terminate? (I will assume yes since you mentions the resistor);
  • Are you using the correct bitrate for the given adapter?;
  • How many devices do you now on the bus, one? or more? if more they are all configured equal, this is with the same bitrate?
  • Do you have the drives updated or using the correct/recomended version?
  • Have you tried, using candump and cansend to try communicate with the device beforehand and check if the connection is ok?

Please check the forums and documentation from Peak -> BUSLIGHT, BUSHEAVY & BUSOFF

In the past I have used SockectCan to connect but I was on linux.

Have you tried this -> network.connect(bustype='pcan', channel='PCAN_USBBUS1', state=BusState.ACTIVE, bitrate=500000) ( from the python-can documentation here )

Good luck ;)

@Topper69
Copy link
Author

Bad wiring ;) working good now (i have mirrored the wiring).
Closed the issue.
Many thanks for the help.

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

2 participants