All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: James Courtier-Dutton <james.dutton@gmail.com>
Cc: "István Váradi" <ivaradi@gmail.com>, linux-media@vger.kernel.org
Subject: Re: Smart card reader support for Anysee DVB devices
Date: Mon, 03 Oct 2011 15:50:57 +0300	[thread overview]
Message-ID: <4E89AFB1.9030707@iki.fi> (raw)
In-Reply-To: <CAAMvbhFayrVYNiT8GxQfEJi4D7KG-MCr4wM3+DKC2kc4ZOp7ZA@mail.gmail.com>

On 10/03/2011 03:36 PM, James Courtier-Dutton wrote:
> 2011/8/29 Antti Palosaari<crope@iki.fi>:
>> Only De facto serial smartcard protocol is so called Phoenix/Smartmouse,
>> implementing new protocol is totally dead idea. It will never got any
>> support.
>>
>> There is already such drivers, at least Infinity Unlimited USB Phoenix
>> driver (iuu_phoenix.c). It uses USB-serial driver framework and some small
>> emulation for Phoenix protocol. Look that driver to see which kind of
>> complexity it adds. Anysee have *just* same situation.
>>
> I helped write the iuu_phoenix.c driver.
> With regards to "The character device supports two ioctl's (see
> anysee_sc), one for
> detecting the presence of a card, the other one for resetting the card
> and querying the ATR."
> The iuu_phoenix.c driver uses standard phoenix/smartmouse reset and
> atr controls. (i.e. with DCD, DTR, RTS, CTS lines etc)
> As the result the iuu_phoenix.c driver works out of the box with oscam.
> It might be a good idea to use a similar interface for your driver.
> The result would be that your driver would work out of the box with
> oscam as well as other user space programs that read smart cards.
> The problem would be if you wished to support smart card program
> capabilities, the Phoenix/Smartmouse interface does not support that.
> If I add programmer functionallity to the iuu_phoenix driver, I would
> probably add an IOCTL for it.

Thank you for the feedback. I already did that. See latest tree:
http://git.linuxtv.org/anttip/media_tree.git/shortlog/refs/heads/anysee

Adding IOCTLs and making new userspace IFD was István idea / propose.

Interface is now de facto standard Phoenix. Unfortunately it is not very 
compatible yet. I used oscam as client during development mainly since 
as a open source it was easy to look and add debugs to see what kind of 
protocol is. Unfortunately I did mistake and removed accidentally my 
original tree and was forced to rewrite it. At that point oscam stopped 
working, but it is surely small bug. I suspect .set_termios() or 
.tiocmget() or .tiocmset().

Currently device name and location are under the discussion. Mainly, 
should that device be under /dev/tty* as other character devices or 
under /dev/dvb/adapterN/ as a property of DVB card.

regards
Antti
-- 
http://palosaari.fi/

      reply	other threads:[~2011-10-03 12:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-17 14:18 Smart card reader support for Anysee DVB devices István Váradi
2011-08-14 23:51 ` Antti Palosaari
2011-08-15 11:14   ` Antti Palosaari
2011-08-17 20:41     ` Antti Palosaari
2011-08-29 14:44       ` István Váradi
2011-08-29 14:50         ` Antti Palosaari
2011-08-29 15:13           ` István Váradi
2011-08-29 15:23             ` Antti Palosaari
2011-09-02 11:04               ` Bjørn Mork
2011-09-02 13:32                 ` Antti Palosaari
2011-09-28 14:32                   ` Antti Palosaari
2011-09-30 15:36                     ` Antti Palosaari
2011-10-02 21:06                       ` HoP
2011-10-03 17:56                       ` Bjørn Mork
2011-10-03 12:36           ` James Courtier-Dutton
2011-10-03 12:50             ` Antti Palosaari [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E89AFB1.9030707@iki.fi \
    --to=crope@iki.fi \
    --cc=ivaradi@gmail.com \
    --cc=james.dutton@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.