Timing issue in ethernet_SCPI_service
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 50/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- networking
Direzione di ricerca
Inizia in dripline/implementations/ethernet_scpi_service.py, nella funzione _reconnect, e analizza la sequenza intorno a self._listen() e self._send_commands. Riproduci o traccia il percorso di riconnessione con il dispositivo interessato, quindi verifica che il comando di riconnessione venga accettato dopo il ritardo richiesto tra i messaggi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The _reconnect function in ethernet_SCPI_service (see here), first checks for unprompted response via self._listen() before sending the command at reconnect to verify the connection.
At one device I have issues, where the timing of the messages is unfortune so that the self._send_commands is ignored by the device.
Apparently while sending the unprompted responds the device needs a tiny extra time to be able to receive requests via self._send_commands.
In case the self._send_commands is executed to fast after self._listen() returns, the device ignores the self._send_commands and the reconnect test is not succesful.
It has to be a timing issue, since if I execute the commands one after the other by hand, the process is successful. To allow for a tiny dead-time between sending the initial unprompted response and the first command to be accepted by the device, an additional sleep has to be implemented.
This can not be handled by the receive timeout since apparently the command is not recogniced by the device if it arrives to early.
While this is more an issue of the device a short sleep should not be harmful here. Since this only happens at reconnect, the overall delay should be minimal.
- Lingua principale
- Python
- Stelle
- 3
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di driplineorg/dripline-python
-
Log on set delayAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
driplineorg/dripline-python#222 · 1 commento ·
-
Create Logging WrapperAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
driplineorg/dripline-python#221 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
driplineorg/dripline-python#207 ·
-
Inconsistent response behavior with a 'values' arrayForse di nuovo libera @pkolbeck l’ha presa 484 giorni fa e non c’è nessuna pull request aperta. Aperta
driplineorg/dripline-python#204 · 1 commento · 2 assegnatari ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 38/100
driplineorg/dripline-python#189 · 1 commento ·
Tutte le issue di driplineorg/dripline-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
common-workflow-language/cwl-utils#477 ·
I maintainer di solito rispondono entro 1 giorno
-
Add dependabotApertafeat
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 72/100
open-nudge/opentemplate#204 ·
I maintainer di solito rispondono entro 1 giorno
-
github-stale-ci-pr-closer: KV state is double-wrapped, never persists, and hits the depth-32 limitForse già presa @VascoSch92 l’ha presa oggi. Apertapriority:medium ready-for-dev
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenHands/extensions#781 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
curriculum documentation quality
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-aw-workshop#4638 ·
I maintainer di solito rispondono entro 1 giorno