hardbyte / hardbyte/python-can

Can't open CAN Bus for Vector Device interface.

Aperta
#1,591 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
1.6k
Fork
697
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Describe the bug
VectorBus has default app_name "CANalyzer" causing issue finding channels that haven't been associated yet to that app_name.

### To Reproduce
Install drivers for the device first.
Connect a Vector VN1630 device or similar.

```
import can

bus = can.Bus(bustype='vector', channel=0, bitrate=500000)
# can.interfaces.vector.exceptions.VectorInitializationError: xlGetChannelIndex failed (XL_ERR_HW_NOT_PRESENT) [Error Code 129]
# python-can version 4.2
```

### Expected behavior
No errors on runtime

### Additional context

OS and version: Windows
python-can version: 4.2
python-can interface/s (if applicable): VN1630A

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.