how to use USB port to operate the ink screen lcd
l1356414643 opened this issue · 0 comments
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 );