Release request: slcan on Windows loses frames on 4.6.1, fixed on main

Offen
#2,121 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
release

Rechercherichtung

Read the release process and the status of pull request #2028, which the issue identifies as the fix for slcanBus._read. The requested outcome is a 4.6.2 or 4.7.0 release containing that change; this issue requests a release rather than implementation work.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Hi @zariiii9003,

Could a 4.6.2 or 4.7.0 be released that includes #2028? On Windows, the slcan interface in 4.6.1 loses frames whenever the bus is busy, and #2028 fixes it, but it is only on main so far.

What we see. The device under test sends 10000 frames to a CANable adapter running slcan firmware. With 4.6.1 the host receives between some fraction of (about half) them, and then nothing more arrives. The same test on Linux receives all 10000 frames.

slcanBus._read in 4.6.1 calls serial.read(1) once per byte. On Windows each call is a separate request to the serial driver. Bytes are dropped.

#2028 fixes it...

Until there is a release, we replace slcanBus._read in our own test tooling.

Thanks for all your efforts with python-can!

Vorherrschende Sprache
Python
Sterne
1.6k
Forks
715
Ø Merge
2 T. 4 Std.
Gemergte PRs (30 T.)
42

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus hardbyte/python-can

Alle Issues in hardbyte/python-can

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.