Hi TI Team,
We have written one c application which reads data coming from device and parse the TLV's. We are using IWR6843ISK-ODS antenna and Sense and Direct HVAC control demo. Our application is able to parse the TLV's for Sense and Direct HVAC Control Demo with the same antenna.
We tried to modify the application for 3D people counting demo but everytime the header comparison is getting failed so we are not able to parse the TLV's for it.
Following is the snippet for reading data coming from UART , parsing the header and comparing it with expected Header.
uint16_t magic[4] = {0x0102,0x0304, 0x0506, 0x0708}; // expected Header
while (1) {
memset(&newdata, 0 , sizeof(dataPacket_t));
memset(buff, 0, sizeof(buff));
readBytes = read(g_mmw.datacom_fd, &buff, 1500);
if (memcmp(buff, magic, 8) == 0) { // when expected header received in data
memset(header, 0, HEADERLEN);
memcpy(header, buff, HEADERLEN);
while (readBytes < (header->totalPacketLen)) {
bufPos = readBytes;
numPendBytes = header->totalPacketLen - readBytes;
memset(tmpbuf, 0, sizeof(tmpbuf));
tempBytes = read(g_mmw.datacom_fd, &tmpbuf, numPendBytes);
readBytes += tempBytes;
memcpy((buff+bufPos), tmpbuf,tempBytes);
}
} else {
continue;
}
May i learn any difference in header format for Sense_and_Direct_HVAC Control and 3D People Counting Demo?
Could you please assist regarding this ?
Thanks
Shraddha