EIA-ASCII-ISO encoding

From wiki.bastelbude.grade.de
Revision as of 12:30, 17 September 2019 by Kannix (talk | contribs) (conversion charts)
Jump to: navigation, search

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 HORIZONTALTABULATION
LF 0A 10 0A 10 LINEFEED EOBinASCII(ISO)
CR 80 128 0D 13 8D 141 CARRIAGERETURN EOBinEIA
10 16 20 32 A0 160 SPACE
$ 80 128 24 36 24 36 DOLLARSIGN EOBinEIA
% 5B 91 25 37 A5 165 PERCENTSIGN EOR–RewindStopinASCII
& 0E 14 26 38 A6 166 AMPERSAND
( 7C 124 28 40 28 40 LEFTPARENTHESIS
) 71 113 29 41 A9 169 RIGHTPARENTHESIS
70 112 2B 43 2B 43 PLUSSIGN
, 3B 59 2C 44 COMMA
. 6B 107 2E 46 2E 46 FULLSTOP
/ 31 49 2F 47 AF 175 SOLIDUS
0 20 32 30 48 30 48 DIGITZERO
1 01 1 31 49 B1 177 DIGITONE
2 02 2 32 50 B2 178 DIGITTWO
3 13 19 33 51 33 51 DIGITTHREE
4 04 4 34 52 B4 180 DIGITFOUR
5 15 21 35 53 35 53 DIGITFIVE
6 16 22 36 54 36 54 DIGITSIX
7 07 7 37 55 B7 183 DIGITSEVEN
8 08 8 38 56 B8 184 DIGITEIGHT
9 19 25 39 57 39 57 DIGITNINE
: 10 16 3A 58 3A 58 COLON
= 0B 11 3D 61 BD 189 EQUALSSIGN
@ 6D 109 40 64 C0 192 COMMERCIALAT
A 61 97 41 65 41 65 LATINCAPITALLETTERA
B 62 98 42 66 42 66 LATINCAPITALLETTERB
C 73 115 43 67 C3 195 LATINCAPITALLETTERC
D 64 100 44 68 44 68 LATINCAPITALLETTERD
E 75 117 45 69 C5 197 LATINCAPITALLETTERE
F 76 118 46 70 C6 198 LATINCAPITALLETTERF
G 67 103 47 71 47 71 LATINCAPITALLETTERG
H 68 104 48 72 48 72 LATINCAPITALLETTERH
I 79 121 49 73 C9 201 LATINCAPITALLETTERI
J 51 81 4A 74 CA 202 LATINCAPITALLETTERJ
K 52 82 4B 75 4B 75 LATINCAPITALLETTERK
L 43 67 4C 76 CC 204 LATINCAPITALLETTERL
M 54 84 4D 77 4D 77 LATINCAPITALLETTERM
N 45 69 4E 78 4E 78 LATINCAPITALLETTERN
O 46 70 4F 79 CF 207 LATINCAPITALLETTERO
P 57 87 50 80 50 80 LATINCAPITALLETTERP
Q 58 88 51 81 D1 209 LATINCAPITALLETTERQ
R 49 73 52 82 D2 210 LATINCAPITALLETTERR
S 32 50 53 83 53 83 LATINCAPITALLETTERS
T 23 35 54 84 D4 212 LATINCAPITALLETTERT
U 34 52 55 85 55 85 LATINCAPITALLETTERU
V 25 37 56 86 56 86 LATINCAPITALLETTERV
W 26 38 57 87 D7 215 LATINCAPITALLETTERW
X 37 55 58 88 D8 216 LATINCAPITALLETTERX
Y 38 56 59 89 59 89 LATINCAPITALLETTERY
Z 29 41 5A 90 5A 90 LATINCAPITALLETTERZ

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

  • ...