Instruction issuing method and device, electronic equipment and storage medium

Through the control instructions and the instruction key value set divided by the cloud server, the remote control of the photovoltaic cleaning robot is realized, solving the problem that traditional photovoltaic cleaning robots can only operate locally, reducing labor costs and improving cleaning efficiency.

CN119668158APending Publication Date: 2025-03-21SHANGHAI ELECTRIC DISTRIBUTED ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411732494.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

Traditional photovoltaic cleaning robots can only be operated locally and cannot achieve remote control, resulting in high labor costs and low cleaning efficiency of photovoltaic panels.

Method used

By obtaining the control instructions issued by the cloud server, using identifiers to divide the command keys and command key values, reading the command key value set, and determining whether it is consistent with the pre-stored key value set. If it is consistent, a control instruction will be issued to the corresponding device to realize the remote control of the photovoltaic cleaning robot.

Benefits of technology

Remote control of photovoltaic cleaning robots is realized, labor costs are reduced, and the cleaning efficiency of photovoltaic panels is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668158A_ABST
    Figure CN119668158A_ABST
Patent Text Reader

Abstract

The invention discloses an instruction issuing method and device and electronic equipment, and the method comprises the steps: firstly obtaining a control instruction issued by a cloud server, determining an identifier in the control instruction, reading an instruction key value set in the control instruction based on the identifier, judging whether the instruction key value set is consistent with a pre-stored key value set or not, and if yes, executing the step 2; and if so, issuing the control instruction to the equipment corresponding to the equipment number in the instruction key value set. And after the equipment receives the control instruction, the photovoltaic panel is automatically cleaned according to the control instruction, so that remote control of the photovoltaic cleaning robot is realized, the labor cost is reduced, and the cleaning efficiency of the photovoltaic panel is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automation control technology, and in particular to a method, device, electronic device and storage medium for issuing instructions. Background Art

[0002] At present, photovoltaic panels are the core components of photovoltaic panel projects. The quality of their power generation capacity indicators affects the operating efficiency of the entire photovoltaic power station. At this time, photovoltaic cleaning robots serve as a powerful tool to improve the efficiency of photovoltaic power generation.

[0003] Traditional photovoltaic cleaning robots have certain functional disadvantages. They only support local operations and cannot take into account operating scenarios when the operator is not on site. In addition, the cleaning robot cannot realize the function of automatic cleaning. Summary of the invention

[0004] The present application provides a method, device, electronic device and storage medium for issuing instructions, which are used to realize remote control of a photovoltaic cleaning robot, reduce labor costs and improve the cleaning efficiency of photovoltaic panels.

[0005] In a first aspect, an embodiment of the present application provides a method for issuing an instruction, the method comprising:

[0006] Obtaining a control instruction issued by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one;

[0007] Based on the identifier, reading each instruction key value in the control instruction to obtain an instruction key value set;

[0008] Determining whether the command key value set read out is consistent with the pre-stored key value set;

[0009] If they are consistent, the control instruction is sent to the device corresponding to the device number in the instruction key value set;

[0010] If they are inconsistent, the control instruction is discarded.

[0011] Through the above method, it is possible to remotely send control instructions to the cleaning robot, so that after receiving the control instructions, the cleaning robot will automatically clean the photovoltaic panel according to the control instructions, thereby realizing remote control of the photovoltaic cleaning robot, reducing labor costs, and improving the cleaning efficiency of the photovoltaic panel.

[0012] In an optional embodiment, sending the control instruction to the device corresponding to the device number in the instruction key value set includes:

[0013] Querying whether there is a device corresponding to the device number according to the device number in the instruction key value set;

[0014] If so, sending the control instruction to the device;

[0015] If not present, the control instruction is discarded.

[0016] Through the above method, it is possible to accurately determine whether a control instruction is issued, thereby ensuring the effectiveness of the issued control instruction.

[0017] In an optional embodiment, sending the control instruction to the device corresponding to the device number in the instruction key value set includes:

[0018] Calculate the difference between the target time in the instruction key value set and the local time;

[0019] Determining whether the difference is less than a threshold;

[0020] If not, the control instruction is sent to the device corresponding to the device number in the instruction key value set;

[0021] If so, the control instruction is discarded.

[0022] Through the above method, it is possible to accurately determine whether a control instruction is issued based on time, thereby ensuring the effectiveness of the issued control instruction.

[0023] In an optional embodiment, sending the control instruction to the device corresponding to the device number in the instruction key value set includes:

[0024] Acquire battery parameters and / or location parameters of the device in the command key value set;

[0025] Determining whether the device is faulty based on the battery parameter and / or the location parameter;

[0026] If not, sending the control instruction to the device corresponding to the device number in the instruction key value set;

[0027] If so, the control instruction is discarded.

[0028] Through the above method, it is possible to accurately determine whether the device is faulty, and in the case of a fault, no control instruction is issued, thereby avoiding invalid issuance of control instructions.

[0029] In a second aspect, an embodiment of the present application provides an information storage method, including:

[0030] Acquire uploaded data uploaded by a device, and determine an identifier in the uploaded data, wherein the identifier is used to divide a data key and a data key value, and the data key and the data key value correspond one to one;

[0031] Based on the identifier, reading a data key value set in the uploaded data;

[0032] Determining whether the data key value set read out is consistent with the pre-stored data key value set;

[0033] If they are consistent, storing the uploaded data;

[0034] If they are inconsistent, the uploaded data is discarded.

[0035] Through the above method, the data uploaded by the cleaning robot is stored in a timely manner, thereby ensuring the subsequent accurate issuance of control instructions to the cleaning robot.

[0036] In an optional embodiment, the determining whether the read data key value set is consistent with the pre-stored data key value set includes:

[0037] Determining whether the item number in the data key value set is consistent with the pre-stored item number; and / or

[0038] Determining whether the device type in the data key value set is consistent with the pre-stored device type; and / or

[0039] Determine whether the device number in the data key value set is consistent with the pre-stored device number; and / or

[0040] Determine whether the data date in the data key value set is consistent with the pre-stored data date.

[0041] Through the above method, it is possible to accurately determine whether the uploaded data of the cleaning robot is valid.

[0042] In an optional embodiment, storing the uploaded data according to the corresponding relationship between the data key and the data key value includes:

[0043] Parsing the remaining information from the uploaded data;

[0044] The data key, the data key value, and the remaining information are stored in a first storage location and a second storage location respectively according to categories.

[0045] The above method realizes classified storage of uploaded data, thereby ensuring the speed and efficiency of subsequent data reading.

[0046] In a third aspect, an embodiment of the present application provides a control method, the method comprising:

[0047] Obtaining a control instruction issued by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one;

[0048] Based on the identifier, reading an instruction key value set in the control instruction;

[0049] Determining whether the command key value set read out is consistent with the pre-stored key value set;

[0050] If they are consistent, respond to the control instruction;

[0051] If they are inconsistent, the control instruction is discarded.

[0052] Through the above method, remote control of the cleaning robot is achieved, thereby improving the cleaning efficiency of the photovoltaic panel.

[0053] In an optional embodiment, determining whether the read instruction key value set is consistent with a pre-stored key value set includes:

[0054] Determine whether the item number in the instruction key value set is consistent with the pre-stored item number; and / or

[0055] Determining whether the device type in the instruction key value set is consistent with the pre-stored device type; and / or

[0056] Determine whether the device number in the instruction key value set is consistent with the pre-stored device number; and / or

[0057] Determine whether the instruction category in the instruction key value set is consistent with the pre-stored instruction category.

[0058] Through the above method, it is possible to accurately determine whether the control instruction received by the cleaning robot is valid.

[0059] In a fourth aspect, an embodiment of the present application provides an instruction issuing device, the device comprising:

[0060] An acquisition module, used for acquiring a control instruction sent by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one;

[0061] A processing module is used to read out each instruction key value in the control instruction based on the identifier to obtain an instruction key value set; determine whether the read instruction key value set is consistent with the pre-stored key value set; if they are consistent, send the control instruction to the device corresponding to the device number in the instruction key value set; if they are inconsistent, discard the control instruction.

[0062] In a fifth aspect, an embodiment of the present application provides an information storage device, the device comprising:

[0063] An acquisition module, used for acquiring uploaded data uploaded by a device, and determining an identifier in the uploaded data, wherein the identifier is used for dividing a data key and a data key value, and the data key and the data key value correspond one to one;

[0064] A processing module is used to read a data key value set from the uploaded data based on the identifier; determine whether the read data key value set is consistent with a pre-stored data key value set; if they are consistent, store the uploaded data; if they are inconsistent, discard the uploaded data.

[0065] In a sixth aspect, an embodiment of the present application provides a control device, the device comprising:

[0066] An acquisition module, used for acquiring a control instruction sent by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one;

[0067] The processing module is used to read out the instruction key value set in the control instruction based on the identifier; determine whether the read instruction key value set is consistent with the pre-stored key value set; if consistent, respond to the control instruction; if inconsistent, discard the control instruction.

[0068] In a seventh aspect, an embodiment of the present application provides an electronic device, including:

[0069] Memory, used to store computer programs;

[0070] The processor is used to implement the above-mentioned method steps when executing the computer program stored in the memory.

[0071] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method steps are implemented.

[0072] For each of the above-mentioned aspects 4 to 8 and the technical effects that may be achieved by each of the aspects, please refer to the above-mentioned description of the technical effects that can be achieved by the first aspect or various possible schemes in the first aspect, and no further details will be given here. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 A flowchart of a method for issuing instructions provided in this application;

[0074] Figure 2 Schematic diagram of the scenario of remote control of the cleaning robot provided in this application;

[0075] Figure 3 The protocol for uploading data to the cleaning robot provided in this application indicates the intention;

[0076] Figure 4 A flowchart of an information storage method provided for this application;

[0077] Figure 5 The protocol representation intent of the control instructions issued by the cloud server provided for this application;

[0078] Figure 6 A flow chart of a control method provided for this application;

[0079] Figure 7 A schematic diagram of the structure of an electronic device provided in this application. DETAILED DESCRIPTION

[0080] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The specific operating methods in the method embodiments can also be applied to device embodiments or system embodiments. It should be noted that in the description of the present application, "multiple" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A is connected to B, which can represent: A is directly connected to B and A is connected to B through C. In addition, in the description of the present application, words such as "first" and "second" are only used to distinguish the purpose of description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

[0081] The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0082] Embodiment 1

[0083] Photovoltaic panels are the core of photovoltaic projects. The quality of photovoltaic panel power generation capacity affects the operating efficiency of the entire photovoltaic power station. The power generation efficiency of photovoltaic panels will be affected by various factors, such as the orientation of photovoltaic panels and the cleanliness of the photovoltaic panel surface.

[0084] At present, in order to ensure the cleanliness of the photovoltaic panel surface, photovoltaic cleaning robots are generally used for cleaning. However, traditional photovoltaic cleaning robots require on-site personnel to operate, and cannot take into account the scenario where the operator is not on-site. This leads to high labor costs and low cleaning efficiency of photovoltaic panels.

[0085] In order to solve the above technical problems, the present application provides a method for issuing instructions, in which the control instruction issued by the cloud server is first obtained, and an identifier is determined in the control instruction. The instruction key value set is read in the control instruction based on the identifier, and it is determined whether the instruction key value set is consistent with the pre-stored key value set. If they are consistent, the control instruction is issued to the device corresponding to the device number in the instruction key value set. After the device receives the control instruction, it will automatically clean the photovoltaic panel according to the control instruction, thereby realizing remote control of the photovoltaic cleaning robot, reducing labor costs, and improving the cleaning efficiency of the photovoltaic panel.

[0086] Reference Figure 1 The process of a method for issuing instructions provided in an embodiment of the present application is shown, and the method includes:

[0087] Step S1, obtaining a control instruction sent by a cloud server, and determining an identifier in the control instruction;

[0088] First of all, the method provided in the embodiment of the present application can be applied to Figure 2 In the photovoltaic panel cleaning scene shown, the scene includes a cloud server, an intermediate controller, and a cleaning robot. The cloud server, the intermediate controller, and the cleaning robot can be connected by wire or wirelessly, and the connection method is not limited in the embodiment of the present application. In the following embodiment, the device is a cleaning robot.

[0089] For example, cloud servers, intermediate controllers, and cleaning robots can transmit data through the MQTT (Message Queuing Telemetry Transport) protocol.

[0090] In this application scenario, this method can be applied to Figure 2 In the intermediate controller shown, the intermediate controller will create an intermediate component MQTT Broker, which is wirelessly connected to the cloud server and the photovoltaic cleaning robot.

[0091] The intermediate component MQTT Broker first creates a message sending queue pvclean_control. After the cloud server connects to the MQTT Broker through the account and password, the cloud server will subscribe to pvclean_control.

[0092] When the cloud server needs to send a control instruction, the cloud server sends the control instruction to the intermediate component MQTT Broker. At this time, the MQTT Broker will receive the control instruction and store it in the MQTT Broker's message sending queue pvclean_control.

[0093] Further, the intermediate controller will parse the received control instructions, thereby determining an identifier in the control instructions. In the embodiment of the present application, the identifier can be a ":" or a ";" and other symbols. This identifier is used to divide the instruction key and the instruction key value. The instruction key and the instruction key value are in a one-to-one correspondence. For example, the instruction key is "project number", and the corresponding instruction key value is "SWJCC", the instruction key is "device type", and the corresponding instruction key value is "PSCR", and the instruction key is "device number", and the corresponding instruction key value is "10001".

[0094] That is to say, the structure of the control instruction can be "project number: SWJCC, equipment type: PSCR, equipment number: 10001, ..." In addition to the three command keys mentioned above, the control instruction also includes other command keys, such as cleaning time, cleaning speed, minimum operating voltage, etc. The control instruction may include the following: Figure 3 The cloud server sends the cleaning robot data corresponding to the combination of each item in the table, and no examples will be given here one by one.

[0095] After the intermediate controller determines the identifier in the control instruction, it divides the instruction key and the instruction key value according to the identifier, and then executes step S2.

[0096] Step S2, based on the identifier, reading each instruction key value in the control instruction to obtain an instruction key value set;

[0097] In step S1, after the intermediate controller determines the identifier from the control instruction, it can identify the instruction key and the instruction key value in the control instruction, and then organize the determined instruction key values ​​into an instruction key value set, which includes the identified instruction key values. The instruction key values ​​have been described in detail in the above embodiments and will not be repeated here.

[0098] In an optional embodiment, the instruction key value set may also include an instruction key. In this case, the instruction key and the instruction key value are stored in the instruction key value set in a one-to-one correspondence.

[0099] Step S3, determining whether the command key value set read out is consistent with the pre-stored key value set;

[0100] After the instruction key value set is obtained, each instruction key value in the instruction key value set is compared with the pre-stored instruction key value. Here, each instruction key value in the instruction key value set is compared with the pre-stored instruction key value respectively.

[0101] Specifically, the project number in the instruction key set is matched with the pre-stored project number to determine whether the project numbers are consistent, and / or the device type in the instruction key set is matched with the pre-stored device type to determine whether the device type is consistent, and / or the device number in the instruction key set is matched with the pre-stored device number to determine whether the device number is consistent. Of course, in addition to these three instruction key values, other instruction key values ​​can also be matched, which will not be illustrated one by one here.

[0102] It should be noted here that the various instruction key values ​​pre-stored in the intermediate controller can be the information uploaded by the device. The information uploaded by the device includes project number, device type, device number and other information. This information is used as the instruction key value, so the instruction key value can be pre-stored in the intermediate controller.

[0103] Of course, the instruction key value can also be obtained by the intermediate controller directly in the cloud server. That is to say, the cloud server stores the information uploaded by the device, and this information is saved as the instruction key value in the cloud server. Therefore, the intermediate server will obtain the instruction key value in the cloud server.

[0104] If the intermediate controller determines that the instruction key value in the instruction key value set is consistent with the instruction key value in the pre-stored key value set, step S4 is executed; if the intermediate controller determines that the instruction key value in the instruction key value set is inconsistent with the instruction key value in the pre-stored key value set, step S5 is executed.

[0105] Step S4, sending the control instruction to the device corresponding to the device number in the instruction key value set;

[0106] Step S5, discard the control instruction.

[0107] When the instruction key value set is consistent with the pre-stored key value set, the intermediate controller will identify the device number in the instruction key value set, determine the device corresponding to the device number based on the device number, and finally send the control instruction to the corresponding device.

[0108] Through the above method, the cloud server can directly send control instructions to the cleaning robot through the intermediate controller. After the cleaning robot receives the control instructions, it will automatically clean the photovoltaic panels according to the control instructions, thereby realizing remote operation of the photovoltaic cleaning robot, reducing labor costs, and improving the cleaning efficiency of the photovoltaic panels.

[0109] In an optional embodiment, in order to ensure the accuracy and effectiveness of the control instructions, after the device number is obtained in the instruction key value set, the intermediate controller will query whether there is a device corresponding to the device number. That is, the intermediate controller determines whether there is a cleaning robot with the device number. If there is a cleaning robot corresponding to the device number, the control instruction will be issued to the cleaning robot corresponding to the device number; if there is no cleaning robot corresponding to the device number, the control instruction will be directly discarded.

[0110] In an optional embodiment, in order to ensure the timeliness of the control instruction, the target time is obtained from the instruction key set, and the target time is the time when the cleaning robot executes the control instruction. Then, the difference between the target time and the local time is calculated to determine whether the difference is less than a threshold. If the difference is less than the threshold, the control instruction is discarded. For example, if the difference is less than 0, it means that the execution time of the control instruction is invalid, so the control instruction is no longer issued; if the difference is greater than the threshold, the control instruction is issued to the cleaning robot corresponding to the device number.

[0111] In an optional embodiment, before issuing the control instruction, the intermediate controller will obtain the battery parameters reported by the cleaning robot, which include voltage and current values. Then the intermediate controller will determine whether the voltage and / or current values ​​are within the set range. If so, the control instruction will be issued to the corresponding cleaning robot; if not, it is determined that the cleaning robot is faulty and the control instruction will be directly discarded. For example, the parameter corresponding to the "current position" is obtained in the uploaded data uploaded by the cleaning robot. If the parameter is a negative value, it means that the cleaning robot is faulty; or the parameter corresponding to the "photovoltaic voltage" in the uploaded data is obtained. If the parameter is less than 10V, it means that the cleaning robot is faulty; or the parameter corresponding to the "return voltage" in the uploaded data is less than 10V, it means that the cleaning robot is faulty, and the control instruction will no longer be issued to the cleaning robot. Through this method, control instructions can no longer be issued in the event of a cleaning robot failure, thereby avoiding waste of resources.

[0112] It should also be noted that the method provided in the above embodiment can be applied to Figure 2 The intermediate controller shown can also be directly applied to the cloud server, that is to say, the method flow executed in the intermediate controller can be completed in the cloud server. The cloud server can directly communicate with the cleaning robot through the MQTT protocol, so that control instructions can be directly issued to the cleaning robot. The specific implementation process has been described in detail in the above embodiment, and will not be repeated here.

[0113] Embodiment 2

[0114] In the embodiment of the present application, a method for storing information is also provided. The method for storing information can be applied to Figure 2 In the cloud server shown, it can also be applied to Figure 2 In the intermediate controller shown, the following embodiments illustrate the above-mentioned information storage method by applying the method to a scenario of a cloud server.

[0115] Reference Figure 4 An information storage method provided by an embodiment of the present application is shown, and the method includes:

[0116] Step S41, obtaining the uploaded data uploaded by the device, and determining an identifier in the uploaded data;

[0117] First, after the cloud server connects to the MQTT Broker through the account and password, the cloud server uploads the subscription data to the queue pvclean_control.

[0118] When the cleaning robot uploads data, it will first send the uploaded data to the MQTT Broker, and the MQTT Broker will place the uploaded data in the data upload queue pvclean_control.

[0119] MQTT Broker sends the upload data in the upload queue pvclean_control to the cloud server.

[0120] Furthermore, after the cloud server receives the uploaded data, the cloud server will parse the received uploaded data and determine an identifier in the uploaded data. In the embodiment of the present application, the identifier can be a ":" or a ";" and other symbols. This identifier is used to divide data keys and data key values. The data keys and data key values ​​are in a one-to-one correspondence. For example, the data key is "project number", and the corresponding data key value is "SWJCC", the data key is "device type", and the corresponding data key value is "PSCR", and the data key is "device number", and the corresponding data key value is "10001".

[0121] That is to say, the structure of the uploaded data can be "project number: SWJCC, device type: PSCR, device number: 10001, ..." In addition to the three data keys mentioned above, the uploaded data also contains other data keys, such as parent device type, parent device number, the time of the last cleaning, the cumulative cleaning time, battery voltage, battery current, speed, starting voltage, etc. The uploaded data can contain the following: Figure 5 The cloud server sends the cleaning robot data corresponding to the combination of each item in the table, and no examples will be given here one by one.

[0122] After the cloud server obtains the uploaded data, an identifier is identified in the uploaded data.

[0123] Step S42, based on the identifier, reading out the data key value set in the uploaded data;

[0124] The data key and data key value can be determined in the uploaded data through the identifier, and the determined data key values ​​are combined into a data key value set.

[0125] Of course, in the embodiment of the present application, the data key value set may also include data keys, and the data keys and data key values ​​are stored in the data key value set in a one-to-one correspondence.

[0126] Step S43, determining whether the read data key value set is consistent with the pre-stored data key value set;

[0127] In an embodiment of the present application, after obtaining the data key value set, the cloud server will determine whether the item number in the data key value set is consistent with the pre-stored item number; and / or determine whether the device type in the data key value set is consistent with the pre-stored device type; and / or determine whether the device number in the data key value set is consistent with the pre-stored device number; and / or determine whether the data date in the data key value set is consistent with the pre-stored data date.

[0128] For example, the cloud server determines whether the project number in the data key set exists. If the project number exists, it further determines whether the device type in the data key set is consistent with the device type stored in the cloud server. If they are consistent, it further determines whether the device corresponding to the device number is hung under the project corresponding to the project number. If so, it further determines whether the upload time corresponding to the uploaded data is earlier than the time when the cloud server last received the above data.

[0129] It should be noted here that the above-mentioned determination method can be to select one of them for determination, or select multiple ones for determination. The specific selected determination conditions can be configured according to actual conditions, and the specific determination method is not limited here.

[0130] When it is determined that the data key value is consistent with the pre-stored data key value, step S44 is executed; if it is determined that the data key value is inconsistent with the pre-stored data key value, step S45 is executed.

[0131] Step S44, storing the uploaded data;

[0132] When it is determined that the data key value set is consistent with the pre-stored data key value set, the uploaded data is determined to be valid uploaded data, and the uploaded data is further parsed to obtain other remaining data in the uploaded data, and the remaining data is taken out one by one for classification and storage, that is, the data key, data value, and remaining information in the uploaded data are stored in the first storage location and the second storage location according to the category. The first storage location is used to store the status information of the device, and the second storage location is used to store the operation information of the device. The specific classification and sorting method can be referred to Figure 5 The tables shown are classified and organized, and will not be repeated here.

[0133] Step S45, discard the uploaded data.

[0134] If it is determined that the data key value is inconsistent with the pre-stored data key value set, for example, the item number in the data key value set is inconsistent with the item number in the pre-stored data key value set, the data is directly discarded. Or the device number in the data key value set is inconsistent with the device number in the pre-stored data key value set; or the device type in the data key value set does not exist; or the upload time of the uploaded data is earlier than the upload time of the last uploaded data received by the cloud server, the cloud server directly discards the uploaded data.

[0135] The above method can timely and accurately save each uploaded data uploaded by the cleaning robot, thereby ensuring that the subsequent cloud server can accurately issue control instructions to the cleaning robot according to the information in the uploaded data.

[0136] Embodiment 3

[0137] The present application also provides a control method which can be applied to Figure 2 In the cleaning robot shown, the following embodiment illustrates the above control method by applying the method to the scenario of the cleaning robot.

[0138] Reference Figure 6 A control method provided in an embodiment of the present application is shown, and the method includes:

[0139] Step S61, obtaining a control instruction sent by a cloud server, and determining an identifier in the control instruction;

[0140] First, after the cleaning robot connects to the MQTT Broker, it will subscribe to the message queue pvclean_control.

[0141] Therefore, after receiving the control instruction sent by the MQTT Broker through pvclean_control, the cleaning robot first identifies the identifier in the control instruction.

[0142] Specifically, the cleaning robot will parse the received control instructions and determine an identifier in the control instructions. In the embodiment of the present application, the identifier can be a ":" or ";" symbol. This identifier is used to divide the instruction key and the instruction key value. The instruction key and the instruction key value are in a one-to-one correspondence. For example, the instruction key is "project number", and the corresponding instruction key value is "SWJCC", the instruction key is "equipment type", and the corresponding instruction key value is "PSCR", and the instruction key is "equipment number", and the corresponding instruction key value is "10001".

[0143] That is to say, the structure of the control instruction can be "project number: SWJCC, equipment type: PSCR, equipment number: 10001, ..." In addition to the three command keys mentioned above, the control instruction also includes other command keys, such as cleaning time, cleaning speed, minimum operating voltage, etc. The control instruction may include the following: Figure 3 The cloud server sends the cleaning robot data corresponding to the combination of each item in the table, and no examples will be given here one by one.

[0144] Step S62, based on the identifier, reading the instruction key value set in the control instruction;

[0145] In step S61, after the cleaning robot determines the identifier from the control instruction, it can identify the instruction key and the instruction key value in the control instruction, and then organize the determined instruction key values ​​into an instruction key value set, which includes the identified instruction key values. The instruction key values ​​have been described in detail in the above embodiments and will not be repeated here.

[0146] In an optional embodiment, the instruction key value set may also include an instruction key. In this case, the instruction key and the instruction key value are stored in the instruction key value set in a one-to-one correspondence.

[0147] S63, determining whether the command key value set read out is consistent with the pre-stored key value set;

[0148] Specifically, the project number in the instruction key set is matched with the saved project number of the cleaning robot itself to determine whether the project number is consistent, and / or the device type in the instruction key set is matched with the device type of the cleaning robot itself to determine whether the device type is consistent, and / or the device number in the instruction key set is matched with the device number of the cleaning robot itself to determine whether the device number is consistent, and / or the instruction category in the instruction key set is matched with the pre-stored instruction category. Of course, in addition to matching these four instruction key values, other instruction key values ​​can also be matched, which will not be explained one by one here.

[0149] If the project number in the instruction key set is consistent with its own project number, execute step S64; if not, execute step S65; if the device type in the instruction key set is consistent with its own device type, execute step S64; if not, execute step S65; if the device number in the instruction key set is consistent with its own device number, execute step S64; if not, execute step S65; if the instruction category in the instruction key set is consistent with the pre-stored instruction category, execute step S64; if not, execute step S65.

[0150] It should be noted that the above four matching parameters are not limited to the above four parameters, and the matching parameters can be increased or decreased in actual application scenarios. And the above four parameters can be successfully matched at the same time, or one of them can be successfully matched, and then step S64 is executed. This is not limited in the embodiment of the present application.

[0151] Step S64, responding to the control instruction;

[0152] Specifically, when it is determined in step S63 that the instruction key value of the instruction key value set is consistent with the key value in the pre-stored key value set, it means that the control instruction is valid. At this time, the cleaning robot will parse the control instruction and extract other data items in the control instruction, such as Figure 5 In the table shown, the cleaning robot will read the data items such as the cleaning speed, the first cleaning time, the second cleaning time, the third cleaning time, and the single cleaning column. The cleaning robot will respond according to the contents of these data items, thereby performing cleaning operations on the photovoltaic panels according to the read data items.

[0153] Through the above method, after the cleaning robot receives the control instruction, it will automatically perform the cleaning of the photovoltaic panel according to the control instruction, thereby realizing the remote operation of the photovoltaic cleaning robot, reducing labor costs, and improving the cleaning efficiency of the photovoltaic panel.

[0154] Step S65, discard the control instruction.

[0155] If it is determined that the instruction key value set is inconsistent with the pre-stored key value set, it means that the control instruction is invalid. At this time, the cleaning robot will discard the control instruction, thereby avoiding the cleaning robot's erroneous response to the control instruction.

[0156] Furthermore, in the embodiment of the present application, in addition to processing and receiving control instructions to respond, the cleaning robot will also periodically upload its own data information, which includes project number, device type, device number and other information. Of course, in addition to uploading these three main information, other information of the cleaning robot will also be uploaded. For details, please refer to Figure 3The individual data items shown.

[0157] After collecting this information, the cleaning robot uploads it to the MQTT Broker through the information receiving queue pvclean_robot subscribed in the MQTT Broker, and then the MQTT Broker uploads it to the cloud server. The cloud server parses and stores the information uploaded by the cleaning robot. The parsing process of the uploaded data on the cloud server has been described in detail in Example 2 and will not be repeated here.

[0158] Through the above method, the cleaning robot can upload the data information of the cleaning robot to the cloud server in real time, so that the cloud server can accurately determine whether to issue control instructions to the cleaning robot based on the data.

[0159] Embodiment 4

[0160] Based on the instruction issuing method provided in the first embodiment, an instruction issuing device is also provided in the embodiment of the present application, and the device includes:

[0161] An acquisition module, used for acquiring a control instruction sent by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one;

[0162] A processing module is used to read out each instruction key value in the control instruction based on the identifier to obtain an instruction key value set; determine whether the read instruction key value set is consistent with the pre-stored key value set; if they are consistent, send the control instruction to the device corresponding to the device number in the instruction key value set; if they are inconsistent, discard the control instruction.

[0163] In an optional embodiment, the processing module is specifically used to query whether there is a device corresponding to the device number in the instruction key value set;

[0164] If so, sending the control instruction to the device;

[0165] If not present, the control instruction is discarded.

[0166] In an optional embodiment, the processing module is specifically used to calculate the difference between the target time in the instruction key value set and the local time;

[0167] Determining whether the difference is less than a threshold;

[0168] If not, the control instruction is sent to the device corresponding to the device number in the instruction key value set;

[0169] If so, the control instruction is discarded.

[0170] In an optional embodiment, the processing module is specifically configured to

[0171] Acquire battery parameters and / or location parameters of the device in the command key value set;

[0172] Determining whether the device is faulty based on the battery parameter and / or the location parameter;

[0173] If not, sending the control instruction to the device corresponding to the device number in the instruction key value set;

[0174] If so, the control instruction is discarded.

[0175] Embodiment 5

[0176] Based on an information storage method provided in Embodiment 2, an information storage device is also provided in an embodiment of the present application, and the device includes:

[0177] Acquire uploaded data uploaded by a device, and determine an identifier in the uploaded data, wherein the identifier is used to divide a data key and a data key value, and the data key and the data key value correspond one to one;

[0178] A processing module, configured to read a data key value set from the uploaded data based on the identifier;

[0179] Determining whether the data key value set read out is consistent with the pre-stored data key value set;

[0180] If they are consistent, storing the uploaded data;

[0181] If they are inconsistent, the uploaded data is discarded.

[0182] In an optional embodiment, the processing module is specifically used to determine whether the item number in the data key value set is consistent with the pre-stored item number; and / or

[0183] Determining whether the device type in the data key value set is consistent with the pre-stored device type; and / or

[0184] Determine whether the device number in the data key value set is consistent with the pre-stored device number; and / or

[0185] Determine whether the data date in the data key value set is consistent with the pre-stored data date.

[0186] In an optional embodiment, the processing module is specifically configured to

[0187] Parsing the remaining information from the uploaded data;

[0188] The data key, the data key value, and the remaining information are stored in a first storage location and a second storage location respectively according to categories.

[0189] Embodiment 6

[0190] Based on a control method provided in Example 1, a control device is also provided in an embodiment of the present application, and the device includes:

[0191] An acquisition module, used for acquiring a control instruction sent by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one;

[0192] A processing module, configured to read an instruction key value set from the control instruction based on the identifier;

[0193] Determining whether the command key value set read out is consistent with the pre-stored key value set;

[0194] If they are consistent, respond to the control instruction;

[0195] If they are inconsistent, the control instruction is discarded.

[0196] In an optional embodiment, the processing module is specifically used to determine whether the item number in the instruction key value set is consistent with the pre-stored item number; and / or

[0197] Determining whether the device type in the instruction key value set is consistent with the pre-stored device type; and / or

[0198] Determine whether the device number in the instruction key value set is consistent with the pre-stored device number; and / or

[0199] Determine whether the instruction category in the instruction key value set is consistent with the pre-stored instruction category.

[0200] Embodiment 7

[0201] Based on the same inventive concept, an electronic device is also provided in the embodiment of the present application, and the electronic device can realize the functions of the aforementioned instruction issuing device, information storage device, and control device, and reference is made to Figure 7 , the electronic device comprises:

[0202] At least one processor 701, and a memory 702 connected to the at least one processor 701. The specific connection medium between the processor 701 and the memory 702 is not limited in the embodiment of the present application. Figure 7 In the example, the processor 701 and the memory 702 are connected via a bus 700. Figure 7The connections between other components are shown in bold lines, and are not intended to be limiting. The bus 700 can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, Figure 7 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 701 can also be called a controller, and there is no limitation on the name.

[0203] In the embodiment of the present application, the memory 702 stores instructions that can be executed by at least one processor 701. The at least one processor 701 can execute the instruction issuing method, information storage method and control method discussed above by executing the instructions stored in the memory 702. The processor 701 can implement the functions of each module in the aforementioned various devices.

[0204] Among them, the processor 701 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 702 and calling data stored in the memory 702, the various functions of the device and process data, the device can be monitored as a whole.

[0205] In one possible design, the processor 701 may include one or more processing units, and the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.

[0206] Processor 701 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the instruction issuing method, information storage method and control method disclosed in the embodiments of the present application can be directly embodied as a hardware processor execution, or a combination of hardware and software modules in the processor.

[0207] The memory 702 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 702 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 702 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 702 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0208] By designing and programming the processor 701, the codes corresponding to the instruction issuing method, information storage method, and control method described in the aforementioned embodiment can be fixed into the chip, so that the chip can execute the steps of the instruction issuing method, information storage method, and control method of the aforementioned embodiment when running. How to design and program the processor 701 is a technology well known to those skilled in the art and will not be described in detail here.

[0209] Based on the same inventive concept, an embodiment of the present application also provides a storage medium, which stores computer instructions. When the computer instructions are executed on a computer, the computer executes the instruction issuing method, information storage method and control method discussed above.

[0210] In some possible implementations, various aspects of the instruction issuing method, information storage method, and control method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an apparatus, the program code is used to enable the control device to execute the steps of the instruction issuing method, information storage method, and control method described above in this specification according to various exemplary embodiments of the present application.

[0211] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0212] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0213] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0214] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0215] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for issuing instructions, characterized in that: The method comprises: Obtaining a control instruction issued by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one; Based on the identifier, reading each instruction key value in the control instruction to obtain an instruction key value set; Determining whether the command key value set read out is consistent with the pre-stored key value set; If they are consistent, the control instruction is sent to the device corresponding to the device number in the instruction key value set; If they are inconsistent, the control instruction is discarded.

2. The method according to claim 1, characterized in that The sending of the control instruction to the device corresponding to the device number in the instruction key value set includes: Querying whether there is a device corresponding to the device number according to the device number in the instruction key value set; If so, sending the control instruction to the device; If not present, the control instruction is discarded.

3. The method according to claim 1, characterized in that The sending of the control instruction to the device corresponding to the device number in the instruction key value set includes: Calculate the difference between the target time in the instruction key value set and the local time; Determining whether the difference is less than a threshold; If not, the control instruction is sent to the device corresponding to the device number in the instruction key value set; If so, the control instruction is discarded.

4. The method according to claim 1, characterized in that The sending of the control instruction to the device corresponding to the device number in the instruction key value set includes: Acquire battery parameters and / or location parameters of the device in the command key value set; Determining whether the device is faulty based on the battery parameter and / or the location parameter; If not, sending the control instruction to the device corresponding to the device number in the instruction key value set; If so, the control instruction is discarded.

5. An information storage method, characterized in that: include: Acquire uploaded data uploaded by a device, and determine an identifier in the uploaded data, wherein the identifier is used to divide a data key and a data key value, and the data key and the data key value correspond one to one; Based on the identifier, reading a data key value set in the uploaded data; Determining whether the data key value set read out is consistent with the pre-stored data key value set; If they are consistent, storing the uploaded data; If they are inconsistent, the uploaded data is discarded.

6. The method according to claim 5, characterized in that The determining whether the read data key value set is consistent with the pre-stored data key value set includes: Determining whether the item number in the data key value set is consistent with the pre-stored item number; and / or Determining whether the device type in the data key value set is consistent with the pre-stored device type; and / or Determine whether the device number in the data key value set is consistent with the pre-stored device number; and / or Determine whether the data date in the data key value set is consistent with the pre-stored data date.

7. The method according to claim 5, characterized in that The storing of the uploaded data according to the corresponding relationship between the data key and the data key value includes: Parsing the remaining information from the uploaded data; The data key, the data key value, and the remaining information are stored in a first storage location and a second storage location respectively according to categories.

8. A control method, characterized in that: The method comprises: Obtaining a control instruction issued by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one; Based on the identifier, reading an instruction key value set in the control instruction; Determining whether the command key value set read out is consistent with the pre-stored key value set; If they are consistent, respond to the control instruction; If they are inconsistent, the control instruction is discarded.

9. The method according to claim 8, characterized in that The determining whether the command key value set read out is consistent with the pre-stored key value set includes: Determine whether the item number in the instruction key value set is consistent with the pre-stored item number; and / or Determining whether the device type in the instruction key value set is consistent with the pre-stored device type; and / or Determine whether the device number in the instruction key value set is consistent with the pre-stored device number; and / or Determine whether the instruction category in the instruction key value set is consistent with the pre-stored instruction category.

10. A command issuing device, characterized in that: The device comprises: An acquisition module, used for acquiring a control instruction sent by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one; A processing module is used to read out each instruction key value in the control instruction based on the identifier to obtain an instruction key value set; determine whether the read instruction key value set is consistent with the pre-stored key value set; if they are consistent, send the control instruction to the device corresponding to the device number in the instruction key value set; if they are inconsistent, discard the control instruction.

11. An information storage device, characterized in that: The device comprises: An acquisition module, used for acquiring uploaded data uploaded by a device, and determining an identifier in the uploaded data, wherein the identifier is used for dividing a data key and a data key value, and the data key and the data key value correspond one to one; A processing module is used to read a data key value set from the uploaded data based on the identifier; determine whether the read data key value set is consistent with a pre-stored data key value set; if they are consistent, store the uploaded data; if they are inconsistent, discard the uploaded data.

12. A control device, characterized in that: The device comprises: An acquisition module, used for acquiring a control instruction sent by a cloud server, and determining an identifier in the control instruction, wherein the identifier is used to divide an instruction key and an instruction key value, and the instruction key and the instruction key value correspond one to one; The processing module is used to read out the instruction key value set in the control instruction based on the identifier; determine whether the read instruction key value set is consistent with the pre-stored key value set; if consistent, respond to the control instruction; if inconsistent, discard the control instruction.

13. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to implement the method steps of any one of claims 1 to 9 when executing a computer program stored in the memory.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 9 are implemented.