首先,我设置了4个profile,配置如下:
ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
ar1.ProfileConfig(1, 77.458784, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
ar1.ProfileConfig(2, 77.917568, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
ar1.ProfileConfig(3, 78.376352, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
然后,在此基础上,进一步为每个chirp设置不同的设置不同的start freq var,配置如下:
ar1.ChirpConfig(0, 0, 3, 57.348, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(1, 1, 2, 430.11, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(2, 2, 0, 200.718, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(3, 3, 2, 28.674, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(4, 4, 1, 114.696, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(5, 5, 2, 57.348, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(6, 6, 1, 258.066, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(7, 7, 1, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(8, 8, 0, 315.414, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(9, 9, 1, 0, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(10, 10, 0, 28.674, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(11, 11, 3, 28.674, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(12, 12, 2, 258.066, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(13, 13, 3, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(14, 14, 0, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(15, 15, 3, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(16, 16, 3, 57.348, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(17, 17, 2, 114.696, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(18, 18, 1, 315.414, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(19, 19, 1, 0, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(20, 20, 2, 430.11, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(21, 21, 0, 401.436, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(22, 22, 0, 430.11, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(23, 23, 3, 0, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(24, 24, 2, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(25, 25, 2, 372.762, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(26, 26, 2, 229.392, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(27, 27, 1, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(28, 28, 3, 229.392, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(29, 29, 3, 86.022, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(30, 30, 1, 86.022, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(31, 31, 3, 86.022, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(32, 32, 3, 28.674, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(33, 33, 3, 143.37, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(34, 34, 1, 430.11, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(35, 35, 2, 229.392, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(36, 36, 3, 315.414, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(37, 37, 1, 315.414, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(38, 38, 0, 86.022, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(39, 39, 3, 172.044, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(40, 40, 2, 200.718, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(41, 41, 1, 172.044, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(42, 42, 3, 401.436, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(43, 43, 0, 401.436, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(44, 44, 2, 258.066, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(45, 45, 2, 172.044, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(46, 46, 1, 229.392, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(47, 47, 0, 229.392, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(48, 48, 0, 28.674, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(49, 49, 1, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(50, 50, 0, 315.414, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(51, 51, 2, 372.762, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(52, 52, 1, 200.718, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(53, 53, 3, 143.37, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(54, 54, 2, 401.436, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(55, 55, 2, 86.022, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(56, 56, 0, 315.414, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(57, 57, 3, 344.088, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(58, 58, 1, 0, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(59, 59, 3, 286.74, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(60, 60, 0, 401.436, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(61, 61, 1, 200.718, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(62, 62, 0, 143.37, 0, 0, 0, 1, 0, 0)
ar1.ChirpConfig(63, 63, 2, 229.392, 0, 0, 0, 1, 0, 0)
然而,对于配置的profile 2,只有start freq var为28.674时成功配置了chirp,其他情况下均报错,output中的报错情况如下:
[15:25:09] [RadarAPI]: ar1.ProfileConfig(0, 77, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
[15:25:09] [RadarAPI]: Status: Passed
[15:25:09] [RadarAPI]: ar1.ProfileConfig(1, 77.458786, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
[15:25:09] [RadarAPI]: Status: Passed
[15:25:09] [RadarAPI]: ar1.ProfileConfig(2, 77.9175644, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
[15:25:09] [RadarAPI]: Status: Passed
[15:25:09] [RadarAPI]: ar1.ProfileConfig(3, 78.3763504, 100, 6, 60, 0, 0, 0, 0, 0, 0, 0.531, 0, 256, 10000, 0, 0, 30)
[15:25:09] [RadarAPI]: Status: Passed
[15:25:09] [RadarAPI]: ar1.ChirpConfig(0, 0, 3, 57.34799, 0, 0, 0, 1, 0, 0)
[15:25:09] [RadarAPI]: Status: Passed
[15:25:09] [RadarAPI]: ar1.ChirpConfig(1, 1, 2, 430.11, 0, 0, 0, 1, 0, 0)
[15:25:09] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:09] [RadarAPI]: ar1.ChirpConfig(2, 2, 0, 200.718, 0, 0, 0, 1, 0, 0)
[15:25:09] [RadarAPI]: Status: Passed
[15:25:09] [RadarAPI]: ar1.ChirpConfig(3, 3, 2, 28.67399, 0, 0, 0, 1, 0, 0)
[15:25:09] [RadarAPI]: Status: Passed
[15:25:09] [RadarAPI]: ar1.ChirpConfig(4, 4, 1, 114.696, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(5, 5, 2, 57.34799, 0, 0, 0, 1, 0, 0)
[15:25:10] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:10] [RadarAPI]: ar1.ChirpConfig(6, 6, 1, 258.066, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(7, 7, 1, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(8, 8, 0, 315.414, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(9, 9, 1, 0, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(10, 10, 0, 28.67399, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(11, 11, 3, 28.67399, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(12, 12, 2, 258.066, 0, 0, 0, 1, 0, 0)
[15:25:10] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:10] [RadarAPI]: ar1.ChirpConfig(13, 13, 3, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(14, 14, 0, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(15, 15, 3, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(16, 16, 3, 57.34799, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(17, 17, 2, 114.696, 0, 0, 0, 1, 0, 0)
[15:25:10] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:10] [RadarAPI]: ar1.ChirpConfig(18, 18, 1, 315.414, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(19, 19, 1, 0, 0, 0, 0, 1, 0, 0)
[15:25:10] [RadarAPI]: Status: Passed
[15:25:10] [RadarAPI]: ar1.ChirpConfig(20, 20, 2, 430.11, 0, 0, 0, 1, 0, 0)
[15:25:10] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:10] [RadarAPI]: ar1.ChirpConfig(21, 21, 0, 401.436, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(22, 22, 0, 430.11, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(23, 23, 3, 0, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(24, 24, 2, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:11] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:11] [RadarAPI]: ar1.ChirpConfig(25, 25, 2, 372.762, 0, 0, 0, 1, 0, 0)
[15:25:11] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:11] [RadarAPI]: ar1.ChirpConfig(26, 26, 2, 229.392, 0, 0, 0, 1, 0, 0)
[15:25:11] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:11] [RadarAPI]: ar1.ChirpConfig(27, 27, 1, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(28, 28, 3, 229.392, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(29, 29, 3, 86.02198, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(30, 30, 1, 86.02198, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(31, 31, 3, 86.02198, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(32, 32, 3, 28.67399, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(33, 33, 3, 143.37, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(34, 34, 1, 430.11, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(35, 35, 2, 229.392, 0, 0, 0, 1, 0, 0)
[15:25:11] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:11] [RadarAPI]: ar1.ChirpConfig(36, 36, 3, 315.414, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(37, 37, 1, 315.414, 0, 0, 0, 1, 0, 0)
[15:25:11] [RadarAPI]: Status: Passed
[15:25:11] [RadarAPI]: ar1.ChirpConfig(38, 38, 0, 86.02198, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(39, 39, 3, 172.044, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(40, 40, 2, 200.718, 0, 0, 0, 1, 0, 0)
[15:25:12] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:12] [RadarAPI]: ar1.ChirpConfig(41, 41, 1, 172.044, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(42, 42, 3, 401.436, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(43, 43, 0, 401.436, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(44, 44, 2, 258.066, 0, 0, 0, 1, 0, 0)
[15:25:12] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:12] [RadarAPI]: ar1.ChirpConfig(45, 45, 2, 172.044, 0, 0, 0, 1, 0, 0)
[15:25:12] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:12] [RadarAPI]: ar1.ChirpConfig(46, 46, 1, 229.392, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(47, 47, 0, 229.392, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(48, 48, 0, 28.67399, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(49, 49, 1, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(50, 50, 0, 315.414, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(51, 51, 2, 372.762, 0, 0, 0, 1, 0, 0)
[15:25:12] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:12] [RadarAPI]: ar1.ChirpConfig(52, 52, 1, 200.718, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(53, 53, 3, 143.37, 0, 0, 0, 1, 0, 0)
[15:25:12] [RadarAPI]: Status: Passed
[15:25:12] [RadarAPI]: ar1.ChirpConfig(54, 54, 2, 401.436, 0, 0, 0, 1, 0, 0)
[15:25:12] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:12] [RadarAPI]: ar1.ChirpConfig(55, 55, 2, 86.02198, 0, 0, 0, 1, 0, 0)
[15:25:13] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
[15:25:13] [RadarAPI]: ar1.ChirpConfig(56, 56, 0, 315.414, 0, 0, 0, 1, 0, 0)
[15:25:13] [RadarAPI]: Status: Passed
[15:25:13] [RadarAPI]: ar1.ChirpConfig(57, 57, 3, 344.088, 0, 0, 0, 1, 0, 0)
[15:25:13] [RadarAPI]: Status: Passed
[15:25:13] [RadarAPI]: ar1.ChirpConfig(58, 58, 1, 0, 0, 0, 0, 1, 0, 0)
[15:25:13] [RadarAPI]: Status: Passed
[15:25:13] [RadarAPI]: ar1.ChirpConfig(59, 59, 3, 286.74, 0, 0, 0, 1, 0, 0)
[15:25:13] [RadarAPI]: Status: Passed
[15:25:13] [RadarAPI]: ar1.ChirpConfig(60, 60, 0, 401.436, 0, 0, 0, 1, 0, 0)
[15:25:13] [RadarAPI]: Status: Passed
[15:25:13] [RadarAPI]: ar1.ChirpConfig(61, 61, 1, 200.718, 0, 0, 0, 1, 0, 0)
[15:25:13] [RadarAPI]: Status: Passed
[15:25:13] [RadarAPI]: ar1.ChirpConfig(62, 62, 0, 143.37, 0, 0, 0, 1, 0, 0)
[15:25:13] [RadarAPI]: Status: Passed
[15:25:13] [RadarAPI]: ar1.ChirpConfig(63, 63, 2, 229.392, 0, 0, 0, 1, 0, 0)
[15:25:13] Status: Failed, Error Type: CHIRP START OR END FREQUENCY IS OUTSIDE VCO RANGE
我也参考了这篇帖子的内容https://e2echina.ti.com/support/sensors/f/sensors-forum/220243/awr2944evm-awr2944evm-mmwave-studio/696474,但是我已经没有多余的profile能够把报错的chirpcfg再拿出来了。所以为什么使用profile 2时会报错?如何解决?