Home > OS >  Linux under the ASCII value and under Windows is not the same?
Linux under the ASCII value and under Windows is not the same?

Time:09-24

It is like this:
I use serial debugging assistant under Windows and Linux development board to communicate testing, found a very strange thing,

In ASCII code table, I check the value of the 'a' 0 x61, so I enter 61 in debugging assistant, to hex to send, the results I saw development board to receive in xshell remote is not 'a', trial and error, I found that send 0 x3d, development board to receive the display is the 'a',
The other values, and then try again to obtain the rule of the following:
Hex notation
0 b z
0 d y
0 f x
11 w
13 v
15 u
17 t
19 s
1 b r
1 d q
1 f p
21 o
23 n
25 m
27 l
29 k
2 b j
2 d I
2 f h
31 g
33 f
35 e
37 d
39 c
3 b b
A 3 d
3 f `
41 _
43 ^
45]
47 \
49 [
4 b Z
4 d Y
4 f X
51 W
53 V
55 U
57 T
59 S
5 b R
5 d Q
5 f P
61 O
63 N

65 M67 L
69 K
6 b J
6 d I
6 H f
71 G
73 F
75 E
77 D
79 C
7 B B
7 d A
7 f @
81?
83 & gt;
85=
87 & lt;
89;
8 b:
8 d 9
8 f
91 7
93
95
97
99
9 b 2
9 d 1
9 f 0

I can only send corresponding hex, according to the above rules development board to receive I want characters, on the other hand, from the development board to send debugging assistant, according to the correct ASCII table, rather than according to the rules above,
There isn't any transformation rules? O great god teach

CodePudding user response:

You are not decimal hexadecimal mixed up,

CodePudding user response:

A serial port data bit bit against?

CodePudding user response:

refer to the second floor zhangyiant response:
serial data bit an anti?

Do you mean? The order of the bit position also can set for yourself

CodePudding user response:

At the ends of the baud rate, data bits, stop bits, detection, flow control?

CodePudding user response:

0 x3d is not 61

CodePudding user response:

Problems setting up the serial port, baud rate are consistent,

CodePudding user response:

X3d=0, 61
3 * 16 + 13=61
Have A - E letter is hexadecimal

CodePudding user response:

reference seanbei reply: 3/f
Quote: refer to the second floor zhangyiant response:

A serial port data bit bit against?

Do you mean? The bit bit sequence can also set it by yourself

I guess, a serial port a bit a string of wear, into a byte is the first bit first to preach or the last bit first, do not know to have a standard, if not, could make the,

CodePudding user response:

Spent two TTL chip 232

CodePudding user response:

Can print the value directly without print into character to check? First to determine hair - biography - closed - show what went wrong, ASCII typically don't disorderly change,

CodePudding user response:

Hardware problem, isn't it will be 232 level signal received from the TTL level signal
  • Related