Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Timing issue in ethernet_SCPI_service

オープン
#214 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
50/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
networking

調査の方向性

dripline/implementations/ethernet_scpi_service.py の _reconnect 関数から始め、self._listen() と self._send_commands の前後のシーケンスを調べてください。影響を受けるデバイスで再接続パスを再現または追跡し、その後、必要なメッセージ間遅延の後に再接続コマンドが受け付けられることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
3
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

driplineorg/dripline-python のほかの issue

driplineorg/dripline-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。