1. Bu site çerez kullanmaktadır. Siteyi kullanmaya devam etmeniz halinde çerez kullanımı ile ilgili site koşullarını kabul etmiş sayılırsınız. Daha Fazlasını Öğren.

Telecard Reader

Konusu 'Elektronik Devreler' forumundadır ve guclusat tarafından 21 Kasım 2009 başlatılmıştır.

  1. guclusat

    guclusat Tanınmış Üye Süper Moderatör

    14 Haziran 2009
    Ödül Puanları:


    This circuit its only a reader its not programmer. You CANNOT refill, hack or any illegal thing, the telecards. The purpose of this circuit its to understans how a microcontroller read, serial, the telecard, to build some other circuits like "electronic safety lock", "Checker for how much units left in the card" etc.


    This reader can read the contained memory of the telecard. This cards have 64 bytes ( 512 bits) of eeprom memory that the first 8 bytes ( 64 bits ) is write protected, its only for reading.
    This circuit does not include any lcd display, to keep the cost low, but the data can be viewed to any PC system using the RS232 port, by the Hyper terminal software.

    The circuit:
    The circuit based on AT90S2313 AVR microcontroller from atmel, programmed with telecard.hex and telecard.eep . The converter from + - 12V of RS232 to TTL and from TTL to + - 12V is MAX232. When you build the circuit ( i think its very simple ), connect the reader with RS232 port of the PC, run the Hyper terminal software ( start � programs - accessories � communications � Hyper terminal ) and set the baud rate to 19200 bps 8 none 1.
    Power on the reader, insert the telecard and press the switch to read the contain of the card.
    If you use a telecard base, usually this base its include a switch that is pressed when you insert the card. You can use this switch, to make the reading of the card, automatic.
    Snapshoot of Hyper terminal window
    Picture of a Greek telecard
    The contain of the above telecard

    Memory map for Greek telecards:
    The 1st (85) and 2th (FC) byte it�s the country. The 3th (0B)is the units (3000) and 4th is the customer (OTE). This results are from the testing of 50 different Greek telecards and i don�t know if there are correct.
    The 5th, 6th, 7th and 8th bytes are the serial number of the card in hex form. If you convert the 4A037AA0 hex ( bytes 8 to 5 ) to decimal, you will get the number 1241741984 ( look the serial number of the black telecard above ) .
    The 9th, 10th, 11th, 12th and 13th bytes are the units left counter, 5 stage octal counter that is counting the units to the zero (0).
    5 stage octal unit counter with 2852 units
    (00) (F8) (F0) (F0) (F0)
    Byte9 Byte10 Byte11 Byte12 Byte13
    (c4096) (c512) (c64) (c8) (c1)
    00000000 - 11111000 - 11110000 - 11110000 - 11110000
    (0)octal (5)octal (4)octal (4)octal (4)octal
    (0*8^4) + (5*8^3) + (4*8^2) + (4*8^1) + (4*8^0)
    = (0*4096) + (5*512) + (4*64) + (4*8) + (4*1)
    TOTAL = 2852 Units ( 2852 cents or 2,852 Euro left )
    Read phonecards_204.zip for more informations about how the telecards, from lot of countries, working.
    After lot of emails (thank you for your interesting), i deside to publish the full zip file that include source, hex and schematic
    telecard_1200.zip if you use AT90S1200 or telecard_2313.zip if you use AT90S2313 microcontroller.


    Ekli Dosyalar:

Sayfayı Paylaş