Closed jyashi closed 2 years ago
QuickUsb.getDeviceList
has nothing to do with flutter devices
QuickUsb.getDeviceList
uses libusb_get_device_list
on desktop: https://libusb.sourceforge.io/api-1.0/group__libusb__dev.html#gac0fe4b65914c5ed036e6cbec61cb0b97
flutter devices
https://docs.flutter.dev/reference/flutter-cli
Command | Example of use | More information |
---|---|---|
devices | flutter devices -d <DEVICE_ID> |
List all connected devices. |
I didn't say they had anything to do with each other. What I was trying to say is that the device is indeed connected with the desktop and there is no faulty usb cable and yet this plug in command does not return a list of the connected devices as per the documentation.
On Wed, 2 Feb 2022, 21:04 Sunbreak, @.***> wrote:
QuickUsb.getDeviceList has nothing to do with flutter devices QuickUsb.getDeviceList
uses libusb_get_device_list on desktop: https://libusb.sourceforge.io/api-1.0/group__libusb__dev.html#gac0fe4b65914c5ed036e6cbec61cb0b97 flutter devices Command Example of use More information devices flutter devices -d
List all connected devices. — Reply to this email directly, view it on GitHub https://github.com/woodemi/quick_usb/issues/46#issuecomment-1027871506, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJ5G5B3U7O2OB6YYVJ5X33UZEMVFANCNFSM5NLKXZBQ . You are receiving this because you authored the thread.Message ID: @.***>
Could you post flutter doctor -v
?
As requested.
On Wed, 2 Feb 2022 at 21:45, Sunbreak @.***> wrote:
Could you post flutter doctor -v?
— Reply to this email directly, view it on GitHub https://github.com/woodemi/quick_usb/issues/46#issuecomment-1027905704, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALJ5G5CO2QNIBMD4M265E23UZERNTANCNFSM5NLKXZBQ . You are receiving this because you authored the thread.Message ID: @.***>
I'm not sure if libusb works on ARM64 macOS or connected Android devices
I'll test on my ARM64 macOS as soon as possible
Thanks a lot. FYI even though i am testing in macOS right now the app is being developed for Windows desktop exclusively (dont have any Windows workstation close by to test with right now). So it would be great if it works on Windows 10.
QuickUsb.getDeviceList
works on x64 macOS 11.2.3 with Pixel 4
deviceList [{identifier: 25, vendorId: 6353, productId: 20199, configurationCount: 1}]
According to http://www.linux-usb.org/usb.ids, It is VID-18d1
(Google) PID-4ee7
(Pixel)
QuickUsb.getDeviceList
works on ARM64 macOS 11.6.3 with Pixel 4
deviceList [{identifier: 1, vendorId: 6353, productId: 20199, configurationCount: 1}]
@jyashi Could you try run libusb example?
% git clone https://github.com/woodemi/libusb.dart -b develop-3.23-nullsafety
% cd libusb.dart
% flutter pub get
% flutter pub run example/listdevs.dart
18d1:4ee7 (bus 0, device 1)
path: 01
PS: 18d1:4ee7
is VID:PID
, i.e. Pixel 4
Ran as instructed..
Then QuickUsb.getDeviceList
should work on your environment
Then
QuickUsb.getDeviceList
should work on your environment
Thanks for your support.
By the way i think this plugin would have a great adoption if you have any YouTube videos showing Flutter UI controlling esp32 or M5stack microcontrollers via usb serial communication using this plugin.
Sorry. I dont have any of esp32 or M5stack
void main() async { await QuickUsb.init(); var deviceList = await QuickUsb.getDeviceList() .then((value) => print("debug device list $value"));
await GetStorage.init();
The print outputs an empty list [] but running flutter devices shows me the correct list of connected devices.