android串口通讯编程demo

上传者: qq503393230 | 上传时间: 2023-09-24 17:08:49 | 文件大小: 210KB | 文件类型: RAR
基于android-serialport-api的android串口通讯编程demo,实现对串口的打开读写操作,以及16进制命令的发送操作。使用的时候注意要修改串口的权限。

文件下载

资源详情

[{"title":"( 69 个子文件 210KB ) android串口通讯编程demo","children":[{"title":"MySerialTest","children":[{"title":".project <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 361B </span>","children":null,"spread":false},{"title":"proguard.cfg <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"org","children":[{"title":"winplus","children":[{"title":"serial","children":[{"title":"utils","children":[{"title":"SerialPort.java <span style='color:#111;'> 1.85KB </span>","children":null,"spread":false},{"title":"SerialPortFinder.java <span style='color:#111;'> 2.93KB </span>","children":null,"spread":false}],"spread":true},{"title":"SerialDemoActivity.java <span style='color:#111;'> 3.29KB </span>","children":null,"spread":false},{"title":"Application.java <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false},{"title":"SerialPortActivity.java <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"SerialPortSet.java <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 997B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.05KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"serialset.xml <span style='color:#111;'> 1024B </span>","children":null,"spread":false},{"title":"main.xml <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":null,"spread":false},{"title":"values","children":[{"title":"baudrates.xml <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 854B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 177B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":null,"spread":false},{"title":"jni","children":[{"title":"Application.mk <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":"SerialPort.h <span style='color:#111;'> 784B </span>","children":null,"spread":false},{"title":"SerialPort.c <span style='color:#111;'> 5.46KB </span>","children":null,"spread":false},{"title":"Android.mk <span style='color:#111;'> 211B </span>","children":null,"spread":false},{"title":"SerialDemo.cpp <span style='color:#111;'> 18B </span>","children":null,"spread":false}],"spread":true},{"title":".cproject <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"Android.mk <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"gen","children":[{"title":"org","children":[{"title":"winplus","children":[{"title":"serial","children":[{"title":"BuildConfig.java <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"armeabi-v7a","children":[{"title":"libserial_port.so <span style='color:#111;'> 13.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"x86","children":[{"title":"libserial_port.so <span style='color:#111;'> 9.10KB </span>","children":null,"spread":false}],"spread":false},{"title":"armeabi","children":[{"title":"libserial_port.so <span style='color:#111;'> 13.12KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"obj","children":[{"title":"local","children":[{"title":"armeabi-v7a","children":[{"title":"objs","children":[{"title":"serial_port","children":[{"title":"SerialPort.o <span style='color:#111;'> 32.27KB </span>","children":null,"spread":false},{"title":"SerialPort.o.d <span style='color:#111;'> 10.51KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"libserial_port.so <span style='color:#111;'> 59.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"x86","children":[{"title":"objs","children":[{"title":"serial_port","children":[{"title":"SerialPort.o <span style='color:#111;'> 32.72KB </span>","children":null,"spread":false},{"title":"SerialPort.o.d <span style='color:#111;'> 10.87KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"libserial_port.so <span style='color:#111;'> 33.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"armeabi","children":[{"title":"objs","children":[{"title":"serial_port","children":[{"title":"SerialPort.o <span style='color:#111;'> 32.66KB </span>","children":null,"spread":false},{"title":"SerialPort.o.d <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"libserial_port.so <span style='color:#111;'> 59.93KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"resources.ap_ <span style='color:#111;'> 13.54KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"org","children":[{"title":"winplus","children":[{"title":"serial","children":[{"title":"R$layout.class <span style='color:#111;'> 427B </span>","children":null,"spread":false},{"title":"SerialDemoActivity$4.class <span style='color:#111;'> 988B </span>","children":null,"spread":false},{"title":"R$array.class <span style='color:#111;'> 440B </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 345B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 407B </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"SerialPortFinder$Driver.class <span style='color:#111;'> 1.81KB </span>","children":null,"spread":false},{"title":"SerialPort.class <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"SerialPortFinder.class <span style='color:#111;'> 3.57KB </span>","children":null,"spread":false}],"spread":false},{"title":"R$attr.class <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"SerialDemoActivity.class <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"SerialDemoActivity$1.class <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"SerialPortSet.class <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"SerialDemoActivity$3.class <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"Application.class <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"SerialPortActivity.class <span style='color:#111;'> 3.49KB </span>","children":null,"spread":false},{"title":"SerialPortActivity$ReadThread.class <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 647B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 579B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 773B </span>","children":null,"spread":false},{"title":"SerialPortSet$1.class <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"SerialPortActivity$1.class <span style='color:#111;'> 905B </span>","children":null,"spread":false},{"title":"SerialDemoActivity$2.class <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 997B </span>","children":null,"spread":false},{"title":"SerialDemo.apk <span style='color:#111;'> 38.73KB </span>","children":null,"spread":false},{"title":"dexedLibs","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-ldpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 1.50KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"classes.dex <span style='color:#111;'> 15.31KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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