altera2015 / usbserial

Flutter Android USB Serial plugin
BSD 3-Clause "New" or "Revised" License
119 stars 83 forks source link

Exception: PlatformException(UsbSerialPortAdapter, Not an Serial device., null) #66

Closed vonam2991 closed 10 months ago

vonam2991 commented 2 years ago

I'm getting Unhandled Exception: PlatformException(UsbSerialPortAdapter, Not an Serial device., null) when create 1 UsbDevice Prolific PL2303 - vendor-id="067B" product-id="23F3"

rohanddave commented 1 year ago

Facing the same problem, did you find a fix? @vonam2991

gmkado commented 10 months ago

Same issue, device vid=6790, pid=29987 (CH340).

I was able to get the example code from this repo to work fine with this device, but copying and pasting the main.dart into a new flutter project (using flutter create with flutter version 3.13.0) has the same issue.

I think this points to an issue with the android specific code/configuration, but haven't tracked it down further.

gmkado commented 10 months ago

Hmm as hinted at in #70 and a bunch of other issues in this repo, changing from targetSdkVersion 33 to 30 fixed this for me.

Maintainers of this lib should consider closing some of these as duplicates...

gmkado commented 10 months ago

(Better yet https://github.com/altera2015/usbserial/issues/75#issuecomment-1605306814)

altera2015 commented 10 months ago

Fix Merged.