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.

IWR6843AOPEVM: DCA1000 + CLI command + mmwave demo visualizer

Part Number: IWR6843AOPEVM
Other Parts Discussed in Thread: UNIFLASH

Hello Team,

I collect some of the data through DCA1000 by using CLI command Interfance. Then for the parser I used parser example scripts available at the SDK folder. But I got some error when I parse the bin file. Below are the steps and figures.

1) First profile_2d was provided to mmwave demo visualizer.

2) Then cli command was run which stored bin file.

3) Then I open the lvds_example script provided the above cfg file and prefix as shown below.

4) but here I got some errors. the error changes as I change the parameters in lvdsStreamcfg.

> When LvdsStreamcfg -1 0 0 0 the error is:

Traceback (most recent call last):
File "d:\Radar Labs\Parser Scripts\LVDS\lvds_example_script.py", line 90, in <module>
noise_buffer = parser_file(config_file_name, numFramesToBePrint, datacard_prefix)
File "d:\Radar Labs\Parser Scripts\LVDS\parser_lvds_demo_captured_file.py", line 1228, in parser_file
read_config (config_file_name)
File "d:\Radar Labs\Parser Scripts\LVDS\parser_lvds_demo_captured_file.py", line 685, in read_config
print ("Error: Subframe %d has a invalid lvdsStreamCfg" % subframeIdx)
UnboundLocalError: local variable 'subframeIdx' referenced before assignment 

>  When LvdsStreamcfg -1 1 0 0 the error is:

Error: subframe 0 has no HW and SW
Check []

it gives me output but CSV file is empty.

> When LvdsStreamcfg -1 1 1 0 the error is:

Traceback (most recent call last):
File "d:\Radar Labs\Parser Scripts\LVDS\lvds_example_script.py", line 90, in <module>
noise_buffer = parser_file(config_file_name, numFramesToBePrint, datacard_prefix)
File "d:\Radar Labs\Parser Scripts\LVDS\parser_lvds_demo_captured_file.py", line 1264, in parser_file
HW_result, HW_ADC_buffer, HW_CP_buffer, HW_CQ1_buffer, HW_CQ2_buffer = parser_HW_file(capturedFileName, ADC_file_numSubframes, ADC_file_subframeIdx_buf)
File "d:\Radar Labs\Parser Scripts\LVDS\parser_lvds_demo_captured_file.py", line 847, in parser_HW_file
if '16' in CFG_PARAMS['platfrom'] or '18' in CFG_PARAMS['platfrom'] or '68' in CFG_PARAMS['platfrom'] or '64' in CFG_PARAMS['platfrom']:
KeyError: 'platfrom'

> When LvdsStreamcfg -1 1 1 1 the error is: Again the same error as above for -1 1 1 0 or -1 0 1 0.

3125.profile_2d.cfg

Please do let me know so I can share more details if you want regarding this.

Thank you,

Fahad

  • Hello Fahad,

    Can you try doing LvdsStreamcfg 1 1 1 1?

    Best Regards,

    Pedrhom Nafisi

  • Hi Pedrhom Nafisi,

    When I try during collecting of data or during parsing?

    Kind regards,

    Fahad

  • Hello Fahad,

    Make this change before sending the CFG file to the sensor.

    Best Regards,

    Pedrhom Nafisi

  • Hi Pedrhom,

    Sorry for being late. I tried it.

    Can you try doing LvdsStreamcfg 1 1 1 1

    But I got an error which is shown below.

    I load this profile to mmwave demo visualizer but I got this error. Profile.cfg is attached as well.

    7178.profile_2d.cfg

    kind regards,

    Fahad

  • Hello Fahad,

    Is there a reason you are trying to do lvdsStreamCfg when running the mmWaveDemoVisualizer? The lvdsStreamCfg line is specfically for pulling raw data and utilization of the lvdsStreamCfg command assumes that you have a host processor (DCA1000) actually capturing this LVDS data stream.

    Best Regards,

    Pedrhom Nafisi

  • Is there a reason you are trying to do lvdsStreamCfg when running the mmWaveDemoVisualizer?

    I just clicked on load config from PC and send as shown below, and then load the profile.cfg as attached above. Then it gives me this error(as shown above).

    But when I used the same profile.cfg for parser and then set LvdsStreamCfg -1 0 1 0 , it gives me the following output as in text file. But the sw_output.csv

    is empty just with headers.

    6840.sw_output.csv

    **** line from config file: 
    % ***************************************************************
    
    **** line from config file: 
    % Created for SDK ver:03.06
    
    **** line from config file: 
    % Created using Visualizer ver:3.6.0.0
    
    **** line from config file:
    % Frequency:60
    
    **** line from config file:
    % Platform:xWR68xx_AOP
    
    **** line from config file:
    % Scene Classifier:best_range_res
    
    **** line from config file:
    % Azimuth Resolution(deg):30 + 30
    
    **** line from config file:
    % Range Resolution(m):0.044
    
    **** line from config file:
    % Maximum unambiguous Range(m):9.02
    
    **** line from config file:
    % Maximum Radial Velocity(m/s):1
    
    **** line from config file:
    % Radial velocity resolution(m/s):0.13
    
    **** line from config file:
    % Frame Duration(msec):100
    
    **** line from config file:
    % RF calibration data:None
    
    **** line from config file:
    % ***************************************************************
    
    **** line from config file:
    sensorStop
    
    **** line from config file:
    flushCfg
    
    **** line from config file:
    dfeDataOutputMode 1
    
    **** line from config file:
    channelCfg 15 7 0
    
    **** line from config file:
    adcCfg 2 1
    
    **** line from config file:
    adcbufCfg -1 0 1 1 1
    
    **** line from config file:
    profileCfg 0 60 359 7 57.14 0 0 70 1 256 5209 0 0 158
    
    **** line from config file:
    chirpCfg 0 0 0 0 0 0 0 1
    
    **** line from config file:
    chirpCfg 1 1 0 0 0 0 0 2
    
    **** line from config file:
    chirpCfg 2 2 0 0 0 0 0 4
    
    **** line from config file:
    frameCfg 0 2 16 0 100 1 0
    
    **** line from config file:
    lowPower 0 0
    
    **** line from config file:
    guiMonitor -1 1 1 0 0 0 1
    
    **** line from config file:
    cfarCfg -1 0 2 8 4 3 0 15 1
    
    **** line from config file:
    cfarCfg -1 1 0 4 2 3 1 15 1
    
    **** line from config file:
    multiObjBeamForming -1 1 0.5
    
    **** line from config file:
    clutterRemoval -1 0
    
    **** line from config file:
    calibDcRangeSig -1 0 -5 8 256
    
    **** line from config file:
    extendedMaxVelocity -1 0
    
    **** line from config file:
    lvdsStreamCfg -1 0 1 0
    
    **** line from config file:
    compRangeBiasAndRxChanPhase 0.0 1 0 -1 0 1 0 -1 0 1 0 -1 0 1 0 -1 0 1 0 -1 0 1 0 -1 0
    
    **** line from config file: 
    measureRangeBiasAndRxChanPhase 0 1.5 0.2
    
    **** line from config file:
    CQRxSatMonitor 0 3 5 121 0
    
    **** line from config file:
    CQSigImgMonitor 0 127 4
    
    **** line from config file:
    analogMonitor 0 0
    
    **** line from config file:
    aoaFovCfg -1 -90 90 -90 90
    
    **** line from config file:
    cfarFovCfg -1 0 0 8.92
    
    **** line from config file:
    cfarFovCfg -1 1 -1 1.00
    
    **** line from config file:
    calibData 0 0 0
    
    **** line from config file:
    sensorStart
    
    
    datacard_record_Raw_0.bin parser pass!

    Kind regards,

    Fahad

  • Hello Fahad,

    What happens when you remove the LvdsStreamCfg line and run that same cfg? Does that still give you an error/issue? Again why do you want/need LVDS streaming when using the mmWave Demo Visualizer?

    Best Regards,

    Pedrhom Nafisi

  • Hello Pedrhom,

    What happens when you remove the LvdsStreamCfg line and run that same cfg? Does that still give you an error/issue?

    Yes, I got an error of: "Error: Invalid lvdsCfg_headerEn_buf[0]"

    Again why do you want/need LVDS streaming when using the mmWave Demo Visualizer?

    Actually with DCA1000 CLI command it gives me a log file as well in which there is good details and also Timestamps or overall duration of data collection. which is good for me in my case.

    Otherwise by record button it works well I got output through parsing script but no enough details about timestamp or duration.

    Kind regards,

    Fahad

  • Hello Fahad,

    Can you provide me with the LVDS_Example script you are currently using? I think that will help me with the context of what you are doing.

    So correct me on my logic here, are you saying that you are running your profile_2d.cfg through mmWave Demo Visualizer and it works, but then when using the same CFG for DCA1000 with that LVDS_Example it does not work?

    Best Regards,

    Pedrhom Nafisi

  • Hi Pedrhom,

    Can you provide me with the LVDS_Example script you are currently using? I think that will help me with the context of what you are doing.

    Yes that's great I'll attached it here. 

    LVDS.rar

    So correct me on my logic here, are you saying that you are running your profile_2d.cfg through mmWave Demo Visualizer and it works, but then when using the same CFG for DCA1000 with that LVDS_Example it does not work?

    No in both situations it works and store bin file. but without DCA1000 it didn't give me the log file but with DCA1000 it give me which is important in my case. An example of log file is attached here.

    datacard_record_Raw_LogFile.csv

    Kind regards,
    Fahad

  • So correct me on my logic here, are you saying that you are running your profile_2d.cfg through mmWave Demo Visualizer and it works, but then when using the same CFG for DCA1000 with that LVDS_Example it does not work?

    oh my mistake. Yes this is correct it works with visualizer but for LVDS_example it gives me errors.

    Regards,

    Fahad

  • Hello Fahad.

    Pedrhom is out of office and will be able to provide an answer next week.

    Sincerely,

    Santosh

  • Hello Santosh,

    No worries. Thank you for the update.

    Kind regards,

    Fahad

  • Hello Fahad,

    So I am not too familiar with this LVDS example script that you have given me, is it possible for you to show me where you got it from? Also was there any default configuration files given alongside it? I see that the script is from 2020 so it is possible that there are some version mismatching going on here which is causing compatibility issues.

    Best Regards,

    Pedrhom Nafisi

  • Hello Pedrhom,

    So I am not too familiar with this LVDS example script that you have given me, is it possible for you to show me where you got it from?

    Thank you for your response. I got this script from "C:\ti\mmwave_sdk_03_06_00_00-LTS\packages\ti\demo\parser_scripts" as you know about sdk. 

    Also was there any default configuration files given alongside it?

    Yes, and I used the default cfg file and load to mmwave demo visualizer. It gives me an error about unrecognized line of bpmcfg -1 0 0 0 then I removed this line and load again and it works for demo but after some the demo stops and didn't work well. 

    I see that the script is from 2020 so it is possible that there are some version mismatching going on here which is causing compatibility issues.

    So can you please help me with that as well. What can I do now Can I download older version of python or what else?

    Kind regards,

    Fahad

  • Hi Fahad,

    When you used the scripts linked above, what firmware was flashed onto the mmwave device?

    Best Regards,
    Alec

  • Hi Alec,

    I only flashed the xwr6843AOP_mmw_demo.bin file and then run mmwave demo visualizer https://dev.ti.com/gallery/view/mmwave/mmWave_Demo_Visualizer/ver/3.6.0/.

    Kind regards,

    Fahad

  • Hi Fahad,

    To be clear on the problem, you are trying to take a provided config (looks like profile_2d) and add the simultaneous LVDS streaming, correct? Could you share your full cfg here and the error you currently see? We can then provide feedback on if any settings need to be updated

  • To be clear on the problem, you are trying to take a provided config (looks like profile_2d) and add the simultaneous LVDS streaming, correct?

    Yes but some time I also used the cfg downloaded from mmwave demo visulizer.

    Could you share your full cfg here and the error you currently see?

    Yes sure. If you read and see this thread from the start I explained all the things in details including cfg files and errors. Including the things related to LvdsStreamCfg.

    Kind regards,

    Fahad

  • Hi Fahad,

    Have you gone through and followed all steps in the section of the mmWave SDK user's guide titled mmWave demo with LVDS-based instrumentation? There are some steps here to help configure the DCA1000 that I have not seen you mention thus far in the discussion.

    Best Regards,
    Alec

  • Hi Alec,

    Let me explain step by step.

    1) I flashed the bin file using uniflash for mmwave demo visualizer.

    2) Then open mmwave demo visualizer on google chrome and select ports and my device.

    3) Then load config from PC or some time directly send config to device and device starts sensing and I see the plots.

    4) I already connect DCA1000 during experiment and using CLI command I able to capture the data saved in bin file through DCA1000 along with log file.

    5) I then opened the python LVDS script as indicated above and give cfg file and data prefix and run the script and get the above errors when changing LvdsStreamCfg command.

    Regards,

    Fahad

  • Fahad,

    Please refer to the documentation that I referenced above, there are additional steps to be completed to enable this functionality.

    Best Regards,
    Alec