nsh: Decouple with CONFIG_FILE_STREAM - #1559
Conversation
3429eaa to
442418a
Compare
|
CI break is fixed by apache/nuttx#8498 |
b42d4c9 to
78b6b8b
Compare
a76f7e6 to
28ddefe
Compare
e3cd73e to
6b8ac4d
Compare
|
Split to 2 PR (readline relative and nsh) |
4396ea7 to
3fab20d
Compare
|
@masayuki2009 Which board/config used in your testing ? Could you check the CONFIG_TELNET_TXBUFFER_SIZE value ? |
continue the change from apache#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
continue the change from apache#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
I've tested telnetd on esp32c3-devkit, and I can't reproduce this behavior on it. |
|
@no1wudi |
continue the change from apache#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
continue the change from apache#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
continue the change from apache#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
continue the change from apache#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
The same issue happens with spresense:rndis_smp too. |
|
@no1wudi |
|
@no1wudi |
|
@masayuki2009 Thanks for your information, I'll continue debug it. |
BTW, in my test, I'm using esp32c3-devkit, is'a single core chip. |
I've just confirmed that non-SMP can reproduce the issue too. |
|
@masayuki2009 The root case is that |
continue the change from #1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
continue the change from apache#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
The audio tone generator stopped working with the 'echo' command since apache/nuttx-apps#1559 Before that PR: nsh> echo "t120o1l16b9n0baan0bn0bn0baaan0b9n0baan0b" > /dev/tone0 tone_write: Received 41 bytes nsh> After that PR: nsh> echo "t120o1l16b9n0baan0bn0bn0baaan0b9n0baan0b" > /dev/tone0 tone_write: Received 40 bytes tone_write: Received 1 bytes nsh> Unfortunately the Audio Tone was not block new write attempts even when it was already playing a melody. This commit fix it and avoids the issue caused by that PR. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit fixes the previous behavior where an echo with a single string and its default new line is send as single write(). This issue came from: #1559 Signed-off-by: Alan C. Assis <acassis@gmail.com>
The audio tone generator stopped working with the 'echo' command since apache/nuttx-apps#1559 Before that PR: nsh> echo "t120o1l16b9n0baan0bn0bn0baaan0b9n0baan0b" > /dev/tone0 tone_write: Received 41 bytes nsh> After that PR: nsh> echo "t120o1l16b9n0baan0bn0bn0baaan0b9n0baan0b" > /dev/tone0 tone_write: Received 40 bytes tone_write: Received 1 bytes nsh> Unfortunately the Audio Tone was not block new write attempts even when it was already playing a melody. This commit fix it and avoids the issue caused by that PR. Signed-off-by: Alan C. Assis <acassis@gmail.com>
continue the change from apache/nuttx-apps#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
continue the change from apache/nuttx-apps#1559 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit fixes the previous behavior where an echo with a single string and its default new line is send as single write(). This issue came from: #1559 Signed-off-by: Alan C. Assis <acassis@gmail.com>
Summary
Replace all fwrite/fread/fgets/... to write/read/... .
Before:
After:
After with CONFIG_FILE_STREAM disabled:
Impact
nsh
Testing
QEMU