CPC H02J 3/008 (2013.01) [G06Q 50/06 (2013.01); H02J 3/381 (2013.01); H04L 9/50 (2022.05); H02J 2203/10 (2020.01); H02J 2300/24 (2020.01)] | 6 Claims |
1. A blockchain-based new energy power data transmission method for a photovoltaic module, comprising the following steps:
S1, acquiring photovoltaic new energy power data, wherein the photovoltaic new energy power data include one or any combination of corresponding voltages V1-VK, currents i1-iK, temperatures T1-TK and solar irradiances I1-IK within a time range t1-TK;
S2, converting the photovoltaic new energy power data acquired in S1 into photovoltaic new energy power image data, wherein the photovoltaic new energy power image data include one or any combination of a time-voltage curve graph, a time-current curve graph, a time-temperature curve graph and a time-solar irradiance curve graph;
S3, processing the photovoltaic new energy power image data to obtain processed photovoltaic new energy power image data, wherein in S3, a method for processing the photovoltaic new energy power image data to obtain processed photovoltaic new energy power image data comprises the following steps:
S31, determining whether a photovoltaic new energy power image is a gray image:
if the photovoltaic new energy power image is a gray image, taking the photovoltaic new energy power image as a photovoltaic new energy power gray image, and performing the next step; or
if the photovoltaic new energy power image is a non-gray image, converting the photovoltaic new energy power image into a photovoltaic new energy power gray image, and performing the next step;
S32, obtaining, by calculation, an image value of the photovoltaic new energy power image or the photovoltaic new energy power gray image;
S33, generating a new photovoltaic new energy power image by means of the photovoltaic new energy power gray image and the image value; and
S34, transmitting the new photovoltaic new energy power image to the photovoltaic new energy power management platform;
wherein, in S31, a method for converting the photovoltaic new energy power image into a photovoltaic new energy power gray image is:
GRAYimge(x,y)=r(x,y)×nr+g(x,y)×ηg+b(x,y)×ηb,
where, GRAYimge(x,y) denotes a gray value at coordinates (x,y) of the photovoltaic new energy power image, x=1, 2, 3, . . . , X, y=1, 2, 3, . . . , Y, X denotes the number of horizontal pixels of the photovoltaic new energy power image, and Y denotes the number of vertical pixels of the photovoltaic new energy power image;
r(x,y) denotes a red value at the coordinates (x,y) of the photovoltaic new energy power image;
g(x,y) denotes a green value at the coordinates (x,y) of the photovoltaic new energy power image;
b(x,y) denotes a blue value at the coordinates (x,y) of the photovoltaic new energy power image;
ηr denotes a coefficient of the red value; ηr+ηg+ηb=1, ηrϵ[0,1];
ηg denotes a coefficient of the green value; ηgϵ[0,1];
ηb denotes a coefficient of the blue value; ηbϵ[0,1];
wherein, in S32, a method for obtaining, by calculation, an image value of the photovoltaic new energy power image is:
Imagecode=Imagecodeoperationmethod(newenergypowerimage),
where, Imagecode denotes the image value of the photovoltaic new energy power image obtained by calculation;
Imagecodeoperationmethod (denotes a photovoltaic new energy power image calculation method;
newenergypowerimage denotes the photovoltaic new energy power image;
in S32, a method for obtaining, by calculation, an image value of the photovoltaic new energy power gray image is:
Imagecode=Grayimagecodeoperationmethod(newenergypowergrayimage),
where, Imagecode denotes the image value of the photovoltaic new energy power gray image obtained by calculation;
Grayimagecodeoperationmethod (denotes a photovoltaic new energy power gray image calculation method;
newenergypowergrayimage denotes the photovoltaic new energy power gray image;
wherein, in S33, a method for generating a new photovoltaic new energy power image by means of the photovoltaic new energy power gray image and the image value comprises the following steps:
S331, acquiring the number of bits of the photovoltaic new energy power gray image;
S332, obtaining the number of bits of the image value according to the number of bits of the photovoltaic new energy power gray image acquired in S331 and the image value obtained in S32;
S333, combining gray values in the photovoltaic new energy power gray image and the image value to obtain new gray values; and
S334, obtaining the new photovoltaic new energy power image according to the new gray values;
wherein, in S332, a method for obtaining the number of bits of the image value according to the number of bits of the photovoltaic new energy power gray image acquired in S331 and the image value obtained in S32 comprises the following steps:
S321, converting the image value obtained in S32 into a binary image value which is denoted by IMAGE2, wherein IMAGE2 denotes the binary image value; and
S322, determining a relationship between ∥IMAGE2∥ and ∥GRAYimge∥:
if ∥IMAGE2∥=∥GRAYimge∥, performing no operation on the binary image value, wherein ∥IMAGE2∥ denotes the number of bits of the binary image value, ∥GRAYimge∥ denotes the number of bits of the photovoltaic new energy power gray image, and ∥ ∥ denotes calculation of the number of bits;
if ∥IMAGE2∥>∥GRAYimge∥, keeping first ∥GRAYimge∥ bits of the binary image value, wherein ∥IMAGE2∥ denotes the number of bits of the binary image value, ∥GRAYimge∥ denotes the number of bits of the photovoltaic new energy power gray image, and ∥ ∥ denotes calculation of the number of bits; or
if ∥IMAGE2∥<∥GRAYimge∥, adding ∥IMAGE2∥−∥GRAYimge∥ 0 or 1 in front of or behind the binary image value, wherein ∥IMAGE2∥ denotes the number of bits of the binary image value, ∥GRAYimge∥ denotes the number of bits of the photovoltaic new energy power gray image, and ∥ ∥ denotes calculation of the number of bits;
wherein, in S333, a method for combining gray values in the photovoltaic new energy power gray image and the image value to obtain new gray values is:
GRAYimge′2(x,y)=GRAYimge2(x,y)⊕IMAGE2,
where, GRAYimge′2(x,y) denotes the new gray values;
GRAYimge2(x,y) denotes a binary value of the gray value at the coordinates (x,y) of the photovoltaic new energy power image, x=1, 2, 3, . . . , X, y=1, 2, 3, . . . , Y, X denotes the number of horizontal pixels of the photovoltaic new energy power image, and Y denotes the number of vertical pixels of the photovoltaic new energy power image;
⊕ denotes a binary operator;
IMAGE2 denotes the binary image value;
wherein, S334 comprises the following steps:
S3341, forming the new photovoltaic new energy power image by all the new gray values; and
S3342, taking the image value as a name of the new photovoltaic new energy power image;
S4, transmitting the processed photovoltaic new energy power image data to a photovoltaic new energy power management platform; and
S5, transmitting, by the photovoltaic new energy power management platform, the processed photovoltaic new energy power image data to a blockchain for storage.
|