Difference between revisions of "EIA-ASCII-ISO encoding"

From wiki.bastelbude.grade.de
Jump to: navigation, search
(conversion charts)
(conversion charts)
Line 18: Line 18:
 
|BS||2A||42||08||8||88||136||BACKSPACE||
 
|BS||2A||42||08||8||88||136||BACKSPACE||
 
|-
 
|-
|HT||33||51||09||9||09||9||HORIZONTALTABULATION||
+
|HT||33||51||09||9||09||9||HORIZONTAL TABULATION||
 
|-
 
|-
|LF||||||0A||10||0A||10||LINEFEED||EOBinASCII(ISO)
+
|LF||||||0A||10||0A||10||LINE FEED||EOB in ASCII (ISO)
 
|-
 
|-
|CR||80||128||0D||13||8D||141||CARRIAGERETURN||EOBinEIA
+
|CR||80||128||0D||13||8D||141||CARRIAGE RETURN||EOB in EIA
 
|-
 
|-
 
|||10||16||20||32||A0||160||SPACE||
 
|||10||16||20||32||A0||160||SPACE||
 
|-
 
|-
|$||80||128||24||36||24||36||DOLLARSIGN||EOBinEIA
+
|$||80||128||24||36||24||36||DOLLAR SIGN||EOB in EIA
 
|-
 
|-
|%||5B||91||25||37||A5||165||PERCENTSIGN||EOR–RewindStopinASCII
+
|%||5B||91||25||37||A5||165||PERCENT SIGN||EOR – Rewind Stop in ASCII
 
|-
 
|-
 
|&||0E||14||26||38||A6||166||AMPERSAND||
 
|&||0E||14||26||38||A6||166||AMPERSAND||
 
|-
 
|-
|(||7C||124||28||40||28||40||LEFTPARENTHESIS||
+
|(||7C||124||28||40||28||40||LEFT PARENTHESIS||
 
|-
 
|-
|)||71||113||29||41||A9||169||RIGHTPARENTHESIS||
+
|)||71||113||29||41||A9||169||RIGHT PARENTHESIS||
 
|-
 
|-
|+||70||112||2B||43||2B||43||PLUSSIGN||
+
|+||70||112||2B||43||2B||43||PLUS SIGN||
 
|-
 
|-
 
|,||3B||59||2C||44||||||COMMA||
 
|,||3B||59||2C||44||||||COMMA||
Line 42: Line 42:
 
|-||40||64||2D||45||2D||45||HYPHEN-MINUS||
 
|-||40||64||2D||45||2D||45||HYPHEN-MINUS||
 
|-
 
|-
|.||6B||107||2E||46||2E||46||FULLSTOP||
+
|.||6B||107||2E||46||2E||46||FULL STOP||
 
|-
 
|-
 
|/||31||49||2F||47||AF||175||SOLIDUS||
 
|/||31||49||2F||47||AF||175||SOLIDUS||
 
|-
 
|-
|0||20||32||30||48||30||48||DIGITZERO||
+
|0||20||32||30||48||30||48||DIGIT ZERO||
 
|-
 
|-
|1||01||1||31||49||B1||177||DIGITONE||
+
|1||01||1||31||49||B1||177||DIGIT ONE||
 
|-
 
|-
|2||02||2||32||50||B2||178||DIGITTWO||
+
|2||02||2||32||50||B2||178||DIGIT TWO||
 
|-
 
|-
|3||13||19||33||51||33||51||DIGITTHREE||
+
|3||13||19||33||51||33||51||DIGIT THREE||
 
|-
 
|-
|4||04||4||34||52||B4||180||DIGITFOUR||
+
|4||04||4||34||52||B4||180||DIGIT FOUR||
 
|-
 
|-
|5||15||21||35||53||35||53||DIGITFIVE||
+
|5||15||21||35||53||35||53||DIGIT FIVE||
 
|-
 
|-
|6||16||22||36||54||36||54||DIGITSIX||
+
|6||16||22||36||54||36||54||DIGIT SIX||
 
|-
 
|-
|7||07||7||37||55||B7||183||DIGITSEVEN||
+
|7||07||7||37||55||B7||183||DIGIT SEVEN||
 
|-
 
|-
|8||08||8||38||56||B8||184||DIGITEIGHT||
+
|8||08||8||38||56||B8||184||DIGIT EIGHT||
 
|-
 
|-
|9||19||25||39||57||39||57||DIGITNINE||
+
|9||19||25||39||57||39||57||DIGIT NINE||
 
|-
 
|-
|:||10||16||3A||58||3A||58||COLON||
+
| :||10||16||3A||58||3A||58||COLON||
 
|-
 
|-
|=||0B||11||3D||61||BD||189||EQUALSSIGN||
+
| =||0B||11||3D||61||BD||189||EQUALS SIGN||
 
|-
 
|-
|@||6D||109||40||64||C0||192||COMMERCIALAT||
+
| @||6D||109||40||64||C0||192||COMMERCIAL AT||
 
|-
 
|-
|A||61||97||41||65||41||65||LATINCAPITALLETTERA||
+
| A||61||97||41||65||41||65||LATIN CAPITAL LETTER A||
 
|-
 
|-
|B||62||98||42||66||42||66||LATINCAPITALLETTERB||
+
| B||62||98||42||66||42||66||LATIN CAPITAL LETTER B||
 
|-
 
|-
|C||73||115||43||67||C3||195||LATINCAPITALLETTERC||
+
| C||73||115||43||67||C3||195||LATIN CAPITAL LETTER C||
 
|-
 
|-
|D||64||100||44||68||44||68||LATINCAPITALLETTERD||
+
| D||64||100||44||68||44||68||LATIN CAPITAL LETTER D||
 
|-
 
|-
|E||75||117||45||69||C5||197||LATINCAPITALLETTERE||
+
| E||75||117||45||69||C5||197||LATIN CAPITAL LETTER E||
 
|-
 
|-
|F||76||118||46||70||C6||198||LATINCAPITALLETTERF||
+
| F||76||118||46||70||C6||198||LATIN CAPITAL LETTER F||
 
|-
 
|-
|G||67||103||47||71||47||71||LATINCAPITALLETTERG||
+
| G||67||103||47||71||47||71||LATIN CAPITAL LETTER G||
 
|-
 
|-
|H||68||104||48||72||48||72||LATINCAPITALLETTERH||
+
| H||68||104||48||72||48||72||LATIN CAPITAL LETTER H||
 
|-
 
|-
|I||79||121||49||73||C9||201||LATINCAPITALLETTERI||
+
| I||79||121||49||73||C9||201||LATIN CAPITAL LETTER I||
 
|-
 
|-
|J||51||81||4A||74||CA||202||LATINCAPITALLETTERJ||
+
| J||51||81||4A||74||CA||202||LATIN CAPITAL LETTER J||
 
|-
 
|-
|K||52||82||4B||75||4B||75||LATINCAPITALLETTERK||
+
| K||52||82||4B||75||4B||75||LATIN CAPITAL LETTER K||
 
|-
 
|-
|L||43||67||4C||76||CC||204||LATINCAPITALLETTERL||
+
| L||43||67||4C||76||CC||204||LATIN CAPITAL LETTER L||
 
|-
 
|-
|M||54||84||4D||77||4D||77||LATINCAPITALLETTERM||
+
| M||54||84||4D||77||4D||77||LATIN CAPITAL LETTER M||
 
|-
 
|-
|N||45||69||4E||78||4E||78||LATINCAPITALLETTERN||
+
| N||45||69||4E||78||4E||78||LATIN CAPITAL LETTER N||
 
|-
 
|-
|O||46||70||4F||79||CF||207||LATINCAPITALLETTERO||
+
| O||46||70||4F||79||CF||207||LATIN CAPITAL LETTER O||
 
|-
 
|-
|P||57||87||50||80||50||80||LATINCAPITALLETTERP||
+
| P||57||87||50||80||50||80||LATIN CAPITAL LETTER P||
 
|-
 
|-
|Q||58||88||51||81||D1||209||LATINCAPITALLETTERQ||
+
| Q||58||88||51||81||D1||209||LATIN CAPITAL LETTER Q||
 
|-
 
|-
|R||49||73||52||82||D2||210||LATINCAPITALLETTERR||
+
| R||49||73||52||82||D2||210||LATIN CAPITAL LETTER R||
 
|-
 
|-
|S||32||50||53||83||53||83||LATINCAPITALLETTERS||
+
| S||32||50||53||83||53||83||LATIN CAPITAL LETTER S||
 
|-
 
|-
|T||23||35||54||84||D4||212||LATINCAPITALLETTERT||
+
| T||23||35||54||84||D4||212||LATIN CAPITAL LETTER T||
 
|-
 
|-
|U||34||52||55||85||55||85||LATINCAPITALLETTERU||
+
| U||34||52||55||85||55||85||LATIN CAPITAL LETTER U||
 
|-
 
|-
|V||25||37||56||86||56||86||LATINCAPITALLETTERV||
+
| V||25||37||56||86||56||86||LATIN CAPITAL LETTER V||
 
|-
 
|-
|W||26||38||57||87||D7||215||LATINCAPITALLETTERW||
+
| W||26||38||57||87||D7||215||LATIN CAPITAL LETTER W||
 
|-
 
|-
|X||37||55||58||88||D8||216||LATINCAPITALLETTERX||
+
| X||37||55||58||88||D8||216||LATIN CAPITAL LETTER X||
 
|-
 
|-
|Y||38||56||59||89||59||89||LATINCAPITALLETTERY||
+
| Y||38||56||59||89||59||89||LATIN CAPITAL LETTER Y||
 
|-
 
|-
|Z||29||41||5A||90||5A||90||LATINCAPITALLETTERZ||
+
| Z||29||41||5A||90||5A||90||LATIN CAPITAL LETTER Z||
 
|-
 
|-
 
|}
 
|}

Revision as of 12:46, 17 September 2019

trivia

  • old NC-maschines might use EIA or ISO 'paper-tape' encoding on serial-communication

links

conversion charts

char EIA ASCII ISO remark
(hex) (dec) (hex) (dec) (hex) (dec)
BS 2A 42 08 8 88 136 BACKSPACE
HT 33 51 09 9 09 9 HORIZONTAL TABULATION
LF 0A 10 0A 10 LINE FEED EOB in ASCII (ISO)
CR 80 128 0D 13 8D 141 CARRIAGE RETURN EOB in EIA
10 16 20 32 A0 160 SPACE
$ 80 128 24 36 24 36 DOLLAR SIGN EOB in EIA
% 5B 91 25 37 A5 165 PERCENT SIGN EOR – Rewind Stop in ASCII
& 0E 14 26 38 A6 166 AMPERSAND
( 7C 124 28 40 28 40 LEFT PARENTHESIS
) 71 113 29 41 A9 169 RIGHT PARENTHESIS
70 112 2B 43 2B 43 PLUS SIGN
, 3B 59 2C 44 COMMA
. 6B 107 2E 46 2E 46 FULL STOP
/ 31 49 2F 47 AF 175 SOLIDUS
0 20 32 30 48 30 48 DIGIT ZERO
1 01 1 31 49 B1 177 DIGIT ONE
2 02 2 32 50 B2 178 DIGIT TWO
3 13 19 33 51 33 51 DIGIT THREE
4 04 4 34 52 B4 180 DIGIT FOUR
5 15 21 35 53 35 53 DIGIT FIVE
6 16 22 36 54 36 54 DIGIT SIX
7 07 7 37 55 B7 183 DIGIT SEVEN
8 08 8 38 56 B8 184 DIGIT EIGHT
9 19 25 39 57 39 57 DIGIT NINE
: 10 16 3A 58 3A 58 COLON
= 0B 11 3D 61 BD 189 EQUALS SIGN
@ 6D 109 40 64 C0 192 COMMERCIAL AT
A 61 97 41 65 41 65 LATIN CAPITAL LETTER A
B 62 98 42 66 42 66 LATIN CAPITAL LETTER B
C 73 115 43 67 C3 195 LATIN CAPITAL LETTER C
D 64 100 44 68 44 68 LATIN CAPITAL LETTER D
E 75 117 45 69 C5 197 LATIN CAPITAL LETTER E
F 76 118 46 70 C6 198 LATIN CAPITAL LETTER F
G 67 103 47 71 47 71 LATIN CAPITAL LETTER G
H 68 104 48 72 48 72 LATIN CAPITAL LETTER H
I 79 121 49 73 C9 201 LATIN CAPITAL LETTER I
J 51 81 4A 74 CA 202 LATIN CAPITAL LETTER J
K 52 82 4B 75 4B 75 LATIN CAPITAL LETTER K
L 43 67 4C 76 CC 204 LATIN CAPITAL LETTER L
M 54 84 4D 77 4D 77 LATIN CAPITAL LETTER M
N 45 69 4E 78 4E 78 LATIN CAPITAL LETTER N
O 46 70 4F 79 CF 207 LATIN CAPITAL LETTER O
P 57 87 50 80 50 80 LATIN CAPITAL LETTER P
Q 58 88 51 81 D1 209 LATIN CAPITAL LETTER Q
R 49 73 52 82 D2 210 LATIN CAPITAL LETTER R
S 32 50 53 83 53 83 LATIN CAPITAL LETTER S
T 23 35 54 84 D4 212 LATIN CAPITAL LETTER T
U 34 52 55 85 55 85 LATIN CAPITAL LETTER U
V 25 37 56 86 56 86 LATIN CAPITAL LETTER V
W 26 38 57 87 D7 215 LATIN CAPITAL LETTER W
X 37 55 58 88 D8 216 LATIN CAPITAL LETTER X
Y 38 56 59 89 59 89 LATIN CAPITAL LETTER Y
Z 29 41 5A 90 5A 90 LATIN CAPITAL LETTER Z

pySerial

ubuntu

prerequisites

  • sudo apt-get install socat
  • sudo apt install python-pip
  • pip install pyserial

virtual null-modem

  • terminal[1]
    • sudo socat PTY,link=/dev/ttyS10 PTY,link=/dev/ttyS11

hack encodings

  • sudo cp usr/lip/python2.7/encodings/hp_roman8.py usr/lip/python2.7/encodings/iso_paper.py
  • edit iso_paper.py as needed ...

run miniterm

  • terminal[2]
    • sudo python -m serial.tools.miniterm --echo --encoding hexlify
  • terminal[3]
    • sudo python -m serial.tools.miniterm --encoding iso-paper

windows

prerequisites

  • ...

virtual null-modem

reference

hack encodings

  • ...

run miniterm

  • ...