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/IWR1642BOOST: junk file

Part Number: IWR1642BOOST
Other Parts Discussed in Thread: IWR1642

Tool/software: Code Composer Studio

Hi,

I am trying to parse the file that is parseTLV.py available in Ti forum.. So, to parse the python file I am reading the input bin file by using teraterm (DATA PORT). But I am not getting the original input file, it is providing me the junk file in hex format.

f8 3d ce 7d d9 41 3f fe 3c b8 59 be 3f fe 3c 4a
6f 44 3f 3f 26 44 42 bf 79 b0 ef 3f a7 f7 b4 bf
e6 b8 be 22 e9 ee 3f 0d 0a 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
41 20 20 20 20 20 20 20 20 30 40 bf c0 2f d0 3d
20 30 40 bf f1 aa 20 42 71 fb a3 3e c0 2f d0 3d
71 fb a3 3e d6 eb 6a 3f 0d 0a 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 6f db 53 ff ff ff ff
ff 42 0d 0a 20 20 20 20 20 20 20 20 d9 22 e9 da
3f 4e 61 49 0d 0a 0d 0a 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 3e e2 eb 48 64 e7 3f e4
cb bf fd 52 3f 26 42 3c 43 e2 da 3f 3b 6b bf fd
52 3f 54 63 c2 41 64 e7 3f 3b 6b bf fd 52 3f 6f
3f 43 e2 da 3f 0d 0a 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 bf fd 52 3f a7 2e f0 41 64 e7 3f 0d
0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20
20 20 20 20 20 20 20 20 20 bf fd 52 3f c1 fe bc
43 e6 f3 3f 0d 0a 20 20 20 bf fd 52 3f aa ff df
41 e2 da 3f d1 53 fb be fd 52 3f c9 42 23 e1 3f 

Can anyone help me to resolve this issue??

  • Manually also added the magic word in that above input binary file.. It haven't shown the offset index.. offset = 0

    $ python parseTLV.py inputFile.bin
    0
    packet ID:      540487712
    Version:        20333020
    TLV:            540094496
    Detect Obj:     825237552
    Platform:       38302035
    Subframe:       824193588
    Traceback (most recent call last):
      File "parseTLV.py", line 129, in <module>
        for length, frameNum in tlvHeader(rawData):
      File "parseTLV.py", line 101, in tlvHeader
        (tlvType, tlvLength) = tlvHeaderDecode(data[:8])
      File "parseTLV.py", line 15, in tlvHeaderDecode
        (tlvType, tlvLength) = struct.unpack('2I', data)
    struct.error: unpack requires a buffer of 8 bytes

  • Former Member
    0 Former Member in reply to priyanka s

    Hello Priyanka,

    It is not clear what you're trying to do. If you are trying to parse the byte stream I recommend you consult the doxygen of the mmWave SDK for details of the data format structure. The python script may be out of date depending on which SDK version you are running the demo from. 

    Also whether your data appears as hex or bin or ASCII format in tera term is a setting in your terminal. Please consult the help info for tera term if needed.

    Amanda

  • Here i gone through the doxygen file in SDK also.. But i havent received the magic word in my received file.. 

  • Former Member
    0 Former Member in reply to priyanka s

    Hello Priyanka,

    Are you capturing the data using the Record function in the online visualizer? Please do so and check the .dat file. If you are running the correct demo there should be no issue such as you've described.

    Amanda

  • Hi,

    I am not using online visualizer, since i couldnt find any for IWR16xx platform.I am using the GUI application from mmWave Industrial Toolbox_4.0.1. If you have any links please notify me.. 

  • Former Member
    0 Former Member in reply to priyanka s

    Hello,

    The online visualizer does support IWR1642. Please use the drop down menu to select the device. It is the first one listed: https://dev.ti.com/gallery/view/mmwave/mmWave_Demo_Visualizer/ver/3.3.0/

    Amanda

  • Hi, 


       1-> My receiving data is in ASCII format ( by using teraterm terminal) when I am converting it to hex file there I couldn't able to see the magic word, versions, etc..,  instead of these some junk file is receiving.. So is there any other terminal available kindly prefer me and if u notice any mistakes please inform..


      2-> And the above link which you have given is already tried.. It shows the error that some of the config files which is not supporting.. I will attach the config file below if u found any corrections please intimate me..

    MMWAVE SDK - 3.2

    sensorStop
    flushCfg
    dfeDataOutputMode 1
    channelCfg 15 3 0
    adcCfg 2 1
    adcbufCfg -1 0 1 1 0
    profileCfg 0 77 429 7 57.14 0 0 70 1 256 5209 0 0 30
    chirpCfg 0 0 0 0 0 0 0 1
    chirpCfg 1 1 0 0 0 0 0 2
    frameCfg 0 1 16 0 100 1 0
    lowPower 0 1
    guiMonitor -1 1 1 0 0 0 1
    cfarCfg -1 0 2 8 4 3 0 15 1
    cfarCfg -1 1 0 4 2 3 1 15 1
    multiObjBeamForming -1 1 0.5
    clutterRemoval -1 0
    calibDcRangeSig -1 0 -5 8 256
    extendedMaxVelocity -1 0
    bpmCfg -1 0 0 1
    lvdsStreamCfg -1 0 0 0
    compRangeBiasAndRxChanPhase 0.0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
    measureRangeBiasAndRxChanPhase 0 1.5 0.2
    CQRxSatMonitor 0 3 5 121 0
    CQSigImgMonitor 0 127 4
    analogMonitor 0 0
    aoaFovCfg -1 -90 90 -90 90
    cfarFovCfg -1 0 0 8.92
    cfarFovCfg -1 1 -1 1.00
    sensorStart

    Please help me to resolve this issue..

     

    --Regards, 

    Priyanka. S

  • Former Member
    0 Former Member in reply to priyanka s

    Hello Priyanka,

    There is no issue if you are using the correct firmware and device combination.

    I recommend that you use the example config profile_2d.cfg provided in the SDK at C:\ti\mmwave_sdk_03_03_00_02\packages\ti\demo\xwr16xx\mmw\profiles to first debug your data recording function.

    For further debug please provide more details:

    Amanda

  • Hi,

    Now am using mmWave SDK - 2.0 because I can't able to use the latest SDK versions other than SDK 2.0, if I use 3.0 or 3.2 it throws the error in mss function, Console will be in empty and sometimes it Unable to open CLI.. So am using mmWave SDK version- 2.0

    Industrial toolbox version - 4.1.0

    Silicone version - ES2.0 (502AC)

    I m not using the online visualizer, my goal is to parse the people count rawdata.

    For this rawdata I tried to receive from teraterm or mobaxterm terminals. But I couldn't able to receive the exact rawdata needed, it is showing some junk data.. 

    Please check this and help me to resolve this issue.. 

  • Former Member
    0 Former Member in reply to priyanka s

    Are you able to run the people counting demo using the provided visualizer without issue?

    If you are running the people counting demo you should be loading the CFG used in the demo. Not the one you have posted.