Hi everyone,
I'm trying to modify the BLEMultimedia.cpp file because i want to add the AC Home command(0x223), which allow me to call Siri on my IPhone.
The report descriptor is this:
0x05, 0x0C, // USAGE_PAGE (Consumer Devices)
0x09, 0x01, // USAGE (Consumer Control)
0xA1, 0x01, // COLLECTION (Application)
0x85, 0x00, // REPORT_ID
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x75, 0x01, // REPORT SIZE (1)
0x95, 0x01, // REPORT COUNT (1)
0x09, 0xCD, // USAGE (PLAY/PAUSE) [0]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0x09, 0xB7, // USAGE (STOP) [1]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0x09, 0xB5, // USAGE (SCAN NEXT TRACK) [2]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0x09, 0xB6, // USAGE (SCAN PREVIOUS TRACK) [3]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0x09, 0xEA, // USAGE (VOLUME DOWN) [4]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0x09, 0xE9, // USAGE (VOLUME UP) [5]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0x09, 0xE2, // USAGE (VOLUME MUTE) [6]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0x0A, 0x23, 0x02, // USAGE (AC Home) [7]
0x81, 0x06, // INPUT (Data,Ary,Rel)
0xC0 // END_COLLECTION
I call the AC Home command through bleMultimedia.write(); but when i compile it gives me this error:
C:\Users\ab007567\AppData\Local\Temp\cc5OQhn7.ltrans0.ltrans.o: In function BLEUtil::addressToString(unsigned char const*, char*)': cc5OQhn7.ltrans0.o:(.text+0x516): relocation truncated to fit: R_AVR_7_PCREL againstno symbol'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:83: HID_test_5.elf] Error 1
I don't find the file reported in error line and I don't know what I can modify for introduce the AC Home function.
Thanks to everyone could give me an idea
Hi everyone, I'm trying to modify the
BLEMultimedia.cpp
file because i want to add the AC Home command(0x223), which allow me to call Siri on my IPhone. The report descriptor is this: 0x05, 0x0C, // USAGE_PAGE (Consumer Devices) 0x09, 0x01, // USAGE (Consumer Control) 0xA1, 0x01, // COLLECTION (Application) 0x85, 0x00, // REPORT_ID 0x15, 0x00, // LOGICAL_MINIMUM (0) 0x25, 0x01, // LOGICAL_MAXIMUM (1) 0x75, 0x01, // REPORT SIZE (1) 0x95, 0x01, // REPORT COUNT (1) 0x09, 0xCD, // USAGE (PLAY/PAUSE) [0] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0x09, 0xB7, // USAGE (STOP) [1] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0x09, 0xB5, // USAGE (SCAN NEXT TRACK) [2] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0x09, 0xB6, // USAGE (SCAN PREVIOUS TRACK) [3] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0x09, 0xEA, // USAGE (VOLUME DOWN) [4] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0x09, 0xE9, // USAGE (VOLUME UP) [5] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0x09, 0xE2, // USAGE (VOLUME MUTE) [6] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0x0A, 0x23, 0x02, // USAGE (AC Home) [7] 0x81, 0x06, // INPUT (Data,Ary,Rel) 0xC0 // END_COLLECTIONI call the AC Home command through bleMultimedia.write(); but when i compile it gives me this error:
C:\Users\ab007567\AppData\Local\Temp\cc5OQhn7.ltrans0.ltrans.o: In function
BLEUtil::addressToString(unsigned char const*, char*)': cc5OQhn7.ltrans0.o:(.text+0x516): relocation truncated to fit: R_AVR_7_PCREL against
no symbol' collect2.exe: error: ld returned 1 exit status make: *** [makefile:83: HID_test_5.elf] Error 1I don't find the file reported in error line and I don't know what I can modify for introduce the AC Home function. Thanks to everyone could give me an idea