Log in to the platform client and select the vehicle to be configured, click "Parameter Configuration"---- and "Customize Data", copy the parameters in the input box and click "Set Parameters" as shown below:
Common parameter description:
1. AI authorization query
<Control><CmdType>AiRuningStatus</CmdType><SN>11</SN></Control>
Return value description: "AlgRunningStatus" AI function is running status: ADAS=1, R BSD=2, DSM=4, ADAS+DSM=5, ADAS+DSM+R BSD=7 "AuthStatus" AI authorization status: 0 not authorized 1 authorized "AuthFunctionType" AI with authorization type: ADAS=1,R BSD=2,DSM=4,ADAS+DSM=5,ADAS+DSM+R BSD=7 [object Object]
2. Basic configuration query of AI algorithm function
<VariCfgSec Action="DEVICE_QUERY"><stAIModules></VariCfgSec>
Return value description: "ucFD_TestMode" AI running mode: 0 driving mode 1 test mode ”ucFD_AdasEnable” ADAS function: 0 off 1 on; ucFD_AdasChn ADAS related channel box: 0 CH1 channel, 1 CH2 channel, 2 CH3 channel, 3 CH4 channel, 4 CH5 channel, 5 CH6, 6 CH7, 7 CH8 Note: Please do not repeat the channel when the functions such as ADAS DSM BSD are associated with the channel box, otherwise it will be invalid. “ucFD_RightBsdEnable” Right BSD function: 0 off 1 on; ucFD_RightBsdChn associated channel box: 0 CH1 channel, 1 CH2 channel, 2 CH3 channel, 3 CH4 channel, 4 CH5 channel, 5 CH6, 6 CH7, 7 CH8 “ucFD_LeftBsdEnable” Left BSD function: 0 off 1 on; ucFD_LeftBsdEnable associated channel box: 0 CH1 channel, 1 CH2 channel, 2 CH3 channel, 3 CH4 channel, 4 CH5 channel, 5 CH6, 6 CH7, 7 CH8 “ucFD_DsmEnable” DSM function: 0 off 1 on; ucFD_DsmChn associated channel box: 0 CH1 channel, 1 CH2 channel, 2 CH3 channel, 3 CH4 channel, 4 CH5 channel, 5 CH6, 6 CH7, 7 CH8
3. Basic configuration of AI algorithm function
<VariCfgSec Action="DEVICE_SET"><stAIModules ucFD_TestMode="0" ucFD_AdasEnable="1" ucFD_AdasChn="0" ucFD_RightBsdEnable="0" ucFD_RightBsdChn="1" ucFD_DsmEnable="1" ucFD_DsmChn="2" ucFD_LeftBsdEnable="0" ucFD_LeftBsdChn="3"/></VariCfgSec>
Parameter definition reference 2 AI algorithm function basic configuration query Return value description
4. Set and filter AI alarm events
<VariCfgSec Action="DEVICE_SET"><stAIModules uiFD_EventFilter="0"/></VariCfgSec>
//Multiple alarm filters can add the following values EVENT_NONE = 0, //no alarm EVENT_LDW_LEFT = 1, //Left lane departure warning EVENT_LDW_RIGHT = 2, //Right lane departure warning EVENT_FCW = 4, //Front vehicle collision warning EVENT_PCW = 8, // pedestrian collision alarm EVENT_HMW = 16, //Vehicle distance monitoring alarm EVENT_CROSS_WALK = 32, // crosswalk detection alarm EVENT_BLIND = 64, //Right blind spot alarm EVENT_SMOKE = 128, // smoke EVENT_CALL = 256, //call EVENT_YAWN = 512, //yawn EVENT_NO_ALIGNMENT = 1024, // misaligned (off seat) EVENT_CAMERA_SHIELD = 2048, //Camera occlusion EVENT_ABNORMAL_IDENTITY = 4096, //The identity is abnormal (not the original driver) EVENT_ABSENT_DRIVER = 8192, //Abnormal driving (no face detected) EVENT_EYES_MASKED = 16384, //blocking sunglasses EVENT_MOUTH_MASKED = 32768, //The mouth is blocked EVENT_EYE_CLOSING = 65536, //Close eyes EVENT_SWINGING_LEFT = 131072, //Distracted driving (Dong Zhang) EVENT_SWINGING_RIGHT = 262144, //Distracted driving (looking west) EVENT_HEAD_UP = 524288, //Distracted driving (looking up) EVENT_HEAD_DOWN = 1048576, //Distracted driving (head down) EVENT_NORMAL_IDENTITY = 2097152, //The identity is normal EVENT_ABNORMAL_BELT = 4194304, //not wearing seat belt EVENT_ABNORMAL_HAND = 8388608, //Hand off the steering wheel EVENT_ABNORMAL_PHONE = 16777216, //Play mobile phone EVENT_ABNORMAL_OVERBOARD = 33554432//Overboard
5. AI specific function alarm detailed parameter query
<VariCfgSec Action="DEVICE_QUERY"><stAIThresParam></VariCfgSec>
Return value description: fFD_DsmLowVel; DSM alarm speed threshold, unit km/h default 30 fFD_DsmHighvel; DSM alarm high-speed vehicle speed threshold, unit km/h default 50s fFD_LeftLookLowvel; left low speed duration (2.0 - 40.0) seconds default 4s fFD_LeftLookHighVel; left deviation high speed duration (2.0 - 40.0) seconds default 3s fFD_RightLookLowVel; right low speed duration (2.0- 40.0) seconds default 4s fFD_RightLookHighvel; left deviation high speed duration (2.0 - 40.0) seconds default 3s fFD_HeadUpLowVel; Head up low speed duration (2.0 - 40.0) seconds default 4s fFD_HeadUpHighvel; Head up high speed duration (2.0 - 40.0) seconds default 3s fFD_HeadDownLowvel; Head up low speed duration (2.0 - 40.0) seconds default 4s fFD_HeadDownHighvel; Head up high speed duration (2.0 - 40.0) seconds default 3s //Interval time between similar alarm events nFD_DistractedInt; driver distraction alarm time interval (>=3) seconds default 30s nFD_CrossWalkInt; pedestrian crossing alarm time interval (>=3) seconds default 30s nFD_BsdFWarnInt nFD_BsdSWarnInt nFD_BsdTWarnInt //BSD three-level alarm interval nFD_LdwDistance; the alarm threshold for the distance between the left and right lane lines, in cm (range: -20cm~-20cm, negative for crossing the lane line) -5 fFD_LeftLookAngel; the left angle of the driver (15 ~ 90) degrees, the default is 30 fFD_RightLookAngel; the driver's right deflection angle (15 ~ 90) degrees, the default is 45 fFD_HeadUpAngel; driver head up angle (15 ~ 90) degrees, default 25 fFD_HeadDownAngel; the driver's head down angle (1 ~ 90) degrees, the default is 15 fFD_Hmwvel; HMW alarm speed threshold, unit km/h 30.00 fFD_Fcwvel; FCW alarm speed threshold, unit km/h 30.00 fFD_Ldwvel; LDW alarm speed threshold, unit km/h 55.00 fFD_Pcwvel; PCW alarm speed threshold, unit km/h 50.00 fFD_BsdFirstvel; BSD first-level alarm speed threshold, unit km/h 30.00 BSD algorithm library is not used fFD_BsdSecondvel; BSD secondary alarm speed threshold, unit km/h 30.00 fFD_BsdThirdvel; BSD level three alarm speed threshold, unit km/h 30.00
6. Detailed parameter configuration of AI specific function alarm
<VariCfgSec Action="DEVICE_SET"> <stAIThresParam fFD_DsmLowVel="30.000000" fFD_DsmHighVel="50.000000" fFD_LeftLookLowVel="4.000000" fFD_LeftLookHighVel="3.000000" fFD_RightLookLowVel="4.000000" fFD_RightLookHighVel="3.000000" fFD_HeadUpLowVel="4.000000" fFD_HeadUpHighVel="3.000000" fFD_HeadDownLowVel="4.000000" fFD_HeadDownHighVel="3.000000" nFD_DistractedInt="30" nFD_CrossWalkInt="30" fFD_LeftLookAngel="30.000000" fFD_RightLookAngel="45.000000" fFD_HeadUpAngel="25.000000" fFD_HeadDownAngel="15.000000" fFD_HmwVel="30.000000" fFD_FcwVel="30.000000" fFD_LdwVel="55.000000" fFD_PcwVel="50.000000" nFD_LdwDistance="-5" fFD_BsdFirstVel="5.000000" fFD_BsdSecondVel="5.000000" fFD_BsdThirdVel="5.000000" nFD_BsdFWarnInt="5" nFD_BsdSWarnInt="10" nFD_BsdTWarnInt="15" /></VariCfgSec>
Parameter definition refer to 5 AI specific function alarm detailed parameter query Return value description
7. AI ADAS function vanishing point coordinate acquisition
<Control><CmdType>AdasVPoint</CmdType><SN>11</SN><Mode>Get</Mode></Control>
8. AI ADAS function vanishing point coordinate configuration
<Control><CmdType>AdasVPoint</CmdType><SN>11</SN><Mode>Set</Mode><X>640</X><Y>370</Y></Control>
9. AI ADAS function calibration parameter acquisition
<Control><CmdType>AdasCalibration</CmdType><SN>11</SN><Mode>Get</Mode></Control>
Return value description: fCarWidth vehicle width in mm fRefTop to the front distance fDisLen2Tyre distance to front wheel fCameraHeight Mounting height fCameraFocus lens focal length fCameraDx sensor size
10. AI ADAS function calibration configuration
<Control><CmdType>AdasCalibration</CmdType><SN>11</SN><Mode>Set</Mode><fCarWidth>1780</fCarWidth><fRefCenter>10</fRefCenter><fRefTop>1600</fRefTop ><fDisLen2Tyre>570</fDisLen2Tyre><fCameraHeight>1300</fCameraHeight><fCameraFocus>6.000000</fCameraFocus><fCameraDx>0.004000</fCameraDx></Control>
Parameter definition refer to 9 AI ADAS function calibration parameter acquisition Return value description
11. AI DSM function calibration parameter acquisition
<VariCfgSec Action="DEVICE_QUERY"><stDsm></VariCfgSec>
12. AI DSM function calibration parameter configuration
<Control><CmdType>DsmCalibration</CmdType><SN>11</SN><X>32</X><Y>32</Y></Control>
13. AI algorithm library parameter acquisition
<Control><CmdType>AlgEventParam</CmdType><SN>11</SN><Mode>Get</Mode></Control>
Return value description: <?xml version="1.0" encoding="UTF-8" ?><Response><CmdType>AlgEventParam</CmdType><SN>11</SN><Mode>Get</Mode><WarnKind>1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,</WarnKind><AbnormalWarnFCnt>0,0,0,0,0,0,0,50,75,25,50,75,50,100,50,25,75,50,50,50,50,0,750,50,75,100,</AbnormalWarnFCnt><NormalFCnt>0,0,0,0,0,0,0,25,25,25,25,25,25,25,25,25,25,25,25,25,25,0,25,25,25,25,</NormalFCnt><AbnormalWarnGapFCnt>0,0,125,0,125,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,</AbnormalWarnGapFCnt><AbnormalWarnScrThrd>0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.65,0.70,0.40,0.65,0.95,0.75,0.30,0.60,0.60,0.86,30.00,45.00,25.00,15.00,0.00,0.95,0.80,0.80,0.50,</AbnormalWarnScrThrd><NormalWarnScrThrd>0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.40,0.40,0.70,0.70,0.70,0.55,0.80,0.50,0.50,0.14,20.00,20.00,18.00,10.00,0.00,0.05,0.60,0.60,0.55,</NormalWarnScrThrd><Result>OK</Result></Response>
14. AI algorithm library parameter configuration
<Control><CmdType>AlgEventParam</CmdType><SN>11</SN><Mode>Set</Mode><nHmwTime>1200</nHmwTime><nPcwTime>2000</nPcwTime><nFCWTime>2400</nFCWTime ><fHmwVel>30.00</fHmwVel><fFcwVel>30.00</fFcwVel><fLdwVel>55.00</fLdwVel><fPcwVel>50.00</fPcwVel><fBsdFirstVel>30.00</fBsdFirstVel><fBsdSecondVel>30.00</fBsd fBsdThirdVel>30.00</fBsdThirdVel><nLdwDistance>-5</nLdwDistance><fDsmVel>5.00</fDsmVel></Control>
15. AI algorithm library upgrade
<Control><CmdType>AiAlgUpgrade</CmdType><SN>11</SN><Alg>Motovis</Alg></Control>
16. AI authorization file deletion
<Control><CmdType>AiDelAuthKey</CmdType><SN>11</SN><Alg>Motovis</Alg></Control>