Closed HernandoSergio closed 4 months ago
No, unfortunately not. And it's not even implemented in the underlying Android library: https://github.com/felHR85/UsbSerial/blob/7ad6c9f6880e93a29498e479d3e871d5b03d188b/usbserial/src/main/java/com/felhr/usbserial/CDCSerialDevice.java#L251
in your code: await _port!.setBreak(false); // when you set DTR and RTS
to usb_serial.dart
line 112: bool _breakState=false;
line 176:
/// Sets or clears the break port to value [breakState].
Future
to UsbSerialPortAdapter.java line 138: case "setBreak":{ boolean v = call.argument("breakState"); m_SerialDevice.setBreak(v); result.success(null); break; }
I need to send a break through the serial line to awaken the device (i.e. lower the TX line for more than one byte time). Is it possible to do it somehow?