{"id":17637905,"url":"https://github.com/liangjfblue/autotestbluetooth","last_synced_at":"2025-05-06T11:43:37.920Z","repository":{"id":132708452,"uuid":"124051494","full_name":"liangjfblue/AutoTestBluetooth","owner":"liangjfblue","description":"自动重连蓝牙，首次设置好命令后，以后自动重连后自动发送输入框的命令。用于自动测试设备蓝牙的连接性能","archived":false,"fork":false,"pushed_at":"2018-04-19T03:03:13.000Z","size":32672,"stargazers_count":13,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-31T01:23:49.561Z","etag":null,"topics":["bluetooth","java"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liangjfblue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-06T09:09:11.000Z","updated_at":"2021-05-31T08:48:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3a88050-fdfa-40b8-b3a0-6ca9512f2044","html_url":"https://github.com/liangjfblue/AutoTestBluetooth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjfblue%2FAutoTestBluetooth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjfblue%2FAutoTestBluetooth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjfblue%2FAutoTestBluetooth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangjfblue%2FAutoTestBluetooth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liangjfblue","download_url":"https://codeload.github.com/liangjfblue/AutoTestBluetooth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252676703,"owners_count":21786990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bluetooth","java"],"created_at":"2024-10-23T03:06:53.696Z","updated_at":"2025-05-06T11:43:37.853Z","avatar_url":"https://github.com/liangjfblue.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 蓝牙连接自动测试工具\n\n### 1.需求产生\n开发不按着需求走都是耍流氓且浪费时间。此工具的需求产生是研发人员在开发产品时涉及到蓝牙驱动和安卓蓝牙两个东西。但是呢，蓝牙不太稳定，那么工作来了。就需要研发人员一边开发，一遍测试(用产品的安卓app一直按连接，产品设备重启，安卓app再连接蓝牙，再重启产品设备...........一直循环这个过程)，这个过程是无聊且没意义的。我们作为程序员肯定是要偷懒的啊。因此就有了此工具的诞生。\n\n### 2.功能介绍\n- 1.除首次手动连接所需设备蓝牙外，设备重启后能**自动重连**\n- 2.连接设备后，**自动发送命令**(这里主要测试蓝牙连接情况，所以是用到reboot命令。看你在输入框输入什么。注意发送是字符型的，**要在首次连接前10S内输入命令**)\n- 3.**自动统计连接失败次数**(超过尝试连接次数5次标为连接失败)\n- 4.连接失败+1时**震动提醒**\n\n这三个功能解放了我们的双手，开启软件设置好发送命令后，放在那测试就OK了。O(∩_∩)O哈哈~\n\n### 3.开发环境\n- 1.Linux + Android Studio\n- 2.Android API 26.0\n- 3.蓝牙2.0\n- 4.华为P10\n\n### 4.二次开发\n- 1.clone下来后，导入idea\n- 2.如果没有Android API 26.0，就自己下载\n\n版本更新\n- V1.1 断线自动重连。2.连接后自动发送输入框命令。3.连接失败+1时震动提醒\n- V1.2 修改需求，重连一直检测超过2分钟没有连接上就直接震动提醒退出程序\n- V1.3 功能与V1.1相同 修复重连多次发送命令的bug。修复异常后重新连接崩溃问题\n- V1.4 修复长时间自动重连后出现未连接情况，并且增加文件发送功能\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangjfblue%2Fautotestbluetooth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliangjfblue%2Fautotestbluetooth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangjfblue%2Fautotestbluetooth/lists"}