Hi community,
I'm working on a project using the CC2564 on a TiWi-uB2 Module on an MSP430F5438A.
We're using HCI to synchronize a sensor network of MSP430's.
Parallely, I'm working on a streaming functionality using L2CAP. I've discovered that whenever an L2CAP event/data is received, L2CAP_Event_Callback() is called first and after that HCI_ACLDataCallback() is called.
If it was an L2CAP data packet that was just received, the first 4 bytes of the HCI ACLData[] array contain the L2CAP payload length and the L2CAP CID of the sender. Then the L2CAP payload follows.
This behavior makes kind of sense, since L2CAP is located above HCI and therefore all L2CAP data is passed through HCI (I guess). But it also causes serious problems: HCI_ACLDataCallback() now receives data that it shouldn't receive and which is in a structure that it will misinterpret.
Is there a way to tell the HCI driver (or anything else) that HCI_ACLDataCallback() should only be called, if an actual HCI packet was received?
Thank you!
Samuel