Identificarte

Versión Completa : Linux y SonyEricsson K300


Sponsored links
.




FoxM
abril 20, 2006, 12:32
Hola. Acabo de comprar un cable USB para conectar mi SonyEricsson con mi PC. Necesito esto para un proyecto en la universidad, pero aunque imagino que en Windows XP funciona bien (no lo he podido poner a trabajar en W98SE), necesito que me funcione tambien en Linux. Cuando conecto el cable con el tel al PC puedo consultar con dmesg:

foxm@linux:~> dmesg
usb 2-3: new full speed USB device using ohci_hcd and address 3


Pero no se como buscarlo entre los nmil archivos en /dev/ para montarlo. No me aparece como /dev/sda asi que no se me ocurre nada.

Perdon por la falta de busqueda previa de informacion, pero estoy en un medio apuro y queria dejar este post listo antes que se me olvide :P Despues ire colocando lo que se me vaya presentando.

Necesito sobretodo detectar donde esta para poder, desde Python y utilizando PySerial o PyUSB conectarme al movil y poder mandarle comandos AT al modem.

FoxM
abril 21, 2006, 11:15
Luego de consultar algunas paginas y con algunos minutos de tiempo disponibles para ello, encontre el linux-usb.org ( http://www.linux-usb.org/USB-guide/x356.html ) algo relacionado con mi situacion. Sin embargo, el texto no es muy claro en como activar los drivers genericos ni el soporte para cables usb serial.

Consulte entonces la documentacion del kernel de mi distribucion (SuSE 10) y basicamente dice lo mismo:

INTRODUCTION

The USB serial driver currently supports a number of different USB to
serial converter products, as well as some devices that use a serial
interface from userspace to talk to the device.

See the individual product section below for specific information about
the different devices.


CONFIGURATION

Currently the driver can handle up to 256 different serial interfaces at
one time.

If you are not using devfs:
The major number that the driver uses is 188 so to use the driver,
create the following nodes:
mknod /dev/ttyUSB0 c 188 0
mknod /dev/ttyUSB1 c 188 1
mknod /dev/ttyUSB2 c 188 2
mknod /dev/ttyUSB3 c 188 3
.
.
.
mknod /dev/ttyUSB254 c 188 254
mknod /dev/ttyUSB255 c 188 255

If you are using devfs:
The devices supported by this driver will show up as
/dev/usb/tts/{0,1,...}

When the device is connected and recognized by the driver, the driver
will print to the system log, which node(s) the device has been bound
to.



Generic Serial driver

If your device is not one of the above listed devices, compatible with
the above models, you can try out the "generic" interface. This
interface does not provide any type of control messages sent to the
device, and does not support any kind of device flow control. All that
is required of your device is that it has at least one bulk in endpoint,
or one bulk out endpoint.

To enable the generic driver to recognize your device, build the driver
as a module and load it by the following invocation:
insmod usbserial vendor=0x#### product=0x####
where the #### is replaced with the hex representation of your device's
vendor id and product id.

This driver has been successfully used to connect to the NetChip USB
development board, providing a way to develop USB firmware without
having to write a custom driver.

For any questions or problems with this driver, please contact Greg
Kroah-Hartman at greg@kroah.com


Pero mi situacion no ha cambiado. Creo que la universidad me esta volviendo lerdo :(

Finalmente consulte mi /proc/bus/usb/devices y esto es lo que me aparece, pero tendre que leerlo con calma e investigar el significado de cada cosa.
T: Bus=02 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#= 3 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=6547 ProdID=0232 Rev= 0.01
S: Manufacturer=ArkMicroChips
S: Product=USB-UART Controller
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms