1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-08 08:26:18 +00:00

29 Commits

Author SHA1 Message Date
Arthur Benemann
d272021034 Adding support for the new FT231X IC from FTDI
To use it as a serial-USB bridge it's the same thing as a FT232 IC
2013-10-28 17:06:51 -07:00
Felix Hädicke
730ed711e1 UsbSerialPort: add purgeHwBuffers method.
Consolidates following changes from Felix (newest first):
  1123807 Rename flushHwBuffers to purgeHwBuffers
  3eb145d Use UsbSerialPort instead of UsbSerialDriver in SerialInputOutputManager
  f91a974 Return true in flushHwBuffers default implementation if there is nothing to flush
  69c0b59 Implement flushHwBuffers for Cp2102 driver
  4a41bd9 Rename UsbSerialPort.flush function to flushHwBuffers
  c908da4 Refactoring: Make ProlificSerialDriver a subclass of CdcAcmSerialDriver
  39cb480 Refactoring: New UsbSerialPort interface
  d542f64 Refactoring: Do not require permission to USB device when probing
  9a13571 Support flushing non-written / non-read data
2013-10-28 17:05:22 -07:00
Felix Hädicke
2bdcbfd16e Device support: PL2303.
This change consolidates changes made by Felix Hädicke:
  https://code.google.com/r/felixhaedicke-usb-serial-for-android/

Upstream changes merged (newest first):
  3b6fb7f Rename parameter variables
  74d858f Remove unused constant
  bab0691 Make consts private
  381f28c Remove test code
  bdd9a64 Suppport for reading CTS / DSR / CD / RI status
  ccf807a Remove "Untested" TODO comment (no longer true)
  1b1ccce Remove unneeded commented out function ctrlIn
  5f853db Make parameter fields private
  d8c6758 Fix for wrong constant being used when turning off DTR
  05ff566 Fix for NullPointerException
  9d2c9af Reenabled device type detection
  307ce72 Device support: PL2303.

Original commit message:
  New driver for Prolific PL2303

  A new driver for Prolific PL2303 devices, which is more or less a port
  of the "pyprolific" driver from https://github.com/eblot/pyftdi
2013-10-28 16:41:57 -07:00
Felix Hädicke
eca40d6b11 FTDI driver: Filter status bytes
Filter status bytes at the beginning of every USB package received from
FTDI serial adapters
2013-05-22 13:08:05 -07:00
mike wakerly
b709823906 Update demo activity.
Demo now consists of two activities:
  - DeviceListActivity shows all usb devices (including unsupported ones)
    in a ListView.
  - SerialConsoleActivity dumps the data stream for a device selected in
    DeviceListActivity.
2013-05-22 13:04:05 -07:00
mike wakerly
b07bbcf292 Eclipse settings: adjust import order to match Android style. 2013-05-22 12:58:24 -07:00
mike wakerly
386b98ac46 UsbSerialProber: API cleanup; support multi-port devices.
acquire() is renamed and deprecated in favor of findFirstDevice().

findAllDevices() is added as new functionality.

Internally, probe() now returns a list, allow a (future) multi-port
device to return multiple drivers, one for each port (googlecode
issue #14).
2013-05-22 11:45:20 -07:00
mike wakerly
22c4c9b280 CDC: fix incorrect stop bits (thanks vovkab). 2013-04-07 23:06:30 -07:00
mike wakerly
beccfbb409 Add Leaflabs Maple to CDC probe table. 2013-04-07 22:53:21 -07:00
mike wakerly
f73b485418 Remove setBaudRate(); do not touch line config in open().
Callers should call setParameters() after open() (and now have the option of
skipping this step where feasible.)
2013-04-07 22:42:40 -07:00
mike wakerly
fe2eb8278b UsbSerialDriver is an interface once again.
Code shared among the existing drivers is moved into CommonUsbSerialDriver.
2013-02-19 13:28:26 -08:00
ducky-hong
2b3528b425 added support for cp2102 device 2013-02-07 15:05:13 -08:00
mike wakerly
c3ac464ab3 Rename LUFA ids (which use Ateml's vendor code) to match Linux usb.ids 2013-01-16 09:49:21 -08:00
Elliot Smith
890e543e0c Added support for LUFA Virtual Serial Example
Closes issue #8.

Signed-off-by: mike wakerly <opensource@hoho.com>
2013-01-15 17:59:23 -08:00
mike wakerly
f35468e0f8 Rewind output buffer before copying. 2012-12-07 17:47:17 -08:00
mike wakerly
3f271aab81 Add setParameters() method and deprecate setBaudRate().
Interface is similar to javax.comm.
2012-12-07 14:08:03 -08:00
mike wakerly
0424133e58 Update changelog; add BuildInfo. 2012-11-28 10:35:56 -08:00
mike wakerly
111707c92f Driver interface: add methods for CD, CTS, DSR, DTR, RI, and RTS. 2012-11-28 10:24:47 -08:00
mike wakerly
a3b9c27f84 Update Eclipse prefs. 2012-11-13 10:54:35 -08:00
mike wakerly
3812fbcb55 cdc: Remove spurious readAmt line from previous commit. 2012-10-12 09:04:27 -07:00
mike wakerly
b328f3cbc9 Increase default read/write buffer sizes; allow tuning. 2012-10-11 19:40:54 -07:00
mike wakerly
c5e9955b01 Update device support; change interface to abstract base class.
Adds support for Teensyduino and a few more Arduino CDC devices.
2012-10-10 22:52:02 -07:00
mike wakerly
b96d43639e FTDI driver: Experimental async support.
Disabled due to Android bug.
2012-08-09 15:32:25 -07:00
mike wakerly
fbf2607124 Cdc driver: probe all Arduinos. 2012-07-15 22:19:28 -07:00
mike wakerly
f2ff56ba51 cdc driver: swallow exception for now. 2012-07-08 21:40:14 -07:00
mike wakerly
b4b6d147ea Initial CDC ACM support.
Tested on Arduino Uno.
2012-06-26 23:15:56 -07:00
mike wakerly
f801b31997 Add new interface method: getDevice(). 2012-06-26 23:15:29 -07:00
mike wakerly
7a690f3ad2 SerialInputOutputManager: fix write butter synchronization 2012-01-09 13:49:37 -08:00
mike wakerly
bd50024ebc Initial commit. 2011-12-28 16:29:17 -08:00