The invention discloses a data processing mechanism of a photovoltaic power station data collector in an off-grid state, and relates to the technical field of electric power data collection. The invention mainly includes the following steps: system initialization; collecting inverter data and maintaining communication with the platform; data storage and transmission. The present invention stores data information when the network is disconnected, adds time information to each frame of data; sets a data upload time period when historical data is uploaded, selects the state network platform server to upload historical data when it is idle, and reduces the burden on the platform; sets the number of data uploads, and the sending is successfully stopped Send, send failed, try to send multiple times, prevent historical data from being wrongly sent, missed, and multi-sent, and improve the problem of continuous and chaotic uploading of historical data of the data collector caused by network interruption, so that the data of the power station is more perfect, and the failure is realized. traceable.