Kulyk A.Y.,
Svyetlov A.V.
Vinnitsia national
technical university
The adaptation of transmission system to the
parameters of communication channel with defining of speed transmission and
power signals
In distributed
computer systems and networks of different functional purpose of information is transferred in very harsh conditions
of impacted noise. Due to this, in the communication channels are available distortion
and a form of signal at the output channel is different from its form at the entrance
(Fig. 1).
When the
signal sends to the receiving part, their identification is provided on a threshold
or transition through zero. As a result, the fronts signals at the channel output
does not coincide with the fronts of initial pulses at its input. Therefore, there
are marginal signal distortion that can lead to loss of information due to violation
of sync. The time distance between the fronts initial and final moment associate
with the nature and level of noise and at a certain speed transmission it will cause
to distortion of information.
Voltage
at the receiving side of the communication channel is the sum of voltages informative signal on the
transmitting side and the noise [1].
.
(1)
The
difference in time between the fronts of pulses on transmission and receiving
side is characterized by transitions through zero signals under the defined
conditionsand.
Fig. 1.
The distortion of signals during their transmission through the
channel of communication
Take into
consideration that displacement fronts
(2)
is a little,
can be determined
. (3)
Based on
this
. (4)
As
. (5)
Substituting
the result into (2) you can get
, (6)
so the fact
that derivatives can be considered approximately equal,
, (7)
rapidity
of pulse fronts will be:
. (8)
where – rate
of growth front.
Then
. (9)
Transmission
speed of signals communication channel υc associated with transmission of information
υ³ by the relation:
.
(10)
Degree of
limiting distortion of pulses is determined by the relation
.
(11)
Then
. (12)
Based on
the fact that during the transmission in the communication channel by interaction
of several factors that are random and independent from each other, we can assume
that the resulting distribution law will be closer to normal
. (13)
The distribution
density of a random variable f(δ) can
be found in (13) using the known expression [2]
, (14)
, (15)
. (16)
Substituting
(15) and (12) to (13) you can get:
. (17)
Based on
the obtained expression, standard deviation degree of limit distortion of pulses
is determined by the relation:
. (18)
Obtained
formula (18) includes the speed of information transfer and the difference between
voltage levels of logic "1" and "0", i.e. parameters that can
vary during transmission. Based on the rule “3σ”, which shows that 99.7% of
values are included to the interval [3], you can choose the optimal speed transmission
υi and signal levels U1
and U0, getting limit pulse distortion
δ under the conditions maintaining the transmission efficiency of the device.
So the ultimate formula will look like:
, (19)
. (20)
Thus, based
on the known transmission parameters (for
example, amplitude levels of logical "0" and "1", rapid fronts),
upon defining the amplitude noise in the communication channel and error, you can
get a maximum speed of transmission for real conditions.
Based on
the foregoing, for the implementation of this adaptation method is necessary to
act in the following order: at the transmitting side:
-
to register values array of voltage noise in the channel of communication;
-
to calculate result of average noise voltage;
-
to determine the maximum baud rate using the formula (20) under the sacrificing
device performance and the necessary level of logic "zero" and "one"
transmission signals;
-
to select the default speed of information transfer;
-
to transfer terms of connection to the receiving side;
-
to read from the media PC information which can be transmitted;
-
to transfer in sequential code data through the interface with a defining
speed;
-
to convert signal by modulator according to defining levels of logic signals
and transfer it to the communication channel;
at the receiving
side:
-
to get through the communication channel conditions of information transmit;
-
to set the serial interface at a certain speed of information interchange
and a programmable voltage divider of a fixed coefficient with accounting of signal
attenuation in the communication channel;
-
to get from the communication channel information signals, to convert them
according to the coefficient by programmable voltage converter, then to demodulate
them;
-
to convert information from the serial interface format to parallel one;
-
to read information in parallel format from serial interface;
-
to write the information to the storage of a personal computer.
The described
sequence [4] can be realized by software and hardware way based on personal computer
or microprocessor controller. It can be used one of the following modes: software
survey, interrupt or direct memory access (DMA). The simplest case is a software
survey [5].
Scheme of
the device shown in Fig. 2, and schemes of work in the modes of transmitting and
receiving in Fig. 3 and 4.
Fig. 2.
Structure for implementation of the adaptation algorithm
When you
turn the power on the transmitting side the central processor 11 of the personal computer 9 it performs initialization devices, the serial interface 6 programmatically adjusted to the minimum speed of information transfer,
the channel of first 7 and channel of
C second 8 of the parallel interfaces - to data output, and channels A and B of second parallel interface 8
– to data input, amplification factor of a programmable amplifier 2 to establish equal to one.
Fig. 3.
The scheme of device work in transmitting mode
Fig. 4.
Scheme of the device work in the receiving mode
On the first
stage in the program mode it is measuring average significance level of noise in
the communication channel 1. Thus through
the second channel C of the parallel interface
8 to the analog-digital converter 5 send the signal "Start". With
the channel B of the parallel interface
8 is fixed establishment of a signal "End
of conversion". If signal is sent through
the channel A of parallel interface 8 is read fixed value by the analog-digital
converter 5 and recorded it to RAM 13 of personal computer 9. After this registration cycle is repeated.
The process continues as long as necessary values array of voltage noise not be registered.
At the second
stage it is processing of registered values and determining optimal transmission
parameters of the information. Registered by the analog-digital converter 5 average value is converted to voltage disturbances
by the formula:
, (21)
where Ni
– i-th registered analog-digital converter 5
locating;
N0 – maximum
value that can be registered by analog-digital converter 5;
n – number of binary bits by analog-digital converter
5;
m – number
of values recorded by analog-digital converter 5.
According
to formula (20) it is selected transmission speed based on conditions of saving
equipment work. Boundary of stable such devices work is δ = 0,4 [3, 5]. Maximum
transfer rate is chosen if possible provide the required conversion by the programmable
amplifier 2 and the voltage divider 3. Based on the result it is selected standardized
maximum speed which not exceeding the calculated value.
Then, at
the minimum speed permitted by the serial interface 6, it is transmitted service information about mode of communication,
which contains the value transfer speed and amplification factor. Exchange of proprietary
information is provided on a repeating and majority decoding. Namely, after receiving
of the information and recording it to RAM 13
PC 9 CPU 11 compares the corresponding bits in the received bytes and determines
the correct value based on majority of repetitions.
After that,
the CPU 11 PC 9 reprogram serial interface 6
to a certain baud rate and sets the necessary amplification factor with the parallel
interface 7. Information byte to byte
is reading by the CPU 11 from data
carrier 12 of PC 9 and send to the serial interface 6. Information transferring take place in program mode. Forwarded by
serial interface 6 byte is converted from
parallel to serial format, accompanied by the establishment of a check box "Convert
completed", and bit by bit, with the programmed speed is transmitted to the
modem 4, which is accompanied by installation
check box "Transfer completed". Formed signal is converted by modem 4, programmable amplifier 2 and transmitted to a communication channel
1. Then to the serial interface 6 may writes the next byte. The process continues
as long as all data from storage will not be transferred to a communication channel
1.
On the receiving
side when you turn power the CPU 11of
PC 9 sets serial interface 6 for receiving information on the minimum
speed, and the first parallel interface 7
- to output information. Reduction factor programmable voltage divider 3 is set equal to one. After that, the CPU
11 moves to fix flags of serial interface.
Setting by the serial interface 6 flag
"Accept bytes of information" indicates that a received byte of data from
the communication channel 1 converted
to parallel code and forwarded for storage to software accessible register of serial
interface 6. Accordingly, the CPU 11 reads a byte of data from serial interface
6 and writes it to RAM 13 of the personal computer 9, and then the cycle repeats. The process
continues as long as all the service information is not received. After that it
is determined the speed of transmission and conversion efficiency of signal amplitude.
The CPU 11 reprogram serial interface
6 to a certain speed transmission and
writes required coefficient to programmed voltage divider 3 by the parallel interface 7.
After that, the CPU 11 moves to fix flags
of the serial interface 6. The process
continues as long as all information will be obtained, after that it is written
to data carrier 12 of PC 9.
Thus it
is achieved a significant positive effect, because due to testing conditions of
information transfer by the channel of communication was found optimal connection
speed and amplitude signals. This allows to reduce the impact of noise on an informative
signal and increase the likelihood of information transmission. Determined estimate
of the rate transmission can be invoked to test the communication channel by the
code combinations with the advice of the standards is presented above. Method was
tested during the implementation in the VNTU and enterprises as well as "Intehservis-B",
"VinnytsyaGaz" and "Petrocommerce-Ukraine" bank.
Take into
consideration various factors, it was decided that the above algorithm is shown
best be implemented on microcontrollers AVR family from Atmel. Among its advantages
primarily noted low power consumption and high performance. They have an architecture
Harvard (program and data located in different address spaces) and system commands,
close to the ideology of RISC, and their processor have 32 8-bit registers.
REFENCES
1.
Êóëèê À.ß. Àëãîðèòì àäàïòàöèè ñèñòåìû ïåðåäà÷è ê
ïàðàìåòðàì êàíàëà ñâÿçè â óñëîâèÿõ ïîìåõ / À.ß. Êóëèê // ³ñíèê Òåõíîëîã³÷íîãî óí³âåðñèòåòó
Ïîä³ëëÿ. – 2003. – ¹ 4. – ×. 2. – Ñ. 186 – 189.
2.
Øâàðöìàí Â.Î. Òåîðèÿ ïåðåäà÷è äèñêðåòíîé èíôîðìàöèè /
Â.Î. Øâàðöìàí, Ã.À. Åìåëüÿíîâ. – Ì.: Ñâÿçü, 1979. – 424 ñ.
3.
Îðíàòñêèé Ï.Ï. Òåîðåòè÷åñêèå îñíîâû
èíôîðìàöèîííî-èçìåðèòåëüíîé òåõíèêè / Ï.Ï. Îðíàòñêèé. – Ê.: Âèùà øêîëà, 1976,
ñ. 237 – 238.
4.
Ïàò. 52880À Óêðà¿íè, ÌÏÊ7 Í03Ì 13/00. Ñïîñ³á ïåðåäàâàííÿ
äèñêðåòíî¿ ³íôîðìàö³¿ ç àäàïòàö³ºþ äî óìîâ ïåðåäàâàííÿ òà ïðèñòð³é äëÿ éîãî
ðåàë³çàö³¿ / Êâºòíèé Ð.Í., Êóëèê À.ß., Êðèâîãóá÷åíêî Ñ.Ã. òà ³í. (Óêðà¿íà);
ÂÄÒÓ. – ¹ 2001064452; çàÿâë. 23.06.01, îïóáë. 15.01.03, Áþë. ¹ 1. – 11 ñ.
5.
Ïðîåêòóâàííÿ ì³êðîïðîöåñîðíèõ
çàñîá³â àâòîìàòèêè ³ óïðàâë³ííÿ: íàâ÷. ïîñ³á. [äëÿ ñòóä. âèù. íàâ÷. çàêë.] / À.ß.
Êóëèê, Ñ.Ã. Êðèâîãóá÷åíêî, Ì.Ì. Êîìïàíåöü
– ³ííèöÿ: ÂÄÒÓ, 2001. – 130 ñ.