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.

CC3120: HTTP Metadata structure -- Length field incorrect

Part Number: CC3120

Hi experts,

I am cooking my own CC3120 host side driver... Now, I can receive NetApp Request (SL_OPCODE_NETAPP_REQUEST) from CC3120 after enter "10.123.45.1/test?x=5" in browser. That's great. Then, I want to parse the payload data in the request. According to Table 9-22. TLV Structure in Section 9.7.1 Metadata (TLVs) Description in programmer's guide (SWRU455L), the Length includes the size of Length, Type and Value fields. But, according to my test, it doesn't. It only include the size of Value field.

So, the question is, is the programmer's guide wrong or my understand is incorrect?

  • Hi Robert,

    Do you have the latest servicepack flashed to the CC3120?

    There is example code in that section of the Programmer's Guide that demonstrates how to extract the content. Are you using a different method?

    Best regards,

    Sarah

  • Hi Sarah,

    Sure, I have flashed the latest service pack to the CC3120.

    For the example code, it also shows the "Length" field doesn't include the size of the "Type" and "Length" fields. So, the description of Length field in Table 9-22 is incorrect. I think the document needs to be revised.

  • Hi Robert,

    Thanks for verifying. I'll submit that correction.

    Best regards,

    Sarah

  • Hi Sarah,

    Btw, I also found the schematic in "Figure 6-1 CC3120R Wide-Voltage Mode Application" is incorrect. There should be net label "VDD_DIG_CC" placed in the wire connection from C22 to L4. The net label is missing in Figure 6-1 but it is there in LAUNCHXL schematic.

    I reference Figure 6-1 while designing my first CC3120 project. Obviously, it doesn't work. Then, I check the schematic of LAUNCHXL and found the error.

    Please also submit the correction.