Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
l1356414643 opened this issue Feb 28, 2024 · 0 comments
Open

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

l1356414643 opened this issue Feb 28, 2024 · 0 comments
Labels
hardware New hardware or architecture support request

Comments

@l1356414643
Copy link

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

@l1356414643 l1356414643 added the hardware New hardware or architecture support request label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hardware New hardware or architecture support request
Projects
None yet
Development

No branches or pull requests

1 participant