USB companion radio firmware on Heltec V4.3: when the name has length 6, APP_START requests stall
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- embedded-iot
Direção de pesquisa
Start by reproducing with the reporter's shell script against a Heltec V4.3 running the companion USB firmware, using meshcli to set a six-character name and then time the infos command. The reporter links a 64-byte SELF_INFO reply for APP_START to the USB serial layer, so the serial transmit path is the place to look. Done means infos responds in milliseconds for a six-character name as it does for seven, and the fix is confirmed on hardware.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I am using a Heltec V4.3 OLED board with Companion radio USB v1.18.0-81dbae5 (14) firmware (heltec_v4_companion_radio_usb) and meshcli v1.6.10 on Ubuntu 26.04.
When the name has length of 6 characters, requesting "infos" via USB takes up to ~20 seconds instead of the usual milliseconds with other name lengths.
Reproducer script:
#!/bin/bash
PORT=${1:-/dev/ttyACM0}
for name in abcdef abcdefg; do
echo
echo "=== name '$name'"
uv run meshcli -s "$PORT" set name "$name"
sleep 5
for i in 1 2 3; do
echo "run $i:"
time uv run meshcli -s "$PORT" infos >/dev/null
sleep 1
done
done
Output:
=== name 'abcdef'
INFO:meshcore:Serial Connection started
INFO:meshcore:Connected to abcdefg running on a v1.18.0-81dbae5 (14) fw.
ok
run 1:
INFO:meshcore:Serial Connection started
INFO:meshcore:No response from meshcore node, trying to force DTR = True
INFO:meshcore:Serial Connection started
INFO:meshcore:Connected to abcdef running on a v1.18.0-81dbae5 (14) fw.
real 0m18.138s
user 0m0.099s
sys 0m0.021s
run 2:
INFO:meshcore:Serial Connection started
INFO:meshcore:No response from meshcore node, trying to force DTR = True
INFO:meshcore:Serial Connection started
INFO:meshcore:Connected to abcdef running on a v1.18.0-81dbae5 (14) fw.
real 0m7.542s
user 0m0.104s
sys 0m0.019s
run 3:
INFO:meshcore:Serial Connection started
INFO:meshcore:No response from meshcore node, trying to force DTR = True
INFO:meshcore:Serial Connection started
INFO:meshcore:No response from meshcore node, trying to invert dtr (now False)
INFO:meshcore:Serial Connection started
ERROR:meshcore:No response from meshcore node, disconnecting
ERROR:meshcore:Are you sure your node is a serial companion ?
ERROR:meshcore:To connect to a repeater, use -r option.
real 0m8.127s
user 0m0.084s
sys 0m0.030s
=== name 'abcdefg'
INFO:meshcore:Serial Connection started
INFO:meshcore:No response from meshcore node, trying to force DTR = True
INFO:meshcore:Serial Connection started
INFO:meshcore:Connected to abcdef running on a v1.18.0-81dbae5 (14) fw.
ok
run 1:
INFO:meshcore:Serial Connection started
INFO:meshcore:Connected to abcdefg running on a v1.18.0-81dbae5 (14) fw.
real 0m0.116s
user 0m0.095s
sys 0m0.019s
run 2:
INFO:meshcore:Serial Connection started
INFO:meshcore:Connected to abcdefg running on a v1.18.0-81dbae5 (14) fw.
real 0m0.115s
user 0m0.094s
sys 0m0.018s
run 3:
INFO:meshcore:Serial Connection started
INFO:meshcore:Connected to abcdefg running on a v1.18.0-81dbae5 (14) fw.
real 0m0.115s
user 0m0.089s
sys 0m0.023s
Note now with name length 7, the infos command takes about 100 ms (as expected), but with length 6 it can take up to ~20 s. This causes timeouts when trying to use this MeshCore device with Home Assistant (i.e. Home Assistant fails to connect to the device due to these timeouts).
An investigation performed by an AI agent suggests that this issue happens because when the name has length 6, the APP_START reply SELF_INFO payload has size 64 bytes, and the USB interface treats it as if the host is about to send more data (i.e. it waits and does not transmit it over USB).
A fork of MeshCore called Offband seems to had faced a similar issue and fixed it downstream: https://github.com/OffbandMesh/meshcore-firmware/issues/1037, https://github.com/OffbandMesh/meshcore-firmware/issues/1093.
Possibly related: MeshCore #3751 (ESP32-S3 HWCDC TX race on core 2.0.17, fixed by arduino-esp32 #12606 in core 3.3.9). That PR also has the ISR send a terminating ZLP once the TX ring is empty, so moving to core 3.3.9 or later may fix this too. Not tested.
- Linguagem predominante
- C
- Estrelas
- 3.9k
- Forks
- 1.5k
- Merge médio
- 2d 19h
- PRs com merge (30d)
- 61
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de meshcore-dev/MeshCore
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
meshcore-dev/MeshCore#4015 ·
Mantenedores costumam responder em até 2 dias
-
CMD_SET_DEFAULT_FLOOD_SCOPE leaves an older, longer name's tail after the new nameTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
meshcore-dev/MeshCore#3891 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
meshcore-dev/MeshCore#3826 ·
Mantenedores costumam responder em até 2 dias
-
App Preset Australia: NTAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
meshcore-dev/MeshCore#3825 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
meshcore-dev/MeshCore#3781 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de meshcore-dev/MeshCore
Issues semelhantes
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
389ds/389-ds-base#8251 ·
Mantenedores costumam responder em até 1 dia
-
bug data-types
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
ROCm/hrx-system#3628 ·
Mantenedores costumam responder em até 1 dia