You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Bus error: an error counter reached the 'heavy'/'warning' limit" with Elobau Canopen angle sensor #305
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
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 )
Activity
change missing Baudrate to BaudRate
af-silva commentedon Mar 18, 2022
Hi @Topper69,
It can a number of things related to Network:
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 commentedon Mar 21, 2022
Bad wiring ;) working good now (i have mirrored the wiring).
Closed the issue.
Many thanks for the help.