Re: host to host usb transfer

2012-10-30 Thread Michal Nazarewicz
On Tue, Oct 30 2012, Marek Floriańczyk wrote: > So in order to use g_ether on this Linux box it should have USB > peripheral controller, right? UDC, USB Device Controller > Standard PC computer has something called host controller. HCI, Host Controller Interface > Are there computers that hav

Re: host to host usb transfer

2012-10-30 Thread Marek Floriańczyk
Hello, I think I got the picture more or less. So in order to use g_ether on this Linux box it should have USB peripheral controller, right? Standard PC computer has something called host controller. Are there computers that have usb host controller - to connect to them "regular" usb devices and

Re: host to host usb transfer

2012-10-30 Thread Michal Nazarewicz
On Tue, Oct 30 2012, Marek Floriańczyk wrote: > Lets leave windows on side for a moment. How about if I would like to connect > to this Linux box with g_ether gadget from other Linux machine ? Do I also > need g_ether module on the other machine? No. g_ether is USB gadget, it is functional only

Re: host to host usb transfer

2012-10-30 Thread Marek Floriańczyk
Dnia wtorek, 30 października 2012 o 14:51:33 Michal Nazarewicz napisał(a): > On Tue, Oct 30 2012, Marek Floriańczyk wrote: > > So this interface is recognized on windows as his own interface? Ip on > > this interface is configured as it was set by Linux box g_ether driver? > > And you can connect t

Re: host to host usb transfer

2012-10-30 Thread Michal Nazarewicz
On Tue, Oct 30 2012, Marek Floriańczyk wrote: > So this interface is recognized on windows as his own interface? Ip on this > interface is configured as it was set by Linux box g_ether driver? And you > can > connect to this ip from application on windows? Windows sees it as a new network inter

Re: host to host usb transfer

2012-10-30 Thread Marek Floriańczyk
Dnia wtorek, 30 października 2012 o 13:19:26 Ming Lei napisał(a): > On Tue, Oct 30, 2012 at 4:24 PM, Marek Floriańczyk > > wrote: > > So lets assume I have UDC and I have compiled g_ether gadget, configured > > this and it works. How to use it? > > From view of OS, it is a common ethernet interf

Re: host to host usb transfer

2012-10-30 Thread Ming Lei
On Tue, Oct 30, 2012 at 4:24 PM, Marek Floriańczyk wrote: > So lets assume I have UDC and I have compiled g_ether gadget, configured this > and it works. How to use it? >From view of OS, it is a common ethernet interface. > I mean I have Linux with this g_ether gadget that emulates eth on USB, b

Re: host to host usb transfer

2012-10-30 Thread Marek Floriańczyk
Dnia poniedziałek, 29 października 2012 o 23:57:04 Michal Nazarewicz napisał(a): > On Mon, Oct 29 2012, Marek Floriańczyk wrote: > > I have seen this usb-gadget subsystem before but I have never used > > this. It looks like it could server the purpose, surely my tablet is > > visible as an device,

Re: host to host usb transfer

2012-10-29 Thread Michal Nazarewicz
>> Marek Floriańczyk wrote: >>> I know that it does, but this usb bridge cable has some chip, from >>> what I understand it presents host as an usb device. > > On Mon, Oct 29 2012, Peter Stuge wrote: >> This sentence makes no sense, because that is impossible, because >> hosts and a devices are so

Re: host to host usb transfer

2012-10-29 Thread Michal Nazarewicz
On Mon, Oct 29 2012, Marek Floriańczyk wrote: > I have seen this usb-gadget subsystem before but I have never used > this. It looks like it could server the purpose, surely my tablet is > visible as an device, and it has Linux inside after all, but it is > also complex, and it will not be easy. I w

Re: host to host usb transfer

2012-10-29 Thread Michal Nazarewicz
> Marek Floriańczyk wrote: >> I know that it does, but this usb bridge cable has some chip, from >> what I understand it presents host as an usb device. On Mon, Oct 29 2012, Peter Stuge wrote: > This sentence makes no sense, because that is impossible, because > hosts and a devices are so very dif

Re: host to host usb transfer

2012-10-29 Thread Alan Stern
On Mon, 29 Oct 2012, [ISO-8859-2] Marek Floria�czyk wrote: > > As I and others have mentioned, if the host-to-hosts cable shows up as > > Ethernet device, it's likely that it is quite trivial, and the hardest > > part will be choosing IP addresses for both sides. (Not tested, just > > guessing.)

Re: host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
> This sentence makes no sense, because that is impossible, because > hosts and a devices are so very different. I recommend reading > chapter 5 and/or chapter 8 of the USB 2.0 spec at > http://www.usb.org/developers/docs/usb_20_10.zip > to learn more about the differences. Those two chapters g

Re: host to host usb transfer

2012-10-29 Thread Peter Stuge
Marek Floriańczyk wrote: > Well I thought about USB because of two reasons: > 1. I need Ethernet port on that Linux box to be used by my server and > it needs to be configured accordingly to home network. It would be > troublesome to use that. > 2. USB is available on most of the computers, and usu

Re: host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
2012/10/29, Michal Nazarewicz : > On Mon, Oct 29 2012, Marek Floriańczyk wrote: >> You mean host to host usb cables? >> >> Some of them are sold with windows software to exchange files between >> computers so this is possible. Other question is how challenging that >> can be. > > As I and others h

Re: host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
2012/10/29, Peter Stuge : > Marek Floriańczyk wrote: > That is the approach of providing no administrative tool at all. I > don't think anyone suggested that this is what you should do. this is actually what I intend to do, disallow anyone to log into the system, and provide any configuration meth

Re: host to host usb transfer

2012-10-29 Thread Michal Nazarewicz
On Mon, Oct 29 2012, Marek Floriańczyk wrote: > You mean host to host usb cables? > > Some of them are sold with windows software to exchange files between > computers so this is possible. Other question is how challenging that > can be. As I and others have mentioned, if the host-to-hosts cable

Re: host to host usb transfer

2012-10-29 Thread Peter Stuge
Marek Floriańczyk wrote: > If I say to them log into something like raspberry (without even a > screen) prepare postgresql database dump, load database and so on... > then I'm already lost, no one will do it. That is the approach of providing no administrative tool at all. I don't think anyone sug

Re: host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
You mean host to host usb cables? Some of them are sold with windows software to exchange files between computers so this is possible. Other question is how challenging that can be. Anyway, thanks for encouragement ;) best regards Marek 2012/10/29, Greg KH : > On Mon, Oct 29, 2012 at 07:41:13PM

Re: host to host usb transfer

2012-10-29 Thread Greg KH
On Mon, Oct 29, 2012 at 07:41:13PM +0100, Marek Floriańczyk wrote: > 2012/10/29, Alan Stern : > > On Mon, 29 Oct 2012, Marek Floriańczyk wrote: > > > >> Yes, thank you. > >> There is a little misunderstanding. I want to connect two applications on > >> two > >> computers, rather than two computers

Re: host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
2012/10/29, Alan Stern : > On Mon, 29 Oct 2012, Marek Floriańczyk wrote: > >> Yes, thank you. >> There is a little misunderstanding. I want to connect two applications on >> two >> computers, rather than two computers itself. > > How can you connect two applications without setting up a connection

Re: host to host usb transfer

2012-10-29 Thread Alan Stern
On Mon, 29 Oct 2012, Marek Floriańczyk wrote: > Yes, thank you. > There is a little misunderstanding. I want to connect two applications on two > computers, rather than two computers itself. How can you connect two applications without setting up a connection between the two computers they are

Re: host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
Dnia poniedziałek, 29 października 2012 o 16:23:14 Ming Lei napisał(a): > On Mon, Oct 29, 2012 at 11:14 PM, Marek Floriańczyk > > wrote: > > Of course driver must be specifically writen to emulate ethernet device > > or something else. > > At least net1080 can be supported by kernel driver, and

Re: host to host usb transfer

2012-10-29 Thread Michal Nazarewicz
On Mon, Oct 29 2012, Marek Floriańczyk wrote: > There is however something like USB Bridge cable, usually sold with > some software for windows computers to exchange data, so I understand > that this USB bridge cable provides an interface that is visible as > a device on both computers, right? AFA

Re: host to host usb transfer

2012-10-29 Thread Ming Lei
On Mon, Oct 29, 2012 at 11:14 PM, Marek Floriańczyk wrote: > Of course driver must be specifically writen to emulate ethernet device or > something else. At least net1080 can be supported by kernel driver, and no libusb app involved. drivers/net/usb/net1080.c Maybe others can be sup

Re: host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
Dnia poniedziałek, 29 października 2012 o 15:37:08 Ming Lei napisał(a): > On Mon, Oct 29, 2012 at 7:04 PM, Marek Floriańczyk > > wrote: > > Hi all > > > > I need to connect two computers and exchange data through usb cable. I > > have googled the subject and all I know so far is that it is impos

Re: host to host usb transfer

2012-10-29 Thread Ming Lei
On Mon, Oct 29, 2012 at 7:04 PM, Marek Floriańczyk wrote: > Hi all > > I need to connect two computers and exchange data through usb cable. I have > googled the subject and all I know so far is that it is impossible with > straightforward approach and inadvisable. However I need it. > > I do wrote

host to host usb transfer

2012-10-29 Thread Marek Floriańczyk
Hi all I need to connect two computers and exchange data through usb cable. I have googled the subject and all I know so far is that it is impossible with straightforward approach and inadvisable. However I need it. I do wrote some soft to read/write from usb device with libusb or with hidapi