Cannnot receive can-fd message with PCAN

Ouverte
#1,859 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
À clarifier
Activité
À l'abandon
Stack technique
python
Domaine
networking

Piste de recherche

Commencez par reproduire l’initialisation via can.interface.Bus avec l’interface PCAN et les paramètres fournis bitrate, data_bitrate et fd. Suivez l’échec au niveau de can.interfaces.pcan.pcan.PcanError et comparez le résultat aux exigences PCAN CAN-FD. La tâche est terminée lorsque la configuration Windows et PCAN-USB signalée s’initialise correctement et permet la réception de messages CAN-FD.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug
Describe the bug

I am trying to receive CAN-FD messages using the PCAN interface. However, an error occurs during initialization, and I cannot proceed with receiving messages in CAN-FD mode.

To Reproduce

import can
self.can_bus0 = can.interface.Bus(channel='PCAN_USBBUS1', bustype='pcan', bitrate=500000, data_bitrate=2000000, fd=True)

Upon running this initialization, the following error occurs:
raise PcanError(self._get_formatted_error(result))
can.interfaces.pcan.pcan.PcanError: An unknown error has occurred

Expected behavior

The CAN interface should initialize correctly in CAN-FD mode and allow message reception.

Additional context

OS and version: Windows 10
Python version: 3.6.8
python-can version: 3.3.4
python-can interface: PCAN (PCAN-USB)

Traceback and logs import can self.can_bus0 = can.interface.Bus(channel='PCAN_USBBUS1', bustype='pcan', bitrate=500000, data_bitrate=2000000, fd=True)

Traceback:
raise PcanError(self._get_formatted_error(result))
can.interfaces.pcan.pcan.PcanError: An unknown error has occurred

Langage dominant
Python
Étoiles
1.6k
Forks
715
Merge moyen
2 j 4 h
PR mergées (30 j)
42

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de hardbyte/python-can

Toutes les issues de hardbyte/python-can

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.