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

Aberta
#2,121 0 comentários 2 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
release

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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!

Linguagem predominante
Python
Estrelas
1.6k
Forks
715
Merge médio
2d 4h
PRs com merge (30d)
42

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de hardbyte/python-can

Todas as issues de hardbyte/python-can

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.