B4X FEED USBSerial with multiple unknown VID / PID

  • نویسنده موضوع نویسنده موضوع practicalsoft
  • تاریخ شروع تاریخ شروع
  • برچسب‌ها برچسب‌ها
    using

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: USBSerial with multiple unknown VID \/ PID است. این موضوع تا کنون 38 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع USBSerial with multiple unknown VID \/ PID
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
38
پسندها
0
آخرین ارسال توسط PracticalSoft
وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
Jun 6, 2020
11,517
4,383
Hi all,

I have a small app using UsbSerial 2.4 that talks to a handful of simialr but different devices that conform to the CDC device class, at first I was getting an "Error Opening USB Port 1" so I added:-

B4X:

usb1.SetCustomDevice(usb1.DRIVER_SILABS, 0x****, 0x**)
Where * indicates the VID and PID numbers, it all then worked fine.

Now I need the app to work with a few other similar devices (slight model variants) but I don't know the VID / PID of them, is there a way to cover any VID / PID combo or do I need to try and extract them using device info like this? I could try and grab it using a regex, any better solution?

B4X:

usb1.DeviceInfo(1)
Thanks

 

وضعیت
موضوع بسته شده است و نمی‌توان پاسخ جدیدی فرستاد.
عقب
بالا