acemind / usb-serial-for-android

Automatically exported from code.google.com/p/usb-serial-for-android
GNU Lesser General Public License v3.0
0 stars 0 forks source link

FTDI Baudrate Overridden #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have an FTDI enabled serial device that operates at 57600 baud rate.

What steps will reproduce the problem?
1.  _usbdriver.setBaudRate(57600);
2.  _usbdriver.open();

What is the expected output? 
I expect the device to be configured to 57600 baud rate and then open the port. 
 Logging to show the same.

What do you see instead?
When the baudrate is set, the driver logs the correct baud rate
The port is then logged as successfully opened
The log then indicates that the baud rate has been set to 115200
Communications indicate that the baud rate is incorrect

What version of the product are you using? On what operating system?
V010 running on an Android 4.0.3

Please provide any additional information below.
Inspecting the code in FTDISerialDriver.java, the open function performs a call 
to setParameters on line 215 using "default" parameters after opening the port. 
 These default parameters are not updated using a call to setBaudRate.

Original issue reported on code.google.com by kentbe...@yahoo.com.au on 29 Mar 2013 at 12:03

GoogleCodeExporter commented 9 years ago
Thanks for the report.  Someone else reported the same thing in issue #11.  It 
is fixed now!

Original comment by mike.wak...@gmail.com on 8 Apr 2013 at 5:58