Android Question USB Serial Baudrates only Fix or Flexi

namnach

Member
Licensed User
Longtime User
Hi - and nice Sunday,

i talk about USB Serial in Group of B4A Developer.
In this Talk was question, which Baudrate's USB Serial is supporting.

I think by my self in this time, there is 0 .. 115200 support,
i start test with a Mikrocontroller and set the UART Baudrate to 38400.


...
dev = usb.Open(38400)
...
usb.SetParameters ( 38400, usb.DATABITS_8, usb.STOPBITS_!, usb.PARITY_NONE)

..

all communication was good.


So i start a Baudrate at Mikrocontroller setting 31250 and try

...
dev = usb.Open(38400)
...
usb.SetParameters ( 31250, usb.DATABITS_8, usb.STOPBITS_!, usb.PARITY_NONE)



but the Data was not correct ( Length and Value )

i test also

...
dev = usb.Open(31250)
...
usb.SetParameters ( 31250, usb.DATABITS_8, usb.STOPBITS_!, usb.PARITY_NONE)

same..

i test in

...
dev = usb.Open(38400)
...
usb.SetParameters ( 28800, usb.DATABITS_8, usb.STOPBITS_!, usb.PARITY_NONE)



The data Length was correct but not the Value.


My question:

Is Flexi Baudrate support in USB Serial or only FIX "Standard" Baudrate like
9600...14400...19200...28800 .... 38400...56800 and so on?

Any one have Idea how managed Flexi Baudrate in USB Serial?

I would test in 31250 and 36000

Best Thank! And Nice Sunday!


Nami
 
Top