DA14580

Controlling Tx Power for Advertising packets

Thu, 2016-02-25 11:42--ankitdaf

Hi

Is there any more documentation available for GAP_AD_TYPE_TRANSMIT_POWER ?
In particular I want to control how much power is used for advertising. What is the default advertising power, and how can we change it ?

I want the DA14580 radio to advertise over a short range. I understand that we can get an indicator of the power levels if we scan. Can we control how much power we advertise with?

DA14580定向广播不可用

Thu, 2016-02-25 11:13--shenglitao

亲爱的对话框
在SDK5.0版本中调用app_easy_gap_directed_advertise_start方法不能进行定向广播,查看电流情况发现先广播了3秒钟然后就睡眠下去了
/**
****************************************************************************************
* @brief Create advertising message for directed connection.
* @return gapm_start_advertise_cmd Pointer to the advertising message
****************************************************************************************
*/
static struct gapm_start_advertise_cmd* app_easy_gap_directed_advertise_start_create_msg(void)
{

按键唤醒

Wed, 2016-02-24 16:24--awesley

我用DA14580做一个项目,需要实现这样的功能:
1、如果DA14580在睡眠状态,按键长按2s,蓝牙广播;如果DA14580在广播状态,按键A长按2s,系统睡眠。

int app_wakeup_handler(ke_msg_id_t const msgid,
void *param,
ke_task_id_t const dest_id,
ke_task_id_t const src_id)
{

if(power_on_flag==1)
{
power_on_flag = 0;
app_timer_set(APP_LED_TIMER, TASK_APP, 10);
}
else
{
power_on_flag = 1;
app_timer_set(APP_LED_TIMER, TASK_APP, 10);

app_adv_start();

}
}

work in CFG_EXT_SLEEP ble_deep_sleep_stat_getf

Wed, 2016-02-24 08:11--Stone_wang

sdk:3.0.6

In the da14580.h file , I #define CFG_EXT_SLEEP,
but the program stop at
/************************************************************************
************** SWITCH OFF RF **************
************************************************************************/
rwip_rf.sleep();

while(!ble_deep_sleep_stat_getf()); // stop at here ,

UART receive Interrupt

Wed, 2016-02-24 07:41--Stone_wang

SDK: 3.0.6
Here is my code:
The uart is runs OK(can receive data and send data ).
Q1:Is the UART_TIMEOUT interrupt means UART IDLE ?
Q2: How to receive a UART_TIMEOUT Interrupt ?(idd = 12? )
Q3:Should I clean the interrupt flag use :NVIC_ClearPendingIRQ(UART_IRQn) ?

in the UART_Handler(),the idd still equal to 0x04 (means RECEIVED_AVAILABLE = 4 )

Pages

Subscribe to RSS - DA14580