导航

    Freqchip开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    1. 主页
    2. Mars
    3. 最佳
    M
    • 继续与 Mars 聊天
    • 开始与 Mars 的新会话
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 主题
    • 帖子
    • 最佳
    • 群组

    Mars 发布的最佳帖子

    • RE: FR8016HA加密配对相关问题

      /从机端*********/
      从机的配对机制
      #if 0
      // 配置为绑定时需要PIN码
      gap_security_param_t param =
      {
      .mitm = true, // use PIN code during bonding
      .ble_secure_conn = true, //not enable security encryption
      .io_cap = GAP_IO_CAP_DISPLAY_ONLY, //ble device has output ability, will show pin code.
      .pair_init_mode = GAP_PAIRING_MODE_WAIT_FOR_REQ,//need bond
      .bond_auth = true, //need bond auth
      .password = 12345, //set PIN code, it is a dec num between 100000 ~ 999999
      };
      #endif

      #if 1
      //配置为不需要PIN码
      gap_security_param_t param =
      {
      .mitm = false, // use PIN code during bonding
      .ble_secure_conn = false, //not enable security encryption
      .io_cap = GAP_IO_CAP_DISPLAY_ONLY, //ble device has output ability, will show pin code.
      .pair_init_mode = GAP_PAIRING_MODE_WAIT_FOR_REQ, //need bond
      .bond_auth = true, //need bond auth
      .password = 0, //set PIN code, it is a dec num between 100000 ~ 999999
      };
      #endif
      //initialize bonding configuration
      gap_security_param_init(&param);
      //*****************************************************//

      /主机端*********/
      需要在 app_gap_evt_cb(gap_event_t *p_event)里面
      加入
      case GAP_SEC_EVT_BOND_FAIL: //!< Link bond is failed
      co_printf("GAP_SEC_EVT_BOND_FAIL:0x%02x\r\n",GAP_SEC_EVT_BOND_FAIL);
      break;
      case GAP_SEC_EVT_BOND_SUCCESS: //!< Link bond is successful
      co_printf("GAP_SEC_EVT_BOND_SUCCESS:0x%02x\r\n",GAP_SEC_EVT_BOND_SUCCESS);
      break;
      case GAP_SEC_EVT_PIN_CODE_REQ: //!< Link bond request pin code inpu
      gap_security_send_pairing_password(0,12345);
      co_printf("GAP_SEC_EVT_PIN_CODE_REQ:0x%02x\r\n",GAP_SEC_EVT_PIN_CODE_REQ);
      break;

      发布在 FR801xH
      M
      Mars
    • 富芮坤芯片串口下载最新工具

      Freqchip
      https://www.alipan.com/s/8myyqUdWKdL
      提取码: 35tl
      点击链接保存,或者复制本段内容,打开「阿里云盘」APP ,无需下载极速在线查看,视频原画倍速播放。

      发布在 FR801xH
      M
      Mars
    • RE: FR8010H_Download_Tool.exe 所需的KEY文件怎么生成?

      不需要,你可以在官网下载最新版本的FR8000的代码 里面有最新版本的烧录工具

      发布在 FR801xH
      M
      Mars