微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > HidEmuKbd广播的问题

HidEmuKbd广播的问题

时间:10-02 整理:3721RD 点击:

uint8 initial_advertising_enable = FALSE;

// By setting this to zero, the device will go into the waiting state after
// being discoverable for 30.72 second, and will not being advertising again
// until the enabler is set back to TRUE
uint16 gapRole_AdvertOffTime = 0;

uint8 enable_update_request = DEFAULT_ENABLE_UPDATE_REQUEST;
uint16 desired_min_interval = DEFAULT_DESIRED_MIN_CONN_INTERVAL;
uint16 desired_max_interval = DEFAULT_DESIRED_MAX_CONN_INTERVAL;
uint16 desired_slave_latency = DEFAULT_DESIRED_SLAVE_LATENCY;
uint16 desired_conn_timeout = DEFAULT_DESIRED_CONN_TIMEOUT;

// Set the GAP Role Parameters
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable );
GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), &gapRole_AdvertOffTime );

从上面的代码看是否demo一直都不会广播?

你要把广播使能开了啊   initial_advertising_enable = TRUE

推荐下这个帖子里的广播参数设置: http://www.deyisupport.com/question_answer/wireless_connectivity/bluetooth/f/103/p/104136/278470.aspx

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top