1
0
mirror of https://github.com/mik3y/usb-serial-for-android synced 2025-06-07 16:06:10 +00:00

268 Commits

Author SHA1 Message Date
kai-morich
f443d1f012 iomanager with configurable buffer size 2020-08-31 22:40:28 +02:00
kai-morich
4f2d6c73a4
list all supported FTDI devices v3.0.1 2020-08-24 17:32:03 +02:00
kai-morich
698f590d58 restored UsbId.FTDI_FT231X
same ID for FT230X, FT231X, FT234XD
tested with FT230X
2020-08-23 20:44:34 +02:00
kai-morich
f36756dc86
Update CHANGELOG.txt 2020-08-20 07:49:50 +02:00
kai-morich
73d669c4dc remove FT231X also from device_filter.xml 2020-08-01 12:24:54 +02:00
kai-morich
57d10a08dd
Merge pull request #297 from mik3y/v3
ftdi rewrite, MIT license, ...
v3.0.0
2020-08-01 10:21:54 +02:00
kai-morich
a664082f23 throw UnsupportedOperationException instead of returning false 2020-08-01 10:06:51 +02:00
kai-morich
954295456c rebase new FTDI baudrate test 2020-07-30 17:52:18 +02:00
kai-morich
2d13b90f59 move from LGPL to MIT license (#244)
moving away from LGPL possible, as the FTDI driver is rewritten and not based any more on LGPL code from libftdi.
2020-07-29 11:03:26 +02:00
kai-morich
e496195bd9 rewrite ftdi driver without LGPL code from libftdi 2020-07-27 17:39:01 +02:00
kai-morich
e0ed25b85f CH341A readme update 2020-07-27 17:38:16 +02:00
kai-morich
963729924b mention close of UsbDeviceConnection in javadoc comment 2020-07-21 08:20:22 +02:00
kai-morich
ce73857825 slightly more tests 2020-07-19 19:47:13 +02:00
kai-morich
a2f0097092 improve control line example 2020-07-19 19:16:05 +02:00
kai-morich
8eaf3f5c5f tests UsbDeviceConnection close behavior
and extract test utilities
2020-07-18 20:48:27 +02:00
kai-morich
a1e58b9843 implement CP21xx input control lines
open() CP21xx without RTS, DTR set
v2.3.0
2020-07-04 15:31:58 +02:00
kai-morich
7423fd9d79 new getControlLines() and getSupportedControLines() methods
getControlLines() requires less USB calls than calling getRTS() + ... + getRI() individually.
getSupportedControlLines() tells you, which control lines are supported by a driver. Previously you had to check the driver implementation.
2020-06-30 18:10:02 +02:00
kai-morich
13df128226 implement CH34x input control lines 2020-06-27 11:53:12 +02:00
kai-morich
06d1041738 added CH341A support 2020-06-27 08:46:23 +02:00
rusefi
aee7fc1b9d ST CDC
See https://www.the-sz.com/products/usbid/index.php?v=0483&p=&n=
2020-06-24 20:38:52 -04:00
kai-morich
3e7fd9a748 add vectorDrawables.useSupportLibrary=true to sample app 2020-06-11 13:15:00 +02:00
kai-morich
735fa3d70f make all SerialPort classes public
and test FtdiSerialPort methods
v2.2.3
2020-06-10 19:09:34 +02:00
kai-morich
33149b66fd
Merge pull request #281 from bensadiku/master
Expose a isOpen method to check on the current state of the connection
2020-05-19 21:10:08 +02:00
Behxhet Sadiku
37324c6b0f Expose isOpen on CommonUsbSerialPort 2020-05-19 20:50:42 +02:00
kai-morich
ca78840144 example app with event-based or direct read 2020-04-08 22:21:26 +02:00
kai-morich
2354f93354 modernize example app 2020-03-29 16:56:26 +02:00
kai-morich
cffe54e15c test control lines 2020-03-21 18:01:05 +01:00
Kai Morich
5096d6940c relax CH340 initialization
controlIn(0x95, 0x0706) result includes control line values
2020-03-08 16:06:44 +01:00
kai-morich
2cad1fd5a2 fix CP2102N initialization
do not send SET_BAUDDIV command. It fails on CP2102N and CP2102/5 work without
v2.2.2
2020-03-01 13:54:35 +01:00
kai-morich
17c3d40605 align device_filter.xml with devices recognized by DefaultProber 2020-02-29 19:15:14 +01:00
kai-morich
2a77ebf8b9 fix ch340 initialization v2.2.1 2020-02-03 20:36:56 +01:00
kai-morich
bbed92eafb support multi-port CDC devices v2.2.0 2020-01-10 08:02:56 +01:00
kai-morich
ce97a3408b reuse UsbRequest
less LogCat output
2019-12-13 21:13:48 +01:00
kai-morich
7b578918b0 support FTDI control lines for multi-port devices 2019-11-23 13:24:28 +01:00
uholeschak
6b32e25e9c Fixed modem status
Signed-off-by: kai-morich <mail@kai-morich.de>
2019-11-23 13:23:10 +01:00
uholeschak
21e96594d2 Added missing functions: - latency timer - modem lines
Signed-off-by: kai-morich <mail@kai-morich.de>
2019-11-23 13:22:42 +01:00
kai-morich
a954db1b94 readme with sync + async read 2019-11-16 00:09:41 +01:00
kai-morich
6d3ed12ca8
Create build.yml 2019-11-15 23:57:39 +01:00
kai-morich
e2e9df8463 reimplement read timeout v2.1.0 2019-11-15 21:45:22 +01:00
kai-morich
669ab48e0f resolve merge issue 2019-11-15 07:51:03 +01:00
kai-morich
8c559ef892
Merge pull request #240 from tva-TIS/master
DTR and RTS support for CP21xx drivers
2019-11-14 19:40:45 +01:00
Tim Vahlbrock
89ad5be9c3 Improved DTR and RTS support. DTR and RTS can now be queried after transmission. Added usage of existing methods and new constants. 2019-11-14 14:44:39 +01:00
Tim Vahlbrock
92b16a8c24 Merge branch 'master' of https://github.com/mik3y/usb-serial-for-android 2019-11-14 14:15:39 +01:00
kai-morich
fd2055791a added proguard rules
now they are part of the .aar library, before you had to add them to each release app
2019-11-13 18:49:27 +01:00
kai-morich
24187b3af6 refactor duplicated code in close method 2019-11-09 22:48:00 +01:00
kai-morich
5767298636 refactor duplicated read/write methods 2019-11-09 20:26:50 +01:00
kai-morich
e1b62cf675 write + purge tests, remove unused read buffer code 2019-11-03 19:34:14 +01:00
kai-morich
5c6748e1b8 improve setParameter() error handling
harmonize exception messages, more UI friendly messages
distinguish IllegalArgumentException and UnsupportedOperationException
2019-11-02 13:49:08 +01:00
kai-morich
18b5b6e648 unify open() error handling, more tests, minor cleanup 2019-11-02 13:09:15 +01:00
kai-morich
6869eff88a revert previous usbRequest.cancel() removal
Combine usbRequest.cancel() and releaseInterface to interrupt read() and terminate SerialInputOutputManager.
UsbRequest.cancel() immediately interrupts read() on newer Android versions.
With releaseInterface() only, some hickup are observed on fast reconnect.
Keep releaseInterface() as only this interrupts read() on older Androids.
2019-11-02 12:46:45 +01:00