Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6342791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:18:39+00:00 2026-05-24T20:18:39+00:00

I’m using reader/writer acr38f and my smart card is SLE4418. How do I read

  • 0

I’m using reader/writer acr38f and my smart card is SLE4418. How do I read and write text to my smart card?

For example: Hello World!

apdu = [0XFF, 0X20,0x00,0x00,0x02, 0x00, 0x00]

response, sw1, sw2 = cardservice.connection.transmit( apdu )

apdu = [0XFF,0xA4,0x00,0x00,0x01,0x05]
response, sw1, sw2 = cardservice.connection.transmit( apdu )




apdu = [0XFF,0XB2,0X00,0xA7,0X09]
response, sw1, sw2 = cardservice.connection.transmit( apdu )
print response


apdu = [0XFF, 0XD0,0x00,0xA7,0x09,0xA7,0x02,0xA7,0x02,0xA7,0x02,0xA7,0x02,0xA7] 
response, sw1, sw2 = cardservice.connection.transmit( apdu )

card response :

connecting to ACS CCID USB Reader 0
ATR 3B 04 92 23 10 91
>  FF 20 00 00 02 00 00
<  00 00 00 90 0 
>  FF A4 00 00 01 05
<  []  90 0 
>  FF B2 00 A7 09
<  FF FF FF FF FF FF FF FF FF 90 0 
[255, 255, 255, 255, 255, 255, 255, 255, 255]
>  FF D0 00 A7 09 A7 02 A7 02 A7 02 A7 02 A7
<  []  90 0 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:18:40+00:00Added an answer on May 24, 2026 at 8:18 pm

    I do not have the hardware to test this, but this should get you going:

    Communicating with smart cards involves sending APDU (Smart Card application protocol data unit) commands and receiving APDU responses.

    Command APDUs are sent through the reader/write (your ACR38F) and consists of a 4-byte header followed by data (and info about the data size and response size)

    Field    Len Description
    --------------------------------------------
    CLA     (1) Instruction Class
    INS     (1) Instruction Code
    P1-P2   (2) Instruction Parameters
    Lc  (0,1,3) Number of data bytes to follow
    DATA    (*) Data to be transmitted
    Le    (0-3) Maximum response bytes
    

    The response consists of:

    Field    Len Description
    --------------------------------------------
    DATA    (*) Data to be transmitted
    SW1-SW2 (2) Command status
    

    In the case of the SLE4418, in order to write data, the values should be as follows:

    • CLA = 00
    • INS = D6
    • P1 = MSB of memory address offset to store bytes
    • P2 = LSB of memory address offset to store bytes
    • Lc = length of bytes to store
    • DATA = data to store
    • Le = (empty)

    So therefore in code:

    WRITE = [0x00, 0xD6]
    STARTMSB = [0x00] #change to where on the card you would like to write
    STARTLSB = [0x00] #same here
    MEM_L = [0x01]
    DATA = [0x01]
    
    cardservice.connection.connect()
    apdu = READ + STARTMSB + STARTLSB + MEM_L + DATA
    response1, sw1, sw2 = self.cardservice.connection.transmit( apdu )
    

    Other relevant info:

    • http://www.belelectro-m.by/docs/doc3723.pdf
    • http://www.youcard.de/datenblaetter/chipkarten/DB%20SLE441828.pdf
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Specifically, suppose I start with the string string =hello \'i am \' me And
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.