Dear Dialog_Support,
Requirement of my project is, one device as a BLE Host and another as a BLE Device. I have few questions regarding proximity example and DSPS example.
1.哪个例子更适合我的项目要求?DSP或接近?
2. My project doesn't using PC either at Host side or Device side so can i use proximity monitor at host side?
3.靠近自动连接概念如DSPS吗?
4. How many devices can be connected to one host in Proximity and DSPS both?
5.如果我从DSPS程序中删除UART,那么DSPS主机和DSPS设备将相互通信?
Thanks and Regards
Rohit
Device:
Hi Rajapurerohit,
1. It depends on what exactly you would like to implement, the client for the proximity is operating along with an external device (a windows PC on the example via UART), the external PC application issues the commands and the 580 receives them and acts accordingly, in one word the application of the proximity is running on an external host. On the other hand the DSPS implements the application side on the 580 itself, and directly sends messages towards the stack.
2. I dont understand the second question, since your project doesn't use an external host, you should take as a reference the DSPS project and not the proximity.
3.否,近距离中央将在此时输出所有可用的设备广告,然后您必须选择要连接的设备。
4. The Proximity can connect to up to 6 peripherals simultaneously and the DSPS host can only connect to 1 peripheral.
5. Yes, if you remove the UART functionallity the devices will still be connectable, although i dont fully get the concept of the question.
For more information regarding the Proximity Client you can have a look at the UM-B-010 User Manual : Proximity Example in Integrated and External Processor Solution.
Thanks MT_dialog
Thank you for the reply.
I want to make communication between two BLE DA14580 Development kit-pro. I want to configure one kit as a Host and another as Device. In future, i also need to configure one BLE Host and multiple BLE Devices to be connected. I am not going to use any external micro-controller or PC at Host or device side. So as a Host and Device which proximity examples are suitable to take as a reference. I am using SDK 5.0.4.
Thanks and Regards,
Rohit
Hi Rajapurerohit,
邻近应用程序上的客户端与外部MCU(从PC到580的接近应用程序的UART命令)运行,因此可能更好的参考是使用DSP来实现客户端而不是邻近的报告器。
Thanks MT_dialog
Thank you for reply,
Okay i will go ahead with DSPS example.
Few question on DSPS example.
1. In DSPS, Host will automatically starts scanning and connects to the first
发现外围设备。但我不想自动连接功能。所以如何删除自动连接的(意味着文件和功能)。
2. My requirement is, I have one Host and multiple Devices , i want to establish connection between one device at a time.Means Host will communicate with one Device, complete the necessary functionality and disconnect with device. Next time Host again scan for device make a connection with another device and finish the work and so on. Is it possible in DSPS ? If Yes, then how to configure as per requirement, what all things to be change?
Thanks and Regards
Rohit
Hi Rajapurerohit,
1. The connection request is send by the peripheral when the advertising string received matches the UUID of the DSPS profile, so the connection request to the specified peripheral is send to the stack from the user_on_adv_report_ind() function. In that function you can see the comparison made against the two strings and tha actions taken when those two files match.
2. Since you would like to connect to one device each time, you can check the advertising strings of the devices around you (just like the DSPS does), so the devices need to fulfil a specific requirement in order for the Client to send them a connection request (only the Client can send a connection request). So after the connection you can do whatever you would like to do while the two devices are connected, and when you 're done you can invoke app_easy_gap_disconnect() in order for the two devices to be disconnected from the current link (both devices peripheral or central can send a command in order to terminate the link).
Thanks MT_dialog
Thank you for reply,
Regarding automatically starts scanning and connects to the first discovered peripheral device, i am not remove auto-connect functionality so can you please explain in detail.
Thanks and Regards
Rohit
Hi Rajapurerohit,
I am sorry, i dont understand on which point you would like to give more details, the DSPS will scan as soon as the fw runs, as soon as the device picks up a peripheral device that has the DSPS UUID on its advertising string it will issue a connection request.
Can you please clarify your question ?
Thanks MT_dialog