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了,可以发送数据了。
复制代码

 

posted on   zengjf  阅读(556)  评论(0编辑  收藏  举报

编辑推荐:
· 理解Rust引用及其生命周期标识(下)
· 从二进制到误差:逐行拆解C语言浮点运算中的4008175468544之谜
· .NET制作智能桌面机器人:结合BotSharp智能体框架开发语音交互
· 软件产品开发中常见的10个问题及处理方法
· .NET 原生驾驭 AI 新基建实战系列:向量数据库的应用与畅想
阅读排行:
· C# 13 中的新增功能实操
· Ollama本地部署大模型总结
· 2025成都.NET开发者Connect圆满结束
· langchain0.3教程:从0到1打造一个智能聊天机器人
· 用一种新的分类方法梳理设计模式的脉络
历史上的今天:
2016-12-12 C# 集合已修改;可能无法执行枚举操作

导航

统计

点击右上角即可分享
微信分享提示