uvr16x2logging's People
uvr16x2logging's Issues
crash
Hallo,
auch ich habe ein PiCAN2 am RPi3 und candump funktioniert. uvrlogger.py crasht aber:
Traceback (most recent call last):
File "Adel13_2.py", line 367, in
network.scanner.search()
File "/home/joh/canopen/canopen/network.py", line 342, in search
self.network.send_message(0x600 + node_id, sdo_req)
File "/home/joh/canopen/canopen/network.py", line 166, in send_message
self.bus.send(msg)
File "/usr/local/lib/python2.7/dist-packages/can/interfaces/socketcan/socketcan_ctypes.py", line 138, in send
raise can.CanError("can.socketcan.ctypes failed to transmit")
can.CanError: can.socketcan.ctypes failed to transmit
Bitte um Kontaktaufnahme: [email protected]
Viele Grüße
Jörg
Object IDs für UVR16x2
Vielen Dank für dieses kleine Repository. Mit dem Stück Software habe ich bereits erfolgreich zwischen dem RPi und meiner UVR16x2 Kontakt hergestellt.
Das Auslesen der im Code vorgegebenen Objekte, z.B. Datum/Zeit funktioniert. Ich bin gerade dabei, einige Fehler, die bei der Auswertung der Telegramme auftreten, im Code zu beheben.
Meine eigentliche Frage ist aber - wo erhalte ich eine Liste der Objekt IDs für die UVR16x2?
Ich kenne einige Dokumente aus einem anderen Repository (https://github.com/brutella/uvr), aber kann keinen Zusammenhang zwischen der Doku dort und den von Dir verwendeten Object IDs herstellen. Datum/Uhrzeit habe ich z.B. bislang noch gar nicht gefunden.
Wäre super, wenn Du hier weiterhelfen könntest.
Problem beim Lesen der vendor Kennung
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.
Only issues hope someone can help !?
Hello
We have the UVR 16x2
and a PI3 and CAN MCP2515
Get with candump messages but with your python uvrlogger.py
We get only after start this errors:
Traceback (most recent call last):
File "uvrlogger.py", line 366, in
network.scanner.search()
File "/usr/local/lib/python2.7/dist-packages/canopen/network.py", line 262, in search
self.network.send_message(0x600 + node_id, sdo_req)
File "/usr/local/lib/python2.7/dist-packages/canopen/network.py", line 164, in send_message
self.bus.send(msg)
File "/usr/local/lib/python2.7/dist-packages/can/interfaces/socketcan/socketca n_ctypes.py", line 134, in send
raise can.CanError("can.socketcan.ctypes failed to transmit")
can.CanError: can.socketcan.ctypes failed to transmit**
Searched at google etc not find how tofix ort what the problem ist.
Hope someone or you the creator / dev can help thanks:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.