SIM800C Couldn't pair with xxx because of an incorrect PIN or passkey
/******************************************************************************* * SIM800C Couldn't pair with xxx because of an incorrect PIN or passkey * 说明: * SIM800C蓝牙匹配不成功,设置为自动匹配蓝牙连接。 * * 2017-12-12 深圳 南山平山村 曾剑锋 ******************************************************************************/ 一、参考文档: 1. SIM800 series Bluetooth AT commands http://www.raviyp.com/embedded/215-sim800-series-bluetooth-at-commands 2. Bluetooth V2.1 SPP Terminal APK https://apkpure.com/bluetooth-v2-1-spp-terminal/com.ucconnect.ucbtadapter_hex 二、处理方法: 1. SIM800 will be set to authenticate with Random PIN-code and when a pairing request comes in, it is automatically acknowledged by SIM800 and we need not do anything accept the pairing request 2. AT+BTPAIRCFG=2 3. AT+BTPAIRCFG? 4. AT+BTPOWER=0 5. AT+BTPOWER=1 三、测试 1. AT+BTPOWER=1 2. 打开Bluetooth SPP; 3. 选择对应的蓝牙设备; 4. 点击Connect; 5. 看到+BTCONNECTING: "xxxxxxxxx","SPP"; 6. AT+BTACPT=1 7. 到这里就是连接OK了,可以发送数据了。
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 理解Rust引用及其生命周期标识(下)
· 从二进制到误差:逐行拆解C语言浮点运算中的4008175468544之谜
· .NET制作智能桌面机器人:结合BotSharp智能体框架开发语音交互
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
· C# 13 中的新增功能实操
· Ollama本地部署大模型总结
· 2025成都.NET开发者Connect圆满结束
· langchain0.3教程:从0到1打造一个智能聊天机器人
· 用一种新的分类方法梳理设计模式的脉络
2016-12-12 C# 集合已修改;可能无法执行枚举操作