usbhost: cdcacm exit wq after copy all received data
Summary
cdcacm exit wq after copy all received data
Impact
Fix issue: When the SIM CDCACM host receives data, the second packet data reception is incorrect.
Testing
- Compile usbhost:
./build.sh sim:usbhost -j8 - Start usbhost:
sudo nuttx/nuttx - Compile usbdev:
./build.sh sim:usbdev -j8 - Start usbdev:
sudo nuttx/nuttx - Enable usbdev as cdcacm: input
conn 1 - In usbhost, input
cat /dev/ttyACM0 & - In usbdev, input
echo hello > /dev/ttyACM0multiple times. Note that the secondhellodoes not display correctly in usbhost.
@yangsong8-a1 this testing you did is really cool:
Compile usbhost: ./build.sh sim:usbhost -j8 Start usbhost: sudo nuttx/nuttx Compile usbdev: ./build.sh sim:usbdev -j8 Start usbdev: sudo nuttx/nuttx Enable usbdev as cdcacm: input conn 1 In usbhost, input cat /dev/ttyACM0 & In usbdev, input echo hello > /dev/ttyACM0 multiple times. Note that the second hello does not display correctly in usbhost.Please include it at usbhost board profile: https://nuttx.apache.org/docs/latest/platforms/sim/sim/boards/sim/index.html
There is missing the clear steps like you did here and the usbdev example there is very complex.
@acassis I've added it. Please check if it's appropriate. Thank you.
@yangsong8-a1 this testing you did is really cool:
Compile usbhost: ./build.sh sim:usbhost -j8 Start usbhost: sudo nuttx/nuttx Compile usbdev: ./build.sh sim:usbdev -j8 Start usbdev: sudo nuttx/nuttx Enable usbdev as cdcacm: input conn 1 In usbhost, input cat /dev/ttyACM0 & In usbdev, input echo hello > /dev/ttyACM0 multiple times. Note that the second hello does not display correctly in usbhost.Please include it at usbhost board profile: https://nuttx.apache.org/docs/latest/platforms/sim/sim/boards/sim/index.html There is missing the clear steps like you did here and the usbdev example there is very complex.
@acassis I've added it. Please check if it's appropriate. Thank you.
Very nice! I improved it a little bit to make it easier to understand by someone new to NuttX
@simbit18 how to add "ans" do the .codespellrc ? It is failing this PR because the SIM Documentation has "ans init"
Hi @acassis, if I'm not mistaken, the line should be added to this file https://github.com/apache/nuttx/blob/master/.codespell-ignore-lines
Hi @acassis, if I'm not mistaken, the line should be added to this file https://github.com/apache/nuttx/blob/master/.codespell-ignore-lines
Thank you @simbit18
Hi @acassis, if I'm not mistaken, the line should be added to this file https://github.com/apache/nuttx/blob/master/.codespell-ignore-lines
Thank you @simbit18
@acassis