Redirect X over USB


danielo515

Member
Joined
Dec 26, 2012
Messages
207
Hello everyone.

I want to start using my Pandora at work. Of course I can use a virtual machine with linux, but that is not so fun.

My plan, if it is possible is to connect my Pandora to my laptop by USB and redirect the X. My laptop runs windows 7. I know this wold be easier using an Ethernet cable, but carrying a switch is a total deal breaker.

I think this can be done by some kind of usb serial connection, but I have no idea about where to start.

I also though about creating a hotspot on my pandora and connect the laptot to it over wifi. The problem with that is that I can not configure windows in any way to use the wired connection for everything but the X redirection.

Did someone setup something similar? Any clue or hint?

Thanks in advance.
 
Last edited by a moderator:
Menu->Settings->Startup->Enable/Disable Services on Boot->Start USB Network on bootup
Sadly I don't have that option.

I have:

  • Enable wifi on bootup
  • Enable USB Host
  • Start Dropbear
  • Save/Reestore ALSA
  • Mount remote filesystems on bootup
  • Start USB OTG port on bootup

Is there any way to activate it manually?

I'm on the latest super zaxon release. 
 
Hello @Neelix, based on a comment that you did on another thread I think this option have been renamed to "start USB OTG port". Does that makes sense?
 
Hello @Neelix, based on a comment that you did on another thread I think this option have been renamed to "start USB OTG port". Does that makes sense?
Yes it's the same option that was called "USB Network", I renamed it because OTG mice also don't work without it. It's also now enabled by default.
 
Ahh...  I haven't run the latest updates yet so I had no idea it had changed.  Perhaps it might be an idea to adjust the label to reference both functions?

-Neelix
 
Well the module that's loaded can also do serial emulation (and perhaps something more?), so I think it's easier just to call it "OTG port".
 
Last edited by a moderator:
Well the module that's loaded can also do serial emulation (and perhaps something more?), so I think it's easier just to call it "OTG port".
I might have agreed with that except that I know that there are quite a lot of references to it on the board (some of them are in my own posts) that refer to that option as "USB Networking".   

-Neelix
 
Well the module that's loaded can also do serial emulation (and perhaps something more?), so I think it's easier just to call it "OTG port".
How do you know which things is it capable to perform? O agree with Neelix about references. The good thing about the new label is that it points to the otg port, so it's less confuse to locate the actual usb port.
 
Not offended at all.  It's bound to cause further confusion though, as evidenced by the fact that it already has. (if not for that I wouldn't care)

-Neelix
 
I'm really having a bad time trying to setup this on windows 7.

Here is what I did:

1.- Usb networ is already enabled by default, so I just plug the usb cable, connect it to the computer and do a sudo ifconfig usb0 up

2.- I check on Device Manager. Windows recognices it as a CDC Composite Gadget.

3.- I try to install a network driver. I tried the one suggested at this "tutorial" http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8

4.- The driver is installed, but windows reports that the device can  not start, so nothing to do from here.

Any did it on windows 7?
 
I'm really having a bad time trying to setup this on windows 7.

Here is what I did:

1.- Usb networ is already enabled by default, so I just plug the usb cable, connect it to the computer and do a sudo ifconfig usb0 up

2.- I check on Device Manager. Windows recognices it as a CDC Composite Gadget.

3.- I try to install a network driver. I tried the one suggested at this "tutorial" http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8

4.- The driver is installed, but windows reports that the device can  not start, so nothing to do from here.

Any did it on windows 7?
The driver they recommend on that site is for an RNDIS connection not a CDC connection... Look for one called CDC instead of NDIS. 

According to This wikipedia page CDC has been available in windows since Vista, so there should theoretically be one there, but I don't know which "manufacturer" it would be listed under. 

EDIT: I'd be looking to see if there's a manufacturer entry for USB-IF

-Neelix
 
Last edited by a moderator:
This is from Microsoft page:

Prior to Windows Vista, support for CDC is limited to the RNDIS-specific implementation of the Abstract Control Model (ACM) with a vendor-unique protocol (bInterfaceProtocol) value of 0xFF. The RNDIS facility centers the management of all 802-style network cards in a single class driver, Rndismp.sys. For a detailed discussion of remote NDIS, see Overview of Remote NDIS. The mapping of remote NDIS to USB is implemented in the Usb8023.sys driver. For further information about networking support in Windows, see the Networking and Wireless Technologieswebsite.

Microsoft-provided driver and INF

Rndismp.sys

Rndismp.inf

It is stated here:

https://msdn.microsoft.com/en-us/library/windows/hardware/ff538820(v=vs.85).aspx

Is our driver compatible with the RNDIS-specific implementation ?
 
No.  RNDIS and CDC are not compatible,  so you can't connect to a CDC device with an RNDIS driver.  You need a CDC driver.

-Neelix
 
No.  RNDIS and CDC are not compatible,  so you can't connect to a CDC device with an RNDIS driver.  You need a CDC driver.

-Neelix
Then I am screw I think. I did not found any CDC driver anywhere.

It's definitively a windows problem. I booted a debian VM and it works flawlessly. The only thing I am not sure about is who acts as DHCP server. The Debian got it's IP first, and the once I ran the dhcpclient command on the pandora the pandora got an IP address. Taking this in mind and the name of the command I think it's pretty clear the pandora acts as a client.

Have you found a CDC driver that works? Or at least one?
 
Back
Top