AndroidSerialport:Android 串口通讯,基于android_serialport_api google开源的,简化代码

上传者: 42120550 | 上传时间: 2024-09-06 15:10:14 | 文件大小: 132KB | 文件类型: ZIP
AndroidSerialport Android 串口通讯,基于android_serialport_api google开源的,简化代码 项目中只使用到SerialPort类和3个so文件 public static SerialPort getSerialPort() throws SecurityException, IOException, InvalidParameterException { if (mSerialPort == null) { //串口文件和波特率 mSerialPort = new SerialPort(new File("/dev/ttyS2"), 19200, 0); } return mSerialPort;

文件下载

资源详情

[{"title":"( 56 个子文件 132KB ) AndroidSerialport:Android 串口通讯,基于android_serialport_api google开源的,简化代码","children":[{"title":"AndroidSerialport-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":"serialport","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"port","children":[{"title":"serialport","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 397B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"port","children":[{"title":"serialport","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 747B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 73B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"port","children":[{"title":"serialport","children":[{"title":"thread","children":[{"title":"SendService.java <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"ReadSerialportThread.java <span style='color:#111;'> 4.19KB </span>","children":null,"spread":false}],"spread":false},{"title":"conf","children":[{"title":"Constants.java <span style='color:#111;'> 154B </span>","children":null,"spread":false}],"spread":false},{"title":"base","children":[{"title":"SerialportApplication.java <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false}],"spread":false},{"title":"factory","children":[{"title":"ThreadPoolProxy.java <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"ThreadPoolProxyFactory.java <span style='color:#111;'> 435B </span>","children":null,"spread":false}],"spread":false},{"title":"utils","children":[{"title":"IoUtils.java <span style='color:#111;'> 483B </span>","children":null,"spread":false},{"title":"SerialPortSendUtil.java <span style='color:#111;'> 616B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"android_serialport_api","children":[{"title":"SerialPort.java <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 395B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 980B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"armeabi-v7a","children":[{"title":"libserial_port.so <span style='color:#111;'> 11.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"armeabi","children":[{"title":"libserial_port.so <span style='color:#111;'> 11.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"x86","children":[{"title":"libserial_port.so <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 670B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"port","children":[{"title":"androidserialport","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 404B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"port","children":[{"title":"androidserialport","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 756B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 208B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 80B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 553B </span>","children":null,"spread":false},{"title":"activity_base.xml <span style='color:#111;'> 604B </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"port","children":[{"title":"androidserialport","children":[{"title":"MainActivity.java <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"BaseActivity.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 738B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 909B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 233B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"gradle.xml <span style='color:#111;'> 682B </span>","children":null,"spread":false},{"title":"runConfigurations.xml <span style='color:#111;'> 564B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 219B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 496B </span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'> 159B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 118B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.72KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 30B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 498B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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