)+
F·HVW XQ PHVVDJH 1RWH RQ DYHF 0,', &+
QRWH HVW '
HW OD YpORFLWp
([HPSOH ! &(
&Q+ HVW OH VWDWXW GX FKDQJHPHQW GH 3URJUDPPH HW Q OH QXPpUR GH FDQDO 0,', 6DFKDQW TXH
(+
HW
+
LO V·DJLW G·XQ PHVVDJH GH FKDQJHPHQW GH 3URJUDPPH DYHF 0,', &+
QXPpUR GH SURJUDPPH
)OWH HQ *6
([HPSOH ! ($
(Q+ HVW OH VWDWXW GX 3LWFK %HQG &KDQJH HW Q OH QXPpUR GH FDQDO 0,', /H GHX[LqPH RFWHW
+
HVW OH /6% HW OH WURLVLqPH RFWHW
XQ QXPpUR VLJQp GDQV OHTXHO
+
%HQG HVW
+
+
[
[
6L 3LWFK %HQG 6HQVLWLYLW\ HVW UpJOp VXU GHPL WRQV
FHQWLqPHV GRQF GDQV FH FDV
[
DSSOLTXp DX FDQDO 0,',
([HPSOH ! %
&
%Q+ HVW OH VWDWXW GX &RQWURO &KDQJH HW Q OH QXPpUR GH FDQDO 0,',
&KDQJHV OH GHX[LqPH RFWHW HVW OH QXPpUR GH FRQWU{OH HW OH WURLVLqPH RFWHW HVW OD YDOHXU
'DQV OH FDV R GHX[ PHVVDJHV FRQVpFXWLIV RX SOXV RQW OH PrPH VWDWXW OH 0,', D XQH
SURYLVLRQ DSSHOpH ´UXQQLQJ VWDWXVµ TXL SHUPHW DX VWDWXW GH O·RFWHW GX VHFRQG PHVVDJH HW
DX[ VXLYDQWV G·rWUH RPLV $LQVL OHV PHVVDJHV FL GHVVXV RQW OHV VLJQLILFDWLRQV VXLYDQWHV
%
0,', FK
RFWHW GH SRLGV IDLEOH GX QXPpUR GH SDUDPqWUH 531
%
0,', FK
RFWHW GH SRLGV IRUW GX QXPpUR GH SDUDPqWUH 531
%
&
0,', FK
RFWHW GH SRLGV IRUW GH OD YDOHXU GX SDUDPqWUH
%
0,', FK
RFWHW GH SRLGV IDLEOH GH OD YDOHXU GX SDUDPqWUH
%
)
0,', FK
RFWHW GH SRLGV IDLEOH GX QXPpUR GH SDUDPqWUH 531 )+
%
)
0,', FK
RFWHW GH SRLGV IRUW GX QXPpUR GH SDUDPqWUH 531 )+
(Q G·DXWUHV WHUPHV OHV PHVVDJHV FL GHVVXV GpWHUPLQHQW XQH YDOHXU GH &
QXPpUR GH SDUDPqWUH 531
+ VXU OH FDQDO 0,',
GX 531 VXU ) )+
/H QXPpUR GH SDUDPqWUH 531
+ HVW OH 3LWFK %HQG 6HQVLWLYLW\ HW OH 06% GH OD YDOHXU
LQGLTXH GHV XQLWpV GH GHPL WRQV DLQVL XQH YDOHXU &+
SLWFK EHQG VXU
GHPL WRQV
RFWDYH
%HQG 6HQVLWLYLW\ HVW LJQRUp PDLV OH /6% VHUD GH WRXWH IDoRQ WUDQVPLV DYHF XQH YDOHXU GH
GH WHOOH VRUWH TXH O·RSpUDWLRQ VRLW FRUUHFWH VXU Q·LPSRUWH TXHO DSSDUHLO
8QH IRLV TXH OH QXPpUR GX SDUDPqWUH D pWp VSpFLILp SRXU 531 RX 1531 WRXV OHV PHVVDJHV
'DWD (QWU\ WUDQVPLV VXU OH PrPH FDQDO VHURQW YDOLGpV DSUqV TXH OD YDOHXU GpVLUpH DLW pWp
WUDQVPLVH LO VHUDLW ERQ GH GH UpJOHU OH QXPpUR GH SDUDPqWUH VXU ) )+ SRXU pYLWHU GHV
GpVDJUpPHQWV &HOD H[SOLTXH OH %
) %
,O Q·HVW SDV ERQ SRXU OHV GRQQpHV GH SHUIRUPDQFH OHV GRQQpHV GHV ILFKLHUV VWDQGDU 0,', GH
FRQWHQLU GH QRPEUHX[ pYqQHPHQWV DYHF GHV ©UXQQLQJ VWDWXVª FRPPH GDQV O·H[HPSOH
([DPSOH ! &HOD V·H[SOLTXH DLQVL VL OD OHFWXUH HVW LQWHUURPSXH GXUDQW OH PRUFHDX SXLV
UHPERELQpH RX DYDQFpH OH VpTXHQFHXU QH VHUDLW SDV FDSDEOH GH WUDQVPHWWUH OH ERQ VWDWXW HW
OH JpQpUDWHXU GH VRQV IHUDLW XQH PDXYDLVH LQWHUSUpWDWLRQ GHV GRQQpHV 9HLOOH] j GRQQHU XQ
VWDWXW SURSUH j FKDTXH pYqQHPHQW
,O HVW pJDOHPHQW QpFHVVDLUH TXH OH UpJODJH GX QXPpUR GH SDUDPqWUH 531 RX 1531 HW TXH OH
UpJODJH GH OD YDOHXU VRLHQW IDLWV GDQV OH ERQ RUGUH 6XU FHUWDLQV VpTXHQFHXUV OHV pYqQHPHQWV
VH SURGXLVDQW DX PrPH PRPHQW RX j OD VXLWH OHV WHPSR G·KRUORJH SHXYHQW rWUH WUDQVPLV
GDQV XQ RUGUH GLIIpUHQW GH FHOXL GDQV OHTXHO LOV RQW pWp UHoXV 3RXU FHWWH UDLVRQ LO HVW ERQ GH
GpFDOHU OD GXUpH GH FKDTXH pYqQHPHQW HQYLURQ
HQYLURQ WRSV SRXU OH 7341
7341 7RSV SDU QRLUH
QXPpUR GH QRWH
OH QRP GH OD
+
HVW OH 06% PDLV OD YDOHXU 3LWFK %HQG HVW
[
HVW
GRQF FHWWH YDOHXU 3LWFK
+ IHUD FKDQJHU OD KDXWHXU GH
¸
FHQWLqPHV GX 3LWFK %HQG HVW
)
)
3RXU OH &RQWURO
+
+
&+
+
+ SRXU OH
SXLV UqJOHQW OH QXPpUR GH SDUDPqWUH
UqJOH OD VHQVLELOLWp PD[LPXP GX
6XU OHV JpQpUDWHXUV GH VRQV *6 OH /6% GX 3LWFK
) VLWXp j OD ILQ
WRS G·KRUORJH SRXU OH 7341
●Exemple de message Exclusif et calcul d'un checksum
/HV PHVVDJHV 5RODQG ([FOXVLI 54
)
SRXU V·DVVXUHU TXH OH PHVVDJH D pWp FRUUHFWHPHQW UHoX /D YDOHXU GX FKHFNVXP HVW
GpWHUPLQpH SDU O·DGUHVVH HW OHV GRQQpHV RX OD WDLOOH GX PHVVDJH ([FOXVLI WUDQVPLV
❍Comment calculer le checksum (les nombres hexadécimaux sont
indiqués par un "H")
/H FKHFNVXP HVW XQH YDOHXU REWHQXH SDU O·DGGLWLRQ GH O·DGUHVVH OD WDLOOH HW OH FKHFNVXP OXL
PrPH HW SDU O·LQYHUVLRQ GHV ELWV LQIpULHXUV
9RLFL FRPPHQW HVW FDOFXOp OH FKHFNVXP 1RXV FRQVLGqUHURQV TXH OH PHVVDJH ([FOXVLI HVW
SRUWHXU GH O·DGUHVVH DD EE FF GG+ HW OHV GRQQpHV RX OD WDLOOH HH II+
DD
EE
FF
GG
HH
II
VXP
VXP ¸
TXRWLHQW
UHVWH
UHVWH
FKHFNVXP
([HPSOH ! 5pJODJH GX &+2586 7<3( G·XQH 3(5)250$1&( &20021 VXU '(/$<
'7
(Q YHUWX GH OD FDUWH ´&DUWH GHV DGUHVVHV GH SDUDPqWUHV S """ µ O·DGUHVVH GH GpSDUW GH OD
3HUIRUPDQFH 7HPSRUDLUH HVW
3(5)250$1&( &20021 HVW
SRXUTXRL O·DGUHVVH GX &+2586 7<3( GH OD 3(5)250$1&( &20021 HVW
+
+
+
+
/H '(/$< D OD YDOHXU
+
/H PHVVDJH GX V\VWqPH H[FOXVLI j HQYR\HU VHUDLW GRQF
)
6WDWXW H[FOXVLI
,' 5RODQG
1XPpUR ,' GH O·DSSDUHLO
,' GX PRGqOH ;9
,' GH FRQWU{OH '7
)LQ GH PHVVDJH H[FOXVLI
3XLV FDOFXOH] OH FKHFNVXP
+
+
+
+
+
VRPPH ¸
TXRWLHQW
FKHFNVXP
UHVWH
&HOD VLJQLILH TXH )
([HPSOH ! 2EWHQLU OHV GRQQpHV 54
(Q YHUWX GH OD ´&DUWH GHV DGUHVVHV GH SDUDPqWUHV S """ µO·DGUHVVHGH GpSDUW 86(5
+ HW O·DGUHVVH RIIVHW GH OD 3HUIRUPDQFH 3DUW
&·HVW SRXUTXRL O·DGUHVVH GH GpSDUW GH OD 3HUIRUPDQFH 3DUW GDQV O· 86(5
+
+
+
&RPPH OD WDLOOH GH OD 3HUIRUPDQFH 3DUW HVW
HQYR\HU VHUDLW GRQF
)
HW
6WDWXW H[FOXVLI
,' 5RODQG
1XPpUR ,' GH O·DSSDUHLO
,' GX PRGqOH ;9
,' GH FRQWU{OH 54
)LQ GH PHVVDJH H[FOXVLI
3XLV FDOFXOH] OH FKHFNVXP
+
+
+
+
+
VRPPH
VRPPH ¸
TXRWLHQW
FKHFNVXP
UHVWH
&HOD VLJQLILH TXH )
([HPSOH ! 2EWHQLU OHV GRQQpHV GH OD 3HUIRUPDQFH 7HPSRUDLUH 54
FI &HWWH RSpUDWLRQ HVW LGHQWLTXH j OD IRQFWLRQ 'DWD 7UDQVIHU HQ PRGH 8WLOLW\
DYHF OHV RSWLRQV ´3(5)250µ SDUDPqWUH 7\SH HW ´7(03 3$7&+µ SDUDPqWUH 6RXUFH
Implémentation MIDI
'7
VRQW WUDQVPLV DYHF XQ FKHFNVXP j OD ILQ DYDQW
+
O·DGUHVVH RIIVHW GX &+2586
+ HW O·DGUHVVH GX &+2586 7<3( HVW
""
DGUHVVH
GRQQpH FKHFNVXP
VRPPH
UHVWH
$+
$ ) HVW OH PHVVDJH j HQYR\HU
GH OD SDUWLH GH OD 3HUIRUPDQFH GDQV O· 86(5
HVW
+
+ OH PHVVDJH GX V\VWqPH H[FOXVLI j
""
DGUHVVH
GRQQpH
FKHFNVXP
+
+
+
UHVWH
$+
$ ) HVW OH PHVVDJH j HQYR\HU
HQ
+ &·HVW
)
HVW
HVW
)
199