Giter VIP home page Giter VIP logo

Comments (6)

zerosensei avatar zerosensei commented on August 21, 2024 1

Hi chegewara,
the CTE Info field is reserved in AUX_ADV_IND:
image
you can see the CTE Info is present in AUX_SYNC_IND:
image
Here is an example of CTE configuration:

uint8_t  cte_enable = TRUE;
uint8_t  cte_type = GAP_CTE_TYPE_AOD_2US;
uint8_t  cte_length = 10;
uint8_t  switch_pattern = 4;

GAP_SetParamValue( TGAP_CTE_TYPE,cte_type );
GAP_SetParamValue( TGAP_CTE_LENGTH,cte_length );
GAP_SetParamValue( TGAP_LENGTH_OF_SWITCHING_PATTERN,switch_pattern );
GAPRole_SetParameter(GAPROLE_CTE_CONNECTIONLESS_ENABLED, sizeof(uint8_t), &cte_enable); 

However, the current version of the CH582 chip has a problem with this function, and it will be solved in the next chip version.

from ch583.

chegewara avatar chegewara commented on August 21, 2024

In theory it is enabled, because i can see proper event:

CH58x_BLE_LIB_V1.80
Initialized..    
Advertising..    
periodic enable..
CTE: GAPROLE_CONNECTIONLESS_CTE_ENABLE

but in practice it seems to be disabled, or WCH ble analyzer pro cant detect it:
cte_flags

Flags is 0x69 and should be 0x6D to indicate CTEInfo data existing in payload.
cte

from ch583.

chegewara avatar chegewara commented on August 21, 2024

I found the same information in bluetooth specs after doing more research.
In my code i am only missing this line

GAP_SetParamValue( TGAP_LENGTH_OF_SWITCHING_PATTERN,switch_pattern );

Now i am trying to figure out why i cant catch AUX_SYNC_IND packets with ble analyzer pro.
I cant wait to get new ch582 or ch583 and to play a bit more with BLE5.x.

Thanks for help

from ch583.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.