Usb Host and USB to Serial Converter

RonanEgan.9044RonanEgan.9044 USMember ✭✭
edited July 2016 in Xamarin.Android

Hi all,
I'm trying to use a PL2303 USB to 232 converter with a Xamain.Android project

The prolific sample app runs fine on my machine, I have nearly the same code running on Xamarin but it fails to open the serial port.

http://prolificusa.com/pl-2303hx-drivers/

The sample app shows it using the following in the manifest:

However I can't find this in the Xamarin menus on VS. When I manually add it it doesn't work.
Is USB Host expected to work on Xamarin.Android?

I've seen a nuget package for this, but it uses Java Source code to get access to USB Host and I would prefer to have full source and control as this is an important feature:

https://bitbucket.org/lusovu/xamarinusbserial

I've read a few posts where folks questioned Xamarin's usb implementation, just thought I'd ask.

Any advice appreciated,
Thanks

Tagged:

Best Answer

  • RonanEgan.9044RonanEgan.9044 US ✭✭
    Accepted Answer

    Thanks for the reply but that is a different problem, bluetooth is working, thanks.

    The line from the manifest.xml I had to add manually was:

    It seems it's not getting permissions to access the device.

Answers

  • AlessandroCaliaroAlessandroCaliaro ITMember ✭✭✭✭✭

    I have connected a Bluetooth barcode reader to an Android Device. This is the code. Hope it helps

    https://github.com/acaliaro/TestBth

  • RonanEgan.9044RonanEgan.9044 USMember ✭✭
    Accepted Answer

    Thanks for the reply but that is a different problem, bluetooth is working, thanks.

    The line from the manifest.xml I had to add manually was:

    It seems it's not getting permissions to access the device.

Sign In or Register to comment.