Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: Oscam and smargo

  1. #1
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default Oscam and smargo

    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.

  2. The Following 4 Users Say Thank You to mborkp For This Useful Post:

    novica (06-10-10),Onefella (06-10-10),tedy58 (06-02-13)



Look Here ->
  • #2
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    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.

  • The Following User Says Thank You to mborkp For This Useful Post:

    ident (06-10-10)

  • #3
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    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?

  • #4
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    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.

  • #5
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    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.

  • #6
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Quote Originally Posted by mborkp View Post
    do you have firmware 1.4?
    How can I tell?

    Quote Originally Posted by mborkp View Post
    And is it oryginal by Agrolis?
    As far as I know it is - the seller said it was, and it appears to be genuine after going through the "spot a fake" guide on the Argolis website.

  • #7
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    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.

  • The Following User Says Thank You to mborkp For This Useful Post:

    Lomax (08-10-10)

  • #8
    Junior Member
    Join Date
    Jan 2009
    Posts
    64
    Thanks
    1
    Thanked 4 Times in 3 Posts
    Rep Power
    188
    Reputation
    32

    Default

    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

    Code:
    SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device",SYSFS{idVendor}=="0403" , SYSFS{idProduct}=="6001", MODE="0666"
    modul8

  • #9
    Member davo's Avatar
    Join Date
    Jan 2008
    Location
    In A House
    Age
    55
    Posts
    464
    Thanks
    32
    Thanked 202 Times in 103 Posts
    Rep Power
    231
    Reputation
    921

    Default

    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

  • #10
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    ./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?

  • #11
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by davo View Post
    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
    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.

  • #12
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by Lomax View Post
    ./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 Lomax,
    rename the srp_tools_x86 to just srp_tool for the clarity. Then try just ./srp_tool if it will do nothing, try ./srp_tool -h (help info)

    Cheers

  • #13
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by mborkp View Post
    Hi Lomax,
    rename the srp_tools_x86 to just srp_tool for the clarity. Then try just ./srp_tool if it will do nothing, try ./srp_tool -h (help info)

    Cheers
    try srp_tools -d /dev/ttyUSB0 but make sure the oscam is not running at the same time, port has to be accessible. Not sure but maybe chmod 755 srp_tools before that.
    Cheers
    Last edited by mborkp; 09-10-10 at 10:56 AM.

  • #14
    Member davo's Avatar
    Join Date
    Jan 2008
    Location
    In A House
    Age
    55
    Posts
    464
    Thanks
    32
    Thanked 202 Times in 103 Posts
    Rep Power
    231
    Reputation
    921

    Default

    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

  • #15
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    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.

  • The Following User Says Thank You to mborkp For This Useful Post:

    Lomax (09-10-10)

  • #16
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    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.....

  • #17
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by davo View Post
    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
    Davo,
    version 1.5 is not official but apparently works. It is up to the individual to update to 1.5, I did not had the guts at the time I would rather stick to official versions just in case of future updates, but it's just me

    Cheers

  • #18
    Senior Member mborkp's Avatar
    Join Date
    Feb 2008
    Posts
    1,121
    Thanks
    526
    Thanked 300 Times in 163 Posts
    Rep Power
    263
    Reputation
    1466

    Default

    Quote Originally Posted by Lomax View Post
    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.....
    Use the same device address as in oscam.server /dev/ttyUSBx
    Cheers

  • #19
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Quote Originally Posted by mborkp View Post
    Use the same device address as in oscam.server /dev/ttyUSBx
    Cheers
    In my oscam.server I use:

    device=005:002

    rather than a /dev name.

  • #20
    Member Lomax's Avatar
    Join Date
    Mar 2008
    Age
    47
    Posts
    357
    Thanks
    83
    Thanked 152 Times in 49 Posts
    Rep Power
    223
    Reputation
    805

    Default

    Quote Originally Posted by mborkp View Post
    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
    Excellent! Working. Thanks for your help on this one, mborkp. I would have assumed my reader was already at 1.4, I guess one should never assume...

  • Page 1 of 2 12 LastLast

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •