about the advertise as beacon with SDK5.0

18 posts / 0 new
Last post
liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
about the advertise as beacon with SDK5.0

Hi Dialog,

I am trying to make the adverstiement like beacon application for the other Bluetooth device can listen on the air, the issue that I following the guy of the link from your website, but still can not catch the packet for the broadcasting from other bluetooth device by scanning the broadcasting package. Could you please help?

Reference for what I did the same as the following:
http://support.dialog-semiconductor.com/advertisement-complete-callback-...

2 - 选项(适当的一个)是通过CATCH REST功能(User_Catch_Rest_hndl)捕获非可连接广告的结束。您可以将以下代码放在user_peripher.cl函数中:

case GAPM_CMP_EVT:
{
struct gapm_cmp_evt const * msg_param =(结构gapm_cmp_evt const *)(param);
switch (msg_param->operation)
{
案例GAPM_ADV_NON_CONN:
user_app_adv_start(); //or whatever you want after completetion
休息;

default:
休息;
} break;
}

设备:
MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

You can go to the gapm_cmp_evt_handler() and check with a break point if the callback function of the catch rest function is invoked. If it is invoked check in the switch statement if the correct case is executed. You can always use the first option as well for debugging purposes to check if the GAPM_ADV_NON_CONN is triggered.

Thanks MT_dialog

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
感谢你的回复。

感谢你的回复。However I am debugging on your code, however it stops in GLOBAL_INT_STOP(); in the arch_main.c when i run F10 Step over

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
Dear MT_dialog,

Dear MT_dialog,

我正在尝试从da1458x_sdk \ 5.0.3 \ projects \ target_apps \ ble_examples \ ble_app_peripheral运行代码,但我不能从其他蓝牙设备捕获广播包。此设备可以从其他蓝牙信标包中获取包。您能帮我请帮助我运行一些基于BLE_APP_PERITERAL运行的一些信标广播包吗?

MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

在您提到的帖子中指示的代码只是为了捕获不可连接的广告的结束(设备是广告,您发出的停止导致广告停止,并且您将指示您的设备停止的应用程序的迹象广告)。你是什​​么意思你不能从另一个设备捕获广告包?为了从其他设备获取BLE包,您必须成为扫描仪,以便从其他外设的SNIF广告包。

Thanks MT_dialog

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
我正在使用蓝牙扫描仪

我正在使用基于Microchip RN4020的蓝牙扫描仪赶上所有广播包的所有广告包。我可以通过Microchip RN4020扫描从其他设计中看到其他信标包,但我无法看到来自DA14580的包。

From my code I have just added the following changes to the project of DA1458x_SDK\5.0.3\projects\target_apps\ble_examples\ble_app_peripheral

2 - 选项(适当的一个)是通过CATCH REST功能(User_Catch_Rest_hndl)捕获非可连接广告的结束。您可以将以下代码放在user_peripher.cl函数中:

case GAPM_CMP_EVT:
{
struct gapm_cmp_evt const * msg_param =(结构gapm_cmp_evt const *)(param);
switch (msg_param->operation)
{
案例GAPM_ADV_NON_CONN:
user_app_adv_start(); //or whatever you want after completetion
休息;

default:
休息;
} break;
}

MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

Since you dont see any advertising, and you dont get the indication that your advertising has stopped, can you please make sure that your device is advertising by using the smart snippets tool or just to make sure try an android BLE application?

Thanks MT_dialog

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
Hi I can see the

Hi I can see the advertisement package from the phone, but I can not use the scanner from Mircochip to scan it. But with the same tool it can scan the package from the Ibeacon example running in the same device. Could you help please? Do I need to change the code from undirected broadcasting to the non-connected broadcasting? How I can make it?

MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

我不知道扫描仪检测到什么样的数据包。如果要以不可连接的模式宣传,可以通过使用SDK的模板项目中的App_easy_gap_non_connectable_advertise_start()函数来进行此操作。

Thanks MT_dialog

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
我已经试过了,但仍然没有

我已经试过了,但仍然没有so much difference. Is the broadcasting method and behavior differece a lot from the beacon example and example of DA1458x_SDK\5.0.3\projects\target_apps\ble_examples\ble_app_peripheral?

MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

灯塔穰mple uses two different advertising modes (depends on the software configuration - GAPM_ADV_NON_CONN and GAPM_ADV_UNDIRECT) and the device's role is set in GAP_PERIPHERAL_SLV the PDU type is ADV_NONCONN_IND. Also the beacon advertises with no scan response data. The app_peripheral as is advertises with GAPM_ADV_UNDIRECTED in GAP_PERIPHERAL_SLV with scan response data and the PDU type is using is ADV_IND.

Thanks MT_dialog

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
Thank you for your reply, I

Thank you for your reply, I try to check it now.
For the scanning, is there any possibility we only listen to one channel, for example we only scanning for the channel 37?

MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

只有只检查各个广告频道或检索特定的广告频道号码。

Thanks MT_dialog

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
谢谢它现在工作。

谢谢它现在工作。

花药问题是关于看门狗
For the project "ble_app_barebone", I have changed the watchdog from "#undef CFG_WDOG" into "#define CFG_WDOG" in the "da1458x_config_basic.h". Then I write the following code into "app_task.c", then I find after it running for a while, the program stops, how to fix this? It looks like the watchdog is not running. Could you please help? Thank you very much again.

//设备配置更新
CASE GAPM_SET_DEV_CONFIG:
{
if(param->status != GAP_ERR_NO_ERROR)
{
ASSERT_ERR(0); // unexpected error
}
else
{
if(7 == current_role)
{
#if DEBUG_LOG
printf_string("\r\n Adv1\r\n");
uart2_init(UART_BAUDRATE_115K2, 3);
#endif
而(1)
{
#if DEBUG_LOG
printf_string(“\ r \ n wd t”);
if (USE_WDOG)
{
printf_string(“1”);
wdg_reload(watchdog_default_period);
wdg_resume ();
}
if (DEVELOPMENT_DEBUG)
{
printf_string(" 2");
}
printf_string(" \r\n");
uart2_init(UART_BAUDRATE_115K2, 3);
#endif
}
record2(current_role);
EXECUTE_CALLBACK_VOID(app_on_set_dev_config_complete);
}
else
{
#if DEBUG_LOG
printf_string("\r\n Adv2\r\n");
uart2_init(UART_BAUDRATE_115K2, 3);

#endif
record2(current_role);
}
ke_timer_set(APP_SWITCH_ROLE_TIMER, TASK_APP, 10); //10*10ms
}
}
休息;

MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

我真的不明白你想要做什么。据我所知,该计划不会宣传,但它会陷入其中(1)并且将始终重新加载看门狗并打印一些东西。如果程序因NMI_Handler()(意味着看门狗中断)停止,那么您可以通过打开内存选项卡和检查地址0x81850检查NMI中断,在内存窗口中的第七个无符号长整数号是您的程序计数器。您可以查看此操作以便查看程序停止的位置。

Thanks MT_dialog

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
谢谢你。I make it works

谢谢你。我现在做了它

liuluan002
Offline
Last seen:5 months 2 weeks ago
加入:2015-11-27 14:24
Is there any way to do the

Is there any way to do the software update through the UART port? How to do it?
通过编程,是否有办法在两个对话框中进行两种对话框之间的OTA?
Is there any way we still use the part of the dialog 14583's inside flash as the sensor data logging?

MT_dialog
Offline
Last seen:2个月6天前
Staff
加入:2015-06-08 11:34
嗨Liuluan002,

嗨Liuluan002,

当前的型话实现使用SPI Flash或I2C EEPROM,没有其他用例的其他实现。

你的意思是一个DA为Suota接收器,另一个DA作为中央操作并更新第一DA的图像?由于大多数Spota中央通常是手机或其他允许图像的其他设备,因此没有实施Suota配置文件。

You can use the da's flash to store data besides the image that's going to be uploaded to the da. The beacon example uses space of the spi memory to store some configuration data, i dont see any reason why not to be able to do this with 14583.

Thanks MT_dialog