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.

CCS/CC2642R: CCS/CC2642R

Part Number: CC2642R

Tool/software: Code Composer Studio

SimpleLink CC26X2 SDK Plugin for HomeKit 4.10.00.04

I want to create accessory with 2 and more services.

But [Cortex_M4_0] Assertion failed, (engineHandle != 0)...

  • Also even if HAPEngine_serveBLE(engineHandle); starts ok , I can`t to connect to device from iphone. some error but it don`t which exactly

  • Hi Max,

    Can you please provide screenshots of the error you are receiving? Are you running the example OoB or did you make additional modifications?

    Best Regards,

    Jenny

  • Jenny T said:

    Hi Max,

    Can you please provide screenshots of the error you are receiving? Are you running the example OoB or did you make additional modifications?

    Best Regards,

    Jenny

    I use example from HAP plugin RGBBar and it also can`t add device to my Home app. Ios version: 13.7

  • Hi Max,

    Thanks for providing this image of the phone application. However, can you also provide what you are seeing on the CC2642R side such as the callstack? This screenshot doesn't provide any error messages so it will be hard to debug what exactly is wrong. 

    Best Regards,

    Jenny

  • Hi Jenny,

    Thanks for your joke, but on CC2642R side I see just 

  • Still the same problem. At the debug console there are  no error messages... But I can`t add device to Home App

  • Hi Max,

    In my previous comment, I was referring to the debug window not the console window incase the application was in an unknown state such as hitting an exception or assert as these would be seen on the callstack.

    Do you have the MFi BoosterPack connected to your CC2642R LaunchPad? If so, another thing you can do is see if the Apple Authentication Coprocessor is detected and functioning properly on the I2C bus. To do this, utilize a terminal emulator such as Tera Term. Locate which COM port your CC2642R is connected to (you can do this by navigating to Device Manager -> Ports (COM & LPT)). After connecting to the correct COM port on Tera Term, verify that the serial port baud rate is 115200. Upon application start, you should see the following text output to Tera Term:

    MFiAuth:

    Console will output "MFiAuth: 0" if the Apple Authentication Coprocessor is detected and functioning correctly on the I2C bus. If it is not detected, then console will output "MFiAuth: -2". Can you verify that you successfully receive a status of "0" please?

    Best Regards,
    Jenny

  • Hi Jenny,

    Yes I have MFI chip.

    Here is Info from console window.

    There are no asserts or exception while debug.

  • Hi Max,

    Thank you for verifying that the MFi boosterpack is functioning correctly.

    I see in the screenshot of your phone application, it shows that airplane mode is on. I wanted to verify that you still enabled Bluetooth after turning on airplane mode.

    In addition, were you able to get the rgbLedBar example running when using a previous iOS version? If so, what was the iOS version?

    Can you provide a sniffer log of the packets that are being exchanged between the LP running rgbLedBar and the device running iOS version 13.7 please? Your setup of the project is correct and assuming that the passkey you are entering is correct too, it could be due to the newest version of iOS. Unfortunately, I do not have an iPhone or MFi boosterpack with me currently to reproduce this issue and due to the holidays there are more people out of the office. Taking a look at the sniffer logs for now is the next best step until we can reproduce this issue after the holidays. 

    Best Regards,

    Jenny

  • With one services all works well, when I add the second service It cannot add to homekit. 

    Passkey correct 100%
    There is no sniffer log available.

    I don`t have lower version of IOS.

  • Hi Max,

    Thank you for this additional information. To clarify, when you say all works well, you are referring to being able to connect to RGBBar without issue correct?

    Can you please detail the exact steps you took to add a second service? I will try to verify if your modifications to the example project.

    Best Regards,

    Jenny

  • RGBBar not work at all with iphone home app. I  see it, but I can connect to it with correct key. Example not work.

    This not works


    HAPEngine_ServiceDesc *accessory_serviceArray[] = { (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[0], (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[1], (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[2], (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[3], (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[4], (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[5], (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[6], (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[7] };

    This works

    I made no modification with example code it just not work as should

    HAPEngine_ServiceDesc *accessory_serviceArray[] = {
    (HAPEngine_ServiceDesc *)&rgbLedServiceDesc[0],
    };

  • Hi Max,

    Thank you for this information. It is not immediately apparent why removing some services will cause the OoB project to start working. Can you try the following things please:

    - Try to connect to the default (8 service) RGBLedBar with another Central device application such as LightBlue? I want to see if you are able to successfully connect to a different application to see if the issue is originating from Home App or the recent iOS update.

    - When in debug mode on CCS, open up ROV  (under Tools -> Runtime Object View). Once connected to ROV, you can open the BIOS tab and scan for any errors. In addition, you can monitor memory to see if there are any memory issues that are occurring.

    Best Regards,

    Jenny

  • Hi, Jenny,

    LightBlue  also has a problem with connection. It disconnect after 2-3 seconds.

  • Hi Max,

    Thank you for this information. I am currently consulting internally to see if this issue is a known issue. I will update you once I receive more information.

    Also, Happy New Year!

    Best Regards,

    Jenny

  • Hi Jenny,

     ROV  tab in linux doesn`t work. this is ccs issue.

    Any news about my problem?

  • Hi Max,

    Are you experiencing the following when using ROV in Linux? https://sir.ext.ti.com/jira/browse/EXT_EP-9563

    The following is a known issue when using the CCS IDE along with ROV on Linux.

    I am working with the current team to secure the resources to help recreate your issue. I will update you once I get the appropriate material to test and the an update.

    Best Regards,

    Jenny

  • Hi Jenny

    Jenny T said:
    Are you experiencing the following when using ROV in Linux? https://sir.ext.ti.com/jira/browse/EXT_EP-9563

    This solution does not work for me. 

    Any news about main problem?

  • Hi Max,

    I am still in the process of securing resources as our team does not originally own these products. I am aiming to have them in a week or two. I will provide you with an update once I receive them.

    Best Regards,

    Jenny

  • Hi, Jenny

    Any updates?

  • Hi Max,

    I apologize for the delay. I am still waiting for the resources to arrive.

    Best Regards,

    Jenny

  • Hi Jenny,

    Why phone disconnected with message "Data stale"

  • Hi Max,

    This is more of a generic error response that can be caused when a disconnection occurs. Can you describe the exact steps taken to see this or is this the OOB behavior with all the services still defined? What is the behavior you're observing on the peripheral when this occurs?

    Best Regards,

    Jenny

  • All the same as that  I previously wrote.

    I can send to you my project or post code here.

  • Hi Max,

    After running a few tests on the Out of Box HomeKit rgbLedBar (SDK version hap_cc26x2_4_10_00_04), it appears that is working Out of Box (nothing was changed in the example project). Unfortunately I was not able to locate an iPhone running v13.7, however, the following two tests performed are with the following devices:

    Iphones and iOS versions:

    • iPhone 12 with iOS version 14.1
    • iPhone XR with iOS version 13.5

    - Verified that MFi authenticates properly

    - When prompted to enter password, used: 111-22-333

    - The following image shows HomeApp connecting to RGBBar OOB:

    Based on these tests, your issue could be related to the iOS version.

    - If possible, can you update your iOS version to see if this issue is due to running HomeApp using iOS 13.7 please?

    - If you have access to multiple iPhones, can you see if you have the same issues on other iPhones?

    - If there is for some reason an issue with authentication, another App that does not require authentication is Insteon. Can you try with the Apple application Insteon to see if you see different behavior on Insteon OOB?

    - If possible, can you provide your binary for rgbLedBar? It should be the exact same as the one tested since the test was run with the built out of box rgbLedBar, however, just to verify it could be useful to test.

    Best Regards,

    Jenny

  • Hi, Jenny,

    And what version of SimpleLink do you use?

    I attached binary of rgbledbar

    I don`t know how correctly attach binary file here. I just rename extension to jpg.

  • Hi Max,

    I am working on SDK version 4.10.00.04. The binary file is not downloadable in your last post, however, if it is built out of box from 4.10.00.04 then we should be using the same binary as I have not made any modifications. Were you able to test with an updated iOS version?

    Best Regards,

    Jenny