Telecard reader with AT90s2313 micro

5,453

Circuit Image

This circuit functions solely as a reader and is not designed for programming. It cannot be used to refill, hack, or perform any illegal activities with telecards. The primary purpose of this circuit is to demonstrate how a microcontroller reads the telecard, which can aid in the development of other electronic circuits such as an electronic safety lock or a checker for remaining credits on the card. This reader is capable of reading the memory contained within the telecard, which consists of 64 bytes (512 bits) of EEPROM memory, with the first 8 bytes (64 bits) being write-protected and usable only for reading. The circuit does not include an LCD display to maintain low costs; however, data can be viewed on any PC system via the RS232 port using HyperTerminal software. The circuit is based on the AT90S2313 AVR microcontroller from Atmel, programmed with telecard.hex and telecard.eep. The MAX232 is employed as a converter to interface between the ±12V of RS232 and TTL levels. When constructing the circuit, it is straightforward; connect the reader to the PC's RS232 port, launch HyperTerminal (found in Start > Programs > Accessories > Communications), and set the baud rate to 19200 bps, 8 data bits, no parity, and 1 stop bit. If a telecard holder is used, it typically includes a switch that activates when the card is inserted, allowing for automatic reading of the card. The first byte (85) and the second byte (FC) represent the country code, the third byte (0B) indicates the units (3000), and the fourth byte identifies the customer (OTE). These results were obtained from testing 50 different Greek telecards, and their accuracy is not guaranteed. The fifth through eighth bytes represent the card's serial number in hexadecimal format. Converting the hexadecimal value 4A037AA0 (bytes 8 to 5) to decimal yields the number 1241741984.

The circuit design employs the AT90S2313 AVR microcontroller, which is a popular choice for embedded applications due to its compact size and efficient performance. The microcontroller interfaces directly with the telecard's EEPROM memory, allowing it to extract the relevant data stored within. The memory architecture of the telecard is structured such that the first 8 bytes are reserved for essential information, which includes the country code, credit units, and customer identification. The remaining bytes are allocated for the unique serial number of the card, which can be critical for tracking and authentication purposes.

The MAX232 chip serves as a vital component in ensuring proper communication between the microcontroller and the PC. It converts the RS232 signal levels to TTL levels suitable for the microcontroller, enabling reliable data transmission. The choice of using HyperTerminal software allows users to interact with the circuit easily, providing a user-friendly interface to view and analyze the data read from the telecard.

For enhanced functionality, integration of an LCD display could be considered in future iterations of the circuit, allowing for immediate visual feedback of the data without the need for a PC connection. Additionally, implementing an automatic card detection feature via the telecard holder switch streamlines the user experience, facilitating hands-free operation.

Overall, this circuit serves as an educational tool for understanding the principles of microcontroller-based reading systems and can be a foundational project for those looking to explore more complex electronic systems and applications.This circuit is onlyreader. It`s not programmer. You CANNOT refill, hack or any illegal thing, the telecards. The purposeof this circuit is for you to understand how a microcontroller readsthetelecard, forbuilding other electronic circuits such as"electronic safety lock" or"Checker for how much units (credits) leftin the card" etc. This reader can read the contained memory of the telecard. These cards have 64 bytes ( 512 bits) of eeprom memory that the first 8 bytes ( 64 bits ) arewrite protected. They areonly 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 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. If you use a telecard holder, usually this holderincludes a switch that is pressed when you insert the card.

You can use this switch, to make the reading of the card, automatic. The 1st (85) and 2th (FC) byte it`s the country. The 3th (0B) is the units (3000) and 4th is the customer (OTE). These results are fromtesting of 50 different Greek telecards and i don`t know if they 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 at the serial number of the black telecard above ). 🔗 External reference




Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713

Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713