用于TENS的蓝牙APP:多线程+众多+蓝牙+实时曲线显示-源码

上传者: 42163404 | 上传时间: 2021-06-28 11:51:53 | 文件大小: 2.9MB | 文件类型: ZIP
TENS的蓝牙APP BuleTooth APP是2019年开发的项目,项目的初衷是用于与同蓝牙串口进行通信交互,并根据通信数据内容进行不同的处理。该项目的开发是在Android Studio上完成的,发现的朋友们可以在上面继续进行改进。APP由两个活动组成,主界面是作为通信交互接口以及同步显示,第二界面是作为连接界面,主要负责获取本地和主控板的设备信息并连接。 * 大意 从数据流的角度分析,主要是实现两个方面的功能,一个是处理接收数据信息和指令反馈,一个是发送控制指令和数据信息。 *线程之间的通信 考虑到安卓蓝牙的套接字API接口采用的是双式的传输和接收方式,因此,在设计的时候为了保证主线程界面不会出现卡死的状况,需要在设计的时候采用多个线程进行管理。同时,为了方便后续资源释放,本系统将蓝牙通信的连接线程,接收和发送线程以及释放线程打包在一个消息服务类中,通过主线程新建蓝牙通信类,可以

文件下载

资源详情

[{"title":"( 45 个子文件 2.9MB ) 用于TENS的蓝牙APP:多线程+众多+蓝牙+实时曲线显示-源码","children":[{"title":"Bluetooth-APP-for-TENS-main","children":[{"title":"README.md <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"bluetooth-new","children":[{"title":"app","children":[{"title":"build.gradle <span style='color:#111;'> 765B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"androidTest","children":[{"title":"java","children":[{"title":"tw","children":[{"title":"com","children":[{"title":"flag","children":[{"title":"TENS_bluetooth","children":[{"title":"ApplicationTest.java <span style='color:#111;'> 369B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"AndroidManifest.xml <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"device_list.xml <span style='color:#111;'> 3.45KB </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 9.33KB </span>","children":null,"spread":false},{"title":"list_item.xml <span style='color:#111;'> 323B </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 364B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 11.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":[{"title":"main_menu.xml <span style='color:#111;'> 525B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"app_logo.png <span style='color:#111;'> 182.81KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 11.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 10.24KB </span>","children":null,"spread":false},{"title":"Thumbs.db <span style='color:#111;'> 14.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 286B </span>","children":null,"spread":false},{"title":"colors.xml <span style='color:#111;'> 214B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 216B </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 427B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"tw","children":[{"title":"com","children":[{"title":"flag","children":[{"title":"TENS_bluetooth","children":[{"title":"MainActivity.java <span style='color:#111;'> 26.71KB </span>","children":null,"spread":false},{"title":"MsgService.java <span style='color:#111;'> 9.89KB </span>","children":null,"spread":false},{"title":"WaveView.java <span style='color:#111;'> 3.23KB </span>","children":null,"spread":false},{"title":"mODE45.java <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"DeviceList.java <span style='color:#111;'> 5.40KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"test","children":[{"title":"java","children":[{"title":"tw","children":[{"title":"com","children":[{"title":"flag","children":[{"title":"TENS_bluetooth","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 333B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"build","children":[{"title":"outputs","children":[{"title":"apk","children":[{"title":"app-debug.apk <span style='color:#111;'> 1.76MB </span>","children":null,"spread":false},{"title":"app-debug-unaligned.apk <span style='color:#111;'> 1.76MB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"libs","children":[{"title":"FlagApi.jar <span style='color:#111;'> 32.25KB </span>","children":null,"spread":false}],"spread":true},{"title":"proguard-rules.pro <span style='color:#111;'> 662B </span>","children":null,"spread":false},{"title":"app.iml <span style='color:#111;'> 10.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"settings.gradle <span style='color:#111;'> 16B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 521B </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.85KB </span>","children":null,"spread":false},{"title":"gradlew.bat <span style='color:#111;'> 2.35KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 872B </span>","children":null,"spread":false},{"title":"bluetooth-new.iml <span style='color:#111;'> 944B </span>","children":null,"spread":false},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.properties <span style='color:#111;'> 231B </span>","children":null,"spread":false},{"title":"gradle-wrapper.jar <span style='color:#111;'> 52.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"local.properties <span style='color:#111;'> 428B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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