导航

    Freqchip开发者论坛

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

    nicholas_cage 发布的帖子

    • 主机连接不上从机

      1.使用 SDK 中的协议栈函数 gap_start_conn(&mac_addr,0,6, 6, 0, 400) 函数无法连接上制定 MAC 地址的从机。

      1. gap_start_conn 函数没有返回值,调用该函数也没有报错 和 LOG 信息输出,如何找出 连接不上从机的原因。
      发布在 FR801xH
      N
      nicholas_cage
    • RE: MDK5 JLINK仿真Reset之后无法全速运行

      我这里也是,使用 JLINK 可以正常的去下载代码,但是 使用 DEBUG 仿真 就跑不起来。

      • JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
      • JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
        **JLink Warning: CPU could not be halted
        ***JLink Error: Can not read register 15 (R15) while CPU is running
        ***JLink Error: Can not read register 16 (XPSR) while CPU is running
        ***JLink Error: Can not read register 0 (R0) while CPU is running
        ***JLink Error: Can not read register 1 (R1) while CPU is running
        ***JLink Error: Can not read register 2 (R2) while CPU is running
        ***JLink Error: Can not read register 3 (R3) while CPU is running
        ***JLink Error: Can not read register 4 (R4) while CPU is running
        ***JLink Error: Can not read register 5 (R5) while CPU is running
        ***JLink Error: Can not read register 6 (R6) while CPU is running
      发布在 FR801xH
      N
      nicholas_cage
    • RE: 有没有1主多从的蓝牙方案推荐?

      @thegavin 在 有没有1主多从的蓝牙方案推荐? 中说:

      ,最多5个TX间组

      蓝牙里的RSSI信号强度值,无法准确反映Tx Rx的 距离。

      发布在 FR801xH
      N
      nicholas_cage
    • RE: FR801xH-SDK\examples\none_evm\ble_AT的SDK烧录后,蓝牙搜索显示的是蓝牙鼠标设备,在哪位置可以修改蓝牙设备类型?
      • 需要自己去修改广播内容,修改服务uuid 那一项。

      • 因为在广播包中有个字段声明了自己是 HID 设备,所以手机扫描到后是键鼠的图标。

      • 代码如下

      void at_init_advertising_parameter(void)
      {

      uint8_t *pos;
      uint8_t adv_data[0x1C];
      uint8_t adv_data_len = 0;
      
      pos = &adv_data[0];
      uint8_t manufacturer_value[] = {0x00,0x00};
      *pos++ = sizeof(manufacturer_value) + 1;
      *pos++  = '\xff';
      memcpy(pos, manufacturer_value, sizeof(manufacturer_value));
      pos += sizeof(manufacturer_value);
      
      uint16_t uuid_value = 0xFF03  ;  // 将 HID_SERV_UUID 改成你想设置的 任意 2字节 UUID
      *pos++ = sizeof(uuid_value) + 1;
      *pos++  = '\x03';
      memcpy(pos, (uint8_t *)&uuid_value, sizeof(uuid_value));
      pos += sizeof(uuid_value);
      adv_data_len = ((uint32_t)pos - (uint32_t)(&adv_data[0]));
      
      gap_adv_param_t adv_param;
      adv_param.adv_mode = GAP_ADV_MODE_UNDIRECT;
      adv_param.adv_addr_type = GAP_ADDR_TYPE_PUBLIC;
      adv_param.adv_chnl_map = GAP_ADV_CHAN_ALL;
      adv_param.adv_filt_policy = GAP_ADV_ALLOW_SCAN_ANY_CON_ANY;
      adv_param.adv_intv_min = adv_int_arr[gAT_buff_env.default_info.adv_int];
      adv_param.adv_intv_max = adv_int_arr[gAT_buff_env.default_info.adv_int];
      gap_set_advertising_param(&adv_param);
      gAT_ctrl_env.curr_adv_int = adv_param.adv_intv_min;
      
      gap_set_advertising_data(adv_data,adv_data_len);
      at_init_adv_rsp_parameter();
      

      }

      发布在 FR801xH
      N
      nicholas_cage
    • RE: ota

      SDK中实现了 OTA profile,但是对应 主机 APP 需要自己去开发吗?是否有官方的 APP可以使用

      发布在 FR801xH
      N
      nicholas_cage