TI中文支持网
TI专业的中文技术问题搜集分享网站

MMWCAS-DSP-EVM: 2243级联板实现主芯片的连续波的收发

Part Number:MMWCAS-DSP-EVM

已经配置好了参数脚本,代码如下:

--[[
Sequence being followed

A. CONFIGURATION
1. Connecting to TDA
1. Configuring Master from SOP till Channel Config
2. Configuring Slave (i) sequentially from SOP till SPI Connect. i = 1, 2, 3
3. Configuring Slaves together from F/W download till Channel Config
4. Configuring all devices together from LDO Bypass till Frame Config

NOTE:
Update the following in the script accordingly before running
1. metaImage F/W path on line 32
2. TDA Host Board IP Address on line 39
--]]
----------------------------------------User Constants--------------------------------------------
dev_list={1, 2, 4, 8}-- Device map
RadarDevice={1, 0, 0, 0}-- {dev1, dev2, dev3, dev4}, 1: Enable, 0: Disable
cascade_mode_list ={0, 2, 2, 2}-- 0: Single chip, 1: Master, 2: Slave

-- F/W Download Path

-- Uncomment the next line if you wish to pop-up a dialog box to select the firmware image file
-- Otherwise, hardcode the path to the firmware metaimage below
-- By default, the firmware filename is: xwr22xx_metaImage.bin

-- metaImagePath  =RSTD.BrowseForFile(RSTD.GetSettingsPath(), "bin", "Browse to .bin file")
-- For 2243 ES1.1 devices
metaImagePath="D:\\ti\\mmwave_dfp_02_02_03_01\\firmware\\xwr22xx_metaImage.bin"
-- For 2243 ES1.0 devices
-- metaImagePath="D:\\ti\\mmwave_dfp_02_03_00_01\\firmware\\xwr22xx_metaImage.bin"

-- IP Address for the TDA2 Host Board
-- Change this accordingly for your setup

TDA_IPAddress="192.168.33.180"

-- Device map of all the devices to be enabled by TDA
-- 1 - master ; 2- slave1 ; 4 - slave2 ; 8 - slave3

deviceMapOverall  =RadarDevice[1] + (RadarDevice[2]*2) + (RadarDevice[3]*4) + (RadarDevice[4]*8)
deviceMapSlaves=(RadarDevice[2]*2) + (RadarDevice[3]*4) + (RadarDevice[4]*8)

-- Enable/Disable Test Source
-- This is useful during bringup

test_source_enable  =0-- 0: Disable, 1: Enable
------------------------------------------- Sensor Configuration ------------------------------------------------
--[[
The sensor configuration consists of 3 sections:
1) Profile Configuration (common to all 4 AWR devices)
2) Chirp Configuration (unique for each AWR device - mainly because TXs to use aredifferent for each chirp)
3) Frame Configuration (common to all 4 AWR devices, except for the trigger mode for the master)
Change the values below as needed. --]]

-- Profile configuration
local profile_indx=0
local start_freq=76.284-- GHz
local slope=3.911-- MHz/us
local idle_time=5-- us
local adc_start_time=4-- us
local adc_samples=1024-- Number of samples per chirp
local sample_freq=10000-- ksps
local ramp_end_time=110.4-- us
local rx_gain=48-- dB
local tx0OutPowerBackoffCode=0
local tx1OutPowerBackoffCode=0
local tx2OutPowerBackoffCode=0
local tx0PhaseShifter=0
local tx1PhaseShifter=0
local tx2PhaseShifter=0
local txStartTimeUSec=0
local hpfCornerFreq1=0-- 0: 175KHz, 1: 235KHz, 2: 350KHz, 3: 700KHz
local hpfCornerFreq2=0-- 0: 350KHz, 1: 700KHz, 2: 1.4MHz, 3: 2.8MHz

-- Frame configuration
local start_chirp_tx=0
local end_chirp_tx=3
local nchirp_loops=64-- Number of chirps per frame
local nframes_master=10-- Number of Frames for Master

local Inter_Frame_Interval=100-- ms
local trigger_delay=0-- us
local trig_list={1,2,2,2} -- 1: Software trigger, 2: Hardware trigger

--[[
Function to configure the chirps specific to a device
12 chirps are configured below, individually for each AWR device

|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
|| Dev 1 | Dev 1 | Dev 1 | Dev 2 | Dev 2 | Dev 2 | Dev 3 | Dev 3 | Dev 3 | Dev 4 | Dev 4 | Dev 4 |
| Chirp |  TX0  |  TX1  |  TX2  |  TX 0 |  TX1  |  TX2  |  TX0  |  TX1  |  TX2  |  TX0  |  TX1  |  TX2  |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
|0 |0 |0 |0 |0 |0 |0 |0 |0 |0 |0 |0 |1 |
|1 |0 |0 |0 |0 |0 |0 |0 |0 |0 |0 |1 |0 |
|2 |0 |0 |0 |0 |0 |0 |0 |0 |0 |1 |0 |0 |
|3 |0 |0 |0 |0 |0 |0 |0 |0 |1 |0 |0 |0 |
|4 |0 |0 |0 |0 |0 |0 |0 |1 |0 |0 |0 |0 |
|5 |0 |0 |0 |0 |0 |0 |1 |0 |0 |0 |0 |0 |
|6 |0 |0 |0 |0 |0 |1 |0 |0 |0 |0 |0 |0 |
|7 |0 |0 |0 |0 |1 |0 |0 |0 |0 |0 |0 |0 |
|8 |0 |0 |0 |1 |0 |0 |0 |0 |0 |0 |0 |0 |
|9 |0 |0 |1 |0 |0 |0 |0 |0 |0 |0 |0 |0 |
|10 |0 |1 |0 |0 |0 |0 |0 |0 |0 |0 |0 |0 |
|11 |1 |0 |0 |0 |0 |0 |0 |0 |0 |0 |0 |0 |
|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|-------|
--]] 
-- Note: The syntax for this API is:
-- ar1.ChirpConfig_mult(RadarDeviceId, chirpStartIdx, chirpEndIdx, profileId, startFreqVar, 
--freqSlopeVar, idleTimeVar, adcStartTimeVar, tx0Enable, tx1Enable, tx2Enable)

function Configure_Chirps(i)if (i == 1) then-- Chirp 0if (0 == ar1.ChirpConfig_mult(dev_list[i], 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 0 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 0 Configuration failed\n", "red")return -4end-- Chirp 1if (0 == ar1.ChirpConfig_mult(dev_list[i], 1, 1, 0, 0, 0, 40, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 1 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 1 Configuration failed\n", "red")return -4end-- Chirp 2if (0 == ar1.ChirpConfig_mult(dev_list[i], 2, 2, 0, 0, 0, 14, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 2 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 2 Configuration failed\n", "red")return -4end-- Chirp 3if (0 == ar1.ChirpConfig_mult(dev_list[i], 3, 3, 0, 0, 0, 14, 0, 0, 1, 0)) thenWriteToLog("Device "..i.." : Chirp 3 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 3 Configuration failed\n", "red")return -4endelseif (i == 2) then-- Chirp 0if (0 == ar1.ChirpConfig_mult(dev_list[i], 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 0 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 0 Configuration failed\n", "red")return -4end-- Chirp 1if (0 == ar1.ChirpConfig_mult(dev_list[i], 1, 1, 0, 0, 0, 40, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 1 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 1 Configuration failed\n", "red")return -4end-- Chirp 2if (0 == ar1.ChirpConfig_mult(dev_list[i], 2, 2, 0, 0, 0, 14, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 2 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 2 Configuration failed\n", "red")return -4end-- Chirp 3if (0 == ar1.ChirpConfig_mult(dev_list[i], 3, 3, 0, 0, 0, 14, 0, 0, 1, 0)) thenWriteToLog("Device "..i.." : Chirp 3 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 3 Configuration failed\n", "red")return -4endelseif (i == 3) then-- Chirp 0if (0 == ar1.ChirpConfig_mult(dev_list[i], 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 0 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 0 Configuration failed\n", "red")return -4end-- Chirp 1if (0 == ar1.ChirpConfig_mult(dev_list[i], 1, 1, 0, 0, 0, 40, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 1 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 1 Configuration failed\n", "red")return -4end-- Chirp 2if (0 == ar1.ChirpConfig_mult(dev_list[i], 2, 2, 0, 0, 0, 14, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 2 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 2 Configuration failed\n", "red")return -4end-- Chirp 3if (0 == ar1.ChirpConfig_mult(dev_list[i], 3, 3, 0, 0, 0, 14, 0, 0, 1, 0)) thenWriteToLog("Device "..i.." : Chirp 3 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 3 Configuration failed\n", "red")return -4endelseif (i == 4) then-- Chirp 0if (0 == ar1.ChirpConfig_mult(dev_list[i], 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 0 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 0 Configuration failed\n", "red")return -4end-- Chirp 1if (0 == ar1.ChirpConfig_mult(dev_list[i], 1, 1, 0, 0, 0, 40, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 1 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 1 Configuration failed\n", "red")return -4end-- Chirp 2if (0 == ar1.ChirpConfig_mult(dev_list[i], 2, 2, 0, 0, 0, 14, 0, 1, 0, 0)) thenWriteToLog("Device "..i.." : Chirp 2 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 2 Configuration failed\n", "red")return -4end-- Chirp 3if (0 == ar1.ChirpConfig_mult(dev_list[i], 3, 3, 0, 0, 0, 14, 0, 0, 1, 0)) thenWriteToLog("Device "..i.." : Chirp 3 Configuration successful\n", "green")elseWriteToLog("Device "..i.." : Chirp 3 Configuration failed\n", "red")return -4endend

end
 
------------------------------ API Configuration ------------------------------------------------
-- 1. Connection to TDA. 2. Selecting Cascade/Single Chip.  3. Selecting 2-chip/4-chip

WriteToLog("Setting up Studio for Cascade started..\n", "blue")

if(0 == ar1.ConnectTDA(TDA_IPAddress, 5001, deviceMapOverall)) thenWriteToLog("ConnectTDA Successful\n", "green")
elseWriteToLog("ConnectTDA Failed\n", "red")return -1
end

if(0 == ar1.selectCascadeMode(1)) thenWriteToLog("selectCascadeMode Successful\n", "green")
elseWriteToLog("selectCascadeMode Failed\n", "red")return -1
end

WriteToLog("Setting up Studio for Cascade ended..\n", "blue")
--Master Initialization

-- SOP Mode Configuration
if (0 == ar1.SOPControl_mult(1, 4)) thenWriteToLog("Master : SOP Reset Successful\n", "green")
elseWriteToLog("Master : SOP Reset Failed\n", "red")return -1
end

-- SPI Connect
if (0 == ar1.PowerOn_mult(1, 0, 1000, 0, 0)) thenWriteToLog("Master : SPI Connection Successful\n", "green")
elseWriteToLog("Master : SPI Connection Failed\n", "red")return -1
end

-- Firmware Download. (SOP 4 - MetaImage)
if (0 == ar1.DownloadBssFwOvSPI_mult(1, metaImagePath)) thenWriteToLog("Master : FW Download Successful\n", "green")
elseWriteToLog("Master : FW Download Failed\n", "red")return -1
end

-- RF Power Up
if (0 == ar1.RfEnable_mult(1)) thenWriteToLog("Master : RF Power Up Successful\n", "green")
elseWriteToLog("Master : RF Power Up Failed\n", "red")return -1
end
-- Channel & ADC Configuration
if (0 == ar1.ChanNAdcConfig_mult(1,1,1,1,1,1,1,1,2,1,0,1)) thenWriteToLog("Master : Channel & ADC Configuration Successful\n", "green")
elseWriteToLog("Master : Channel & ADC Configuration Failed\n", "red")return -2
end
-- All devices together
-- Including this depends on the type of board being used.
-- LDO configuration
if (0 == ar1.RfLdoBypassConfig_mult(deviceMapOverall, 3)) thenWriteToLog("LDO Bypass Successful\n", "green")
elseWriteToLog("LDO Bypass failed\n", "red")return -2
end

-- Low Power Mode Configuration
if (0 == ar1.LPModConfig_mult(deviceMapOverall,0, 0)) thenWriteToLog("Low Power Mode Configuration Successful\n", "green")
elseWriteToLog("Low Power Mode Configuration failed\n", "red")return -2
end

-- Miscellaneous Control Configuration
if (0 == ar1.SetMiscConfig_mult(deviceMapOverall, 1, 0, 0, 0)) thenWriteToLog("Misc Control Configuration Successful\n", "green")
elseWriteToLog("Misc Control Configuration failed\n", "red")return -2
end

-- Edit this API to enable/disable the boot time calibration. Enabled by default.
-- RF Init Calibration Configuration
if (0 == ar1.RfInitCalibConfig_mult(deviceMapOverall, 1, 1, 1, 1, 1, 1, 1, 65537)) thenWriteToLog("RF Init Calibration Successful\n", "green")
elseWriteToLog("RF Init Calibration failed\n", "red")return -2
end
-- RF Init
if (0 == ar1.RfInit_mult(deviceMapOverall)) thenWriteToLog("RF Init Successful\n", "green")
elseWriteToLog("RF Init failed\n", "red")return -2
end

---------------------------Data Configuration----------------------------------
-- Data path Configuration
if (0 == ar1.DataPathConfig_mult(deviceMapOverall, 0, 1, 0)) thenWriteToLog("Data Path Configuration Successful\n", "green")
elseWriteToLog("Data Path Configuration failed\n", "red")return -3
end

-- Clock Configuration
if (0 == ar1.LvdsClkConfig_mult(deviceMapOverall, 1, 1)) thenWriteToLog("Clock Configuration Successful\n", "green")
elseWriteToLog("Clock Configuration failed\n", "red")return -3
end

-- CSI2 Configuration
if (0 == ar1.CSI2LaneConfig_mult(deviceMapOverall, 1, 0, 2, 0, 4, 0, 5, 0, 3, 0, 0)) thenWriteToLog("CSI2 Configuration Successful\n", "green")
elseWriteToLog("CSI2 Configuration failed\n", "red")return -3
end

----------------------------Test Source Configuration------------------------------
-- This is useful for initial bringup.
-- Each device is configured with a test object at a different location.
if(test_source_enable == 1) thenif(RadarDevice[1] == 1) then-- Object at 5 m with x = 4m and y = 3mif (0 == ar1.SetTestSource_mult(1, 4, 3, 0, 0, 0, 0, -327, 0, -327, 327, 327, 327, -2.5, 327, 327, 0,0, 0, 0, -327, 0, -327, 327, 327, 327, -95, 0, 0, 0.5, 0, 1, 0, 1.5, 0, 0, 0, 0, 0, 0, 0, 0)) thenWriteToLog("Device 1 : Test Source Configuration Successful\n", "green")elseWriteToLog("Device 1 : Test Source Configuration failed\n", "red")return -3endendif(RadarDevice[2] == 1) then-- Object at 5 m with x = 3m and y = 4mif (0 == ar1.SetTestSource_mult(2, 3, 4, 0, 0, 0, 0, -327, 0, -327, 327, 327, 327, -2.5, 327, 327, 0,0, 0, 0, -327, 0, -327, 327, 327, 327, -95, 0, 0, 0.5, 0, 1, 0, 1.5, 0, 0, 0, 0, 0, 0, 0, 0)) thenWriteToLog("Device 2 : Test Source Configuration Successful\n", "green")elseWriteToLog("Device 2 : Test Source Configuration failed\n", "red")return -3endendif(RadarDevice[3] == 1) then-- Object at 13 m with x = 12m and y = 5mif (0 == ar1.SetTestSource_mult(4, 12, 5, 0, 0, 0, 0, -327, 0, -327, 327, 327, 327, -2.5, 327, 327, 0,0, 0, 0, -327, 0, -327, 327, 327, 327, -95, 0, 0, 0.5, 0, 1, 0, 1.5, 0, 0, 0, 0, 0, 0, 0, 0)) thenWriteToLog("Device 3 : Test Source Configuration Successful\n", "green")elseWriteToLog("Device 3 : Test Source Configuration failed\n", "red")return -3endendif(RadarDevice[4] == 1) then-- Object at 13 m with x = 5m and y = 12mif (0 == ar1.SetTestSource_mult(8, 5, 12, 0, 0, 0, 0, -327, 0, -327, 327, 327, 327, -2.5, 327, 327, 0,0, 0, 0, -327, 0, -327, 327, 327, 327, -95, 0, 0, 0.5, 0, 1, 0, 1.5, 0, 0, 0, 0, 0, 0, 0, 0)) thenWriteToLog("Device 4 : Test Source Configuration Successful\n", "green")elseWriteToLog("Device 4 : Test Source Configuration failed\n", "red")return -3endend
end

---------------------------Sensor Configuration-------------------------

-- Profile Configuration
if (0 == ar1.ProfileConfig_mult(deviceMapOverall, 0, start_freq, idle_time, adc_start_time, ramp_end_time,0, 0, 0, 0, 0, 0, slope, 0, adc_samples, sample_freq, 0, 0, rx_gain)) thenWriteToLog("Profile Configuration successful\n", "green")
elseWriteToLog("Profile Configuration failed\n", "red")return -4
end

-- Chirp Configuration 
for i=1,table.getn(RadarDevice) doif ((RadarDevice[1]==1) and (RadarDevice[i]==1)) thenConfigure_Chirps(i)end
end

-- Enabling/ Disabling Test Source
if(test_source_enable == 1) thenar1.EnableTestSource_mult(deviceMapOverall, 1)WriteToLog("Enabling Test Source Configuration successful\n", "green")
end

-- Frame Configuration
-- Master
if (0 == ar1.FrameConfig_mult(1,start_chirp_tx,end_chirp_tx,nframes_master, nchirp_loops,Inter_Frame_Interval, 0, 1)) thenWriteToLog("Master : Frame Configuration successful\n", "green")
elseWriteToLog("Master : Frame Configuration failed\n", "red")
end

在使用cascade_capture_contstream.lua的时候,有时报错,然后软件重启就好了,但是收发的信号用仪器检测出来的确是单载波,代码如下: 

--[[A. STREAMING & CAPTURE1. Streaming Slave (3, 2, 1) sequentially.2. Streaming Master.B. TRANSFERRING FILES1. The data is stored in file(s) with max cap placed at 2 GB.2. The files can be retrieved from the SSD (/mnt/ssd folder) using WinSCP.

Note: Update lines 18 to 66 as needed before using this script.
--]]

---------------------------Streaming Configuration -------------------------------------------
-- Change the values below as needed.

-- Streaming configuration
local start_freq=76.284-- GHz
local sample_freq=10000-- ksps
local rx_gain=48-- dB
local tx0OutPowerBackoffCode=0
local tx1OutPowerBackoffCode=0
local tx2OutPowerBackoffCode=0
local tx0PhaseShifter=0
local tx1PhaseShifter=0
local tx2PhaseShifter=0
local hpfCornerFreq1=0-- 0: 175KHz, 1: 235KHz, 2: 350KHz, 3: 700KHz
local hpfCornerFreq2=0-- 0: 350KHz, 1: 700KHz, 2: 1.4MHz, 3: 2.8MHz

-- Basic configuration for Analysis
local numSamples=524288

-- Streaming Configuration
if (0 == ar1.ContStrConfig_mult(deviceMapOverall, start_freq, sample_freq, rx_gain, hpfCornerFreq1,hpfCornerFreq2, tx0OutPowerBackoffCode, tx1OutPowerBackoffCode, tx2OutPowerBackoffCode,tx0PhaseShifter, tx1PhaseShifter, tx2PhaseShifter)) thenWriteToLog("Streaming Configuration successful\n", "green")
elseWriteToLog("Streaming Configuration failed\n", "red")return -4
end

-- Note: "capture_time"  is a timeout till which the devices are streaming continuously.
-- It does not affect the amount of data/samples being captured by the TDA2XX.
-- Data captured by TDA2XX depends on the number of samples being programmed at line 31

capture_time=20000-- ms
inter_loop_time=2000-- ms
num_loops=1

--[[
Note: 
Change the parameter as desired:
1. capture_directory: is the filename under which captures are stored on the SSDand is also the directory to which files will be transferred back to the hostThe captures are copied to the PostProc folder within mmWave Studio.
Note: 
If this script is called multiple times without changing the directory name, then all 
captured files will be in the same directory with filename suffixes incremented automatically. 
It may be hard to know which captured files correspond to which run of the script.
Note: 
It is strongly recommended to change this directory name between captures.
--]]
------------------------------DATA CAPTURE------------------------------
-- Function to start/stop Streaming 
function Streaming_Control(Device_ID, En1_Dis0)local status = 0if (En1_Dis0 == 1) thenstatus = ar1.ContStrModEnable_mult(dev_list[Device_ID]) --Start Streamingif (status == 0) thenWriteToLog("Device "..Device_ID.." : Start Streaming Successful\n", "green")elseWriteToLog("Device "..Device_ID.." : Start Streaming Failed\n", "red")return -5endelsestatus = ar1.ContStrModDisable_mult(dev_list[Device_ID]) --Stop Streamingif (status == 0) thenWriteToLog("Device "..Device_ID.." : Stop Streaming Successful\n", "green")elseWriteToLog("Device "..Device_ID.." : Stop Streaming Failed\n", "red")return -5endendreturn status
end


while (num_loops > 0)
do

WriteToLog("Loops Remaining : "..num_loops.."\n", "purple")

-- Start Streaming
WriteToLog("Starting Streaming Start sequence...\n", "blue")

if (RadarDevice[4]==1)thenStreaming_Control(4,1)
end

if (RadarDevice[3]==1)thenStreaming_Control(3,1)
end

if (RadarDevice[2]==1)thenStreaming_Control(2,1)
end

Streaming_Control(1,1)

RSTD.Sleep(1000)

-- Basic Configuration for Analysis
if (0 == ar1.BasicConfigurationForAnalysis(numSamples, numSamples, 1, 0, 0, 0, 1)) thenWriteToLog("Basic Configuration for Analysis successful\n", "green")
elseWriteToLog("Basic Configuration for Analysis failed\n", "red")return -4
end

RSTD.Sleep(1000)

-- TDA ARM
capture_directory="Cascade_22xx_Cont_Stream_Capture_"..num_loops.."_iteration" 
WriteToLog("Starting TDA ARM for Cont Stream...\n", "blue")
status = ar1.TDAContStream_StartRecord_mult(1, capture_directory)
if (status == 0) thenWriteToLog("TDA ARM for Cont Stream Successful\n", "green")
elseWriteToLog("TDA ARM for Cont Stream Failed\n", "red")return -5
end

WriteToLog("Capturing AWR device data to the TDA SSD...\n", "blue")
RSTD.Sleep(capture_time)
-- Stop Streaming
WriteToLog("Starting Streaming Stop sequence...\n", "blue")
if (RadarDevice[4]==1)thenStreaming_Control(4,0)
end

if (RadarDevice[3]==1)thenStreaming_Control(3,0)
end

if (RadarDevice[2]==1)thenStreaming_Control(2,0)
end

Streaming_Control(1,0)

WriteToLog("Capture sequence completed...\n", "blue")
num_loops = num_loops - 1
RSTD.Sleep(inter_loop_time)

end

-- Enable the below if required
WriteToLog("Starting Transfer files using WinSCP for Cont Stream..\n", "blue")
status = ar1.TransferFilesUsingWinSCPContStream_mult(1)
if(status == 0) thenWriteToLog("Transferred files! COMPLETE!\n", "green")
elseWriteToLog("Transferring files FAILED!\n", "red")return -5
end  

请问

1.这个脚本是只能发射单载波吗,不是发射连续波的脚本吗?

2.我上面配置好的连续波,应该如何收发呢,可以在mmwave studio上面直接点相应的发射和接受按键吗,是哪些按键呢?

3.如果通过脚本实现收发,应该怎么操作呢?

Chris Meng:

你好,

连续波配置请使用Cascade_Configuration_MIMO.lua,配套采集数据请使用Cascade_Capture.lua。

具体请参考C:\ti\mmwave_studio_03_00_00_14\docs\mmwave_studio_cascade_user_guide.pdf

,

user6249979:

感谢回复,我这边使用的就是Cascade_Configuration_MIMO.lua脚本来修改成主芯片工作的连续波发射的,代码如上面的第一个窗口所示,当我用Cascade_Capture.lua进行数据采集时,发生下面的错误,请问是什么原因呢? 

搜索

复制

,

Chris Meng:

你好,

我已经在下面的帖子你回复尝试的方法,你有尝试过么?

MMWCAS-DSP-EVM: MMWCAS-RF-EVM(AWR2243)使用主芯片进行收发测试,出现RESP TIMEOUT问题 – 传感器论坛 – 传感器 – E2ETm 设计支持

,

user6249979:

我已经查看了,我目前就是使能master的,如下

但是在使用Cascade_Capture.lua进行数据采集时,还是会出现上图的错误

搜索

复制

,

Chris Meng:

你好,

请问使用默认的lua,采集4片芯片的数据是没有问题的么?

,

user6249979:

默认的mimo.lua是没有问题的,我改的代码在上面附了,不知道有啥问题

,

Chris Meng:

你好,

我对比了一下你的配置和默认mimo lua的配置,你除了只使能master外,你还修改了其他的配置。你能否在mimo lua的基础上,只修改只使能master的配置,让后再尝试?

,

Chris Meng:

你好,

请问你是否有参考我的建议,在mimo lua的基础上只使能master的配置再尝试?尝试结果如何?

赞(0)
未经允许不得转载:TI中文支持网 » MMWCAS-DSP-EVM: 2243级联板实现主芯片的连续波的收发
分享到: 更多 (0)