为什么Dest_ID的状态不是app_connectable,用于第二个设备连接!?

12个帖子/ 0新
最后一篇
匿名(未经验证)
为什么Dest_ID的状态不是app_connectable,用于第二个设备连接!?

亲爱的对话框,
你好,
我正在尝试将两个或更多外围设备连接到一个中央。与第一个连接总是可以,我可以发现它的服务和特征。但是,我无法通过处理程序“appc_connection_req_ind_handler”中的函数“app_connection_func”启用我的配置文件,在连接到第二设备之后调用。我知道它是因为遵循条件声明,它说这个dest_id的状态已经设置为app_connectable:

if(ke_state_get(dest_id)== app_connectable)
{
......
}

当我在上面的if语句中检查时,我还为外围设备使用了不同的BDS,这对于外围设备必须提供不同的Dest_ID。
Someone else has asked such question in the other forum,http://support.dialog-seminiondiondiondiondum/connect-two-perizals-one-central.但是问题没有答案。
How can I resolve my problem?
我真的很感激你的帮助。

Best Regards,
雷扎

设备:
mt_dialog.
离线
最后一次露面:2 weeks 17 hours ago
职员
加入:2015-06-08 11:34
嗨reza.yazdani67.

嗨reza.yazdani67.

你能给我更多关于你想做什么的详细信息,你试图连接两个外围设备以及你在那些外围设备上运行什么项目,是ref设计吗?

Are you trying with the proximity ref design and monitor ? Are you using the dongle as a central ?

谢谢mt_dialog.

reza.yazdani67(未经验证)
亲爱的mt_dialog,

亲爱的mt_dialog,

感谢您考虑到我的案例。
- 我使用Pan1740模块作为中央和外围设备。
-The profile which I am using on each peripheral is the same. It receives some data from different sensors and send them through the air with a notification for the central device.
每个外围流的速率约为1 kbps。
- 我用于中央设备的基本项目是DSP(DA14580_DSPS_3.150.2)。是的,我正在使用加密狗USB作为中央设备。
我想要做的是首先连接到两个设备并同时接收他们的数据流。然后,我将增加外围设备的数量,以了解我可以同时连接和接收数据的设备数量。
Although I can connect two the second device, I can't go through the second phase (as defined through the conditional statement in "gapc_connection_req_ind_handler") and enable a profile in the central device and also confirm my connection to the application. I don't know the state of dest_id is not APP_CONNECTABLE even though I use different BLE device addresses!
我很欣赏你的帮助。

谢谢你。
雷扎

reza.yazdani67(未经验证)
亲爱的mt_dialog,

亲爱的mt_dialog,
Is there anyway I can resolve this problem!? How is it possible that I connect to the module but its state is not app_connectable when I check it in gapc_connection_req_ind_handler!? Is it because that the state of previous module is being checked!? I am sure that I use different BLE addresses, however still these two modules are not distinguished from each other!
我非常感谢您提前考虑。
谢谢
雷扎

reza.yazdani67(未经验证)
亲爱的mt_dialog,

亲爱的mt_dialog,

您能否将我发给我一个可以同时连接到多个设备的近距离样本?
我的电子邮件地址是reza.yazdani1367@gmail.com.。我很欣赏你的帮助。

谢谢

mt_dialog.
离线
最后一次露面:2 weeks 17 hours ago
职员
加入:2015-06-08 11:34
嗨reza.yazdani67.

嗨reza.yazdani67.

在SDK DA14580_581_583_SDK_3.0.10 \ host_apps \ windows \ proximity \ monitor目录中,有一个中央项目,最多支持6个与Proximity Reporter项目的同时连接。

谢谢mt_dialog.

reza.yazdani67(未经验证)
亲爱的mt_dialog,

亲爱的mt_dialog,
你好
谢谢你。Could you please tell me which project is this central project that supports up to 6 simultaneous connections?
我在SDK中看到的两个项目是prox_monitor_ext和prox_monitor_ext_usb。但它们是嵌入式项目,并且在应用程序部分中没有文件处理连接!
是否正确使用DSP项目中使用的应用程序文件!?

mt_dialog.
离线
最后一次露面:2 weeks 17 hours ago
职员
加入:2015-06-08 11:34
嗨reza.yazdani67.

嗨reza.yazdani67.

The application is located in the directory i wrote in the previous post. Its a windows application that uses the usb stick as central and can connect to multiple proximity sensors. You have to downoload the prox_monitor_ext_usb in your usb stick with the connection manager and then run this project DA14580_581_583_SDK_3.0.10\host_apps\windows\proximity\monitor\host_proxm_sdk\host_proxm_sdk.vcxproj to locate and connect to the proximity sensors.

谢谢mt_dialog。

reza.yazdani67(未经验证)
所以你的意思是没有主机

所以你的意思是没有主机申请,是的?如果我想不使用连接管理器,我必须修改应用程序并在应用程序部分添加一些文件,我对!?

mt_dialog.
离线
最后一次露面:2 weeks 17 hours ago
职员
加入:2015-06-08 11:34
你好,

你好,

有一个主机应用程序,主机应用程序在我提到的目录中,你只需下载prox_monitor_ext_usb与Connection Manager才能编程USB棒。通过此操作,您可以运行中央应用程序(从指定的目录)并通过UART向加密狗发出命令。它不是嵌入式解决方案。

Thansk mt_dialog.

reza.yazdani67(未经验证)
你好,

你好,

Thanks for your help.
我不太确定你是如何说这是一个主机应用程序,因为你说它需要从串口(UART)的命令来扫描或连接到其他设备。如我所知,这种项目在嵌入式项目中归类为依赖于处理它们的外部模块。无论如何,我非常感谢您的考虑和帮助。

Best Regards,
雷扎

Joacimwe.
离线
最后一次露面:1年4个月前
Guru
加入:2014-01-14 06:45
“主机”是指中央/硕士

“主机”是指中央/硕士。我认为您希望在没有外部控制器的情况下直接在DA14580上运行的中央应用程序?

有一些这样的示例项目,例如串行端口服务项目。但是,这些假设一次总会有一个连接。
你需要修改应用程序的结构make it work with multiple peripherals. Especially, you should remove the connected states of APP_STATE. You then need to keep track by yourself the states for the up to 6 connections in some other way. As I wrote inhttp://support.dialog-semiconductor.com/discovering-services-and-charact...,您必须跟踪每个连接的ConIdx,以便将消息发送到正确的磁带和Gattc任务。一种建议的处理状态的方法是拥有6个条目的数组,其中每个ConIDX(在0和5之间)是指阵列中的条目,您可以在其中存储MAC地址等内容以及连接是否处于活动状态。