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

Problem beim Lesen der vendor Kennung #1

Open
Wopfi opened this issue Sep 11, 2017 · 1 comment
Open

Problem beim Lesen der vendor Kennung #1

Wopfi opened this issue Sep 11, 2017 · 1 comment

Comments

@Wopfi
Copy link

Wopfi commented Sep 11, 2017

Da ich keine bessere Möglichkeit gefunden habe, Kontakt aufzunehmen, hab ich mal schnell eine Issue aufgemacht.

Meine System: Raspberry Pi 2 mit dem PiCAN 2 Modul. Am CAN Bus hängen zwei UVR1611 und ein BL-NET. Wenn ich das Script starte, werden die Node IDs richtig erkannt, aber beim Versuch die vendor Kennung der ersten UVR1611 zu lesen, gibt es einen Fehler.

[1L, 2L, 10L]
Traceback (most recent call last):
  File "./uvrlogger.py", line 386, in <module>
    ret = pruefeUVR(cob_id)
  File "./uvrlogger.py", line 45, in pruefeUVR
    vendor = node.sdo[0x1018][0x01]
  File "/home/pi/.local/lib/python2.7/site-packages/canopen/sdo.py", line 155, in __getitem__
    entry = self.od[index]
  File "/home/pi/.local/lib/python2.7/site-packages/canopen/objectdictionary/__init__.py", line 66, in __getitem__
    return self.names.get(index) or self.indices[index]
KeyError: 4120

Leider hab ich überhaupt keine Erfahrung mit dem canopen Modul oder mit dem canopen Protokoll selbst, deshalb bin ich aus dem Fehler nicht wirklich schlau geworden.

@staircaseblog
Copy link
Owner

staircaseblog commented Sep 21, 2017 via email

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