藍(lán)牙鍵盤例程無法更改多媒體按鍵的順序

\EVT\EXAM\BLE\HID_Keyboard\Project

怎么改多媒體鍵盤的鍵值和按鍵排布順序


有沒有什么軟件可以生成HID的描述符

摳藍(lán)牙HID協(xié)議真的是很費(fèi)勁

您好,更改鍵值,只需要您報(bào)給電腦的鍵值對(duì)應(yīng)鍵值表的16進(jìn)制數(shù)據(jù)更改即可。目前沒有直接生成HID描述符的軟件。您可以在搜索HID_Describer_Tool。這個(gè)軟件可以輔助生成HID描述符,如果您想深入了解,還是需要了解HID協(xié)議。


				0x05,?0x0C,???????//?Usage?Page?(Consumer)
????????0x09,?0x01,???????//?Usage?(Consumer?Control)
				//這是個(gè)Consumer控制
????????0xA1,?0x01,???????//?Collection?(Application)
????????0x85,?0x03,???????//?Report?Id?(3)
				//本報(bào)告ID為3
????????0x15,?0x00,???????//?Logical?minimum?(0)
????????0x25,?0x01,???????//?Logical?maximum?(1)
				//每個(gè)按鍵的取值范圍為1~10
????????0x75,?0x01,???????//?Report?Size?(1)
????????0x95,?0x01,???????//?Report?Count?(1)
				//1個(gè)1bit的值,來表示鍵值0和1,這個(gè)值是哪個(gè)就表示哪個(gè)鍵按下。
????????0x09,?0xCD,???????//?Usage?(Play/Pause)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
				//將6個(gè)1bit添加到本報(bào)告中
????????0x0A,?0x83,?0x01,?//?Usage?(AL?Consumer?Control?Configuration)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
????????0x09,?0xB5,???????//?Usage?(Scan?Next?Track)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
????????0x09,?0xB6,???????//?Usage?(Scan?Previous?Track)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
????????0x09,?0xEA,???????//?Usage?(Volume?Down)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
????????0x09,?0xE9,???????//?Usage?(Volume?Up)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
????????0x0A,?0x25,?0x02,?//?Usage?(AC?Forward)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
????????0x0A,?0x24,?0x02,?//?Usage?(AC?Back)
????????0x81,?0x06,???????//?Input?(Data,Value,Relative,Bit?Field)
????????0xC0??????????????//?End?Collection

這個(gè)描述符我已經(jīng)更改,實(shí)際使用卻還是按照下面這個(gè)描述符進(jìn)行發(fā)送

?0x05,????0x0c,??????????????????
????????0x09,????0x01,?????????????????
????????0xa1,????0x01,??????????????????
????????0x85,????0x03,???
????????
????????0x15,????0x00,?????????????????//?????LOGICAL_MINIMUM?(0)
????????0x25,????0x01,?????????????????//?????LOGICAL_MAXIMUM?(1)????
????????0x09,????0x30,?????????????????//?????USAGE?(Power)?????????????????????????????//??
????????0x09,????0xF1,?????????????????//?????USAGE?(playback?Speed)????????????????????//????
????????0x09,????0xb5,?????????????????//?????USAGE?(Scan?Next?Track)???????????????????//???
????????0x09,????0xb6,?

????????????????//?????USAGE?(Scan?Previous?Track)????			//???
????????0x09,????0xE6,?????????????????//?????USAGE?(surround?mode)		
???????
????????0x09,????0xE9,?????????????????//?????USAGE?(volume?Down)????					//???
???????	0x09,????0xEa,?????????????????//?????USAGE?(Volume?UP)??				????	//???
?????			
		0x09,????0xE5,?????????????????//?????USAGE?(bass?boost)????????????????????????//????
????????0x09,????0xE4,?????????????????//?????USAGE?(treble????)????????????????????????//????
????????0x09,????0xE3,?????????????????//?????USAGE?(bass??????)????????????????????????//??
?

????????0x09,????0xE2,?????????????????//?????USAGE	(mute??????)????????????????????????//??
		0x09,????0xE1,?????????????????//?????USAGE	(balance???)????????????????????????//???
		0x09,????0xB9,?????????????????//?????USAGE	(random?play)???????????????????????//????
		0x09,????0xB3,?????????????????//?????USAGE	(Fast?Forward)??????????????????????//??
		0x09,????0xB4,?????????????????//?????USAGE	(rewind????)????????????????????????//??
		0x09,????0xB2,?????????????????//?????USAGE	(record????)????????????????????????//??
		0x09,????0xB1,?????????????????//?????USAGE	(st

??????????????????????//??
		0x09,????0xB0,?????????????????//?????USAGE	(play??????)????????????????????????//??
		0x09,????0x94,?????????????????//?????USAGE	(quit??????)????????????????????????//??
		0x09,????0x31,?????????????????//?????USAGE	(resert????)????????????????????????//??
		0x09,????0x32,?????????????????//?????USAGE	(sleep?????)????????????????????????//???
		0x09,????0x40,?????????????????//?????USAGE	(menu??????)????????????????????????//??
		0x09,????0x42,?????????????????//?????USAGE	(menu?up???)????????????????????????//?
		0x09,????0x43,??
???????????????//?????USAGE	(menu?down?)????????????????????????//?
		0x09,????0x44,?????????????????//?????USAGE	(menu?left?)????????????????????????//?
		0x09,????0x45,?????????????????//?????USAGE	(menu?right)????????????????????????//?
????????
		0x75,????0x01,?????????????????//?????REPORT_SIZE?(1)
		0x95,????0x1A,?????????????????//?????REPORT_COUNT?(26)
		0x81,????0x02,?????????????????//?????INPUT?(Data,Var,Abs)
	
		0x09,????0x00,?????????????????//?????USAGE?(Unassigned)
		0x75,????0x06,?????????????????//?????REPORT_SIZE?(6)
		0x95,????0x01,?????????????????//??REPORT_COUNT?(1)
		0x81,????0x03,?????????????????//?????INPUT?(Cnst,Var,Abs)
		
????0xc0,?????????????????????????//?????END_COLLECTION
Consumer類不能修改?還是怎么回事

只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频