The invention provides a charging
pile ad hoc
network method and
system in the technical field of charging
pile networking, and the method comprises the steps: S1, enabling a first charging
pile to serve as a main node to be connected with a
server, enabling a subsequent charging pile to serve as a child node, carrying out the
authentication with the main node, and enabling the subsequent charging pile to be connected with a
wireless Mesh network managed by the main node; s2, scanning a
wireless environment by each charging pile to construct a
signal attenuation thermodynamic diagram, and re-electing a main node based on the
signal attenuation thermodynamic diagram and the node state data; s3, when the main node and the sub-nodes are disconnected, each sub-node re-elects the main node based on the
signal attenuation thermodynamic diagram and the node state data; and S4, when the main node is disconnected with the
server, dynamically selecting the sub-node to communicate with the
server through a multi-hop
relay mode, or uploading a network disconnection fault through the mobile terminal. The method has the advantages that the problem of collaborative optimization of reliability, real-time performance and safety is solved while low-cost deployment and high expansibility are guaranteed, and large-scale landing of a distributed charging scene is supported.