<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>NRF24LU1P nAN-22-based HID device issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36668/nrf24lu1p-nan-22-based-hid-device-issue</link><description>Dear All, 
 I&amp;#39;m using NRF24LU1P USB dongle to emulate mouse and keyboard. I&amp;#39;ve taken nAN-22 firmware as HID example and modified code to behave as 2xHID composite device. 
 What I did is that I set up two interfaces each with IN interrupt endpoints 81</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Jul 2018 21:14:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36668/nrf24lu1p-nan-22-based-hid-device-issue" /><item><title>RE: NRF24LU1P nAN-22-based HID device issue</title><link>https://devzone.nordicsemi.com/thread/141422?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 21:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66172296-09ea-486c-8fe7-9a9ad319a1a2</guid><dc:creator>eugenePi</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;H&amp;aring;kon&lt;/span&gt;,&lt;/p&gt;
&lt;p&gt;Thanks a lot for helpful modifications, indeed I missed some important things!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After trying out modified project, and installing correct drivers, I finally got it working as needed )&lt;/p&gt;
&lt;p&gt;As my goal is to finally make a wireless device, I&amp;#39;ve noticed the nRFReady Desktop solution that seems to implement the&lt;/p&gt;
&lt;p&gt;RF connection nRF5x&amp;lt;-&amp;gt;nRF24 and pairing for such devices as combo keyboard/mouse.&lt;/p&gt;
&lt;p&gt;What about its license, does it allow to use it in mass production for commercial use?&lt;/p&gt;
&lt;p&gt;Does it include demo boards, or is it just a firmware/library pack?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF24LU1P nAN-22-based HID device issue</title><link>https://devzone.nordicsemi.com/thread/141307?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 10:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:260432e9-140b-4917-a662-f620aacb0382</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the code. There&amp;#39;s a couple of things that were missing, for instance the direction of the IN data you&amp;#39;re sending (should be hal_usb_send_data(0x80 | EP, ...)).&lt;/p&gt;
&lt;p&gt;The reason why your EP callbacks are not running is due to the printf taking too long. I commented it out and now it runs as it should.&lt;/p&gt;
&lt;p&gt;I also count 4 bytes in your mouse descriptor, while in your application it is set to 3 (buttons + X + Y + wheel = 4 bytes).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Seems to be working fine now:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0bb12cec4efe4f269d673dfc9be867db/pastedimage1532515714082v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s&amp;nbsp;the edited .zip:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-0bb12cec4efe4f269d673dfc9be867db/nod_5F00_edit_5F00_nAN_2D00_22_5F00_v1.1.zip"&gt;devzone.nordicsemi.com/.../nod_5F00_edit_5F00_nAN_2D00_22_5F00_v1.1.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hopefully I haven&amp;#39;t changed that much of your project settings.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF24LU1P nAN-22-based HID device issue</title><link>https://devzone.nordicsemi.com/thread/141258?ContentTypeID=1</link><pubDate>Wed, 25 Jul 2018 06:51:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f9d41e1-a18c-4a6e-83b6-8ba8887dd097</guid><dc:creator>eugenePi</dc:creator><description>&lt;p&gt;This is what I actually see in Wireshark and UsbView:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/usb_5F00_nrf24_5F00_log.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;!--StartFragment --&gt;&lt;/p&gt;
&lt;pre&gt;&lt;b&gt;

    =========================== USB Port1 ===========================

Connection Status        : 0x01 (Device is connected)
Port Chain               : 1-1-1
Properties               : 0x01
 IsUserConnectable       : yes
 PortIsDebugCapable      : no
 PortHasMultiCompanions  : no
 PortConnectorIsTypeC    : no

      ======================== USB Device ========================

        +++++++++++++++++ Device Information ++++++++++++++++++
Device Description       : USB Input Device
Device Path              : \\.\usb#vid_1915&amp;amp;pid_007b#6&amp;amp;1dd97943&amp;amp;0&amp;amp;1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
Device ID                : USB\VID_1915&amp;amp;PID_007B\6&amp;amp;1DD97943&amp;amp;0&amp;amp;1
Hardware IDs             : USB\VID_1915&amp;amp;PID_007B&amp;amp;REV_0100 USB\VID_1915&amp;amp;PID_007B
Driver KeyName           : {745a17a0-74d3-11d0-b6fe-00a0c90f57da}\0005 (GUID_DEVCLASS_HIDCLASS)
Driver                   : \SystemRoot\System32\drivers\hidusb.sys (Version: 6.3.9600.18340  Date: 2016-05-14)
Driver Inf               : C:\Windows\inf\input.inf
Legacy BusType           : PNPBus
Class                    : HIDClass
Class GUID               : {745a17a0-74d3-11d0-b6fe-00a0c90f57da} (GUID_DEVCLASS_HIDCLASS)
Interface GUID           : {a5dcbf10-6530-11d2-901f-00c04fb951ed} (GUID_DEVINTERFACE_USB_DEVICE)
Service                  : HidUsb
Enumerator               : USB
Location Info            : Port_#0001.Hub_#0002
Location IDs             : PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(1)#USB(1), ACPI(_SB_)#ACPI(PCI0)#ACPI(XHC1)#ACPI(RHUB)#ACPI(HS01)#USB(1), ACPI(_SB_)#ACPI(PCI0)#ACPI(XHC_)#ACPI(RHUB)#ACPI(HS01)#USB(1)
Container ID             : {347bd12c-8bcc-11e8-830e-ee17d224410d}
Manufacturer Info        : (Standard system devices)
Capabilities             : 0x04 (Removable)
Status                   : 0x01806400 (DN_HAS_PROBLEM, DN_DISABLEABLE, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER)
Problem Code             : 10 (CM_PROB_FAILED_START)
Power State              : D3 (supported: D0, D2, D3, wake from D0, wake from D2)

        ---------------- Connection Information ---------------
Connection Index         : 0x01 (1)
Connection Status        : 0x01 (DeviceConnected)
Current Config Value     : 0x00
Device Address           : 0x13 (19)
Is Hub                   : 0x00 (no)
Number Of Open Pipes     : 0x00 (0)
Device Bus Speed         : 0x01 (Full-Speed)

        --------------- Connection Information V2 -------------
Connection Index         : 0x01 (1)
Length                   : 0x10 (16 bytes)
SupportedUsbProtocols    : 0x03
 Usb110                  : 1 (yes)
 Usb200                  : 1 (yes)
 Usb300                  : 0 (no)
 ReservedMBZ             : 0x00
Flags                    : 0x00
 DevIsOpAtSsOrHigher     : 0 (Is not operating at SuperSpeed or higher)
 DevIsSsCapOrHigher      : 0 (Is not SuperSpeed capable or higher)
 DevIsOpAtSsPlusOrHigher : 0 (Is not operating at SuperSpeedPlus or higher)
 DevIsSsPlusCapOrHigher  : 0 (Is not SuperSpeedPlus capable or higher)
 ReservedMBZ             : 0x00

    ---------------------- Device Descriptor ----------------------
bLength                  : 0x12 (18 bytes)
bDescriptorType          : 0x01 (Device Descriptor)
bcdUSB                   : 0x200 (USB Version 2.00)
bDeviceClass             : 0x00 (defined by the interface descriptors)
bDeviceSubClass          : 0x00
bDeviceProtocol          : 0x00
bMaxPacketSize0          : 0x20 (32 bytes)
idVendor                 : 0x1915 (Nordic Semiconductor ASA)
idProduct                : 0x007B
bcdDevice                : 0x0100
iManufacturer            : 0x01 (String Descriptor 1)
iProduct                 : 0x02 (String Descriptor 2)
iSerialNumber            : 0x00 (No String Descriptor)
bNumConfigurations       : 0x01 (1 Configuration)

    ------------------ Configuration Descriptor -------------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x02 (Configuration Descriptor)
wTotalLength             : 0x003B (59 bytes)
bNumInterfaces           : 0x02 (2 Interfaces)
bConfigurationValue      : 0x01 (Configuration 1)
iConfiguration           : 0x00 (No String Descriptor)
bmAttributes             : 0x80
 D7: Reserved, set 1     : 0x01
 D6: Self Powered        : 0x00 (no)
 D5: Remote Wakeup       : 0x00 (no)
 D4..0: Reserved, set 0  : 0x00
MaxPower                 : 0x32 (100 mA)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x00
bAlternateSetting        : 0x00
bNumEndpoints            : 0x01 (1 Endpoint)
bInterfaceClass          : 0x03 (HID - Human Interface Device)
bInterfaceSubClass       : 0x01 (Boot Interface)
bInterfaceProtocol       : 0x01 (Keyboard)
iInterface               : 0x00 (No String Descriptor)

        ------------------- HID Descriptor --------------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x21 (HID Descriptor)
bcdHID                   : 0x0110 (HID Version 1.10)
bCountryCode             : 0x00 (00 = not localized)
bNumDescriptors          : 0x01
Descriptor 1:
bDescriptorType          : 0x22 (Class=Report)
wDescriptorLength        : 0x003F (63 bytes)
Error reading descriptor : ERROR_GEN_FAILURE

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x81 (Direction=IN EndpointID=1)
bmAttributes             : 0x03 (TransferType=Interrupt)
wMaxPacketSize           : 0x0008 (8 bytes)
bInterval                : 0x0A (10 ms)

        ---------------- Interface Descriptor -----------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x04 (Interface Descriptor)
bInterfaceNumber         : 0x01
bAlternateSetting        : 0x00
bNumEndpoints            : 0x01 (1 Endpoint)
bInterfaceClass          : 0x03 (HID - Human Interface Device)
bInterfaceSubClass       : 0x01 (Boot Interface)
bInterfaceProtocol       : 0x02 (Mouse)
iInterface               : 0x00 (No String Descriptor)

        ------------------- HID Descriptor --------------------
bLength                  : 0x09 (9 bytes)
bDescriptorType          : 0x21 (HID Descriptor)
bcdHID                   : 0x0110 (HID Version 1.10)
bCountryCode             : 0x00 (00 = not localized)
bNumDescriptors          : 0x01
Descriptor 1:
bDescriptorType          : 0x22 (Class=Report)
wDescriptorLength        : 0x0034 (52 bytes)
Error reading descriptor : ERROR_GEN_FAILURE

        ----------------- Endpoint Descriptor -----------------
bLength                  : 0x07 (7 bytes)
bDescriptorType          : 0x05 (Endpoint Descriptor)
bEndpointAddress         : 0x82 (Direction=IN EndpointID=2)
bmAttributes             : 0x03 (TransferType=Interrupt)
wMaxPacketSize           : 0x0003 (3 bytes)
bInterval                : 0x0A (10 ms)

    ----------------- Device Qualifier Descriptor -----------------
Error                    : ERROR_GEN_FAILURE

      -------------------- String Descriptors -------------------
String descriptors are not available  (because the device has problem code CM_PROB_FAILED_START)
&lt;/b&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF24LU1P nAN-22-based HID device issue</title><link>https://devzone.nordicsemi.com/thread/141209?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 20:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9e97819-b747-4e6c-86ff-b09b0841b64e</guid><dc:creator>eugenePi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Yes, of course ) Please find attached the modified project. It should compile without any additional files.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nAN_2D00_22_5F00_v1.1_5F00_eugenePi.zip"&gt;devzone.nordicsemi.com/.../nAN_2D00_22_5F00_v1.1_5F00_eugenePi.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards, Eugene&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF24LU1P nAN-22-based HID device issue</title><link>https://devzone.nordicsemi.com/thread/141108?ContentTypeID=1</link><pubDate>Tue, 24 Jul 2018 08:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46a6e9dc-62be-4d39-b24b-abd6739ee749</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Eugene,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Am I doing something wrong?[/quote]
&lt;p&gt;Could be. Could you share your changes, so I can try it out?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>