This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2564MODNEM: HID Host stack and SPP

Part Number: CC2564MODNEM
Other Parts Discussed in Thread: CC2564

At the start of our program we start HIDHost and SPPServer. We also have in mind that we can attach 6 devices.

If we now connect to the spp and attach one device to HID all works fine. At this moment we have two devices running at the same time. 

But if we now try to attach a second HID device this is not possible. It seems this is blocked. The same happen if attach 2 HID and want now to connect to the spp. This is also blocked.

What is the problem? Is there anywhere a constant which must be increased to exceed this limit?

The software we are using:

FW Version 12.21

BTPS Version : 4.2.1.0

  • Hi Manuska, 

    Are you using the CC2564 strictly as a master? You could support multiple connections (upto 10 if i remember correctly) but it's assuming the device is in the same role. Please confirm. 

    Jesu

  • Yes we use it strictly as master.

    I found a problem. In the phase of connecting one device there is said that you should not start a request that leads to an HID event while the connection is outstanding.

    For an HID device the important thing is PID/VID. What we have done in the past is that we called SDP_Service_Search_Attribute_Request in the connection phase. I think this leads to an internal thing like deadlock because if we didnt call this function we can connect more than two devices.

    Now what is left is that we dont have the PID/VID at the end of the connection and therefore we schedule a function which calls SDP_Service_Search_Attribute_Request internally. With this there is the problem that this function not always come back with the PID/VID and I dont see any wrong code in the routines.

    Is there an better way to do what I want? It is simple. I want the device and the PID/VID.

  • Hi Manuska, 

    To make sure I understand. Calling SDP_Service_Search_Attribute_Request would work if you called it during the connection phase but limited you from connecting other devices but does not always work if called after the connection is established? Are you getting an error code returned when you call or its successful and just never invokes the callback?

    Jesu

  • HI Jesu,

    that is correct. I can not call the Service_Search_Attribute in the phase of connecting. The attribute search works for the first connected device but not if I connect more than one device to the stack.

  • What do you think why I make a question here on Ti?

    It seems for me that you are not interesting in helping.

    Now I have further investigate to the problem. It is always the same after I have running a SPP or SPPLE with a connection the function SDP_Service_Search_Attribute_Request fails. Not with an error but without finding the VID/PID which are very important if you work with HID.

    Please help.

  • this is the uuid we are using:

       { "HID",  { 0x00, 0x00, 0x11, 0x24, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB } },

    and the function is the standard implemented "ServiceDiscovery"

  • Hi Manuska,

    I am very sorry for the delay. We are dealing with many tasks currently. I plan to prioritize this thread next week and hopefully we can make some meaningful progress here. To keep you updated in the meantime, I plan to get more background information on SDP and maybe run some simple tests on attribute requests. Before I do that, I want to make sure my testing closely resembles are setup. Do you believe the SDP related issues that prevent you from getting the PID/VID are related to using SPP in any way? I ask because it would be harder for me to setup a test that is using both HID and SPP at the same time. If you see this problem while just using HID and SDP that will narrow my focus and make it easier to reproduce and/or make suggestions. 

    I look forward to your response.

    Jesu

  • The important part I think is the count of HID connections at the same time. Please test if you get 7 simultaneous session and all with PID/VID. Use minimal 2 or more different physical HID devices.

    Manfred

  • Hi Manuska,

    I'm working with some team members to source the equipment needed. Please give me some time here as it is currently difficult to locate 7 CC2564s and 7 MCUs. In the meantime I've tested SDP individually and don't see any issues around that. I'm having some trouble porting getting a test case that runs both HID and SPP. In the interest of time I will stick to HID so I wont have to integrate additional code to our examples. I will continue investigating and keep you updated.

    Jesu

  • Hi Manuska,

    I did not find any issues throughout my initial testing. I should have the equipment I need next week to investigate this further.

    Jesu

  • Hi Manuska,

    I currently have 4 boards I need to get 3 more to start my test. COVID has made it a bit difficult for me but I should have the rest soon. I will keep you updated.

    Jesu

  • Hi Manuska,

    Finally I will get the rest of the boards today. I will begin testing early next week. Thank you for your patience. 

    Jesu

  • Hi Jesu,

    thanks for the information. I am on holiday now and come back at the end of august. It is more actual then ever because we hope we can go to production at the end of the year.

    Manfred

  • Hi Manuska,

    One of my boards broke today so I can only test with 6 active connection to the master. If I recall correctly the problem starts when you try to connect 7 to the master so this will not work correct?

    Jesu

  • Hi Jesu,

    please do it with what you have!

    Manfred

  • Hi Manuska,

    I ran a test over night. CC2564 acting as master with 6 BT devices connected to it using SPP with no issue. I have not had a chance to add HID to my example but I don't think this is the problem since you are suffering connection issues. As I understand it works good with 6 active connections but breaks when you try to have a 7th connection. 

    Could you capture FW logs of this problem and send them to me? This will show me what happens on the CC2564 when you attempt the 7th connection.

    https://processors.wiki.ti.com/index.php/CC256x_Logger_User_Guide#Introduction

    Jesu

  • Hi Manuska,

    I am closing this thread due to inactivity. If you have a new issue please create a new thread. If you have the same issue please respond to my question here.

    Jesu