Timing issue in ethernet_SCPI_service
まだ誰も着手していません。
評価
- 難易度
- 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 ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
driplineorg/dripline-python のほかの issue
-
Log on set delayオープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
driplineorg/dripline-python#222 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
driplineorg/dripline-python#221 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
driplineorg/dripline-python#207 ·
-
Inconsistent response behavior with a 'values' array再び着手できるかも @pkolbeck が 485 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
driplineorg/dripline-python#204 · コメント 1 件 · 担当者 2 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
driplineorg/dripline-python#189 · コメント 1 件 ·
driplineorg/dripline-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/policyengine-us#10262 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
kellyjonbrazil/jc#788 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
`/search.json` ignores the documented `editions.sort` parameter対応中かも @PranavD2905 が今日担当しました。 オープンAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
internetarchive/openlibrary#13989 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug P2: misleading query
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jeffknupp/association#478 ·