Differences between revisions 200 and 205 (spanning 5 versions)
Revision 200 as of 2005-06-27 21:45:40
Size: 2995
Editor: 77-104
Comment:
Revision 205 as of 2005-10-31 18:00:31
Size: 6279
Editor: lab812-6
Comment:
Deletions are marked like this. Additions are marked like this.
Line 81: Line 81:
tralala, ja si tu napisu intelygentniii hlasku tralala, ja si tu napisu inteligentniii hlasku
Line 160: Line 160:


-----------------

=PSY2=

free running: 2047.997kHz
2048.018 - pred update
2048.017 - po update - TRIB_1 - Timing state=normal
odpojeno - 2047.995 - LINE_1
zruseno LINE_1 - 2048.018
-> TRIB_1 - normal
odpojeno
2048.019 - TRIB_1 - holdover

B)

rozpad synchronizace -> LSS -> ALL1



----------------

clc;clear;close all;
fd=1000;
fm=8000;
Wn=fd/(fm/2);
N=20;

WIN_ha=hamming(N+1);
B_ha=fir1(N,Wn);

WIN_b=bartlett(N+1);
B_b=fir1(N,Wn,WIN_b);

WIN_bl=blackman(N+1);
B_bl=fir1(N,Wn,WIN_bl);

WIN_h=hann(N+1);
B_h=fir1(N,Wn,WIN_h);

figure(1)
Ng=1024;

[H_ha W_ha]=freqz(B_ha,1,Ng);
subplot(2,2,1);
f_ha=W_ha*fm/2/pi;
plot(f_ha,20*log10(abs(H_ha))); title('hamming');

[H_b W_b]=freqz(B_b,1,Ng);
subplot(2,2,2);
f_b=W_ha*fm/2/pi;
plot(f_b,20*log10(abs(H_b))); title('bartlett');

[H_bl W_bl]=freqz(B_bl,1,Ng);
subplot(2,2,3);
f_bl=W_ha*fm/2/pi;
plot(f_bl,20*log10(abs(H_bl))); title('blackman');

[H_h W_h]=freqz(B_h,1,Ng);
subplot(2,2,4);
f_h=W_h*fm/2/pi;
plot(f_h,20*log10(abs(H_h))); title('hann');

return;
%uloha 2
figure(2)
F=[0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1];
A=[1 1 1 0 0 0 0 0 0 0 0];

Bha=fir2(N,F,A,WIN_ha);
Bh=fir2(N,F,A,WIN_h);

[Hha Wha]=freqz(Bha,1,Ng);
subplot(2,1,1);
fha=Wha*fm/2/pi;
plot(fha,20*log10(abs(Hha))); title('hamming');

[Hh Wh]=freqz(Bh,1,Ng);
subplot(2,1,2);
fh=Wh*fm/2/pi;
plot(fh,20*log10(abs(Hh))); title('hann');

%uloha 3 impulsni odezva
figure(3)
impz(Bha,1);

%uloha 3 f char
figure(4)
freqz(Bha,1,Ng,fm/2);

%uloha 3 f char
figure(5)
zplane(Bha,1)

------------------

a)
poplach v:
RDI v MS, HP, LP
protoze komunikace analyzator-AM1 byla jednosmerna

SOH
f6 f6 f6 28 28 28 01 aa aa
46*ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff
68 93 93 00 ff ff 00 00 00
e3*08*41*00 ff ff 06 ff ff
ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff
0b ff ff ff ff 00 ff ff ff

LO-POH
V5: 65*
J2: 00
N2: 00
K4: 00

b)
zadne alarmy

c)
pointer u tu-12 received se snizuje
ptr au-4 = 0

0: 2e-4
1: 3e-4
5: 9e-4
10: 1.55e-3
20: 2.95e-3
50: 7.15e-3
100: 1.42e-2
200: 2.82e-2

pro taktovani z prijimaneho signalu = 0

d)
count/secs
HP REI: 9767/20 = 3.249e-6
LP REI: 1257/20 = 2.806e-5
SLIP: 20/20 = 1

ES: 0
SES: 0
US: 20 100%
DM: 0
EFS: 0
BE: 0
AE: 0


----------------

clear;clc;
fv=8000

t=0:1/fv:0.6-1/fv;
y1=0.4*sin(2*pi*300*t);
y2=0.6*sin(2*pi*2500*t);
y=y1+y2;
n=2;
fv1=n*fv
xinterp=zeros(1,n*length(y));
xinterp(([1:length(y)]-1)*n+1)=y;

figure(1);
subplot(2,2,1);
%title('Neinterpolovany')
ffty1=abs(fft(y))/length(y);
stem(0:fv/length(ffty1):fv-fv/length(ffty1),ffty1);

subplot(2,2,2);
%title('Interpolovany')
ffty2=abs(fft(xinterp))/length(xinterp);
stem(0:fv1/length(ffty2):fv1-fv1/length(ffty2),ffty2);

N=60;
B=fir1(N,fv/2/(fv1/2));
subplot(2,2,3);
xinterp_filtered=filter(B,1,xinterp);
ffty3=abs(fft(xinterp_filtered))/length(xinterp_filtered);
stem(0:fv1/length(ffty3):fv1-fv1/length(ffty3),ffty3);

fv2=fv/n

B=fir1(N,fv2/2/(fv/2));
y=filter(B,1,y);

subplot(2,2,4);
indxs=1:n:length(y);
y_decim=y(indxs);
ffty4=abs(fft(y_decim))/length(y_decim);
stem(0:fv2/length(ffty4):fv2-fv2/length(ffty4),ffty4);

Fakt to funguje??????

:-) :-( =Jasir=

Super vec :-)

Mrcarlik

''tak do toho''

solidni solidni 123 no pozrime sa na to či to vôbec funguje ???

asi to fakt funguje :-)))

JaRíK

Paráda!!!

http://www.srandy.sk/obrazky/59.jpg

d:)

no to jo ....

Huhuhu snim ci bdim ?

Demonstrace funkčnosti

No vypadá to zajímavě (hodně) ...

Opravdu? nj ahojky skouška textu xxx

HALOOOOO.. HIHIHI..

Tak schválně!

Text

Italika

Novy odstavec? Snad ano ...

Tabulka

Zahlavi tabulky

fce1

f2

f3

f4

f55

g1

g2

g3

g4

Odkazy

Obrazek

http://www.ms.mff.cuni.cz/~dolej1am/img/smoke4.jpg

Seznam

  • polozka 1
    • vnorena 1.1
    • * vnorena 1.2
    • vnorena 1.3
  • polozka 2
  • polozka 3

boldIt`s great

***************************

//*Toto je velice uzitecna a verim ze i zabavna vec. Jsem zvedav, co budoucnost jeste prinese - do zacatku by se mohlo jednat o verejne kresleni, coz by mohlo byt opravdu vtipne :DD*//

test editace

asdfjklů tralala, ja si tu napisu inteligentniii hlasku

*****************************

Uzasne znacky

Vhodne i pro ochocene opice jako napriklad (opice opravena):))

[http://www.webbusiness.no/webprivat/usa/upfiles/bush_monkey.jpg]

Jen mi hrozne vadi ti odporni graficti smajlici :(

aaaa Není to špatný nápad. Vladimír


Aaa

AAA

A

XXXXXXXXXXX :-)



sqele :-)

Zaujímavé, žeby som u nás ľudí prinútil robiť na webe? Aspoň nebudú mať výhovorku že som im to tam nedal... ddddddddddddddddfffffffffffffffffffffffffffffff


******** Hmm goood idea... Schvalne co to provede ;-)

to fakt nejny hlóópy

Za predpokladu ze budou fungovat nejaky pristupovy prava a nebude to anarchie, by to vyuzitelny byt mohlo...

123 skuska mikrofonu ---

:-!

hmmm tak tenhle smajlik asi nefuni ... kazdopadne je to sqela vec! okamzite to zavedu v praxi! MOC DIKY ZA NAPAD! Hustě.

--- **************** celkom pekne, zacnem uvazovat na co by som to nasadil vo firme :-)

****************

Dik, pouzivame [http://www.twiki.org twiki] v praci jako intranet. Jindra at jeta.net

Nazev

kurziva tucne tucna kurziva

tabulka

1

2

3

a

b

c

Jan Hammer - Escape from television

Text text - You poor boy. "I dont like you!" [http://podgorny.cz/moin/SandBox#preview preview]

ahoj Martin, tak aj toto ide

opravuji text...

Soudruzi Revoluci. Tvoji krev my nezradíme, lenin tenás bude vést, jeho odlaz nikdy nezradíme .....

nova tabulka

1

a

2

b

3

a

a

b

b

c

193.165.104.77


=PSY2=

free running: 2047.997kHz 2048.018 - pred update 2048.017 - po update - TRIB_1 - Timing state=normal odpojeno - 2047.995 - LINE_1 zruseno LINE_1 - 2048.018 -> TRIB_1 - normal odpojeno 2048.019 - TRIB_1 - holdover

B)

rozpad synchronizace -> LSS -> ALL1


clc;clear;close all; fd=1000; fm=8000; Wn=fd/(fm/2); N=20;

WIN_ha=hamming(N+1); B_ha=fir1(N,Wn);

WIN_b=bartlett(N+1); B_b=fir1(N,Wn,WIN_b);

WIN_bl=blackman(N+1); B_bl=fir1(N,Wn,WIN_bl);

WIN_h=hann(N+1); B_h=fir1(N,Wn,WIN_h);

figure(1) Ng=1024;

[H_ha W_ha]=freqz(B_ha,1,Ng); subplot(2,2,1); f_ha=W_ha*fm/2/pi; plot(f_ha,20*log10(abs(H_ha))); title('hamming');

[H_b W_b]=freqz(B_b,1,Ng); subplot(2,2,2); f_b=W_ha*fm/2/pi; plot(f_b,20*log10(abs(H_b))); title('bartlett');

[H_bl W_bl]=freqz(B_bl,1,Ng); subplot(2,2,3); f_bl=W_ha*fm/2/pi; plot(f_bl,20*log10(abs(H_bl))); title('blackman');

[H_h W_h]=freqz(B_h,1,Ng); subplot(2,2,4); f_h=W_h*fm/2/pi; plot(f_h,20*log10(abs(H_h))); title('hann');

return; %uloha 2 figure(2) F=[0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1]; A=[1 1 1 0 0 0 0 0 0 0 0];

Bha=fir2(N,F,A,WIN_ha); Bh=fir2(N,F,A,WIN_h);

[Hha Wha]=freqz(Bha,1,Ng); subplot(2,1,1); fha=Wha*fm/2/pi; plot(fha,20*log10(abs(Hha))); title('hamming');

[Hh Wh]=freqz(Bh,1,Ng); subplot(2,1,2); fh=Wh*fm/2/pi; plot(fh,20*log10(abs(Hh))); title('hann');

%uloha 3 impulsni odezva figure(3) impz(Bha,1);

%uloha 3 f char figure(4) freqz(Bha,1,Ng,fm/2);

%uloha 3 f char figure(5) zplane(Bha,1)


a) poplach v: RDI v MS, HP, LP protoze komunikace analyzator-AM1 byla jednosmerna

SOH f6 f6 f6 28 28 28 01 aa aa 46*ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 68 93 93 00 ff ff 00 00 00 e3*08*41*00 ff ff 06 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 0b ff ff ff ff 00 ff ff ff

LO-POH V5: 65* J2: 00 N2: 00 K4: 00

b) zadne alarmy

c) pointer u tu-12 received se snizuje ptr au-4 = 0

0: 2e-4 1: 3e-4 5: 9e-4 10: 1.55e-3 20: 2.95e-3 50: 7.15e-3 100: 1.42e-2 200: 2.82e-2

pro taktovani z prijimaneho signalu = 0

d) count/secs HP REI: 9767/20 = 3.249e-6 LP REI: 1257/20 = 2.806e-5 SLIP: 20/20 = 1

ES: 0 SES: 0 US: 20 100% DM: 0 EFS: 0 BE: 0 AE: 0


clear;clc; fv=8000

t=0:1/fv:0.6-1/fv; y1=0.4*sin(2*pi*300*t); y2=0.6*sin(2*pi*2500*t); y=y1+y2; n=2; fv1=n*fv xinterp=zeros(1,n*length(y)); xinterp(([1:length(y)]-1)*n+1)=y;

figure(1); subplot(2,2,1); %title('Neinterpolovany') ffty1=abs(fft(y))/length(y); stem(0:fv/length(ffty1):fv-fv/length(ffty1),ffty1);

subplot(2,2,2); %title('Interpolovany') ffty2=abs(fft(xinterp))/length(xinterp); stem(0:fv1/length(ffty2):fv1-fv1/length(ffty2),ffty2);

N=60; B=fir1(N,fv/2/(fv1/2)); subplot(2,2,3); xinterp_filtered=filter(B,1,xinterp); ffty3=abs(fft(xinterp_filtered))/length(xinterp_filtered); stem(0:fv1/length(ffty3):fv1-fv1/length(ffty3),ffty3);

fv2=fv/n

B=fir1(N,fv2/2/(fv/2)); y=filter(B,1,y);

subplot(2,2,4); indxs=1:n:length(y); y_decim=y(indxs); ffty4=abs(fft(y_decim))/length(y_decim); stem(0:fv2/length(ffty4):fv2-fv2/length(ffty4),ffty4);