slorquet commented on PR #9530:
URL: https://github.com/apache/nuttx/pull/9530#issuecomment-1590666855

   Thanks @pkarashchenko for the extensive proofreading. I'm waiting more 
confirmation for the alignments.
   
   @davids5 : Yes, it implements ISO7816, but the framework this goes into is 
PC/SC, not just ISO7816.
   And no, it should not be a separate driver at this point.
   
   This is merely ISO7816 support for the stm32 uart, just like the uart also 
has LIN SPI or RS485 modes. This is extremely hardware specific, and its just a 
low level driver.
   
   I want to make it look like PC/SC since this is the de-facto standard for 
smart cards in C, already implemented in Windows and Linux. It has real value 
to help people port smart card programs.
   
   In PC/SC, you can have many types of drivers. This is usually handled by the 
CCID driver, which describes a way to access USB readers. But CCID also support 
serial attached readers, and proprietary drivers could be implemented in any 
way possible.
   
   These drivers are then managed by userspace PC/SC daemon that handles access 
to drivers from application programs.
   
   so to sum up, smart cards are not accessed as devices from user space, but 
only through a management daemon that hides the details of actual reader access 
and implementation.
   
   NuttX already has support for usb host, so it could support USB smart card 
readers via ccid. Thats why I'm keeping this architecture, so USB readers can 
be handled by the PC/SC daemon in the future. This means the stm 32 uart side 
of things does not need to have an easy to use user interface.
   
   It's a long text so I can add precisions and details to make it more clear.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to