The application discloses a kind of magnetic attraction
peripheral mounting accessory type identification and protocol
adaptive method, it is related to the technical field of electric
digital data processing, the method includes: when accessory is adsorbed to magnetic attraction docking structure, three-dimensional
magnetic field data and electrical coding data of accessory are collected in parallel, respectively execute filtering
processing and binary
processing, generate
magnetic field characteristic vector and electrical coding vector;
Magnetic field characteristic vector is matched with accessory feature
library to execute weighted
Euclidean distance, electrical coding vector is matched with accessory feature
library to execute
hamming distance, and the identification result is output by
cross validation and fusion decision;With identification result as index, configuration data in protocol
dynamic mapping table is retrieved, and communication protocol switching, power supply parameter
adaptation and drive loading are automatically completed;
Magnetic field amplitude is continuously monitored to support hot plug dynamic reconfiguration.The application realizes the
complete data processing
closed loop of accessory identification to protocol
adaptation, and identification reliability is high, supports
plug and play.