The invention discloses a
serial port communication method and
system based on a multi-core
chip system and a readable storage medium. According to the method, one CPU core is reserved, and the specified
serial port interrupt
processing is only executed in the reserved CPU core, so that the
serial port interrupt
processing is not influenced by other processes and operation
system scheduling, the serial port interrupt
processing capability of the multi-core
chip system is effectively improved, the
throughput of serial port data is increased, and the system performance is improved. The problem of
data loss caused by untimely serial port interruption processing is reduced; the appointed serial port
data processing task is only executed in the reserved CPU core, so that the
delay of serial port
data processing due to system scheduling is avoided, the real-time capability of serial port
data processing of the multi-core
chip system is improved, the real-
time processing capability of the system to the serial port is improved, and in the serial port data processing task, the real-
time processing capability of the system to the serial port is improved. And the receiving and transmitting priority of the serial port is set to be the highest priority, and the receiving and transmitting of the data are processed preferentially, so that the received data is prevented from being lost due to overflow of the receiving buffer.