This invention discloses a method for automatically generating reference schematics for electronic devices, an electronic device, and a storage medium. The method includes: extracting the set of actual
chip models corresponding to the underlying
physical point diagram of the electronic device; assigning uniformly standardized virtual standard reference designators to components in the
chip model set based on a global standard mapping dictionary, and establishing a heterogeneous
data mapping table; using the
chip model set as the query key, initiating a batch search to a general circuit module
library to retrieve matching general circuit data packages; dynamically replacing variable placeholders in the general circuit data packages with virtual standard reference designators based on the heterogeneous
data mapping table; performing
topological sorting on the replaced general circuit data packages according to classification weight values using a
topological sorting algorithm to generate a multi-page structured logic reference
schematic set, and generating a dynamic
directory with interactive jump anchors based on the multi-page structured logic reference
schematic set. This method can solve the problem of low repair efficiency caused by the lack of original manufacturer circuit diagrams.