AWR1642+TWS1400 采集原始数据出现adc_data.bin文件为空,采集时开发板正常工作,电压电流按说明文档要求,不存在电压电流低的问题。
output打印信息如下:
[14:28:11][14:28:11] ### Running Startup script: "C:\ti\mmwave_dfp_00_07_00_04\rf_eval\radarstudio\Scripts\Startup.lua" ###
[14:28:11] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1")
[14:28:11] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss")
[14:28:11] Scripter ignored: Attempt to UnBuild() again or before Build.
[14:28:11] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_dfp_00_07_00_04\\rf_eval\\radarstudio\\Clients\\\\LabClient.dll")
[14:28:11] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE")
[14:28:11] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE")
[14:28:11] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE")
[14:28:11] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE")
[14:28:11] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE")
[14:28:11] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_dfp_00_07_00_04\\rf_eval\\radarstudio\\RunTime\\SAL.dll")
[14:28:11] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "")
[14:28:11] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE")
[14:28:11] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1")
[14:28:11] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE")
[14:28:11] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE")
[14:28:11] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false")
[14:28:11] RSTD.Transmit("/")
[14:28:11] RSTD.SaveSettings(): Settings saved to "C:\Users\zw\AppData\Roaming\RSTD\config.xml"
[14:28:11] RSTD.Build()
[14:28:11] RSTD.SaveSettings(): Settings saved to "C:\Users\zw\AppData\Roaming\RSTD\config.xml"
[14:28:11] RSTD.Transmit("/")
[14:28:11] RSTD.AL_Build()
[14:28:11] RSTD.AL_LoadXml()
[14:28:11] RSTD.Transmit("/")
[14:28:11] RSTD.AL_Init()
[14:28:11] RSTD.Clients_Build()
[14:28:11] GM: Init
[14:28:11] GM: Loaded 'C:\ti\mmwave_dfp_00_07_00_04\rf_eval\radarstudio\Clients\\LabClient.dll'
[14:28:11] GM: 1 Guest (s) init
[14:28:11] GM: 1 Module(s) init
[14:28:11] GM: 2 Tab (s) init
[14:28:11] RSTD.Client_LoadXml()
[14:28:11] [RadarAPI]: Starting Matlab Engine..
[14:28:15] [RadarAPI]: Matlab Engine Started!
[14:28:17] [RadarAPI]: ar1.LoadSettings('C:\Users\zw\AppData\Roaming\RSTD\ar1gui.ini')
[14:28:18] TESTING = false
[14:28:18][14:28:18] ***Script completed successfully.***
[14:28:19] [RadarAPI]: Opening Gpio Control Port()
[14:28:19] [RadarAPI]: Status: Passed
[14:28:20] [RadarAPI]: Opening Board Control Port()
[14:28:20] [RadarAPI]: Status: Passed
[14:28:21] [RadarAPI]: ar1.FullReset()
[14:28:21] [RadarAPI]: Status: Passed
[14:28:21] [RadarAPI]: Closing Board Control Port()
[14:28:21] [RadarAPI]: Status: Passed
[14:28:21] [RadarAPI]: Closing Gpio Control Port()
[14:28:21] [RadarAPI]: Status: Passed
[14:28:21] [RadarAPI]: ar1.SOPControl(2)
[14:28:21] [RadarAPI]: Status: Passed
[14:28:32] [RadarAPI]: ar1.Connect(4,115200,1000)
[14:28:33] [RadarAPI]: ar1.Calling_IsConnected()
[14:28:33] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
[14:28:33] [RadarAPI]: Status: Passed
[14:28:34] [RadarAPI]: ar1.SelectChipVersion("XWR1642")
[14:28:34] [RadarAPI]: Status: Passed
[14:28:34] [RadarAPI]: ar1.SaveSettings('C:\Users\zw\AppData\Roaming\RSTD\ar1gui.ini')
[14:28:36] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_dfp_00_07_00_04\\rf_eval\\rf_eval_firmware\\radarss\\xwr16xx_radarss_rprc.bin")
[14:28:36] [RadarAPI]: Downloading BSS ROM RPRC Binary..
[14:29:14] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_dfp_00_07_00_04\\rf_eval\\rf_eval_firmware\\masterss\\xwr16xx_masterss_rprc.bin")
[14:29:14] [RadarAPI]: Downloading MSS RPRC Binary..
[14:29:48] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0)
[14:29:48] [RadarAPI]: Unknown Async event recieved(0)
[14:29:48] [RadarAPI]: Status: Passed
[14:29:48] [RadarAPI]: ar1.SaveSettings('C:\Users\zw\AppData\Roaming\RSTD\ar1gui.ini')
[14:29:52] [RadarAPI]: Unknown Async event recieved(1)
[14:29:52] [RadarAPI]: ar1.RfEnable()
[14:29:52] [RadarAPI]: Status: Passed
[14:29:58] [RadarAPI]: ar1.ChanNAdcConfig(1, 1, 0, 1, 1, 1, 1, 2, 1, 0)
[14:29:59] [RadarAPI]: Status: Passed
[14:30:00] [RadarAPI]: ar1.LPModConfig(0, 0)
[14:30:00] [RadarAPI]: Status: Passed
[14:30:00] [RadarAPI]: ar1.RfInit()
[14:30:00] [RadarAPI]: RF Init async event received!
[14:30:00] [RadarAPI]: Status: Passed
[14:30:00] [RadarAPI]: Time stamp, Temperture: 8716,41; APLL Status, Update: 1, 0; SynthVCO1 Status, Update: 1, 1; SynthVCO2 Status, Update: 1, 1; LODist Status, Update: 1, 1; RxADCDC Status, Update: 1, 1; HPFcutoff Status, Update: 1, 1; LPFcutoff Status, Update: 1, 1; PeakDetector Status, Update: 1, 1; TxPower Status, Update: 1, 1; RxGain Status, Update: 1, 1; RxIQMM Status, Update: 1, 1;[14:30:02] [RadarAPI]: ar1.SetCalMonFreqLimitConfig(76,81)
[14:30:02] [RadarAPI]: Status: Passed
[14:30:05] [RadarAPI]: ar1.DataPathConfig(1, 1, 0)
[14:30:05] [RadarAPI]: Status: Passed
[14:30:05] [RadarAPI]: ar1.LvdsClkConfig(1, 1)
[14:30:05] [RadarAPI]: Status: Passed
[14:30:06] [RadarAPI]: ar1.LVDSLaneConfig(0, 1, 1, 0, 0, 1, 0, 0)
[14:30:06] [RadarAPI]: Status: Passed
[14:30:39] [RadarAPI]: ar1.ProfileConfig(0, 77, 10, 6, 60, 0, 0, 0, 0, 0, 0, 11.635, 0, 267, 6200, 0, 0, 30)
[14:30:39] [RadarAPI]: Status: Passed
[14:30:43] [RadarAPI]: ar1.ChirpConfig(0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
[14:30:43] [RadarAPI]: Status: Passed
[14:30:50] [RadarAPI]: ar1.ChirpConfig(1, 1, 0, 0, 0, 0, 0, 0, 1, 0)
[14:30:50] [RadarAPI]: Status: Passed
[14:31:04] [RadarAPI]: ar1.DisableTestSource(0)
[14:31:04] [RadarAPI]: Status: Passed
[14:31:04] [RadarAPI]: ar1.FrameConfig(0, 1, 0, 128, 40, 0, 1)
[14:31:04] [RadarAPI]: Status: Passed
[14:31:09] [RadarAPI]: ar1.SetupTSW1400()
[14:31:12] [RadarAPI]: TSW1400 set-up complete.
[14:31:45] [RadarAPI]: ar1.StartTsw1400Arm("C:\\ti\\mmwave_dfp_00_07_00_04\\rf_eval\\radarstudio\\PostProc\\adc_data.bin")
[14:31:55] [RadarAPI]: ar1.StartFrame()
[14:31:55] [RadarAPI]: Status: Passed
[14:31:55] [RadarAPI]: Frame trigger async event received!
[14:31:56] [RadarAPI]: MatlabProc Status: Error Type: No Data was collected. Please check.
[14:31:56] [RadarAPI]: TSW1400 capture complete
[14:32:37] [RadarAPI]: ar1.StopFrame()
[14:32:37] [RadarAPI]: Status: Passed
[14:33:33] [RadarAPI]: ar1.SetupTSW1400()
[14:33:39] [RadarAPI]: TSW1400 set-up complete.
[14:33:56] [RadarAPI]: ar1.StartTsw1400Arm("C:\\ti\\mmwave_dfp_00_07_00_04\\rf_eval\\radarstudio\\PostProc\\adc_data.bin")
[14:34:00] [RadarAPI]: ar1.StartFrame()
[14:34:00] [RadarAPI]: Status: Passed
[14:34:00] [RadarAPI]: Frame trigger async event received!
[14:34:07] [RadarAPI]: MatlabProc Status: Error Type: No Data was collected. Please check.
[14:34:07] [RadarAPI]: TSW1400 capture complete
[14:34:20] [RadarAPI]: ar1.StopFrame()
[14:34:20] [RadarAPI]: Status: Passed
[14:34:21] [RadarAPI]: ar1.StartMatlabPostProc("C:\\ti\\mmwave_dfp_00_07_00_04\\rf_eval\\radarstudio\\PostProc\\adc_data.bin")
[14:34:21] [RadarAPI]: Error:[14:34:21][14:34:21] … MWMCR::EvaluateFunction error …[14:34:21] 29-Nov-2020 14:34:21: The file C:\ti\mmwave_dfp_00_07_00_04\rf_eval\radarstudio\PostProc\adc_data.bin is empty. Please capture more data.,1,
[14:34:21] Error in => process_adc_data.m at line 30.
[14:34:21][14:34:21] … Matlab M-code Stack Trace …
[14:34:21] at
[14:34:21] file C:\Users\zw\AppData\Local\Temp\zw\mcrCache8.5.1\Matlab0\Logging\log_status.m, name log_status, line 32.
[14:34:21] at
[14:34:21] file C:\Users\zw\AppData\Local\Temp\zw\mcrCache8.5.1\Matlab0\Processing_functions\read_adc_data.m, name read_adc_data, line 28.
[14:34:21] at
[14:34:21] file C:\Users\zw\AppData\Local\Temp\zw\mcrCache8.5.1\Matlab0\MatlabPostPr\process_adc_data.m, name process_adc_data, line 30.
[14:34:21][14:34:21][14:34:21] Trace:
[14:34:21] 在 MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(String functionName, Int32 numArgsOut, Int32 numArgsIn, MWArray[] argsIn)
[14:34:21] 在 MathWorks.MATLAB.NET.Utility.MWMCR.EvaluateFunction(Int32 numArgsOut, String functionName, MWArray[] argsIn)
[14:34:21] 在 MatlabPostProcGui.MatlabPostProcGUIClass.process_adc_data(MWArray adc_file_name, MWArray force_cont_stream_mode)
[14:34:21] 在 AR1xController.frmAR1Main.iStartMtlabPostProc()
之前在英文论坛寻找过解决办法,发现大多数问题出现在电压电流不符合规定导致出错,无法采集到数据,但是我已经十分确定我的供电电流和电压符合文档说明,每一次采集数据发现adc_data.bin文件都有时间上的更新,但是并没有大小的变化,一直显示0kb。为此我找到logFile.txt,如下为其日志文件打印内容:
29-Nov-2020 14:28:14: IsFPGA:,0,0,
29-Nov-2020 14:28:14: C:\ti\mmwave_dfp_00_07_00_04\rf_eval\radarstudio\RunTime,0,
29-Nov-2020 14:28:33: API:select_chip_version,AR1642,0,
29-Nov-2020 14:28:34: API:select_chip_version,AR1642,0,
29-Nov-2020 14:29:58: API:ChannelConfig,3,15,0,
29-Nov-2020 14:29:59: API:AdcOutConfig,2,1,0,
29-Nov-2020 14:29:59: API:DataFmtConfig,15,2,1,0,1,0,
29-Nov-2020 14:30:00: API:LowPowerConfig,0,0,0,
29-Nov-2020 14:30:05: API:DataPathConfig,1,1,0,2,0,
29-Nov-2020 14:30:05: API:LvdsClkConfig,1,1,0,
29-Nov-2020 14:30:05: TSW1400 Sampling rate : 600000000 7500000,0,
29-Nov-2020 14:30:05: API:SetHsiClock,9,0,
29-Nov-2020 14:30:06: API:LaneConfig,3,0,
29-Nov-2020 14:30:06: API:LvdsLaneConfig,0,1,0,
29-Nov-2020 14:30:39: API:ProfileConfig,0,1435384036,1000,600,6000,0,0,241,0,267,6200,0,0,30,0,
29-Nov-2020 14:30:43: API:ChirpConfig,0,0,0,0,0,0,0,1,0,
29-Nov-2020 14:30:50: API:ChirpConfig,1,1,0,0,0,0,0,2,0,
29-Nov-2020 14:31:04: API:EnableTestSource,0,1,0,
29-Nov-2020 14:31:04: API:FrameConfig,0,1,0,128,8000000,0,534,0,
29-Nov-2020 14:31:04: API:AdvancedFrameConfig,1,0,0,0,2,128,8000000,0,1,1,8000000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
29-Nov-2020 14:31:09: Selecting ADC Device : ,AWR16xx_lvds_4Channel_ddr_4bit_par_centre_16_bit,0,
29-Nov-2020 14:31:10: Setting the number of samples to 41011200.,0,
29-Nov-2020 14:31:12: Setting the sampling frequency to 7500000.,0,
29-Nov-2020 14:31:12: Setting the input target frequency to30000000.,0,
29-Nov-2020 14:31:12: Applying Trigger Settings,0,
29-Nov-2020 14:31:45: Clearing out the bin file.,0,
29-Nov-2020 14:31:45: Applying Trigger Settings,0,
29-Nov-2020 14:31:46: Reading DDR Memory…,0,
29-Nov-2020 14:31:56: HSDCPro : Saving ADC Raw Data as Bin file at C:\ti\mmwave_dfp_00_07_00_04\rf_eval\radarstudio\PostProc\adc_data.bin,0,
29-Nov-2020 14:31:56: Error in Data collection. Please try again. Make sure that there is sufficient time (2 secs) between arming and triggering the frame. Also, make sure that the LVDS is active on the AR device and that the TSW1400 is active with the correct firmware.,0,
29-Nov-2020 14:31:56: API:SensorStart,0,
29-Nov-2020 14:32:38: API:SensorStop,0,
29-Nov-2020 14:33:33: Selecting ADC Device : ,AWR16xx_lvds_4Channel_ddr_4bit_par_centre_16_bit,0,
29-Nov-2020 14:33:34: Setting the number of samples to 41011200.,0,
29-Nov-2020 14:33:37: Setting the sampling frequency to 7500000.,0,
29-Nov-2020 14:33:37: Setting the input target frequency to30000000.,0,
29-Nov-2020 14:33:38: Applying Trigger Settings,0,
29-Nov-2020 14:33:56: Clearing out the bin file.,0,
29-Nov-2020 14:33:56: Applying Trigger Settings,0,
29-Nov-2020 14:33:56: Reading DDR Memory…,0,
29-Nov-2020 14:34:07: HSDCPro : Saving ADC Raw Data as Bin file at C:\ti\mmwave_dfp_00_07_00_04\rf_eval\radarstudio\PostProc\adc_data.bin,0,
29-Nov-2020 14:34:07: Error in Data collection. Please try again. Make sure that there is sufficient time (2 secs) between arming and triggering the frame. Also, make sure that the LVDS is active on the AR device and that the TSW1400 is active with the correct firmware.,0,
29-Nov-2020 14:34:07: API:SensorStart,0,
29-Nov-2020 14:34:20: API:SensorStop,0,
29-Nov-2020 14:34:21: The file C: i
软件我使用的为mmwave_dfp_00_07_00_04,AWR1642为ES1.0版本, 按照文档手册我安装了Matlab Runtime Engine v8.5.1,但在所有准备条件都符合的情况下,我依然出现采集数据为空的情况,望解答!
Chris Meng:
你好,
你是否有关注过下面的信息?
29-Nov-2020 14:34:07: Error in Data collection. Please try again. Make sure that there is sufficient time (2 secs) between arming and triggering the frame. Also, make sure that the LVDS is active on the AR device and that the TSW1400 is active with the correct firmware.,0,
user6407706:
回复 Chris Meng:
我注意到过此条信息,点击“SetUp TSW1400”时,我有观察HSDC状态栏,等状态栏显示“waiting for user input”时才进行下一步操作;配置信息Set成功后,依次点击“TSW1400 ARM”和“Trigger Frame”触发按钮,这里信息表明一个是两个按钮连续按下时间的问题,我有试过在2s内和多余2s的时间按下这两个按钮,但发现时间的对比无法改变最后的结果;后面我又去检查了板与板之间是否连接正常,发现连接的很稳,没有松动的现象。以上就是我做出的尝试,请问一下我理解的对不?或许你有更好的解决办法?
Chris Meng:
回复 user6407706:
你好,
你是如何确认电压电流没有问题的?是看到适配器的指标,还是实际测试的?
user6407706:
回复 Chris Meng:
我是根据适配器指标的来判定的,没有实际测试过
Chris Meng:
回复 user6407706:
你好,
这样还是存在风险的。建议使用电流标称值更高的电源,或者用稳压电源供电尝试一下。