access tty ports

Luis Curiel 0 Reputation points
2024-11-05T15:40:30.21+00:00

Hi,

I try to access with the tty ports on my tablet

but the use of _usbManager = (UsbManager)activity.GetSystemService(Context.UsbService);

but the result is just the regular usb ports.

i check in terminal ls -l /dev/ttymxc* and i get a complate list

please advice

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,730 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 77,406 Reputation points Microsoft Vendor
    2024-11-11T01:16:42.31+00:00

    Hello,

    System.DllNotFoundException: libSystem.IO.Ports.Native

    Please see SerialPort is not supported on Android ? 

    do you mean, no way to access these ports?

    Android will block this by default, you need to disable it (only possible on rooted phones or custom Android builds)

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.