Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How arduino sends Chinese characters to serial port
How arduino sends Chinese characters to serial port
Any terminal sending Chinese characters through serial port must conform to the principle of byte stream sending. According to ANSI coding rules, a Chinese character is represented by two bytes (8-bit binary), so Chinese characters must be interpreted as two bytes and sent byte by byte in the order of high and low bytes.

1. The received terminal equipment is also restored according to this principle.

2. Serial port transmission includes single-byte and double-byte mixed transmission, which is sent and received according to ANSI coding rules.