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.

AWR2544: Question about decompression script about data_parser_awr2544.py

Part Number: AWR2544
Other Parts Discussed in Thread: AM2732, AWR2944

Hello,TI's engineer

We use 2243 cascade and am2732 to develop ddma mimo radar.Due to data size we use the compression EGE to reduce the memory.We want to analyze radarcube data,however radarcube in L3 is compressed.So we want to decompress it.You offer the script about data_parser_awr2544.py to decompress data in linux (python3).We set up the linux environment and prepared the input materials,as data_parser_awr2544.py says at the beginning of the document(python3 data_parser_awr2544.py <recorded_pcap_file>.pcap <config_file>.cfg).However, the following error occurred:

The data of <recorded_pcap_file>.pcap,we save radarcube from ccs(Binary file),cfg file we use cascade_longrange.cfg,the document is as follows.We do not know the format of file input and whether our method of data acquisition meets your requirements. Could you elaborate on that? Thank you very much!

BR

Bryant

cascade_longrange.cfgdemo_RadarCube_binary4.zip

  • Hi Bryant,

    For AWR2544 demo, compressed radar cube is streamed over ethernet. So you need to make changes to the python script to decompress the radar cube. Instead of using this python script, can you try using memory compression tool from Radar Toolbox (ti.com).

    Regards,

    Samhitha

  • Samhiha,

    I have customer ever tried the xWR6843 compression demo for AWR2944 data decompression, but the result is not expected.

    For the python decompression code for AWR2544, customer has already tried to remove the code related to network. Then they found there are below cfgs which are not used on AM2732/AWR2944 demo and a lot of python code are related to these two cfg. It is very hard for customer to remove them for AM2732/AWR2944.

    data_parser_awr2544.py

            elif cmd == 'procChainCfg':
                configParams['procChain'] = int(args[0])
                configParams['crcType'] = int(args[4])
    Would you pls help to check if you can make a simple script such to decompress the compressed data (binary)? Windows python code is preferred.
    Thanks,
    Chris
  • Hi Chris,

    procChainCfg for AWR2544 configures processing chain for TDM/DDM, 1X/2X mode.

    • procChain - 0: TDM, 1:DDM
    • crcType - Computes CRC for payload, header and footer
      • 0 - 16 bit CRC
      • 1 - 32 bit CRC

    You can ignore crcType and procChain can be assigned to 1 for DDM. 

    For more details related to procChainCfg, refer to "mmwave_mcuplus_sdk_04_06_00_01\docs\mmwave_mcuplus_sdk_user_guide.pdf".

    Can the customer try modifying the python script using the above information?

    Regards,

    Samhitha

  • Hi Samhitha,

    The problem you mentioned has been solved.However our data is from ccs save function,we save radarcube from ccs.You offer data_parser_awr2544.py is use for .pcap data.Therefore, our data format is inconsistent, which makes it impossible to use your script.The main reason you parse pcap's data protocol is by calling the underlying python dpkt package,which we don't know much about it.So can you provide a parsing script that can directly compress the radarcube data exported by ccs? We provide data(one frame radarcube(raw/binary)) and configuration files.Thank you very much!

    demo_RadarCube_binary.zip1778.cascade_longrange.cfg

    BR

    Bryant

  • Hi Bryant,

    As it's not part of TI offering, it is out of my scope to provide modified parsing script. You can refer to mmwave_mcuplus_sdk_04_06_00_01/ti/demo/awr2544/mmw/docs/doxygen/html/index.html to understand the ethernet packet format.

    Regards,

    Samhitha

  • Could you please provide us with a copy of the compressed data and configuration parameters collected based on AWR2544, and then we can refer to its parsing and processing methods?

  • Hi Bryant,

    You can use output_Profile2.pcap, "C:\ti\mmwave_mcuplus_sdk_04_06_00_01\mmwave_mcuplus_sdk_04_06_00_01\ti\demo\awr2544\mmw\profiles\profile_3d_3Azim_1ElevTx_DDM_awr2544_2Xmode.cfg" with data_parser_awr2544.py.

    Please check and let me know if you are able to parse.

    Regards,

    Samhitha