PDA

View Full Version : [GiGaBlue QUAD] Is Smargo support embedded within the OpenVIX 3.0 image for the QUAD?



XabiX
29-11-12, 16:27
Hello,

i tried connecting my Smargo reader and I don't see anything special in lsusb.

messages say:
Nov 29 16:20:02 gbquad user.info kernel: usb 7-1: new full speed USB device using ohci-brcm and address 3

I did try installing the kernel-module-usbserial (2.6.37-r5.10) but the same.

Thanks
XabiX

XabiX
29-11-12, 16:40
Same with:
kernel-module-ftdi-sio - 2.6.37-r5.10

not working. it's all about finding the right driver :D

rossi2000
29-11-12, 16:43
what does lsusb output?

XabiX
29-11-12, 16:45
lsusb -v
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 003 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0002
Bus 005 Device 001: ID 1d6b:0001
Bus 006 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 1e1d:1101
Bus 007 Device 001: ID 1d6b:0001
Bus 008 Device 001: ID 1d6b:0001
Bus 007 Device 002: ID 0403:6001

XabiX
29-11-12, 17:02
It tried with: opkg install enigma2-plugin-drivers-usbserial

but doesn't seem better BUT now when I unplug and replug I have a different info in dmesg


Nov 29 17:00:36 gbquad user.info kernel: usb 7-1: new full speed USB device using ohci-brcm and address 3
Nov 29 17:00:42 gbquad user.info kernel: ftdi_sio 7-1:1.0: FTDI USB Serial Device converter detected
Nov 29 17:00:42 gbquad user.info kernel: usb 7-1: Detected FT232BM
Nov 29 17:00:42 gbquad user.info kernel: usb 7-1: Number of endpoints 2
Nov 29 17:00:42 gbquad user.info kernel: usb 7-1: Endpoint 1 MaxPacketSize 64
Nov 29 17:00:42 gbquad user.info kernel: usb 7-1: Endpoint 2 MaxPacketSize 64
Nov 29 17:00:42 gbquad user.info kernel: usb 7-1: Setting MaxPacketSize 64
Nov 29 17:00:42 gbquad user.err kernel: ftdi_sio ttyUSB0: Unable to read latency timer: -32
Nov 29 17:00:42 gbquad user.info kernel: usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0

Normally the Smargo runs 1.4 (or maybe 1.3) but used to work on the vu+ uno.

rossi2000
29-11-12, 17:09
now try lsusb looks like its ok.
ive seenn that error before and the smargo still runs fine.

XabiX
29-11-12, 17:41
I already did and it's the same:


root@gbquad:/media/usb# lsusb
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0002
Bus 003 Device 001: ID 1d6b:0002
Bus 004 Device 001: ID 1d6b:0002
Bus 005 Device 001: ID 1d6b:0001
Bus 006 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 1e1d:1101
Bus 007 Device 001: ID 1d6b:0001
Bus 008 Device 001: ID 1d6b:0001
Bus 007 Device 003: ID 0403:6001

XabiX
29-11-12, 17:55
ls -l /dev/ttyUSB0
crw--w---- 1 root root 188, 0 Nov 29 17:48 /dev/ttyUSB0


2012/11/29 17:51:55 5AC478 h tntsat [smartreader] creating thread for device /dev/ttyUSB0
2012/11/29 17:51:55 5F18E8 r tntsat [smartreader] Wrong device format (/dev/ttyUSB0), it should be Device=bus:dev
2012/11/29 17:51:55 5F18E8 r tntsat [smartreader] Cannot open device: /dev/ttyUSB0

and (I did configure 007:001):

2012/11/29 17:52:55 5F18E8 r Smartreader device 7:1 not found
2012/11/29 17:52:55 5F18E8 r tntsat [smartreader] Cannot open device: 7:1

I think we should find 1st the reason why it doesn't show up in lsub before doing some testing as this seems like something that should work out of the box (meaning smargo is well known in the market)

XabiX
29-11-12, 18:13
This is how my Smargo is setup:



smartreader+ version v1.4
MODE autoswitch
FREQ -nan Mhz
KERNEL normal
T_MODE t = 0
EGT 0

i will double check if it can work but still would like to understand why nothing is being displayed within the lsusb.
besides if reboot I would need to find a way to automatically assign the same name to a device so it always work and for that I need some info about the usb device.

Some info about the driver but this goes over my skills :D
http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/drivers/usb/serial/ftdi_sio.c

THANKS

XabiX
29-11-12, 18:41
It looks like the issue is within libusb module according to this thread who speaks about similar pb with QNAP NAS:
http://forum.qnap.com/viewtopic.php?f=177&t=24851&start=10

They are using:
libusb - 0.1.12-2 - Library for interfacing to the USB subsystem.

Within OpenVix, we use:

opkg list-installed | grep libusb
libusb-1.0-0 - 1.0.8-r4

So that could be part of the issue?


lsmod
Module Size Used by
8192cu 545212 0
pl2303 12379 0
keyspan 32543 0
ftdi_sio 29483 0
ext3 124521 0
jbd 70327 1 ext3
ext2 57532 0
belkin_sa 6777 0
usbserial 31143 4 pl2303,keyspan,ftdi_sio,belkin_sa
dvb 12839708 8
8712u 348842 0
rt73 394864 0
rt5370sta 835779 0
ext4 297962 2
jbd2 77072 1 ext4

XabiX
29-11-12, 21:14
If I connect my Smargo to an Ubuntu server it works OK:


Nov 29 21:10:29 HTPC kernel: [561489.271369] usb 5-1: new full-speed USB device number 3 using uhci_hcd
Nov 29 21:10:34 HTPC mtp-probe: checking bus 5, device 3: "/sys/devices/pci0000:00/0000:00:1d.3/usb5/5-1"
Nov 29 21:10:34 HTPC mtp-probe: bus: 5, device: 3 was not an MTP device
Nov 29 21:10:34 HTPC kernel: [561494.468918] USB Serial support registered for FTDI USB Serial Device
Nov 29 21:10:34 HTPC kernel: [561494.469136] ftdi_sio 5-1:1.0: FTDI USB Serial Device converter detected
Nov 29 21:10:34 HTPC kernel: [561494.469270] usb 5-1: Detected FT232BM
Nov 29 21:10:34 HTPC kernel: [561494.469276] usb 5-1: Number of endpoints 2
Nov 29 21:10:34 HTPC kernel: [561494.469282] usb 5-1: Endpoint 1 MaxPacketSize 64
Nov 29 21:10:34 HTPC kernel: [561494.469288] usb 5-1: Endpoint 2 MaxPacketSize 64
Nov 29 21:10:34 HTPC kernel: [561494.469293] usb 5-1: Setting MaxPacketSize 64
Nov 29 21:10:34 HTPC kernel: [561494.471278] ftdi_sio ttyUSB1: Unable to read latency timer: -32
Nov 29 21:10:34 HTPC kernel: [561494.472393] usb 5-1: FTDI USB Serial Device converter now attached to ttyUSB1
Nov 29 21:10:34 HTPC kernel: [561494.472435] usbcore: registered new interface driver ftdi_sio
Nov 29 21:10:34 HTPC kernel: [561494.472439] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver


lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x Composite Device
Bus 005 Device 002: ID 0463:ffff MGE UPS Systems UPS
Bus 005 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

So I think either the libusb or the driver is faulty?

XabiX
02-12-12, 23:02
The smargo works with /dev/ttyUSB0 and smargo protocol (with oscam).

if I put bus:device it doesn't work.

Anyway here the issue was to try to solve the fact that the Smargo is not shown in lsusb and therefore completely recognized by the system.

but at least it's working