CN110658761A - Solar power supply control method and device - Google Patents

Solar power supply control method and device Download PDF

Info

Publication number
CN110658761A
CN110658761A CN201910921819.4A CN201910921819A CN110658761A CN 110658761 A CN110658761 A CN 110658761A CN 201910921819 A CN201910921819 A CN 201910921819A CN 110658761 A CN110658761 A CN 110658761A
Authority
CN
China
Prior art keywords
power supply
external electric
electric equipment
solar power
control
Prior art date
Application number
CN201910921819.4A
Other languages
Chinese (zh)
Inventor
徐建
左汶琳
Original Assignee
北京四达时代软件技术股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京四达时代软件技术股份有限公司 filed Critical 北京四达时代软件技术股份有限公司
Priority to CN201910921819.4A priority Critical patent/CN110658761A/en
Publication of CN110658761A publication Critical patent/CN110658761A/en

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Abstract

The invention provides a solar power supply control method and a device, wherein the solar power supply control method comprises the following steps: receiving an authentication request and an MCU chip identification number of external electric equipment through a 485 bus; identifying the type of the external electric equipment according to the MCU chip identification number; sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment. The solar power supply control method and the solar power supply control device can enable the solar power supply terminal to quickly identify and control the state of the external electric equipment.

Description

Solar power supply control method and device

Technical Field

The invention relates to the technical field of new energy, in particular to a communication mechanism between a solar power supply terminal and external electric equipment, and specifically relates to a solar power supply control method and device.

Background

With the emergence of more and more solar power systems, various accessory devices (televisions, refrigerators, fans, lamps, etc.) relying on the solar power systems also come into existence, and the method becomes more important for how to effectively and quickly inquire the states of the accessory devices, and is embodied in the following aspects: in the aspect of user use, the solar energy system is required to quickly identify the model of the equipment and accurately output current; in the aspect of company sales, information such as preference and use duration of accessories used by a user needs to be fed back to a manufacturer timely and accurately; when the user purchases the solar product by stages, the user needs to be ensured to pay continuously.

In summary, it is an urgent need to solve the problem of how to provide an effective control method for controlling an external power device of a solar power system.

Disclosure of Invention

Aiming at the problems in the prior art, the solar power supply control method and the solar power supply control device provided by the invention can enable the solar power supply terminal to quickly identify and control the state of the external electric equipment.

In order to solve the technical problems, the invention provides the following technical scheme:

in a first aspect, the present invention provides a solar power supply control method applied to a solar power terminal, including:

receiving an authentication request and an MCU chip identification number of external electric equipment through a 485 bus;

identifying the type of the external electric equipment according to the MCU chip identification number;

sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment.

Preferably, the control instructions further comprise a heartbeat command; the sending of a control command to the external electric equipment according to the authentication request and the type to execute a power supply operation on the external electric equipment includes:

sending the heartbeat command to the external power utilization equipment within a preset heartbeat period;

and in a first preset time, if the response of the external electric equipment to the heartbeat command is received, the external electric equipment is powered and continuously sends the heartbeat command to the external electric equipment.

The invention also provides a solar power supply control method applied to the external electric equipment, which comprises the following steps:

sending an authentication request and an MCU chip identification number to a solar power supply terminal through a 485 bus so that the solar power supply terminal can identify the type of external electric equipment based on the MCU chip identification number;

receiving a control command fed back by the solar power supply terminal based on the type of the external electric equipment and the authentication request so as to receive power supply; the control command comprises an identification number EUID corresponding to the external electric equipment.

Preferably, the control instructions further comprise a heartbeat command; the receiving of the control command fed back by the solar power supply terminal based on the type of the external electric equipment and the authentication request to receive power supply comprises:

receiving a heartbeat command sent by the solar power supply terminal in a preset heartbeat period;

and in a second preset time, if the heartbeat command is received, generating a response to the heartbeat command according to the heartbeat command, sending the response to the solar power supply terminal, and receiving and supplying power.

Preferably, the solar power supply control method further includes:

and judging whether a control instruction of the solar power supply terminal is received or not within a third preset time, and if not, sending the authentication request to the solar power supply terminal.

In a second aspect, the present invention provides a solar power supply control device suitable for a solar power supply terminal, the device comprising:

the request receiving unit is used for receiving an authentication request of the external electric equipment and the MCU chip identification number through the 485 bus;

the type identification unit is used for identifying the type of the external electric equipment according to the MCU chip identification number;

the execution power supply unit is used for sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment.

Preferably, the control instructions further comprise a heartbeat command; the execution power supply unit includes:

the heartbeat command sending module is used for sending a heartbeat command to the external electric equipment in a preset heartbeat period;

and the execution power supply module is used for supplying power to the external electric equipment and continuously sending the heartbeat command to the external electric equipment if receiving the response of the external electric equipment to the heartbeat command in first preset time.

The invention also provides a solar power supply control device suitable for external electric equipment, which comprises:

the request sending unit is used for sending an authentication request and an MCU chip identification number to the solar power supply terminal through a 485 bus so that the solar power supply terminal can identify the type of external electric equipment based on the MCU chip identification number;

the receiving power supply unit is used for receiving a control command fed back by the solar power supply terminal based on the type of the external electric equipment and the authentication request so as to receive power supply; the control command comprises an identification number EUID corresponding to the external electric equipment.

Preferably, the control instructions further comprise a heartbeat command; the receiving power supply unit includes:

the heartbeat command receiving module is used for receiving a heartbeat command sent by the solar power supply terminal in a preset heartbeat period;

and the power supply receiving module is used for generating a response to the heartbeat command according to the heartbeat command if the heartbeat command is received within a second preset time, sending the response to the solar power supply terminal and receiving power supply.

Preferably, the solar power supply control device further comprises:

and the judging unit is used for judging whether a control instruction of the solar power supply terminal is received or not within a third preset time, and if not, sending the authentication request to the solar power supply terminal.

In a third aspect, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the solar power control method when executing the program.

In a fourth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the solar power supply control method.

From the above description, the solar power supply control method and device provided by the invention establish a communication mechanism between the solar power supply terminal and the external electric equipment through the 485 bus, and the 485 bus is a differential signal, has a long transmission distance and strong anti-interference capability, and supports bidirectional communication. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding and matched solar power supply terminal, so that the consistency of the solar power supply terminal and the external electric equipment is ensured. And then, identifying the type of the external electric equipment through the MCU chip identification number, and finally sending a control command to the external electric equipment according to the authentication request of the external electric equipment and the type of the external electric equipment. It can be understood that the method can prevent the defaulting user from continuously using the solar power supply terminal and the accessories thereof, thereby ensuring that the user pays the fee on time.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

Fig. 1 is a first schematic flow chart of a solar power supply control method according to an embodiment of the present invention;

fig. 2 is a schematic flow chart of a solar power supply control method according to an embodiment of the present invention;

FIG. 3 is a flowchart illustrating steps 300 of a solar power control method according to an embodiment of the invention;

FIG. 4 is a flowchart illustrating steps 600 of a solar power control method according to an embodiment of the invention;

fig. 5 is a third schematic flow chart of a solar power supply control method according to an embodiment of the present invention;

fig. 6 is a schematic flow chart of a solar power supply control method according to an embodiment of the present invention;

FIG. 7 is a flowchart illustrating steps 800 of a solar power control method according to an embodiment of the invention;

FIG. 8 is a schematic flow chart illustrating a solar power control method according to an embodiment of the present invention;

FIG. 9 is a schematic diagram of a solar power system framework in an embodiment of the present invention;

FIG. 10 is a diagram illustrating communication timing in an embodiment of the present invention;

FIG. 11 is a first schematic structural diagram of a solar power control apparatus according to an embodiment of the present invention;

FIG. 12 is a schematic diagram of a power supply unit according to an embodiment of the present invention;

FIG. 13 is a second schematic structural diagram of a solar power control apparatus according to an embodiment of the present invention;

FIG. 14 is a schematic diagram of a receiving power supply unit according to an embodiment of the present invention;

FIG. 15 is a third schematic structural diagram of a solar power control apparatus according to an embodiment of the present invention;

fig. 16 is a schematic structural diagram of an electronic device in an embodiment of the invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In view of the related needs for improving the security and usability of the current verification code system in the prior art, an embodiment of the present invention provides a specific implementation manner of a solar power supply control method suitable for a solar power terminal, and the method specifically includes the following contents with reference to fig. 1:

step 100: and receiving an authentication request and an MCU chip identification number of the external electric equipment through the 485 bus.

In the prior art, a solar power supply system controls an external electric device based on a UART serial port communication mode, that is, a solar power supply terminal is connected with the external electric device through a serial port line, and the solar power supply terminal queries the online state of the external electric device through the serial port and controls the power supply state of the external electric device. It will be appreciated that the disadvantages of using the above method are: the solar power supply system is easily interfered and is only suitable for controlling external electric equipment in short distance. And the 485 bus is a differential signal, has long transmission distance and strong anti-interference capability and supports bidirectional communication. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding solar power supply terminal, and the external electric equipment cannot normally work when being connected to other power supply equipment, and the solar power supply terminal cannot output power supply in the arrearage state of the external electric equipment.

Step 200: and identifying the type of the external electric equipment according to the MCU chip identification number.

In the specific implementation of step 200, the device type may be identified first, and a one-byte device type field is used for identification, and the field is solidified into a code segment to compile a burning program for each device. Then, a single device is identified, and preferably, the CHIPID of the MCU chip of the device can be used as the unique identifier of the device.

It can be understood that the types and the use time of the external electric equipment (solar accessories) used by the user are collected, the use behaviors of the user can be analyzed, the preference of a certain region for the types of the accessories can be counted, and then data reference is provided for subsequent production, research and development and sale.

Step 300: sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment.

Solar power source terminal is as solar power source terminal end, external consumer is as external consumer end, because the 485 bus does not take bus arbitration mechanism, all communications must be launched by solar power source terminal end, answer by external consumer end, each external consumer end (external consumer) has a unique identification number (EUID), all need take this EUID in every order when solar power source terminal launches the communication, all external consumers receive solar power source terminal's order simultaneously, but only the external consumer that EUID matches can answer, thereby the uniformity between solar power consumer and the external consumer has been guaranteed.

The embodiment of the invention provides a specific implementation manner of a solar power supply control method suitable for external electric equipment, and the method specifically comprises the following contents with reference to fig. 2:

step 500: and sending an authentication request and an MCU chip identification number to the solar power supply terminal through a 485 bus so that the solar power supply terminal identifies the type of the external electric equipment based on the MCU chip identification number.

It can be understood that the 485 bus communication is adopted between the solar power supply terminal and the external electric equipment (such as a television, a refrigerator, an electric fan and an electric lamp) because the communication line is long, common serial port signals are easily interfered, the 485 bus is a differential signal, the transmission distance is long, the anti-interference capability is strong, and the two-way communication is supported. In addition, the bidirectional communication enables the external electric equipment to be normally used only when being connected with the corresponding solar power supply terminal matched with the external electric equipment, and the external electric equipment cannot normally work when being connected with other power supply equipment.

Step 600: receiving a control command fed back by the solar power supply terminal based on the type of the external electric equipment and the authentication request so as to receive power supply; the control command comprises an identification number EUID corresponding to the external electric equipment.

From the above description, the solar power supply control method provided by the invention establishes a communication mechanism between the solar power supply terminal and the external electric equipment through the 485 bus, and the 485 bus is a differential signal, so that the transmission distance is long, the anti-interference capability is strong, and the bidirectional communication is supported. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding and matched solar power supply terminal, so that the consistency of the solar power supply terminal and the external electric equipment is ensured. And then, identifying the type of the external electric equipment through the MCU chip identification number, and finally sending a control command to the external electric equipment according to the authentication request of the external electric equipment and the type of the external electric equipment. It can be understood that the method can prevent the defaulting user from continuously using the solar power supply terminal and the accessories thereof, thereby ensuring that the user pays the fee on time.

In one embodiment, the control instructions further comprise a heartbeat command. Referring to fig. 3, step 300 includes:

step 301: and sending the heartbeat command to the external electric equipment in a preset heartbeat period.

Step 302: and in the preset time, if the response of the external electric equipment to the heartbeat command is received, the external electric equipment is powered and continuously sends the heartbeat command to the external electric equipment.

Specifically, the external electrical equipment is the online external electrical equipment after the authentication is successful. The solar power supply terminal sets proper heartbeat cycle time and sequentially sends heartbeat commands to each online external electric device. After two heartbeat periods, the online external electric equipment does not respond to heartbeats, and the solar power supply terminal is disconnected from communication connection and marked as offline external electric equipment. And marking the external electric equipment as the offline external electric equipment if the external electric equipment does not receive the heartbeat in two heartbeat periods, turning off power supply (turning off video output by the solar television), and restarting authentication.

It can be understood that whether the other side (the solar power supply terminal and the external electric equipment) acts normally can be judged by adopting the heartbeat command, and if the response of the other side is not received in a specified time period, the other side is judged to be out of gear.

In one embodiment, the control instructions further comprise a heartbeat command. Referring to fig. 4, step 600 specifically includes:

step 601: and receiving a heartbeat command sent by the solar power supply terminal in a preset heartbeat period.

Step 602: and in a preset time, if the heartbeat command is received, generating a response to the heartbeat command according to the heartbeat command, sending the response to the solar power supply terminal, and receiving and supplying power.

In an embodiment, referring to fig. 5, the solar power supply control method for an external power consumption device further includes:

step 700: and judging whether a control instruction of the solar power supply terminal is received or not within a preset time, and if not, sending the authentication request to the solar power supply terminal.

It can be understood that the 485 bus belongs to a structure with one master and multiple slaves, in order to avoid conflicts, communication is initiated from the solar power terminal and the external electric device responds in most cases, but the first power-on authentication process of the external electric device is initiated by the external electric device, and if a plurality of external electric devices are connected to the 485 bus at this time, communication conflicts may occur. The 485 bus itself does not provide a collision arbitration mechanism, so the following scheme needs to be adopted to reduce the possibility of collision: the external electric equipment firstly judges that the solar power supply terminal does not send any data (the read data line is in an idle state) at the moment, initiates an authentication command at the moment, randomly delays for 1-10 seconds if no response of the solar power supply terminal is received after a period of time is out, and initiates authentication again until the equipment authentication is successful.

In an embodiment, referring to fig. 6, the solar power supply control method for an external electric device further includes:

step 800: when the external electric equipment is powered on for the first time, the legality authentication of the solar power supply terminal is initiated.

Specifically, referring to fig. 7, step 800 includes:

step 801: the external electric equipment randomly generates a challenge character, and sends the equipment information of the external electric equipment in a plaintext format and the challenge character to the solar electric terminal.

Preferably, the external electric equipment and the solar electric terminal are preset with the same encryption algorithm and a corresponding key (such as an AES128 algorithm), the challenge character is 16 bytes, and the equipment information may be an equipment type, an EUID identifier, and the like.

Step 802: and the solar power supply terminal receives the challenge character, encrypts the challenge character and sends an encryption result to the external electric equipment.

It is understood that step 802 is the response of the solar power terminal to the challenge character sent by the external consumer.

Step 803: and the external electric equipment receives the decryption result, decrypts the decryption result and compares the decryption result with the challenge character.

It can be understood that when the decryption result is the same as the challenge character, the authentication is successful, and the authentication is failed; after the authentication is successful, the solar power supply terminal marks the external electric equipment as the online external electric equipment, and can issue heartbeat and communication commands.

From the above description, the solar power supply control method provided by the invention establishes a communication mechanism between the solar power supply terminal and the external electric equipment through the 485 bus, and the 485 bus is a differential signal, so that the transmission distance is long, the anti-interference capability is strong, and the bidirectional communication is supported. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding and matched solar power supply terminal, so that the consistency of the solar power supply terminal and the external electric equipment is ensured. And then, identifying the type of the external electric equipment through the MCU chip identification number, and finally sending a control command to the external electric equipment according to the authentication request of the external electric equipment and the type of the external electric equipment. It can be understood that the method can prevent the defaulting user from continuously using the solar power supply terminal and the accessories thereof, thereby ensuring that the user pays the fee on time.

To further explain the present solution, the present invention provides a specific application example of the solar power supply control method, and the specific application example specifically includes the following contents, see fig. 8 and 9.

In fig. 9, in the solar power supply system, the external power consumption devices may be televisions, refrigerators, fans, and other household appliances, and the devices communicate with the solar power supply terminal through a 485 bus. The server side issues a control command to the solar power supply terminal through the Boss system and the short message gateway, the solar power supply terminal analyzes the control command and then sends the control command to the external electric equipment, and similarly, the solar power supply terminal can also feed user data back to the server side so as to facilitate analysis of technicians.

S0: the solar power supply terminal is communicated with external electric equipment through a 485 bus.

It can be understood that the technical effect achieved by step S0 is: the solar power supply terminal can issue commands to the online external electric equipment, collect data or control functions and the like.

S1: and the external electric equipment sends an authentication request.

It can be understood that the technical effect achieved by step S1 is: the solar power supply terminal can rapidly identify the state of the external electric equipment and control the power supply state of the external electric equipment, so that the defaulting user is prevented from continuously using the solar power supply terminal and accessories thereof, and the user is guaranteed to continuously pay.

Furthermore, the external electric equipment in the embodiment is mainly divided into two types, one type is equipment without an MCU, such as an electric lamp, and the equipment needs to integrate a specific communication module, the communication module has a 485 communication function and a control function, and a proprietary 485 communication protocol is integrated inside the communication module; the equipment can realize the staged control after integrating the module, namely, the power supply to the user is stopped when the user is not consuming time; and some customization requirements can be realized, such as adjusting the color temperature and brightness of the lamp light through a remote controller.

The other type is equipment with an MCU (microprogrammed control Unit), such as a television, which can integrate a specific communication library, wherein the communication library is a 485 bus-based equipment control communication protocol library file and is suitable for various systems, such as Linux, Android and the like; the device can realize the stage control function and the device control function after integrating the library file, when the user is defaulting or is connected with a non-corresponding solar power supply terminal for use, the video output is forbidden, and various information such as fee payment information can be displayed on the television to prompt the user to pay the fee.

Referring to fig. 10, in steps S0 and S1, the communication timing is as follows

Solar power supply terminal timing description:

step 1: powering on the solar power supply terminal, initializing software and hardware, and skipping to the step 2;

step 2: the solar power supply terminal waits for the external electric equipment to send an authentication command;

and step 3: the solar power supply terminal receives an authentication command sent by the external electric equipment, generates a response, marks the external electric equipment as the online external electric equipment, and enters step 4;

and 4, step 4: the solar power supply terminal issues heartbeat commands and control commands to the online external electric equipment, the two heartbeats do not receive the response of the external electric equipment, the external electric equipment is marked to be offline external electric equipment, and the heartbeat and the control commands are not issued any more.

External electric equipment timing description:

step 1: powering on external electric equipment, initializing software and hardware, and skipping to the step 2;

step 2: the external electric equipment sends an authentication command to the solar power supply terminal, and the step 3 is skipped;

and step 3: the external electric equipment waits for the response of the solar power supply terminal overtime, if the response of the solar power supply terminal is successful and the verification of the challenge word is successful, the step 4 is skipped, otherwise, the random delay is carried out for 1-10 seconds, and the step 2 is skipped;

and 4, step 4: the external power utilization equipment marks that the local machine is the online external power utilization equipment, equipment power supply is started (the solar television starts video output), and the step 5 is skipped;

and 5: and (3) the external electric equipment does not receive the heartbeat of the solar power supply terminal in two heartbeat periods, the local machine is marked as the off-line external electric equipment, the power supply of the equipment is turned off (the video output of the solar television is turned off), the off-line external electric equipment does not respond to the heartbeat and the control command of the solar power supply terminal any more, and the step 2 is skipped.

S2: the external electric equipment randomly generates a challenge character, and sends the equipment information of the external electric equipment in a plaintext format and the challenge character to the solar electric terminal.

S3: and the solar power supply terminal receives the challenge character, encrypts the challenge character and sends an encryption result to the external electric equipment.

S4: and the external electric equipment receives the decryption result, decrypts the decryption result and compares the decryption result with the challenge character.

It can be understood that when the decryption result is the same as the challenge character, the authentication is successful, and the authentication is failed; after the authentication is successful, the solar power supply terminal marks the external electric equipment as the online external electric equipment, can issue heartbeat and communication commands, and has the following beneficial effects that the steps from S2 to S4 can be realized: external electric equipment can only be connected to the solar power supply terminal that corresponds and form a complete set and just can normally work, avoids the user to insert the wrong power of specification to the solar energy accessory, causes accessory damage and conflagration danger.

From the above description, the solar power supply control method provided by the invention establishes a communication mechanism between the solar power supply terminal and the external electric equipment through the 485 bus, and the 485 bus is a differential signal, so that the transmission distance is long, the anti-interference capability is strong, and the bidirectional communication is supported. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding and matched solar power supply terminal, so that the consistency of the solar power supply terminal and the external electric equipment is ensured. And then, identifying the type of the external electric equipment through the MCU chip identification number, and finally sending a control command to the external electric equipment according to the authentication request of the external electric equipment and the type of the external electric equipment. It can be understood that the method can prevent the defaulting user from continuously using the solar power supply terminal and the accessories thereof, thereby ensuring that the user pays the fee on time.

Based on the same inventive concept, the embodiment of the present application further provides a solar power supply control device, which can be used to implement the methods described in the above embodiments, such as the following embodiments. Because the principle of the solar power supply control device for solving the problems is similar to that of the solar power supply control method, the implementation of the solar power supply control device can be realized by the solar power supply control method, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

An embodiment of the present invention provides a specific implementation manner of a solar power supply control device that is capable of implementing a solar power supply control method and is suitable for a solar power supply terminal, and referring to fig. 11, the solar power supply control device specifically includes the following contents:

the request receiving unit 10 is used for receiving an authentication request of the external electric equipment and an MCU chip identification number through a 485 bus;

the type identification unit 20 is used for identifying the type of the external electric equipment according to the MCU chip identification number;

the execution power supply unit 30 is configured to send a control command to the external power consumption device according to the authentication request and the type, so as to execute a power supply operation on the external power consumption device; and the control command comprises an identification number EUID corresponding to the external electric equipment.

Preferably, the control instructions further comprise a heartbeat command; referring to fig. 12, the execution power supply unit 30 includes:

a heartbeat command sending module 301, configured to send a heartbeat command to the external electrical device in a preset heartbeat period;

and the execution power supply module 302 is configured to, within a first preset time, if the response of the external electrical equipment to the heartbeat command is received, power the external electrical equipment and continuously send the heartbeat command to the external electrical equipment.

The embodiment of the present invention further provides a specific implementation manner of a solar power supply control device, which is capable of implementing a solar power supply control method and is suitable for an external power consumption device, and with reference to fig. 13, the specific implementation manner specifically includes the following contents:

the request sending unit 50 is used for sending an authentication request and an MCU chip identification number to the solar power supply terminal through a 485 bus so that the solar power supply terminal can identify the type of external electric equipment based on the MCU chip identification number;

a receiving power supply unit 60, configured to receive a control command fed back by the solar power terminal based on the type of the external electrical device and the authentication request, so as to receive power supply; the control command comprises an identification number EUID corresponding to the external electric equipment.

In one embodiment, the control instructions further comprise a heartbeat command; referring to fig. 14, the receiving power supply unit 60 includes:

a heartbeat command receiving module 601, configured to receive a heartbeat command sent by the solar power supply terminal in a preset heartbeat period;

and the power receiving and supplying module 602 is configured to, within a second preset time, generate a response to the heartbeat command according to the heartbeat command if the heartbeat command is received, send the response to the solar power supply terminal, and receive and supply power.

In one embodiment, referring to fig. 15, the solar power supply control device further includes:

and the judging unit 70 is configured to judge whether a control instruction of the solar power terminal is received within a third preset time, and if not, send the authentication request to the solar power terminal.

From the above description, the solar power supply control device provided by the invention establishes a communication mechanism between the solar power supply terminal and the external electric equipment through the 485 bus, and the 485 bus is a differential signal, so that the transmission distance is long, the anti-interference capability is strong, and the bidirectional communication is supported. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding and matched solar power supply terminal, so that the consistency of the solar power supply terminal and the external electric equipment is ensured. And then, identifying the type of the external electric equipment through the MCU chip identification number, and finally sending a control command to the external electric equipment according to the authentication request of the external electric equipment and the type of the external electric equipment. It can be understood that the method can prevent the defaulting user from continuously using the solar power supply terminal and the accessories thereof, thereby ensuring that the user pays the fee on time.

An embodiment of the present application further provides a specific implementation manner of an electronic device, which is capable of implementing all steps in the solar power supply control method in the foregoing embodiment, and referring to fig. 16, the electronic device specifically includes the following contents:

a processor (processor)1201, a memory (memory)1202, a communication interface 1203, and a bus 1204;

the processor 1201, the memory 1202 and the communication interface 1203 complete communication with each other through the bus 1204; the communication interface 1203 is configured to implement information transmission between related devices, such as a server-side device, a power supply device, and a client device.

The processor 1201 is configured to call the computer program in the memory 1202, and the processor executes the computer program to implement all the steps in the solar power supply control method in the above embodiments, for example, the processor executes the computer program to implement the following steps:

step 100: and receiving an authentication request and an MCU chip identification number of the external electric equipment through the 485 bus.

Step 200: and identifying the type of the external electric equipment according to the MCU chip identification number.

Step 300: sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment.

As can be seen from the above description, in the electronic device in the embodiment of the present application, the communication mechanism between the solar power source terminal and the external electric device is established through the 485 bus, and the 485 bus is a differential signal, so that the transmission distance is long, the anti-interference capability is strong, and the bidirectional communication is supported. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding and matched solar power supply terminal, so that the consistency of the solar power supply terminal and the external electric equipment is ensured. And then, identifying the type of the external electric equipment through the MCU chip identification number, and finally sending a control command to the external electric equipment according to the authentication request of the external electric equipment and the type of the external electric equipment. It can be understood that the method can prevent the defaulting user from continuously using the solar power supply terminal and the accessories thereof, thereby ensuring that the user pays the fee on time.

Embodiments of the present application further provide a computer-readable storage medium capable of implementing all steps in the solar power supply control method in the foregoing embodiments, where the computer-readable storage medium stores thereon a computer program, and the computer program implements all steps of the solar power supply control method in the foregoing embodiments when executed by a processor, for example, the processor implements the following steps when executing the computer program:

step 100: and receiving an authentication request and an MCU chip identification number of the external electric equipment through the 485 bus.

Step 200: and identifying the type of the external electric equipment according to the MCU chip identification number.

Step 300: sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment.

As can be seen from the above description, in the computer-readable storage medium in the embodiment of the present application, the communication mechanism between the solar power terminal and the external electrical device is established through the 485 bus, and the 485 bus is a differential signal, has a long transmission distance and a strong anti-interference capability, and supports bidirectional communication. The bidirectional communication enables the external electric equipment to be normally used only when being connected to the corresponding and matched solar power supply terminal, so that the consistency of the solar power supply terminal and the external electric equipment is ensured. And then, identifying the type of the external electric equipment through the MCU chip identification number, and finally sending a control command to the external electric equipment according to the authentication request of the external electric equipment and the type of the external electric equipment. It can be understood that the method can prevent the defaulting user from continuously using the solar power supply terminal and the accessories thereof, thereby ensuring that the user pays the fee on time.

The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the hardware + program class embodiment, since it is substantially similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.

The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

Although the present application provides method steps as in an embodiment or a flowchart, more or fewer steps may be included based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A solar power supply control method is characterized by comprising the following steps:
receiving an authentication request and an MCU chip identification number of external electric equipment through a 485 bus;
identifying the type of the external electric equipment according to the MCU chip identification number;
sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment.
2. The solar power control method of claim 1, wherein the control instructions further comprise a heartbeat command; the sending of a control command to the external electric equipment according to the authentication request and the type to execute a power supply operation on the external electric equipment includes:
sending the heartbeat command to the external power utilization equipment within a preset heartbeat period;
and in a first preset time, if the response of the external electric equipment to the heartbeat command is received, the external electric equipment is powered and continuously sends the heartbeat command to the external electric equipment.
3. A solar power supply control method is characterized by comprising the following steps:
sending an authentication request and an MCU chip identification number to a solar power supply terminal through a 485 bus so that the solar power supply terminal can identify the type of external electric equipment based on the MCU chip identification number;
receiving a control command fed back by the solar power supply terminal based on the type of the external electric equipment and the authentication request so as to receive power supply; the control command comprises an identification number EUID corresponding to the external electric equipment.
4. The solar power control method of claim 3, wherein the control instructions further comprise a heartbeat command; the receiving of the control command fed back by the solar power supply terminal based on the type of the external electric equipment and the authentication request to receive power supply comprises:
receiving a heartbeat command sent by the solar power supply terminal in a preset heartbeat period;
and in a second preset time, if the heartbeat command is received, generating a response to the heartbeat command according to the heartbeat command, sending the response to the solar power supply terminal, and receiving and supplying power.
5. The solar power supply control method of claim 3, further comprising:
and judging whether a control instruction of the solar power supply terminal is received or not within a third preset time, and if not, sending the authentication request to the solar power supply terminal.
6. A solar powered control device, comprising:
the request receiving unit is used for receiving an authentication request of the external electric equipment and the MCU chip identification number through the 485 bus;
the type identification unit is used for identifying the type of the external electric equipment according to the MCU chip identification number;
the execution power supply unit is used for sending a control command to the external electric equipment according to the authentication request and the type so as to execute power supply operation on the external electric equipment; and the control command comprises an identification number EUID corresponding to the external electric equipment.
7. The solar powered control device of claim 6 wherein the control instructions further comprise a heartbeat command; the execution power supply unit includes:
the heartbeat command sending module is used for sending a heartbeat command to the external electric equipment in a preset heartbeat period;
and the execution power supply module is used for supplying power to the external electric equipment and continuously sending the heartbeat command to the external electric equipment if receiving the response of the external electric equipment to the heartbeat command in first preset time.
8. A solar powered control device, comprising:
the request sending unit is used for sending an authentication request and an MCU chip identification number to the solar power supply terminal through a 485 bus so that the solar power supply terminal can identify the type of external electric equipment based on the MCU chip identification number;
the receiving power supply unit is used for receiving a control command fed back by the solar power supply terminal based on the type of the external electric equipment and the authentication request so as to receive power supply; the control command comprises an identification number EUID corresponding to the external electric equipment.
9. The solar powered control device of claim 8 wherein the control instructions further comprise a heartbeat command; the receiving power supply unit includes:
the heartbeat command receiving module is used for receiving a heartbeat command sent by the solar power supply terminal in a preset heartbeat period;
and the power supply receiving module is used for generating a response to the heartbeat command according to the heartbeat command if the heartbeat command is received within a second preset time, sending the response to the solar power supply terminal and receiving power supply.
10. The solar powered control device of claim 9, further comprising:
and the judging unit is used for judging whether a control instruction of the solar power supply terminal is received or not within a third preset time, and if not, sending the authentication request to the solar power supply terminal.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the solar power control method of any one of claims 1 to 5 are implemented when the program is executed by the processor.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the solar power supply control method according to any one of claims 1 to 5.
CN201910921819.4A 2019-09-27 2019-09-27 Solar power supply control method and device CN110658761A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910921819.4A CN110658761A (en) 2019-09-27 2019-09-27 Solar power supply control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910921819.4A CN110658761A (en) 2019-09-27 2019-09-27 Solar power supply control method and device

Publications (1)

Publication Number Publication Date
CN110658761A true CN110658761A (en) 2020-01-07

Family

ID=69039380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910921819.4A CN110658761A (en) 2019-09-27 2019-09-27 Solar power supply control method and device

Country Status (1)

Country Link
CN (1) CN110658761A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102648562A (en) * 2009-12-04 2012-08-22 恩德莱斯和豪瑟尔过程解决方案股份公司 Method for setting parameters of a field device power-supply module
CN203339721U (en) * 2013-01-25 2013-12-11 深圳市创益科技发展有限公司 Solar energy charger
CN105634106A (en) * 2016-01-29 2016-06-01 房辉祥 Solar folding charging device
CN207010287U (en) * 2017-06-19 2018-02-13 东莞博力威新能源有限公司 The charging cabinet of automobile starting battery
CN207184124U (en) * 2017-07-05 2018-04-03 哈尔滨理工大学 High-efficiency solar charger baby based on BQ24195 chips
CN207504624U (en) * 2017-11-17 2018-06-15 华北科技学院 A kind of solar photovoltaic powered power supply of high effective portable
KR101958941B1 (en) * 2018-11-27 2019-03-18 주식회사 나눔에너지 System and method of controlling solar photovoltaic generation on machine learning
CN109584456A (en) * 2018-11-21 2019-04-05 北京四达时代软件技术股份有限公司 A kind of solar power supply unit, system and monthly payment plan control method
CN110086204A (en) * 2019-05-29 2019-08-02 哈尔滨工业大学 A kind of electric power energy router interface plug and play implementation method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102648562A (en) * 2009-12-04 2012-08-22 恩德莱斯和豪瑟尔过程解决方案股份公司 Method for setting parameters of a field device power-supply module
CN203339721U (en) * 2013-01-25 2013-12-11 深圳市创益科技发展有限公司 Solar energy charger
CN105634106A (en) * 2016-01-29 2016-06-01 房辉祥 Solar folding charging device
CN207010287U (en) * 2017-06-19 2018-02-13 东莞博力威新能源有限公司 The charging cabinet of automobile starting battery
CN207184124U (en) * 2017-07-05 2018-04-03 哈尔滨理工大学 High-efficiency solar charger baby based on BQ24195 chips
CN207504624U (en) * 2017-11-17 2018-06-15 华北科技学院 A kind of solar photovoltaic powered power supply of high effective portable
CN109584456A (en) * 2018-11-21 2019-04-05 北京四达时代软件技术股份有限公司 A kind of solar power supply unit, system and monthly payment plan control method
KR101958941B1 (en) * 2018-11-27 2019-03-18 주식회사 나눔에너지 System and method of controlling solar photovoltaic generation on machine learning
CN110086204A (en) * 2019-05-29 2019-08-02 哈尔滨工业大学 A kind of electric power energy router interface plug and play implementation method

Similar Documents

Publication Publication Date Title
CN106062734B (en) The natural language of secondary device controls
CN103414741B (en) A kind of method and system of remote upgrade PLC
RU2617330C2 (en) Method and for scenario mode recommendation device for smart devices
US9813543B2 (en) System and method for provision of appliance control functionality to a smart device
US8427006B2 (en) Device for disconnecting at least one appliance from the electrical mains, which provides at least one override operating mode, a configurable device, system and configuration method
US20140215457A1 (en) Downloading and launching an app on a second device from a first device
US7219243B2 (en) Home network power saving device and method for the same
US20150188855A1 (en) Systems and Methods for Instant Messaging
CN101035388B (en) Uninterruptible power supply device, uninterruptible power supply system and close method
US20130124882A1 (en) Smart Power Sockets, Boards, and Plugs
US20080089338A1 (en) Methods for remotely creating and managing virtual machines
US20120200400A1 (en) System and method for configuring the remote control functionality of a portable device
US20140087661A1 (en) Home appliance using terminal and operating method thereof
JP4805281B2 (en) System and method for device management scheduling
US20150078753A1 (en) Remote control system and method
CN107025906A (en) The method and product and message processing device in the cycle of extended voice identification
EP2840455B1 (en) Method, apparatus and system for intelligently controlling device, and plug-and-play device
US20130271672A1 (en) Television manipulation method, handheld device, television, and television manipulation system
CN101371240B (en) Fast display initialization and light up
CN101727156B (en) Starting-up time sequence control device of computer and control method thereof
CN104272868A (en) Telehealth wireless communication hub device and service platform system
US20110230236A1 (en) Integrated System for Remote Monitoring Home Appliances by Cell Phone
US9984244B2 (en) Controller, information processing apparatus, and recording medium
US8065025B2 (en) Configuration of a frequency converter
CN105573955B (en) Multi-protocols method for managing system and system and computer-readable media

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination