PDA

View Full Version : lsusb



spinmar
24-06-2010, 08:21 AM
I'm trying to use a smargo with my azbox premium.
When I attach it to usb, dmesg tells me:
usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0
so all is ok.
The problem is that to use it with oscam with protocol smartreader I have to know the couple bus and device of my smargo.
So I installed with ipkg libusb and usbutil.
The problem is that when I execute lsusb:

MMP[bin]$ lsusb -t
cannot open /proc/bus/usb/devices, No such file or directory (2)

It seems that in azbox lsusb has some problem.
How can I discover bus and device of my smargo wihout lsusb?
Thanks

Giga
24-06-2010, 08:40 AM
have you tried: lsusb

CCcam:~# lsusb
Bus 001 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB [Hama]
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB [Hama]
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
CCcam:~#
is how it works in debian lenny

spinmar
24-06-2010, 08:45 AM
Ok.
In azbox if you don't insert parameter t it does nothing:

MMP[bin]$ lsusb
MMP[bin]$

with the parameter -t it does an error.
How can I know my smargo bus and device parameters?

Giga
24-06-2010, 08:46 AM
or disconnect smargo cardreader+, boot your receiver, wait until fully booted, now insert smargo and wait some time (20 seconds) and issue then dmesg:

[ 10.462931] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 10.463111] ftdi_sio 1-2.4.2:1.0: FTDI USB Serial Device converter detected
[ 10.463243] ftdi_sio: Detected FT232BM
[ 10.463400] usb 1-2.4.2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 10.463505] ftdi_sio 1-2.4.4:1.0: FTDI USB Serial Device converter detected
[ 10.463609] ftdi_sio: Detected FT232BM
[ 10.463701] usb 1-2.4.4: FTDI USB Serial Device converter now attached to ttyUSB1

found smargo's on USB0 and USB1

spinmar
24-06-2010, 08:49 AM
Maybe i don't ndestand you but I can't see how to know the parameter bus and device.
When I attach my smargo with dmesg I have:

usb 1-1: new full speed USB device using uhci_hcd and address 2
ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected
drivers/usb/serial/ftdi_sio.c: Detected FT232BM
usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0

Oscam needs bus and device.....
Am I missing something?

Giga
24-06-2010, 08:55 AM
communication problem? don't have your receiver, and very new in linux
cardreader+ is on USB port 0 (cccam)

Giga
24-06-2010, 08:58 AM
device = /dev/ttyUSB0

spinmar
24-06-2010, 09:05 AM
device = /dev/ttyUSB0
No!!!
With oscam protocol smartreader device should be similar to:

Device = 001:008

where bus (first 3 numbers) and device (last 3 numbers) are on 3 numbers.....
Your device is ok for:

protocol=mouse
detect=CD

Any help?

Bye

Giga
24-06-2010, 09:12 AM
don't know how to translate Device = 001:008? Seen use in oscam this one to device = /dev/ttyUSB0
try 001:001 (usb 1-1) ?

Giga
24-06-2010, 09:26 AM
all i could find regarding oscam and device:
Depends what driver? ttyUSBx is with FTDI driver, device = 0 is with libus.
Smargo work in native mode with libusb.

spinmar
25-06-2010, 08:09 AM
Ok now I can close the discussion....
An oscam expert (developer) told me tthat the native method on azbox can't be used because the kernel is too old.
Very bad!!

Heinz
08-07-2010, 10:01 PM
use This command first:
mount -t usbfs usbfs /proc/bus/usb

then use lsusb

spinmar
09-07-2010, 09:40 AM
use This command first:
mount -t usbfs usbfs /proc/bus/usb

then use lsusb
Thanks for the suggestion but the information given by the command is not useful because you can't use smartreader protocol in oscam for azbox.....

valerica
09-07-2010, 09:53 AM
I'm using 2 smargos in an usb hub with newcs and all ok ; no ext. power supply for hub . Just 1 remark : it only works in the back usb , not in front .
Will test with oscam when more time available ...

Cheers ,
Val .

spinmar
14-07-2010, 08:51 AM
I'm using 2 smargos in an usb hub with newcs and all ok ; no ext. power supply for hub . Just 1 remark : it only works in the back usb , not in front .
Will test with oscam when more time available ...

Cheers ,
Val .
Valerica,
thanks very much.
Your test of oscam would be very appreciated.
Let us know the results.
Bye