Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

What is a phone card good for? Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Radio amateur designer

Comments on the article Comments on the article

Previously, used cards could be exchanged at the post office, but now, with the introduction of disposable cards, everything has changed.

After the card is over, it can only be thrown away or put into the collection. But do not rush to throw away the used card. It can also serve as an electronic key or password for your programs.

The chip in the calling card has 8 pins, but only 5 are actually used. However, you can get by with only four

Look at the microcircuit: the largest contact in area is "ground"

The location of the remaining pins is shown in Fig.1. As already mentioned, one of the contacts can be omitted. This pin is +5V power. Only Reset, Clock, Data and Gnd pins are used

What is a phone card good for?

We connect the microcircuit to the PC using a parallel port. This requires an adapter, the diagram of which is shown in Fig. 2. By supplying the necessary data to port 378h (LPT1 base address), you can read the data "written to the chip. This is done through bit 7 of port 379h. We are only interested in the first four bytes of data, since the rest contain OOh. The first byte read should be is equal to 7Bh.The next three are different for different cards.It should be noted that the information recorded in the microcircuit is constant and never changes, i.e. does not depend on the remaining number of minutes

Below is the text of the program that reads the information from the card.

Program TeleCard;
uses crt;
Const;
Copyright=;'(С) Филютич Алексей, 1997';
Var;
i,j,dat: byte;
Data: array [0..3] of byte;
{--------};
Function ReadCard:byte;
var;
S:byte;
begin;
asm ;
mov dx,379h ;
in a1,dx ;
mov c1,7 ;
shr a1,c1 ;
mov S,a1 ;
end;;
ReadCard:=S;
end;;
{--------------};
Procedure WriteData (A: byte) ;assembler;
asm;
mov a1,A;
mov dx, 37Bh;
out dx,a1 ;
end;;
{------------};
Procedure Next; {Увеличить адрес};
begin;
Delay (1) ;
WriteData (0);
WriteData (2) ;
WriteData (0);
end;
{--------------}
Procedure Reset;
{Сброс микросхемы в исходное состояние}
var
A:byte;
begin
WriteData (0); {Сброс}
WriteData (1);
WriteData (3);
WriteData(l);
WriteData (0);
for a:=0 to 9 do
Next
WriteData(0); {Сброс}
WriteData(1);
WriteData (3);
WriteData (1);
WriteData (0);
end;
{-------------------}
Function Dec2Hex (value:byte): string;
Function d2h (value:byte): char;
begin
case value of 0..9 : d2h:=chr(value+$30);
10..15 : d2h:=chr(value+$37);
end;
end;
begin
Dec2Hex:=d2h(value diy $10) + d2h (value and $0F)
end;

Begin
Reset
{Читаем первые четыре байта}
for i:=0 to 3 do begin
dat:=0;
for j:=0 to 7 do begin
dat:=dat+(ReadCard sh1 (7-j));
Next;
end;
Data[i] :=dat;
end;
Reset;
If Data(0]<>$7B then begin
writeln('Карточка повреждена');
Halt;
end;
write('Данные из карточки:') ;
for i:=0 to 3 do begin
write(Dec2Hex(Data[i]:3);
end;
writeln;
End.

An electronic key made from a card can be used as a password in data encryption systems, a key to launch programs, etc.

Author: A.Filyutich, Minsk; Publication: N. Bolshakov, rf.atnn.ru

See other articles Section Radio amateur designer.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

A New Way to Control and Manipulate Optical Signals 05.05.2024

The modern world of science and technology is developing rapidly, and every day new methods and technologies appear that open up new prospects for us in various fields. One such innovation is the development by German scientists of a new way to control optical signals, which could lead to significant progress in the field of photonics. Recent research has allowed German scientists to create a tunable waveplate inside a fused silica waveguide. This method, based on the use of a liquid crystal layer, allows one to effectively change the polarization of light passing through a waveguide. This technological breakthrough opens up new prospects for the development of compact and efficient photonic devices capable of processing large volumes of data. The electro-optical control of polarization provided by the new method could provide the basis for a new class of integrated photonic devices. This opens up great opportunities for ... >>

Primium Seneca keyboard 05.05.2024

Keyboards are an integral part of our daily computer work. However, one of the main problems that users face is noise, especially in the case of premium models. But with the new Seneca keyboard from Norbauer & Co, that may change. Seneca is not just a keyboard, it is the result of five years of development work to create the ideal device. Every aspect of this keyboard, from acoustic properties to mechanical characteristics, has been carefully considered and balanced. One of the key features of Seneca is its silent stabilizers, which solve the noise problem common to many keyboards. In addition, the keyboard supports various key widths, making it convenient for any user. Although Seneca is not yet available for purchase, it is scheduled for release in late summer. Norbauer & Co's Seneca represents new standards in keyboard design. Her ... >>

The world's tallest astronomical observatory opened 04.05.2024

Exploring space and its mysteries is a task that attracts the attention of astronomers from all over the world. In the fresh air of the high mountains, far from city light pollution, the stars and planets reveal their secrets with greater clarity. A new page is opening in the history of astronomy with the opening of the world's highest astronomical observatory - the Atacama Observatory of the University of Tokyo. The Atacama Observatory, located at an altitude of 5640 meters above sea level, opens up new opportunities for astronomers in the study of space. This site has become the highest location for a ground-based telescope, providing researchers with a unique tool for studying infrared waves in the Universe. Although the high altitude location provides clearer skies and less interference from the atmosphere, building an observatory on a high mountain poses enormous difficulties and challenges. However, despite the difficulties, the new observatory opens up broad research prospects for astronomers. ... >>

Random news from the Archive

Soft robotics for agriculture 02.10.2021

"Soft" robots are made of malleable materials such as silicone and other polymers, rather than metal. These materials give the robots organic characteristics, replicating the work of muscles and allowing them to move and do work instead of a human that old metal machines can't.

A particular application of soft robotics that I was interested in was agriculture. Most automatic harvesting solutions only deal with large and hard crops. There are several mechanisms for picking smaller crops, but many are tough and can damage the plant in the process. Some success has come from companies such as Soft Robotics Inc, which have created grippers with soft features. But they were still only able to work with harder crops. These difficulties led to a research project in which I participated. The aim of the project was to explore the possibility of autonomous picking of light fragile berries, in particular raspberries. This task required a unique grip. Given the fragility of raspberries, this problem could be solved with the help of soft robotics.

The idea that arose was to create a tubular structure that would move towards the berry bush and separate each raspberry from its neighbors.

The end effector slides up the stem of the berry, after which the soft robotic bags come to work, which do not directly capture the fruit. Instead, they lightly press on the back of the berry, which connects to the plant's peduncle. Then the entire tube moves away, displacing the berry from the stem. It is similar to how a person pulls a berry with his fingers.

The innovations associated with the creation of robots that resemble the human body coincide with the development of the brain of robots. Advances in artificial intelligence are allowing machines to detect feelings like happiness and sadness in speech. Research is also focused on developing computer vision technologies that can detect emotions by analyzing facial expressions.

Other interesting news:

▪ Women are more sensitive to stress than men

▪ Neuromorphic chips for artificial intelligence

▪ New generation of OctaBus memory interface

▪ 2-Port PCIe 3.0 Converged Bus Adapter

▪ POS-terminal with biometric identification

News feed of science and technology, new electronics

Interesting materials of the Free Technical Library:

▪ section of the site for the Musician. Selection of articles

▪ article Nectar and ambrosia (ragweed). Popular expression

▪ article Who are the cavemen? Detailed answer

▪ Galvanic article. Standard instruction on labor protection

▪ article Purification of lubricating oils. Simple recipes and tips

▪ article Stand with a timer for a soldering iron. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024