Skip to content

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

Closed

Description

@Topper69

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.

Activity

  1. added a commit that references this issue on Mar 18, 2022
  2. af-silva commented on Mar 18, 2022

    @af-silva
    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 ;)

  3. Topper69 commented on Mar 21, 2022

    @Topper69
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions