RE: HoG: Support multi output report

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>On Thurs, July 31, 2014 at 09:11 AM, Luiz Augusto von Dentz <luiz.dentz@xxxxxxxxx> wrote:
>Hi Murat,

Hi Luiz,

>
>On Wed, Jul 30, 2014 at 5:34 PM, Murat Kilivan <Murat.Kilivan@xxxxxxx> wrote:
>> Hi,
>>
>> I have a BLE HID device which has 2 output reports and it is discovered properly by BlueZ. However, when I try to send an output report it always >calls the first registered report id's handle. It doesn't matter what the first byte is in the message.
>>
>> How can I send to a different output report?
>>
>> I can supply any log/debug output if it is needed.
>
>I had the impression that you would have to have another instance to access the second output but perhaps we should check the report id but then the question is how do you know what are the available report ids? We never expose those to uHID so is this supposed to be hardcoded?

The available report ids can be found in the report map. 

Here is the bluetoothd log, It seems two output reports (id:5 and id:6) have been registered. 

bluetoothd[2342]: profiles/input/hog.c:report_reference_cb() Report ID: 0x05 Report type: 0x03
bluetoothd[2342]: attrib/gattrib.c:g_attrib_unref() 0x836a848: ref=6
bluetoothd[2342]: attrib/gattrib.c:g_attrib_ref() 0x836a848: ref=7
bluetoothd[2342]: profiles/input/hog.c:report_reference_cb() Report ID: 0x05 Report type: 0x02
bluetoothd[2342]: attrib/gattrib.c:g_attrib_unref() 0x836a848: ref=6
bluetoothd[2342]: attrib/gattrib.c:g_attrib_ref() 0x836a848: ref=7
bluetoothd[2342]: profiles/input/hog.c:report_ccc_written_cb() Report characteristic descriptor written: notifications enabled
bluetoothd[2342]: attrib/gattrib.c:g_attrib_unref() 0x836a848: ref=6
bluetoothd[2342]: attrib/gattrib.c:g_attrib_ref() 0x836a848: ref=7
bluetoothd[2342]: profiles/input/hog.c:report_reference_cb() Report ID: 0x05 Report type: 0x01
bluetoothd[2342]: attrib/gattrib.c:g_attrib_unref() 0x836a848: ref=6
bluetoothd[2342]: attrib/gattrib.c:g_attrib_ref() 0x836a848: ref=7
bluetoothd[2342]: profiles/input/hog.c:report_reference_cb() Report ID: 0x06 Report type: 0x02

>
>Futhermore the HoG code has been changed in android/hog.c and at some point it will be moved to src/shared so it can be reused by input plugin.


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Keep up to date with CSR on our technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people, YouTube, www.youtube.com/user/CSRplc, Facebook, www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at www.twitter.com/CSR_plc.
New for 2014, you can now access the wide range of products powered by aptX at www.aptx.com.
��.n��������+%������w��{.n�����{����^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux