Skip to content

Novice question #17

@sqwang0

Description

@sqwang0

Hi:
I am student who is learning CANopen
Now i am trying to implement your code on raspberry and controlling an electronic car.
The system goes well when i sent NMT and SYNC command
but when a try to Read a variable using SDO
I have put the eds document into folder named objectdictionary
I received error like that
Could please advice me what mistake i might make.

Traceback (most recent call last):
File "", line 1, in
File "/home/pi/canopen-master/canopen/sdo.py", line 155, in getitem
entry = self.od[index]
File "/home/pi/canopen-master/canopen/objectdictionary/init.py", line 66, in getitem
return self.names.get(index) or self.indices[index]
KeyError: 8197

Regards,

Siqi

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions