导航

    Freqchip开发者论坛

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

    Widdel 发布的帖子

    • RE: 能否提供一下WS2812B的程序实例?

      Hi, did you get the leds to work? Can you also include the SET_LOW() and SET_HIGH() functions?
      I think the #include file "ws2812B.h" only has the extern declaration of the functions, right?
      Can you share the complete example?
      Thank you

      发布在 FR801xH
      Widdel
    • AES encrypt function example

      Hi, can anyone explain me how to retrieve the result of the aes_encrypt function, please?

      I tryed to follow the example of the library, but i don't understand how to get the encrypted data from the handle function, thanks.

      The library is inside the SDK and its name is aes.h.

      typedef void (aes_func_result_cb) (uint8_t status, const uint8_t aes_res, uint32_t src_info);

      /*

      • FUNCTIONS
        */

      /*********************************************************************

      • @fn aes_encrypt
      • @brief Perform an AES encryption - result within callback
      •      Sample:
        
      •          const uint8_t key[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00};
        
      •          const uint8_t value[] = {0x11, 0x22, 0x33, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0xee, 0x0f, 0xaa};
        
      •          aes_encrypt(key, value, true, aes_enc_result_cb, 0);
        
      • @param key - Key used for the encryption
      •      val         - Value to encrypt using AES
        
      •      copy        - Copy parameters because source is destroyed
        
      •      res_cb      - Function that will handle the AES based result (16 bytes)
        
      •      src_info    - Information used retrieve requester
        
      • @return None.
        /
        void aes_encrypt(const uint8_t
        key, const uint8_t *val, bool copy, aes_func_result_cb res_cb, uint32_t src_info);
      发布在 FR801xH
      Widdel
    • Keil v5.38 how to setup it to compile the ble_simple_peripheral ?

      Hi at all,
      there is a guide step by step for how to configure keil to correct compite the ble_simple_peripheral?
      When i double click on the file "ble_simple_peripheral.uvproj", keil starts and display this form, i selected "Migrate to Device Pack", it's right?

      0_1683709516658_03d51d86-aa37-486c-93e3-96431434a487-image.png

      After this selection appear this window that i close because i don't know what to select, it's right?

      0_1683709672441_0deddb63-5ff5-4851-8eec-03015c90c462-image.png

      After that keil asked me if i want to migrato to use pack device, i selected Yes, it's right?

      0_1683709756146_50ffe8c5-2c6c-4230-99e6-957332c9c245-image.png

      Here i selected this device, it's right?

      0_1683709794390_c77b64f4-3c27-4aca-9946-3ece18f92806-image.png

      This window confirm the migration

      0_1683709850332_a3cc9068-cee8-41a0-8366-03474b261404-image.png

      Then when i try to compile there are a lot of errors

      0_1683710234561_eb412ccf-6ef7-40c6-81a2-e21d95a99be6-image.png

      I'm a beginner, please, can anyone help me?
      Thanks a lot

      发布在 FR801xH
      Widdel
    • BLE Encrypted communication

      Hi at all,
      I'm a new developer with this chip, i saw the "ble_simple_periphear" example in the "security encryption" for BLE, it's sufficient to setup the parameters like this to have an encrypted connection?

      I need to prevent sniffing to my information.

      gap_security_param_t gap_security_param={
      .mitm=false,
      .ble_secure_conn=true,
      .io_cap=GAP_IO_CAP_NO_INPUT_NO_OUTPUT,
      .pair_init_mode=GAP_PAIRING_MODE_WAIT_FOR_REQ,
      .bond_auth=true,
      .password=0,
      };/gap_security_param/

      I searched i other posts but i didn't find informations.

      Thanks to all

      发布在 FR801xH
      Widdel