Log in to the platform client and select the vehicle to be configured, click "Parameter Configuration"---"Custom 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
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 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_RightBsdEnable” Right BSD function: 0 off 1 on; ucFD_RightBsdChn associated channel box: “ucFD_LeftBsdEnable” Left BSD function: 0 off 1 on; ucFD_LeftBsdEnable associated channel box: “ucFD_DsmEnable” DSM function: 0 off 1 on; ucFD_DsmChn associated channel box:
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 filter AI alarm events
<VariCfgSec Action="DEVICE_SET"><stAIModules uiFD_EventFilter="0"/></VariCfgSec>
EVENT_NONE = 0 no alarm EVENT_LDW_LEFT = 1 Left lane departure warning EVENT_LDW_RIGHT = 2 Lane Departure Warning Right EVENT_FCW = 4 Forward Collision Warning EVENT_PCW = 8 pedestrian collision warning EVENT_HMW = 0x10 Distance Monitoring Alarm 5 EVENT_CROSS_WALK = 0x20 Crosswalk detection alarm EVENT_BLIND = 0x40 Right blind zone alarm EVENT_SMOKE = 0x80 smoke EVENT_CALL = 0x100 call EVENT_YAWN = 0x200 Yawn 10 EVENT_NO_ALIGNMENT = 0x400 misalignment (off seat) EVENT_CAMERA_SHIELD = 0x800 camera occlusion EVENT_ABNORMAL_IDENTITY = 0x1000 abnormal identity (not the original driver) EVENT_ABSENT_DRIVER = 0x2000 Abnormal driving (no face detected) EVENT_EYES_MASKED = 0x4000 Blocking sunglasses 15 EVENT_MOUTH_MASKED = 0x8000 mouth mask EVENT_EYE_CLOSING = 0x10000 eyes closed EVENT_SWINGING_LEFT = 0x20000 Distracted Driving (Dong Zhang) EVENT_SWINGING_RIGHT = 0x40000 distracted driving (looking west) EVENT_HEAD_UP = 0x80000 Distracted driving (looking up) 20 EVENT_HEAD_DOWN = 0x100000 distracted driving (head down) EVENT_NORMAL_IDENTITY = 0x200000 The identity is normal EVENT_ABNORMAL_BELT = 0x400000 not wearing seat belt EVENT_ABNORMAL_HAND = 0x800000 hands off the steering wheel EVENT_ABNORMAL_PHONE = 0x1000000 play mobile EVENT_ABNORMAL_OVERBOARD = 0x2000000 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>