Android USB通信源码/DEMO

上传者: lxt1292352578 | 上传时间: 2024-01-15 11:15:03 | 文件大小: 2.18MB | 文件类型: RAR
Android USB通信源码/DEMO 说明:https://blog.csdn.net/lxt1292352578/article/details/131976810 github:https://github.com/LXTTTTTT/USBtoSerialPortDemo 连接流程: 获取当前系统可用的 USB 设备列表 → 选中对应的USB设备并申请权限(首次)→ 获取设备端口(通常只有一个)→ 按照特定参数打开端口

文件下载

资源详情

[{"title":"( 61 个子文件 2.18MB ) Android USB通信源码/DEMO","children":[{"title":"gradle.properties <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 57.82KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 236B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"app","children":[{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"usbToSerialPort","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 768B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"usbToSerialPort","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 388B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"usbToSerialPort","children":[{"title":"USBTransferUtil.java <span style='color:#111;'> 13.12KB </span>","children":null,"spread":false},{"title":"USBSerial","children":[{"title":"driver","children":[{"title":"CdcAcmSerialDriver.java <span style='color:#111;'> 14.56KB </span>","children":null,"spread":false},{"title":"Ch34xSerialDriver.java <span style='color:#111;'> 13.11KB </span>","children":null,"spread":false},{"title":"FtdiSerialDriver.java <span style='color:#111;'> 18.76KB </span>","children":null,"spread":false},{"title":"UsbSerialDriver.java <span style='color:#111;'> 949B </span>","children":null,"spread":false},{"title":"ProlificSerialDriver.java <span style='color:#111;'> 24.13KB </span>","children":null,"spread":false},{"title":"CommonUsbSerialPort.java <span style='color:#111;'> 11.94KB </span>","children":null,"spread":false},{"title":"UsbSerialProber.java <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"GsmModemSerialDriver.java <span style='color:#111;'> 3.42KB </span>","children":null,"spread":false},{"title":"ProbeTable.java <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"ChromeCcdSerialDriver.java <span style='color:#111;'> 3.15KB </span>","children":null,"spread":false},{"title":"Cp21xxSerialDriver.java <span style='color:#111;'> 12.26KB </span>","children":null,"spread":false},{"title":"UsbId.java <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"SerialTimeoutException.java <span style='color:#111;'> 421B </span>","children":null,"spread":false},{"title":"UsbSerialPort.java <span style='color:#111;'> 9.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"SerialInputOutputManager.java <span style='color:#111;'> 7.68KB </span>","children":null,"spread":false},{"title":"UsbUtils.java <span style='color:#111;'> 961B </span>","children":null,"spread":false},{"title":"HexDump.java <span style='color:#111;'> 4.56KB </span>","children":null,"spread":false},{"title":"MonotonicClock.java <span style='color:#111;'> 271B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"MainActivity.java <span style='color:#111;'> 2.25KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"res","children":[{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher_round.webp <span style='color:#111;'> 5.78KB </span>","children":null,"spread":false},{"title":"ic_launcher.webp <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher_round.webp <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"ic_launcher.webp <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"ic_launcher_round.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":true},{"title":"values-night","children":[{"title":"themes.xml <span style='color:#111;'> 837B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher_round.webp <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"ic_launcher.webp <span style='color:#111;'> 982B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher_round.webp <span style='color:#111;'> 7.60KB </span>","children":null,"spread":false},{"title":"ic_launcher.webp <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher_round.webp <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false},{"title":"ic_launcher.webp <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false}],"spread":false},{"title":"xml","children":[{"title":"data_extraction_rules.xml <span style='color:#111;'> 551B </span>","children":null,"spread":false},{"title":"device_filter.xml <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"backup_rules.xml <span style='color:#111;'> 478B </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 79B </span>","children":null,"spread":false},{"title":"themes.xml <span style='color:#111;'> 833B </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false},{"title":"usb_icon.png <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"proguard-rules.pro <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"libs","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"release","children":[{"title":"output-metadata.json <span style='color:#111;'> 348B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 6B </span>","children":null,"spread":false}],"spread":true},{"title":"gradlew.bat <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"USBToSerialPort.apk <span style='color:#111;'> 2.68MB </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 621B </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 54B </span>","children":null,"spread":false},{"title":"local.properties <span style='color:#111;'> 451B </span>","children":null,"spread":false},{"title":"build","children":[{"title":"intermediates","children":[{"title":"lint-cache","children":[{"title":"sdk-registry.xml","children":[{"title":"sdk-registry.xml <span style='color:#111;'> 27.59KB </span>","children":null,"spread":false}],"spread":true},{"title":"maven.google","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"gradlew <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 225B </span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明