DTR signal needs to be activated from terminal program
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- c
- 領域
- embedded-iot
調査の方向性
Start with cdc_uart.c and inspect where tud_cdc_connected() controls host transmission; compare it with the TinyUSB cdc_device.h and cdc_device.c references in the issue. Done means terminal output is available when TinyUSB is ready without requiring DTR, while preserving the existing CDC behavior.
索引モデルが issue の本文から書いたものです。
説明
Problem:
tud_cdc_connected is using DTR bit which is used in cdc_uart.c If DTR is not set by host (PC terminal or other device), we can't send anything to host.
same issue with #906, #921, #932
I don't think its necessary to check DTR as discussed in here -> hathach/tinyusb
Until user open the serial port, data buffer will be overridden.
static inline bool tud_cdc_connected (void)
{
return tud_cdc_n_connected(0);
}
bool tud_cdc_n_connected(uint8_t itf)
{
// DTR (bit 0) active is considered as connected
return tud_ready() && tu_bit_test(_cdcd_itf[itf].line_state, 0);
}
how to fix
change tud_cdc_connected() with tud_ready()
- 主要言語
- C
- スター
- 1.3k
- フォーク
- 364
- 平均マージ
- 20日 5時間
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
raspberrypi/debugprobe のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
raspberrypi/debugprobe#206 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
raspberrypi/debugprobe#202 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
raspberrypi/debugprobe#196 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
raspberrypi/debugprobe#185 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
raspberrypi/debugprobe#177 · リアクション 1 件 ·
raspberrypi/debugprobe の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ExpressLRS/ExpressLRS#3806 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100