UsbSerial
UsbSerial copied to clipboard
Usb serial controller for Android
Write and Read thread stops suddenly, anytime don't know why put the code on debug but still didn't get the solution, firstly I assume that this is due to android...
I am using expo app for my project and keep getting this error ERROR TypeError: Cannot set property 'intArrayToUtf16' of null, js engine: hermes ERROR Invariant Violation: "main" has not...
Looks like it does not request the permission correctly on Android 12. You might be able to fix it like this This is on line 155 on file SerialPortBuilder.java //PendingIntent...
Yes, I want to read data from USB whenever a USB device gives a flag. are there any methods to do so.?
do anyone have any project example / source code for ionic framework or native android ?
in `UsbService.java` replace with ``` private void requestUserPermission() { Log.d(TAG, String.format("requestUserPermission(%X:%X)", device.getVendorId(), device.getProductId() ) ); PendingIntent mPendingIntent = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), PendingIntent.FLAG_MUTABLE); usbManager.requestPermission(device, mPendingIntent); } ```
I can connect this device on windows but it gives me this error when I connect to android [UsbDevice: /dev/bus/usb/002/003, 1ac2-f DESKO USB DEVICE, DESKO GmbH 00000017] Unhandled Exception: PlatformException(UsbSerialPortAdapter,...
Hello! Maybe someone will be interested. I redid [SerialPortBuilder](https://github.com/serserm/react-native-turbo-serialport/blob/main/packages/react-native-turbo-serialport/android/src/main/java/com/serserm/turboserialport/SerialPortBuilder.java) (sync+async), SerialPortCallback and UsbDeviceStatus But at the moment I'm still working on it (react native whith UsbSerial) I'm not an expert...
This is necessary for dual UART devices like the Prolific PL2523. For details see wIndex at https://www.beyondlogic.org/usbnutshell/usb6.shtml#SetupPacket and compare to the Linux cdc-acm.c function acm_ctrl_msg. Tested on PL2523 and STLink...