Thanks, is there an example how to do on the flight switching? We need to make scanning periodically while the device is a peripheral broadcasting. Obviously we can stop the advertising, but what are the proper steps to change the role temporarily.
There is no example in order to demonstrate that but the procedure is quite straighforword, you will have to issue a GAPM_RESET and then reconfigure your device as a central, and the same to configure it as a peripheral. You can have a look at the following posthttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...
一世want to develop da14580 ble obsever scaning advertising packets from da14580 . 1. In sdk, What is prox_monitor project's function? 我不能调试BLE堆栈吗?我想从广告商那里调试(查看)广告数据包。您可以告诉我吗?
非常感谢你! 一世am going to develop a pair proximity tag use with two da14580s. Thus, peripheral and observer. Peripheral device easily made by sdk example. But observer device was difficult, because there is no sample code in sdk. 我如下更改。 在DSPS的App_configuration_func()中,cmd->角色= gap_observer_sca 在app_scanning中,msg-> mode = gap_observer_mode和msg-> filter_duplic = scan_filt_duplic_dis
顺便说一下,通过对比为USB加密狗,GAPM_ADV_REPORT_IND_HANDLER()少于加密狗。 USB加密狗广播数据包中的示例每0.5s显示每0.5s,但在DSP观察者程序广播数据包(GapM_Adv_Report_ind_Handler调用时间)显示每2〜3次。 inorder才能通过我的程序作为USB加密狗,如何要做?如何更改观察者设备的扫描间隔? Execuse me, would you give me source code? If you will be difficult, I want to help me in detail.
亲爱的mt_dialog,纠正我,你会帮助我吗?我曾经使用过NRF51822,但DA14580高于NRF51822。我更兴趣DA14580,我已经开发了几个使用DA14580的蓝牙设备。 But da14580 source code which acts as observer certainly is needed to us.Help me! Thanks in advance.
亲爱的,山_dialog! You are open-minded and very kindly. I impressed greatly by your kindness! I want a deep bonds with you. I want to become a good friend with you! Help me a lot in the future! Thank you very much!
尊敬的对话! 一世execute the code which you gave me and set breakpoint in user_on_adv_report_ind() ,but user_on_adv_report_ind() wasn't almost called(Even one time in 1~2 minute is called). 在加密狗嗅图中,正确显示了广告数据包。 最终,Dongle Sniff数据包中显示的数据包号必须等于user_on_adv_report_ind()中的Arch_打印呼叫号码的数据包。 对不起,您会再次查看并发送源代码吗?
Dear, dialog! I use development kit board. Here is a pair of advertiser and observer. Anything not present near. 纠正我,你会给我你已经测试过的广告商程序吗?我的地址是skyclean906@gmail.com.。
Your 580_observer program track near device, but a few of packet only track.(some packet which advertiser sends) . 我希望你能解决这个问题.help我!
直接让我设置一些关于广告的方式vertising and the scanning operates, since i have the impression that you expect to get all the advertising messages issued by the peripheral. The Scanning operation isn't ment to get all the advertising events send by a peripheral, the peripheral device advertises in three channels in a fixed connection interval in order for some of the advertising strings to get at the master (the reason that not all advertising events can't reach the scanner is because there is no protocol assurance that the packets reach the other side and since the packets using the air as a medium of transfer anything can happen, noise, other devices transmiting, antenna etc). So you wont get all the advertising events send from the peripheral to the scanner, but a fraction of those events. Also how a BLE device scans and how a peripheral advertises makes it impossible for the scanner to get all the advertising strings in all the channels. When the device scans, it opens the receiver on a specific channel sequentialy in all BLE advertising channels (37, 38, 39) so if the peripheral device happens to advertise at the moment, and the medium is open and the antenna of the device is able to listen to the advertising packet, the device is going to report it. If you would like to get more reports on the observer side you will need to set the peripheral to send more advertising packets. Regarding comparing the 580 to a sniffer dongle, i am not aware what you are using in order to sniff the air, but you cannot compare a sniffer to a 580 generic device, apparently the sniffer that you are using has a better antenna (getting data from a long distance) and an optimized sw in order to do so, perhaps even a different way of scanning in order to sniff as much packets as it can.
Something extra, i ve seen the new post, in order to change the scanning interval and window you will have to go the user_scan_start() and change the cmd->interval and the cmd->window parameter. Additionally i have a request regarding your other posts,请不要在其他线程上发布无关紧要的问题,您可以始终创建一个新线程才能分享您的问题,以便将此论坛简直并易于使用。
亲爱的凯雅,
We are working on validation of multi-role scenarios with DA14580 but this is not available yet.
亲切的问候,
Frank
Hi Frank,
非常感谢您的回复。
如果尚未使用并发的多角色方案,我可以多次切换运行时中的角色吗?即设置广播公司,然后观察到,然后再次广播等等?或者与外围和中央相同(假设当调用Gapm_set_dev_config_cmd时没有活动连接)?
提前致谢,
凯塔亚
嗨Katya,
是的,您可以在运行时更改角色。从中央到外围切换将要求您首先断开与所有外围设备的连接。同样,当你从外围改变到中心时;首先脱离中央的连接。
即使在连接时,您也可以广播广告。这在中环和外围角色工作。
嗨,
是否已经实施了并发差距角色和/或验证?
我们需要这两种差距角色用例:
GAP_CENTRAL_MST + GAP_BROODCASTER_ADV.
gap_peripheral_slv + gap_observer_sca.
Thanks
卡尔
嗨卡尔,
580不支持这种特征,只能在此刻实现切换角色。
谢谢mt_dialog.
抱歉ping,现在几年后有进展吗?它是否支持在SDK5.0.4中?
Hi tamisoft,
不,堆栈保持不变,仅支持角色的辐射。
谢谢mt_dialog.
Thanks, is there an example how to do on the flight switching? We need to make scanning periodically while the device is a peripheral broadcasting. Obviously we can stop the advertising, but what are the proper steps to change the role temporarily.
Thanks
Hi tamisoft,
There is no example in order to demonstrate that but the procedure is quite straighforword, you will have to issue a GAPM_RESET and then reconfigure your device as a central, and the same to configure it as a peripheral. You can have a look at the following posthttps://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...
谢谢mt_dialog.
您好,我希望将DA14580设置为观察者。在SDK中,可以使用哪个程序?
对不起,你会帮助我吗?我试过了3天,但我不知道怎么办。帮助我!帮助!帮助!
一世want to develop da14580 ble obsever scaning advertising packets from da14580 .
1. In sdk, What is prox_monitor project's function?
我不能调试BLE堆栈吗?我想从广告商那里调试(查看)广告数据包。您可以告诉我吗?
Hi hantig,
没有Ready示例是为了直接将其作为中央观察者配置,您可以在主机示例中查看DSP项目,其中设备配置为中心并将其视为参考,因此控制了GAP角色配置通过user_config.h函数中的user_gapm_config结构。如果从GAP_Central_mst更改为GAP_OBSERVER_SCA,那么您将拥有您的观察者。在此之后,您需要做的就是扫描,因此您可以从DSPS主机示例中作为引用user_scan_start()函数。
在SDK中,接近监视器功能是外部主机解决方案,这意味着580从外部MCU(特定示例上的Windows PC)中取出命令,请检查集成和外部处理器中的UM-B-010用户手册:近距离示例解。
BLE堆栈位于ROM中,没有可用堆栈的源代码,通过通过SDK公开的函数与堆栈交互,您究竟是什么意思查看广告数据包?
谢谢mt_dialog.
非常感谢你!
一世am going to develop a pair proximity tag use with two da14580s. Thus, peripheral and observer.
Peripheral device easily made by sdk example. But observer device was difficult, because there is no sample code in sdk.
我如下更改。
在DSPS的App_configuration_func()中,cmd->角色= gap_observer_sca
在app_scanning中,msg-> mode = gap_observer_mode和msg-> filter_duplic = scan_filt_duplic_dis
顺便说一下,通过对比为USB加密狗,GAPM_ADV_REPORT_IND_HANDLER()少于加密狗。
USB加密狗广播数据包中的示例每0.5s显示每0.5s,但在DSP观察者程序广播数据包(GapM_Adv_Report_ind_Handler调用时间)显示每2〜3次。
inorder才能通过我的程序作为USB加密狗,如何要做?如何更改观察者设备的扫描间隔?
Execuse me, would you give me source code? If you will be difficult, I want to help me in detail.
亲爱的mt_dialog,纠正我,你会帮助我吗?我曾经使用过NRF51822,但DA14580高于NRF51822。我更兴趣DA14580,我已经开发了几个使用DA14580的蓝牙设备。
But da14580 source code which acts as observer certainly is needed to us.Help me! Thanks in advance.
Hi hantig,
关于你在上一篇文章中提到的“加密狗”,我无法理解究竟是什么问题,你能更具描述性吗?GAPM_ADV_REPORT_IND_HANDLER()是一旦您的观察者从空中收到广告信息时就会触发的回调。处理程序被触发的频率取决于目前广告的广告设备的广告,其中许多广告设备如何达到您的设备和审核您的观察者扫描的方式。关于更改广告间隔,它由发出GAPM_START_SCAN_CMD的扫描函数控制。在DSP主机中,函数是user_scan_start(),间隔和扫描窗口由成员控制.INTERVAL和.WINDOW您的GAPM_START_SCAN_CMD函数。
关于观察者FW非常简单,可以创建一个简单的观察者设备,让我们作为位于SDK中的模板的起始基础。
1)在user_gapm_conf结构处的user_config.h函数中,将.or从gap_peripheral_slv更改为gap_observer_sca。
2)从DSP示例拍摄user_scan_start并将其粘贴在模板项目中,然后可以设置自己的user_scan_conf结构,或者您可以将您想要的值放在GapM_Start_scan_cmd结构中。
3)然后您可以在准备就绪时开始扫描,因此,由于您没有任何数据库来初始化,您可以在App_On_set_dev_config_complete回调中分配user_scan_start()。
4)实现函数才能挂钩APP_ON_ADV_REPORT_IND以获取广告消息,您应该好好去。
谢谢mt_dialog.
非常感谢你!亲爱的,山_dialog.
首先,我发给你的图像,指示当前情况。
我已经做到了你告诉我的方法,但它是一样的。
因此,如果我在app_on_adv_report_ind()中设置了断点,我与加密狗数据包嗅探器比较,当加密狗数据包显示5〜6次时,app_on_adv_report_ind()勉强称为1次。
纠正我,请你发送给我观察者Souce代码吗?我的地址是skyclean906@gmail.com.。
Hi hantig,
上传了一个快速和肮脏的演示源代码,将设备设置为Observer模式并扫描任何广告消息,禁用重复滤波器,因此设备打印所有可用的广告字符串,可以在所有通道中达到并将其打印过UART2。意识到,如果空气中有两种设备,具有SW的当前配置(打印任何可用的广告字符串),则设备将由于过度打印而击中重置。以上测试并在对话框套件上运行。
谢谢mt_dialog.
亲爱的,山_dialog!
You are open-minded and very kindly. I impressed greatly by your kindness! I want a deep bonds with you. I want to become a good friend with you! Help me a lot in the future! Thank you very much!
尊敬的对话!
一世execute the code which you gave me and set breakpoint in user_on_adv_report_ind() ,but user_on_adv_report_ind() wasn't almost called(Even one time in 1~2 minute is called).
在加密狗嗅图中,正确显示了广告数据包。
最终,Dongle Sniff数据包中显示的数据包号必须等于user_on_adv_report_ind()中的Arch_打印呼叫号码的数据包。
对不起,您会再次查看并发送源代码吗?
Hi hantig,
我上载的代码已经在Pro套件上测试了,并且如果设备无法跟踪其他模块的广告事件,则将报告打印出每种可用设备,然后代码不是问题(除非您达到任何重置或者一个我想注意的硬盘),我在发送之前测试了FW,我完全能够跟踪在近设备附近,您可以使用开发套件或自定义设计?也意识到该设备将报告广告字符串,只要另一方面的设备是广告,如果在空中没有广告消息,则设备将不会报告任何内容。
谢谢mt_dialog.
Dear, dialog! I use development kit board. Here is a pair of advertiser and observer. Anything not present near.
纠正我,你会给我你已经测试过的广告商程序吗?我的地址是skyclean906@gmail.com.。
Your 580_observer program track near device, but a few of packet only track.(some packet which advertiser sends) .
我希望你能解决这个问题.help我!
Hi hantig,
直接让我设置一些关于广告的方式vertising and the scanning operates, since i have the impression that you expect to get all the advertising messages issued by the peripheral. The Scanning operation isn't ment to get all the advertising events send by a peripheral, the peripheral device advertises in three channels in a fixed connection interval in order for some of the advertising strings to get at the master (the reason that not all advertising events can't reach the scanner is because there is no protocol assurance that the packets reach the other side and since the packets using the air as a medium of transfer anything can happen, noise, other devices transmiting, antenna etc). So you wont get all the advertising events send from the peripheral to the scanner, but a fraction of those events. Also how a BLE device scans and how a peripheral advertises makes it impossible for the scanner to get all the advertising strings in all the channels. When the device scans, it opens the receiver on a specific channel sequentialy in all BLE advertising channels (37, 38, 39) so if the peripheral device happens to advertise at the moment, and the medium is open and the antenna of the device is able to listen to the advertising packet, the device is going to report it. If you would like to get more reports on the observer side you will need to set the peripheral to send more advertising packets. Regarding comparing the 580 to a sniffer dongle, i am not aware what you are using in order to sniff the air, but you cannot compare a sniffer to a 580 generic device, apparently the sniffer that you are using has a better antenna (getting data from a long distance) and an optimized sw in order to do so, perhaps even a different way of scanning in order to sniff as much packets as it can.
我用来测试观察者演示的程序是ble_app_peripheral,如果您将FW作为广告evey100ms留下100ms,您应该继续为广告字符串的迹象表达,我也在1S广告间隔下测试它每2次近似地区每1秒(每次在空气上的情况下,每次都要获得广告活动)的秒数最佳)用10米的距离测试。与所使用的天线有关的距离与使用的天线和空中交通而不是SW。
Something extra, i ve seen the new post, in order to change the scanning interval and window you will have to go the user_scan_start() and change the cmd->interval and the cmd->window parameter. Additionally i have a request regarding your other posts,请不要在其他线程上发布无关紧要的问题,您可以始终创建一个新线程才能分享您的问题,以便将此论坛简直并易于使用。
谢谢mt_dialog.
尊敬的对话!帮我!
如何在间隙中添加一个特征,需要在堆栈中进行更改?
嗨Durlaksel,
感谢您对我们的公共蓝牙论坛发布。您可以使用您的查询创建一个新的线程,因为这是非常古老的和关闭?此外,请注明您使用的设备和SDK。
谢谢,PM_DIALOG.