DA14585 Send Data Through Advertisement Packet

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8个帖子/ 0新
Last post
标记Dsylva_2277
Offline
Last seen:3 months 2 days ago
加入:2019-06-19 04:20
DA14585 Send Data Through Advertisement Packet

Hi Dialog Team,

I have worked on a project using the DA14580 and an android mobile app under which the mobile app establishes a connection and receives data via notifications. It seems to be working as expected.

I have a new requirement in which the mobile app has to receive the data from multiple DA14585 devices. I did some research on the internet and I am planning to do the following:

  • Turn off advertising when not used
  • 打开广告并修改广告字节,以加为我的数据字节
  • The mobile app has to continously scan for the advertisement data and when it detects a proper packet it will read the data bytes from the advertisement packet.

Is this the right way to do it?.

If so, is there any software document or example on how to do this?. Please assist me on this requirement.

问候,

标记

设备:
PM_Dialog
Offline
Last seen:2天12小时前
工作人员
加入:2018-02-08 11:03
嗨MarkDsylva_2277,

嗨MarkDsylva_2277,

If I understood your question correctly, it is more related with the Mobile application. Suppose that you have two DA14585 devices, namely dev_1 and dev_2 and both are advertising. It’s recommended to advertise with different BD address and device name. Initially, the mobile application is connected with dev_1.

In case you would like to establish a connection and send the date over notifications, be aware that the master (mobile app) initiates every connection or disconnection. To do so, you should explicitly press the “Connect” button from the mobile application. The dev_1 will stop adverting, it will be in connected state and it will be sending data to the mobile app over notifications. In order to connect the dev_2, you should disconnect the dev_1 from the app and then connect with the dev_2. In order to send data, you should be in connected state which is initiated by the central device. Regarding the third bullet, can you please clarify it a bit more? Do you have a custom mobile application?

如果您不想启动任何连接,则应将数据放入广告字符串中。例如,您可以使用制造商特定数据并设置计时器以更新它们。但是,应用程序将如何扫描广告数据并从广告数据包检索它们,这是对话框不支持的。此外,如果您可以提供任何进一步的投入,那么了解更好的要求将是非常有帮助的。

谢谢,PM_Dialog

标记Dsylva_2277
Offline
Last seen:3 months 2 days ago
加入:2019-06-19 04:20
Hi PM_Dialog,

Hi PM_Dialog,

Thanks for your reply. The second technique is what I am trying to do. I am trying to place 7 bytes of data in the advertising string. I read some of your docs and it is mentioned about 'ble_app_noncon' example in '杂项'在SDK中的文件夹。这是我的要求是正确的。有关于这个例子的教程是否有任何教程。而且我也试图在蓝牙设备中节省电池电量,并计划每分钟宣传一次数据。请分享您的想法,了解我必须在哪里开始。

问候,

标记

PM_Dialog
Offline
Last seen:2天12小时前
工作人员
加入:2018-02-08 11:03
嗨MarkDsylva_2277,

嗨MarkDsylva_2277,

You can also check theSimple beaconSW example from the support portal. Please read theSW Example: DA1458x Example Setupdocument and you will find the appropriate steps in order to link the code with the SDK and run the example. You will need to install Python in your PC. You can stop advertising and put the device into sleep mode when is needed. Please check ble_app_sleepmode example of the SDK. A button is used to wake up the device and start advertising. You can wake it up synchronously as will via a BLE timer. Keep in mind that when the device is configured in sleep mode, it will go into sleep between intervals (advertising or connection intervals). To do so, you can reduce the advertising intervals as well.

谢谢,PM_Dialog

标记Dsylva_2277
Offline
Last seen:3 months 2 days ago
加入:2019-06-19 04:20
Hi,

Hi,

I am getting an error while running the python command. Screenshot is attached for your reference.

谢谢,

标记

Attachment:
PM_Dialog
Offline
Last seen:2天12小时前
工作人员
加入:2018-02-08 11:03
https://support.dialog.

嗨马克,

Since you are using our latest SDK6, can you please try with the updatedDA14531-DA14585-586简单的信标示例?请参阅Software Example Setup Using Python Link Scriptto link the 6.0.12 SDK and the downloaded SW example.

谢谢,PM_Dialog

标记Dsylva_2277
Offline
Last seen:3 months 2 days ago
加入:2019-06-19 04:20

Hi,

当你用简单的信标例子说时,我试过。发生另一个错误。我还尝试了清洁命令。没有成功。输出图像附加。

问候,

标记

PM_Dialog
Offline
Last seen:2天12小时前
工作人员
加入:2018-02-08 11:03
嗨马克,

嗨马克,

Unfortunately, I am not able to replicate this issue. I downloaded the Beacon SW example for our support website, followed the steps as mentioned in the tutorial, and I am able to link it with SDK6.0.12. Which python version is installed in your PC? Can you please try it with a clean SDK using the Windows PowerShell?

谢谢,PM_Dialog