The invention belongs to the field of computer
system compatibility and
peripheral interfaces, and relates to a domestic desktop terminal
peripheral compatibility method and
system based
on protocol reverse mapping and a computer readable storage medium. According to the method, after
peripheral access, three-layer analysis of
physical layer signal reversal,
data link layer structure reversal and
application layer semantic reversal is carried out in sequence, and an equipment interface type, a frame structure and instruction
semantics are dynamically identified. And based on the reverse result, dividing the equipment into a
standard protocol or a private protocol through a protocol type decision, respectively routing the protocol to a drive straight-through module or an instruction translation executor for
processing, and finally providing compatible services for a domestic
service system through a unified virtual equipment interface. According to the method, the
adaptation problem of a document-free private protocol is solved,
plug and play of a Wintel peripheral by a non-x86 architecture domestic terminal is achieved, the protocol compatibility coverage rate is remarkably increased, meanwhile, the CPU
occupancy rate is reduced, and the harsh requirement for
millisecond response of specific industries such as
electric power is met.