MCU版本:PAJERO69XZA0120018
shell工具:https://www.xshell.com/zh/xshell/
1.方控自测(前提条件:Android与MCU必须建链成功)
[1].实物测试
	接线: 将方控板KEY线与尾线SWC_L相接,另外一根线接GND
	测试: 每次按下方控,会将对应key值与状态发给android端,详细MCU打印日志如下:
	 
	I(0000025683) KEYMGR,keymgr_key_trigger_handle:key_type[04] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,08,06,02,01,04,01,de
	I(0000026043) KEYMGR,keymgr_key_trigger_handle:key_type[04] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,09,06,02,01,04,00,de

	I(0000115553) KEYMGR,keymgr_key_trigger_handle:key_type[0E] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,0c,06,02,01,0e,01,d0
	I(0000116233) KEYMGR,keymgr_key_trigger_handle:key_type[0E] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,0d,06,02,01,0e,00,d0

	I(0000178883) KEYMGR,keymgr_key_trigger_handle:key_type[0F] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,0e,06,02,01,0f,01,cd
	I(0000179033) KEYMGR,keymgr_key_trigger_handle:key_type[0F] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,0f,06,02,01,0f,00,cd


	I(0000223153) KEYMGR,keymgr_key_trigger_handle:key_type[09] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,10,06,02,01,09,01,d1
	I(0000223493) KEYMGR,keymgr_key_trigger_handle:key_type[09] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,11,06,02,01,09,00,d1


	I(0000266683) KEYMGR,keymgr_key_trigger_handle:key_type[08] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,12,06,02,01,08,01,d0
	I(0000266973) KEYMGR,keymgr_key_trigger_handle:key_type[08] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,13,06,02,01,08,00,d0


	I(0000302853) KEYMGR,keymgr_key_trigger_handle:key_type[03] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,14,06,02,01,03,01,d3
	I(0000303023) KEYMGR,keymgr_key_trigger_handle:key_type[03] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,15,06,02,01,03,00,d3


	I(0000332953) KEYMGR,keymgr_key_trigger_handle:key_type[18] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,16,06,02,01,18,01,bc
	I(0000333113) KEYMGR,keymgr_key_trigger_handle:key_type[18] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,17,06,02,01,18,00,bc


	I(0000357333) KEYMGR,keymgr_key_trigger_handle:key_type[19] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,18,06,02,01,19,01,b9
	I(0000357473) KEYMGR,keymgr_key_trigger_handle:key_type[19] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,19,06,02,01,19,00,b9


	I(0000380363) KEYMGR,keymgr_key_trigger_handle:key_type[25] state[TRIGGER]
	[ARM_CORE,write data:] ff,aa,00,0b,1a,06,02,01,25,01,ab
	I(0000380523) KEYMGR,keymgr_key_trigger_handle:key_type[25] state[IDLE]
	[ARM_CORE,write data:] ff,aa,00,0b,1b,06,02,01,25,00,ab


[2]. 模拟测试:
	接上MCU打印，shell命令行输入 KeyTest + 测试项 + 按键值 + 按键状态
	如下是模拟按键挂电话按下和弹起的过程:
	KeyTest命令识别字符串,1表示第1个测试项,0x19表示按键值KEY_REJECT,0x01表示按键按下/0x00表示按键弹起
   
	xiexw:/$ KeyTest 1 0x19 0x01
	I(0000490647) KEYMGR,KeyTest:KeyTest mode:1 key:0x19 value:0x01
	[ARM_CORE,write data:] ff,aa,00,0b,1c,06,02,01,19,01,b5

	xiexw:/$ KeyTest 1 0x19 0x00
	I(0000535107) KEYMGR,KeyTest:KeyTest mode:1 key:0x19 value:0x00
	[ARM_CORE,write data:] ff,aa,00,0b,1d,06,02,01,19,00,b5
	
[3]. 帕杰罗方控按键值如下:
typedef enum
{
    EN_KEYMGR_SWC_TYPE_IDLE             = 0x00,//空闲
    EN_KEYMGR_SWC_TYPE_VOLUME_DOWN      = 0x08,//音量减
    EN_KEYMGR_SWC_TYPE_VOLUME_UP        = 0x09,//音量加
    EN_KEYMGR_SWC_TYPE_NEXT             = 0x0F,//下一曲
    EN_KEYMGR_SWC_TYPE_PREV             = 0x0E,//上一曲
    EN_KEYMGR_SWC_TYPE_MUSIC            = 0x04,//音乐
    EN_KEYMGR_SWC_TYPE_SPEECH           = 0x03,//语音
    EN_KEYMGR_SWC_TYPE_ANSWER           = 0x18,//接听
    EN_KEYMGR_SWC_TYPE_REJECT           = 0x19,//挂断
    EN_KEYMGR_SWC_TYPE_CAMERA           = 0x25,//摄像头
} EN_KEYMGR_SWC_TYPE;

[4]. KEY_A2M_KEY暂时不用实现



2. 车速上报模拟测试:
	接上MCU打印，shell命令行输入 PublicDebug + 23 + 车速 + 百分比,如下是MCU端打印:
	xiexw:/$ PublicDebug 23 60 100
	I(0001000191) PUBLIC_MGR,PublicDebug:Set car speed: 60, ratio: 100
	Return: 0, 0x00000000