Raw hid gadget

2017-01-07 Thread Rogan Dawes
Hi folks, I'm trying to port the USaBUSe project (https://github.com/SensePost/USaBUSe) from an AVR microcontroller to the Linux USB gadget stack. USaBUSe implements a combined keyboard and mouse via a single HID endpoint, as well as a raw HID endpoint, which is used as a bi-directional comms chan

Re: Raw hid gadget

2017-01-07 Thread Rogan Dawes
te,No Null Position,Non-volatile) 0xC0, // End Collection // 32 bytes So I apparently need to extract just the 5th byte from the packet, and discard the rest. Excellent! Thank you! Rogan On Sat, Jan 7, 2017 at 7:12 PM, Alan Stern wrote: > On Sat, 7 Jan 2017, Rogan Dawes wrote:

Fwd: Raw hid gadget

2017-01-09 Thread Rogan Dawes
a the gadget keyboard, followed by spawn.ps1 which is normally sent over the raw hid interface. Any insight you can offer will be much appreciated! Regards, Rogan -- Forwarded message -- From: Rogan Dawes Date: Mon, Jan 9, 2017 at 7:51 AM Subject: Re: Raw hid gadget To: Alan Ste

Fwd: Raw hid gadget

2017-01-11 Thread Rogan Dawes
For some odd reason, my emails are not getting through to the list. Even after removing the HTML parts. Hopefully this makes it. Rogan -- Forwarded message -- From: Rogan Dawes Date: Mon, Jan 9, 2017 at 10:24 PM Subject: Fwd: Raw hid gadget To: linux-usb@vger.kernel.org, Alan

Re: Fwd: Raw hid gadget

2017-01-11 Thread Rogan Dawes
Apologies for the multiple send, I had an inbound mail problem. On Tue, Jan 10, 2017 at 8:53 AM, Greg KH wrote: > On Mon, Jan 09, 2017 at 10:24:42PM +0200, Rogan Dawes wrote: >> Sigh! This got bounced because of HTML parts. >> >> Another question that arises, thoug

Re: Linux as a USB hub?

2015-12-07 Thread Rogan Dawes
On Mon, Dec 07, 2015 at 04:12:22PM +0100, Krzysztof Opasiak wrote: > > > >Is there any chance in getting a look at your code? > > > > Sorry for my late response but I was on a sickness leave and didn't > have access to my company email. > > Yah, sure. I have just pushed the code to github: > > h

Linux as a USB hub?

2015-12-01 Thread Rogan Dawes
Hi folks, I'm wondering if it is possible/reasonable to try to turn a linux device with host and OTG ports into something that looks and acts like a USB hub? The objective is to allow me to monitor the USB traffic from a Windows host to facilitate writing a device emulator on the Linux device.

Re: Linux as a USB hub?

2015-12-02 Thread Rogan Dawes
On Tue, Dec 01, 2015 at 06:17:54PM -0800, Greg KH wrote: > On Wed, Dec 02, 2015 at 01:02:28AM +0000, Rogan Dawes wrote: > > Thanks Greg. > > > > At a high level, what is needed to implement a new type of USB device > > gadget, > > such as a display link device?

Re: Linux as a USB hub?

2015-12-02 Thread Rogan Dawes
Thanks for the pointers, Chris! I'll check them all out. It sounds like the USBProxy is going to be the way to go. Rogan On Wed, Dec 02, 2015 at 09:10:10AM -0500, Chris McClimans wrote: > On Wed, Dec 2, 2015 at 7:29 AM, Rogan Dawes wrote: > > On Tue, Dec 01, 2015 at 06:17:54PM

Re: Linux as a USB hub?

2015-12-02 Thread Rogan Dawes
On Wed, Dec 02, 2015 at 10:12:26AM -0500, Alan Stern wrote: > On Wed, 2 Dec 2015, Rogan Dawes wrote: > > > Hi folks, > > > > I'm wondering if it is possible/reasonable to try to turn a linux > > device with host and OTG ports into something that looks and ac

Re: Linux as a USB hub?

2015-12-02 Thread Rogan Dawes
On Wed, Dec 02, 2015 at 06:00:21PM +0100, Krzysztof Opasiak wrote: > > > On 12/02/2015 01:29 PM, Rogan Dawes wrote: > >As mentioned originally, I'm trying to come up with an IP KVM, as > >inexpensively as possible. Realising that the approach that I am followin

Re: Linux as a USB hub?

2015-12-02 Thread Rogan Dawes
On Wed, Dec 02, 2015 at 06:47:43PM +0100, Krzysztof Opasiak wrote: > > > On 12/02/2015 06:34 PM, Bjørn Mork wrote: > >Krzysztof Opasiak writes: > > > >>That's why we will try to improve udl driver. Currently we try to > >>setup machine at university which will run linux and then windows in > >>v

Re: Linux as a USB hub?

2015-12-02 Thread Rogan Dawes
On Wed, Dec 02, 2015 at 02:48:38PM -0500, Alan Stern wrote: > On Wed, 2 Dec 2015, Rogan Dawes wrote: > > > I have read the documentation for the USB gadgets (multi, hid, > > printer, serial), but noted that there seem to be quite a few more > > gadgets available in the sou

[PATCH] USB: serial: option: add D-Link DWM-222 device ID

2019-07-11 Thread Rogan Dawes
Add device id for D-Link DWM-222. Cc: sta...@vger.kernel.org --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index a0aaf0635359..018a9772b869 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/

[PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]

2019-07-11 Thread Rogan Dawes
Add device id for D-Link DWM-222. Cc: sta...@vger.kernel.org Signed-Off-By: Rogan Dawes --- Apologies, a typo crept in when submitting this previously. drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c

Re: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]

2019-07-16 Thread Rogan Dawes
arily unavailable Device Status: 0x (Bus Powered) On Tue, Jul 16, 2019 at 11:11 AM Johan Hovold wrote: > > On Thu, Jul 11, 2019 at 12:34:57PM +0200, Rogan Dawes wrote: > > Add device id for D-Link DWM-222. > > > > Cc: sta...@vger.kernel.org > > Signed-Off-By:

Re: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]

2019-07-16 Thread Rogan Dawes
I have no idea how to do that, I'm afraid. I'm mostly a cargo cult C-programmer :-) I can copy and paste, but that's about it! On Tue, Jul 16, 2019 at 8:05 PM Johan Hovold wrote: > > On Tue, Jul 16, 2019 at 09:34:56PM +0700, Lars Melin wrote: > > On 7/16/2019 18:17, Johan Hovold wrote: > > > > s

Re: [PATCH] USB: serial: option: add D-Link DWM-222 device ID [version 2]

2019-07-16 Thread Rogan Dawes
On Tue, Jul 16, 2019 at 8:40 PM Rogan Dawes wrote: > > I have no idea how to do that, I'm afraid. > > I'm mostly a cargo cult C-programmer :-) I can copy and paste, but > that's about it! That said, I think that I have already blacklisted interface 4, as it was also

[PATCH v4] USB: serial: option: add D-Link DWM-222 device ID

2019-07-16 Thread Rogan Dawes
Add device id for D-Link DWM-222. Cc: sta...@vger.kernel.org --- Added the reserved interface 0, as suggested by Johan and Lars. drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index a0aaf0635359..db6f76b

[PATCH v5] USB: serial/qmi_wwan: add D-Link DWM-222 device ID

2019-07-16 Thread Rogan Dawes
Add device id for D-Link DWM-222. Cc: sta...@vger.kernel.org --- Also add the qmi_wwan entry, since it was blacklisted already in option Apologies for the spam! drivers/net/usb/qmi_wwan.c | 1 + drivers/usb/serial/option.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/drivers/net/usb/

[PATCH] usb: qmi_wwan: add D-Link DWM-222 A2 device ID

2019-07-17 Thread Rogan Dawes
Signed-off-by: Rogan Dawes --- drivers/net/usb/qmi_wwan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 8b4ad10cf940..69e0a2acfcb0 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -1292,6 +1292,7

[PATCH v6] USB: serial: option: add D-Link DWM-222 device ID

2019-07-17 Thread Rogan Dawes
Add device id for D-Link DWM-222 A2. MI_00 D-Link HS-USB Diagnostics MI_01 D-Link HS-USB Modem MI_02 D-Link HS-USB AT Port MI_03 D-Link HS-USB NMEA MI_04 D-Link HS-USB WWAN Adapter (qmi_wwan) MI_05 USB Mass Storage Device Cc: sta...@vger.kernel.org Signed-Off-By: Rogan Dawes --- drivers/usb

Re: [PATCH v6] USB: serial: option: add D-Link DWM-222 device ID

2019-07-17 Thread Rogan Dawes
Thank you for all the hand holding ... On Wed, Jul 17, 2019 at 11:20 AM Johan Hovold wrote: > > On Wed, Jul 17, 2019 at 11:11:34AM +0200, Rogan Dawes wrote: > > Add device id for D-Link DWM-222 A2. > > > > MI_00 D-Link HS-USB Diagnostics > > MI_01 D-Link HS-USB Mo

USB Gadget capabilities

2018-02-06 Thread Rogan Dawes
Hi folks, I'm trying to identify hardware which has both USB host and USB gadget capabilities. Unfortunately, in some cases, datasheets are unavailable, or unclear, claiming only USB host support. However, digging further, it turns out that USB gadget support is also present, if one uses a USB A M

How to find devices that have gadget support?

2019-10-23 Thread Rogan Dawes
Hi folks, I'm trying to find out which CPU's that are supported by Linux have USB controllers that support gadget mode. In theory, this should be a relatively straightforward matter, given the device tree descriptions, I think. But I am struggling to figure out how to actually create a list of th