eclipse-threadx / usbx

Eclipse ThreadX - USBX is a high-performance USB host, device, and on-the-go (OTG) embedded stack, that is fully integrated with Eclipse ThreadX RTOS
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/usbx/index.md
MIT License
146 stars 87 forks source link

how to use USB port to operate the ink screen lcd #150

Open l1356414643 opened 4 months ago

l1356414643 commented 4 months ago

We need to use a USB port to operate the ink screen here. The ink screen will be recognized as a USB flash drive, and then we need to run custom CBW []+CDB [] format data. Which solution should we use? Thank you! The current situation is that the reply code after sending Inquiry (0x12) is no longer correct, and it can only be recognized as a USB drive because this command is also customized.

HPM5331 is used as the HOST end of USB. After the MSC drive letter is recognized by the connected device, a proprietary command is used for operation.

The manufacturer provided a routine for the WINDOWS system, using bSuccess = DeviceIoControl(hDev, IOCTL_SCSI_PASS_THROUGH_DIRECT,//IOCTL_SCSI_PASS_THROUGH_DIRECT,//IOCTL_SCSI_PASS_THROUGH, &stSPTDBuf, sizeof(SCSI_PASS_THROUGH_DIRECT),//+sizeof(gSPTDataBuf), //sizeof( TSPTWBData), &stSPTDBuf, sizeof(SCSI_PASS_THROUGH_DIRECT),//sizeof(gSPTDataBuf), //sizeof( TSPTWBData), &dwReturnBytes, NULL ); 微信图片_20240228215345 微信图片_20240228215351