zoukankan      html  css  js  c++  java
  • 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了,可以发送数据了。
  • 相关阅读:
    python re正则表达式
    python logging模块
    python configparse模块&xml模块
    013 内置函数68个
    day011 迭代器闭包
    09 函数初识
    08 文件操作
    07 list和dict for循环遍历索引问题以及深浅拷贝
    05 字典
    04 基本数据类型(list, tuple)
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/8027442.html
Copyright © 2011-2022 走看看