Re: Fwd: Re: [Ubuntu-phone] Ethernet through USB

2015-03-30 Thread Hans Petter Selasky

On 03/30/15 11:08, Matthias Apitz wrote:

El día Monday, March 30, 2015 a las 11:00:25AM +0200, Hans Petter Selasky 
escribió:


On 03/30/15 10:57, Matthias Apitz wrote:


Hello,

I have a new cellphone, the BQ Aquaris E 4.5 Ubuntu Edition, i.e. it
runs Ubuntu 14.10.

When I connect this to the USB port of my 11-CURRENT netbook it gives in
/var/log/messages:

Mar 30 10:25:17 c720-r276659 kernel: ugen0.4: BQ at usbus0
Mar 30 10:25:17 c720-r276659 root: Unknown USB device: vendor 0x2a47 product 
0x2008 bus uhub0

I'm attaching as well what the ubuntu-phone folks think about their side
of the story.

Any chance that we could get support for it into the if_cdce driver? The
vendorID is not listed in sys/dev/usb/usbdevs until now.



Can you dump the USB device and configuration descriptors of your phone?



Hi,

Here they are:


You need to enter your phones menu and select USB tethering instead of MTP.

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org

Re: Fwd: Re: [Ubuntu-phone] Ethernet through USB

2015-03-30 Thread Hans Petter Selasky

On 03/30/15 10:57, Matthias Apitz wrote:


Hello,

I have a new cellphone, the BQ Aquaris E 4.5 Ubuntu Edition, i.e. it
runs Ubuntu 14.10.

When I connect this to the USB port of my 11-CURRENT netbook it gives in
/var/log/messages:

Mar 30 10:25:17 c720-r276659 kernel: ugen0.4: BQ at usbus0
Mar 30 10:25:17 c720-r276659 root: Unknown USB device: vendor 0x2a47 product 
0x2008 bus uhub0

I'm attaching as well what the ubuntu-phone folks think about their side
of the story.

Any chance that we could get support for it into the if_cdce driver? The
vendorID is not listed in sys/dev/usb/usbdevs until now.



Can you dump the USB device and configuration descriptors of your phone?

--HPS

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org


Fwd: Re: [Ubuntu-phone] Ethernet through USB

2015-03-30 Thread Matthias Apitz

Hello,

I have a new cellphone, the BQ Aquaris E 4.5 Ubuntu Edition, i.e. it
runs Ubuntu 14.10. 

When I connect this to the USB port of my 11-CURRENT netbook it gives in
/var/log/messages:

Mar 30 10:25:17 c720-r276659 kernel: ugen0.4: BQ at usbus0
Mar 30 10:25:17 c720-r276659 root: Unknown USB device: vendor 0x2a47 product 
0x2008 bus uhub0

I'm attaching as well what the ubuntu-phone folks think about their side
of the story.

Any chance that we could get support for it into the if_cdce driver? The
vendorID is not listed in sys/dev/usb/usbdevs until now.

Thanks

matthias

- Forwarded message from Oliver Grawert o...@ubuntu.com -

Date: Mon, 30 Mar 2015 10:47:17 +0200
From: Oliver Grawert o...@ubuntu.com
To: ubuntu-ph...@lists.launchpad.net
Subject: Re: [Ubuntu-phone] Ethernet through USB
X-Mailer: Evolution 3.10.4-0ubuntu2

hi,
Am Montag, den 30.03.2015, 10:34 +0200 schrieb Matthias Apitz:
 Hello,
 
 My other Linux phone (Openmoko Freerunner) supports Ethernet through
 USB. When the device is connected on the USB port of my FreeBSD laptop,
 it is known by its vendor and product ID and the cdce driver creates an
 network interface to route IP through. I'm already checking how to get
 support in it for the device:
 
 Mar 30 10:25:17 c720-r276659 kernel: ugen0.4: BQ at usbus0
 Mar 30 10:25:17 c720-r276659 root: Unknown USB device: vendor 0x2a47 product 
 0x2008 bus uhub0
 
 in my beloved FreeBSD.
 
 Once this is done, has ubuntu-phone support for this at the other side
 of the USB cable? Would be nice to talk SSH directly to it via USB and
 not only over Wifi.
the phablet-shell command from the phablet-tools package does exactly
that ... (well, not with a full network setup, just with tunneling an
ssh connection through adb)

https://launchpad.net/phablet-tools has the source, it is shell, so should 
theoretically work on your BSD as well ...

for networking the bq supports tethering via a usb device (run the
following in the terminal app or via adb):

android-gadget-service enable rndis 

that will create an usb0 network device on a linux,PC  not sure what BSD
does with it though :)

ciao
oli


-- 
Mailing list: https://launchpad.net/~ubuntu-phone
Post to : ubuntu-ph...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp

- End forwarded message -

-- 
Matthias Apitz, g...@unixarea.de, http://www.unixarea.de/ +49-170-4527211
Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände 
menschlich bilden.
Si el hombre es formado por las circunstancias entonces es necesario formar 
humanamente
las circunstancias, Karl Marx in Die heilige Familie / La sagrada familia (MEW 
2, 138)
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org

Re: Fwd: Re: [Ubuntu-phone] Ethernet through USB

2015-03-30 Thread Matthias Apitz
El día Monday, March 30, 2015 a las 11:00:25AM +0200, Hans Petter Selasky 
escribió:

 On 03/30/15 10:57, Matthias Apitz wrote:
 
  Hello,
 
  I have a new cellphone, the BQ Aquaris E 4.5 Ubuntu Edition, i.e. it
  runs Ubuntu 14.10.
 
  When I connect this to the USB port of my 11-CURRENT netbook it gives in
  /var/log/messages:
 
  Mar 30 10:25:17 c720-r276659 kernel: ugen0.4: BQ at usbus0
  Mar 30 10:25:17 c720-r276659 root: Unknown USB device: vendor 0x2a47 
  product 0x2008 bus uhub0
 
  I'm attaching as well what the ubuntu-phone folks think about their side
  of the story.
 
  Any chance that we could get support for it into the if_cdce driver? The
  vendorID is not listed in sys/dev/usb/usbdevs until now.
 
 
 Can you dump the USB device and configuration descriptors of your phone?
 

Hi,

Here they are:

# usbconfig -d 0.4 dump_device_desc
ugen0.4: AquarisE4.5 BQ at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON 
(500mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0200 
  bDeviceClass = 0x  Probed by interface class
  bDeviceSubClass = 0x 
  bDeviceProtocol = 0x 
  bMaxPacketSize0 = 0x0040 
  idVendor = 0x2a47 
  idProduct = 0x2008 
  bcdDevice = 0x0216 
  iManufacturer = 0x0002  BQ
  iProduct = 0x0003  Aquaris_E4.5
  iSerialNumber = 0x0004  JU000435
  bNumConfigurations = 0x0001 

# usbconfig -d 0.4 dump_all_config_desc
ugen0.4: AquarisE4.5 BQ at usbus0, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON 
(500mA)

 Configuration index 0

bLength = 0x0009 
bDescriptorType = 0x0002 
wTotalLength = 0x0027 
bNumInterfaces = 0x0001 
bConfigurationValue = 0x0001 
iConfiguration = 0x  no string
bmAttributes = 0x00c0 
bMaxPower = 0x00fa 

Interface 0
  bLength = 0x0009 
  bDescriptorType = 0x0004 
  bInterfaceNumber = 0x 
  bAlternateSetting = 0x 
  bNumEndpoints = 0x0003 
  bInterfaceClass = 0x00ff  Vendor specific
  bInterfaceSubClass = 0x00ff 
  bInterfaceProtocol = 0x 
  iInterface = 0x0005  MTP

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0081  IN
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 1
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0001  OUT
bmAttributes = 0x0002  BULK
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 2
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0082  IN
bmAttributes = 0x0003  INTERRUPT
wMaxPacketSize = 0x001c 
bInterval = 0x0006 
bRefresh = 0x 
bSynchAddress = 0x 



-- 
Matthias Apitz, g...@unixarea.de, http://www.unixarea.de/ +49-170-4527211
Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände 
menschlich bilden.
Si el hombre es formado por las circunstancias entonces es necesario formar 
humanamente
las circunstancias, Karl Marx in Die heilige Familie / La sagrada familia (MEW 
2, 138)
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org