DA14585通过广告数据包发送数据

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
8 posts / 0 new
最后一篇
markdsylva_2277.
离线
最后一次露面:2天14小时前
加入:2019-06-19 04:20
DA14585通过广告数据包发送数据

嗨对话小组,

我使用DA14580和Android移动应用程序在一个项目上工作,在该项目下,移动应用程序建立连接并通过通知接收数据。它似乎正常工作。

我有一个新要求,其中移动应用程序必须从多个DA14585设备接收数据。我在互联网上做了一些研究,我计划做以下事项:

  • 未使用时关闭广告
  • Turn on advertising and modifly the advertisement bytes to accomadate my data bytes
  • 移动应用程序必须持续扫描广告数据,并且当它检测到正确的数据包时,它将读取广告分组的数据字节。

这是正确的方法吗?

如果是这样,是否有任何软件文档或如何执行此操作?请帮助我提出这个要求。

Regards,

Mark

Device:
PM_DIALOG.
离线
最后一次露面:11 hours 54 min ago
职员
加入:2018-02-08 11:03
嗨markdsylva_2277,

嗨markdsylva_2277,

如果我正确地理解了你的问题,它与移动应用程序更有关系。假设您有两个DA14585设备,即DEV_1和DEV_2,两者都是广告。建议使用不同的BD地址和设备名称进行宣传。最初,移动应用程序与DEV_1连接。

如果您想建立连接并在通知发送日期,请注意主设备(移动应用程序)启动每个连接或断开连接。为此,您应该明确按移动应用程序的“连接”按钮。dev_1将停止向上,它将处于连接状态,它将通过通知将数据发送到移动应用程序。为了连接DEV_2,您应该断开DEV_1与应用程序的连接,然后与DEV_2连接。为了发送数据,您应该处于连接状态,该状态由中央设备发起。关于第三个子弹,你能澄清一下吗?你有自定义移动应用程序吗?

如果你不想启动任何连接,you should place the data into the advertising string. For instance, you can use the manufacturer specific data and set up a timer in order to update them. However, how the application will scan the advertising data and retrieve them from the advertising packet, it is not supported by Dialog. Also, if you can provide any further inputs, it will be very helpful to understand better your requirement.

谢谢,PM_DIALOG.

markdsylva_2277.
离线
最后一次露面:2天14小时前
加入:2019-06-19 04:20
嗨pm_dialog,

嗨pm_dialog,

感谢您的回复。第二种技术是我想要做的事情。我正在尝试在广告字符串中放置7个字节的数据。我读了一些你的文档,并提到了'ble_app_noncon.“示例”misc' folder in SDK. Is this the correct one for my requirement. Are there any tutorials regarding this example. And also I am trying to save battery power in my bluetooth device and I am planning to advertise data once every minute. Please share your ideas about where I have to start.

Regards,

Mark

PM_DIALOG.
离线
最后一次露面:11 hours 54 min ago
职员
加入:2018-02-08 11:03
嗨markdsylva_2277,

嗨markdsylva_2277,

你也可以检查简单的信标来自支持门户的SW示例。请阅读示例:DA1458X示例设置文档,您将找到适当的步骤以便将代码与SDK链接并运行该示例。您需要在PC中安装Python。您可以在需要时停止广告并将设备放入睡眠模式。请检查SDK的BLE_APP_SLEEPMODE示例。按钮用于唤醒设备并启动广告。您可以通过BLE定时器同步唤醒它。请记住,当设备在睡眠模式下配置时,它会在间隔(广告或连接间隔)之间睡眠。为此,您也可以减少广告间隔。

谢谢,PM_DIALOG.

markdsylva_2277.
离线
最后一次露面:2天14小时前
加入:2019-06-19 04:20
你好,

你好,

运行Python命令时,我收到错误。屏幕截图是附加的参考。

Thanks,

Mark

附件:
PM_DIALOG.
离线
最后一次露面:11 hours 54 min ago
职员
加入:2018-02-08 11:03
https://support.dialog
markdsylva_2277.
离线
最后一次露面:2天14小时前
加入:2019-06-19 04:20

你好,

I tried as you said with the simple beacon example. Another error occurs. I also tried the cleaning command. No success. Output Images are attached.

Regards,

Mark

PM_DIALOG.
离线
最后一次露面:11 hours 54 min ago
职员
加入:2018-02-08 11:03
Hi Mark,

Hi Mark,

不幸的是,我无法复制这个问题。我下载了我们支持网站的灯架SW示例,然后按照教程中提到的步骤,我可以将其与SDK6.0.12链接。您的PC中安装了哪个Python版本?你能用Windows PowerShell用干净的SDK尝试吗?

谢谢,PM_DIALOG.