Hi,
I did not see any post on our forum in that subject so (appology if it was discussed) i think it might be useful for some members.
Recent changes in oscam/smargo allow you to define device by reader number rather then bus/device.
The advantage of it is that you will not have to change bus/device settings in your oscam.server file every time you restart PC or unplug smartreader.
What you need is make sure your smartreader is updated to v. 1.4.
In oscam.server you need to change familiar Device = bus:device to Device = Serial:Reader XXX where XXX represents serial number of smargo found from webif usb scan script (lsusb does not show smartreader number), i.e:
Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
iProduct 0
iSerial 3 Reader 67
In that case the " iSerial 3 Reader 67" is of interest to us. So if you change your device entry to:
Device = Serial:Reader 67, the smargo will be picked up with no need to manually change it's bus/device address.
At the moment I run oscam 3326 on Debian and it works very well.
Enjoy
EDIT: that was meant to be sent in General section so pls if admin can shift it there, thanks.
Last edited by mborkp; 06-10-10 at 10:30 AM.
Look Here -> |
Hi,
you can actually use lsusb but in the form: sudo lsusb -v
The serial number will be: iSerial 3 Reader xxx
Cheers
Last edited by mborkp; 07-10-10 at 11:25 AM.
ident (06-10-10)
I get:
Bus 004 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
iProduct 0
iSerial 0
My smargo is plugged in and working on 004:002, so I don't know why I don't get values for iProduct and iSerial. Any ideas?
Hi,
do you have firmware 1.4? And is it oryginal by Agrolis?
Cheers
Last edited by mborkp; 07-10-10 at 11:16 AM.
ok, you need privilages so try:
sudo lsusb -v
look for iSerial, i.e.:
Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0x6001 FT232 USB-Serial (UART) IC
bcdDevice 4.00
iManufacturer 0
iProduct 0
iSerial 3 Reader 67
and that's what I get with no rights:
Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0x6001 FT232 USB-Serial (UART) IC
bcdDevice 4.00
iManufacturer 0
iProduct 0
Cheers
EDIT: I edit my previous post in that subject.
Last edited by mborkp; 07-10-10 at 11:24 AM.
Hi,
you can get below update to 1.4. It is for windows. Run as administrator!
If your smargo is already updated under Linux you might kill it for good so be sure it is not. Best ask your seller, or use rp_tools under linux to check version.
Can't rememberof my head but I think ./srp_tools_x86 /dev/ttyUSBx
Cheers
Last edited by mborkp; 07-10-10 at 07:15 PM.
Lomax (08-10-10)
If anyone is having problems with needing sudo to access the smargo in Ubuntu, I added a rule to give easy read/write access.
I simply created a files called 71-cardreader-permissions.rules in /etc/udev/rules.d/
and added this line
modul8Code:SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",SYSFS{idVendor}=="0403" , SYSFS{idProduct}=="6001", MODE="0666"
I'm confused
I don't have a smart reader but trying to understand what your saying for my own knowledge...
Your example of "Serial:Reader 67"
Am I correct in assuming that you are saying that the device line is as follows....
Device = Serial:Reader 67
not...
Device = 3:67
so everyones Device Line would read
Device = Serial:Reader xx <--- (only need to add the device number at the end of the text?)
the words Serial:Reader are text yes?
Davo
./srp_tools_x86 /dev/ttyUSB0
doesn't work for me - I've tried ttyUSB0 throught to ttyUSB9. In fact, I don't see any ttyUSB in /dev. How can I tell which device represents my smargo?
Hi Davo,
you are right, Device = Serial:Reader xx <--- (only need to add the device number at the end of the text?)
The smargo with firmware 1.4 will have it's unique number and that can be used in oscam (not sure from which version, but latest works) in the form you stated above.
And yes, the words Serial:Reader are text.
Cheers
Last edited by mborkp; 09-10-10 at 10:15 AM.
fromticket #589 on streamboard...
Here is a small patch against SVN 2567 which allows specification of Smartreader devices by serial number (possible since Smargo Firmware 1.05). This makes oscam independant of the USB device enumeration order e.g. in case of reconnects. A few people have tried to archieve this effect using scripts which modify the oscam.server file.
Usage: Simply specify
Device = Serial:Reader A43A7E
So everything since 2567
instead of the previous
Device = 001:007
During startup, oscam will dump the bus/device number of the reader:
2010/06/26 114 9353 r02 Found reader with serial Reader A43A7E at 001:007
Lomax,
I would suggest:
make sure any server/program is using smargo
in console:
su (or sudo)
lsusb -v | grep iSerial
You should get something like this:
iSerial 1 0000:00:1d.7
iSerial 1 0000:00:1d.2
iSerial 3 Reader 56
iSerial 1 0000:00:1d.0
iSerial 0
iSerial 1 0000:00:1a.2
iSerial 1 0000:00:1d.1
iSerial 3 Reader 67
iSerial 1 0000:00:1a.0
iSerial 1 0000:00:1a.7
In here there is two smargos, 3 Reader 56 and 3 Reader 67
If you will not have your smargo listed, it is not version 1.4
Pull it out and put in Windows box, setup drivers for smargo. Use the 1.4 updater (run as administrator) and when done put it back to Linux box. Then again, in console:
su (or sudo)
lsusb -v | grep iSerial
It should be there. I would suggest to use windows as it is safe for smargo, many, many people killed their readers using srp_tools.
Cheers
Last edited by mborkp; 09-10-10 at 11:25 AM.
Lomax (09-10-10)
OK, I disabled oscam, rebooted, and now I see a ttyUSB0 device in /dev (once I start oscam the ttyUSB0 entry disappears from /dev).
So, without oscam starting I use the command:
srp_tools -d /dev/ttyUSB0
I get:
no smartreader found
Running debian. uname output:
Linux CardServer 2.6.32-5-686 #1 SMP Wed Aug 25 1412 UTC 2010 i686 GNU/Linux
Any suggestions?
EDIT: Just read your latest post, mborkp. Trying this now.....
Bookmarks