BbsonLin / serial_port_flutter

A Flutter plugin integrated with Android-SerialPort-API
Other
29 stars 24 forks source link

Custom baudrates #5

Closed mortenboye closed 4 years ago

mortenboye commented 4 years ago

Is it possible to open a port with a custom baudrate, like 31500 for midi?

BbsonLin commented 4 years ago

Hi @mortenboye , have you tried to set 31500 when using FlutterSerialPort.createSerialPort(theDevice, baudrate)?

mortenboye commented 4 years ago

Yes, I get an error saying, "unsupported baudrate". So I guess this is an issue on the OS level?

BbsonLin commented 4 years ago

Hi @mortenboye. To solve this problem, I think is modifying low level code in Android-SerialPort-API project. Like here. There's nothing I can do in my project, sorry bro :(