CN110995778A - Heat pump management system based on Internet of things - Google Patents

Heat pump management system based on Internet of things Download PDF

Info

Publication number
CN110995778A
CN110995778A CN201911020157.XA CN201911020157A CN110995778A CN 110995778 A CN110995778 A CN 110995778A CN 201911020157 A CN201911020157 A CN 201911020157A CN 110995778 A CN110995778 A CN 110995778A
Authority
CN
China
Prior art keywords
heat pump
server
control panel
connection
communication
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911020157.XA
Other languages
Chinese (zh)
Inventor
余明
王源
余子依
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xianning Xiangtian Energy Holding Group Co Ltd
Original Assignee
Xianning Xiangtian Energy Holding Group Co Ltd
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 Xianning Xiangtian Energy Holding Group Co Ltd filed Critical Xianning Xiangtian Energy Holding Group Co Ltd
Priority to CN201911020157.XA priority Critical patent/CN110995778A/en
Publication of CN110995778A publication Critical patent/CN110995778A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F25REFRIGERATION OR COOLING; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS; MANUFACTURE OR STORAGE OF ICE; LIQUEFACTION SOLIDIFICATION OF GASES
    • F25BREFRIGERATION MACHINES, PLANTS OR SYSTEMS; COMBINED HEATING AND REFRIGERATION SYSTEMS; HEAT PUMP SYSTEMS
    • F25B49/00Arrangement or mounting of control or safety devices
    • F25B49/02Arrangement or mounting of control or safety devices for compression type machines, plants or systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Heat-Pump Type And Storage Water Heaters (AREA)

Abstract

The invention provides a heat pump management system based on the Internet of things, and belongs to the technical field of heat pump remote control. The management system comprises a heat pump control panel, a mobile phone APP and a server; the heat pump control board can acquire data of a single heat pump and can send an operation instruction to the heat pump; the heat pump control panel includes power module, execution module, information acquisition module, CPU, the communication board, touch-sensitive screen and wiFi module, CPU links to each other with power module, CPU passes through the fan of execution unit control heat pump, the cross valve, the compressor, the electricity is assisted hot, increase the enthalpy valve, bent axle and expansion valve, each sensor passes through information acquisition unit in the heat pump and delivers for CPU, link to each other through 485 communication modes between CPU and the communication board, the touch-sensitive screen links to each other with the communication board, through wiFi module intercommunication between cell-phone APP and the communication board, server and cell-phone APP intercommunication, through HTTP POST agreement communication between server and the wiFi module. The invention has the advantages of greatly saving management cost and the like.

Description

Heat pump management system based on Internet of things
Technical Field
The invention belongs to the technical field of remote control of heat pumps, and relates to a heat pump management system based on the Internet of things.
Background
The heat pump equipment mainly comprises a compressor, a condenser, an expansion valve and an evaporator.
The compressor is used for compressing the refrigerant to change the normal temperature and normal pressure refrigerant into high temperature and high pressure; the condenser is used for exchanging heat between a high-temperature high-pressure refrigerant and water to change the high-temperature high-pressure refrigerant into a normal-temperature high-pressure refrigerant; the expansion valve is used for changing the normal-temperature high-pressure refrigerant into a low-temperature normal-pressure refrigerant; the evaporator is used for absorbing air heat and changing the low-temperature normal-pressure refrigerant into the normal-temperature normal-pressure refrigerant, so that circulation is realized.
The heat pump is used as new energy supply equipment and is in a middle development stage in the whole country and all over the world, the principle technology is mature, meanwhile, the heat pump has the advantages of energy conservation, environmental protection and the like compared with the traditional heat exchange equipment such as an air conditioner, but in the actual popularization and use process of the heat pump, the reliability and the heating performance of the system are influenced in the low-temperature environment, and the popularization and application of the air energy heat pump are limited.
In order to enable a client and a manufacturer to master the working process of a heat pump in real time and provide a feedback way for the manufacturer to cause problems in the use process of the heat pump, realize unified monitoring of all sold heat pumps by the manufacturer, real-time communication between the manufacturer and the client, guidance of the manufacturer on the maintenance and repair technology of the heat pump purchased by the client and the like, the data feedback and data sharing are needed to be used as the basis, if the real-time feedback of the heat pump between the manufacturer and a buyer can be better realized and accurate communication between the manufacturer and the buyer is realized, great improvements are provided for the use safety, the use cost, the after-sale service cost and the like of the heat pump of the manufacturer and the client, meanwhile, the method has a positive effect on the popularization and the use of the heat pump in a larger range and accords with the policy trend of 'coal to electricity change' advocated by the state.
Disclosure of Invention
The invention aims to provide a heat pump management system based on the Internet of things, aiming at the problems in the prior art, and the technical problem to be solved by the invention is to provide a simple communication mode among a heat pump, a mobile phone APP and a server.
The purpose of the invention can be realized by the following technical scheme: a heat pump management system based on the Internet of things is characterized in that the management system collects heat pump running state data obtained by a sensor through a heat pump control panel and uploads the data to a mobile phone APP and a server, and the server analyzes the running state information;
the heat pump control board can simultaneously acquire data of a plurality of heat pumps and can send an operation instruction to the heat pumps; communication between heat pump control panel, cell-phone APP and the server:
the heat pump control board is used as an HTTP client, is connected with the server through an HTTP protocol, updates the heat pump state information to the server end, and updates the heat pump state information once every 30 minutes;
when the mobile phone APP and the heat pump control board are in the same local area network, the mobile phone APP is used as a TCP client, the heat pump control board is used as a TCP server, and the APP sends an operation control command, a request state information and other instructions to the heat pump control board through a TCP protocol;
when the mobile phone APP and the heat pump control board are not in the same local area network, the mobile phone APP is used as an HTTP client, connection is established with the server through an HTTP protocol, and the latest heat pump state information is obtained from the server;
hardware circuit module:
the heat pump control panel includes power module, execution module, information acquisition module, CPU, the communication board, touch-sensitive screen and wiFi module, CPU links to each other with power module, CPU passes through the fan of execution unit control heat pump, the cross valve, the compressor, the electricity is assisted hot, increase the enthalpy valve, bent axle and expansion valve, each sensor passes through information acquisition unit in the heat pump and delivers for CPU, link to each other through 485 communication modes between CPU and the communication board, the touch-sensitive screen links to each other with the communication board, through wiFi module intercommunication between cell-phone APP and the communication board, server and cell-phone APP intercommunication, through HTTP POST agreement communication between server and the wiFi module.
Selecting a data communication mode:
on the premise of realizing control signal transmission, there are two main solutions:
1. and the server and the heat pump control panel are connected in a long way. Simulating the case of long TCP connections: the client initiates connection to the server, the server receives the connection of the client, the client and the server establish connection, after the client and the server complete one request, the connection between the client and the server is not actively closed, and the subsequent read-write operation can continuously use the connection. Each TCP connection needs three-step handshake, each operation is not disconnected after the operation is finished, a data packet is directly sent during next processing, TCP connection does not need to be established, long connection is mostly used for communication with frequent operation and point-to-point, and the number of connections cannot be too many. For a specific heat pump project, if a long connection mode is adopted, a webpage end can realize real-time control of a heat pump control panel, but one server only supports nearly 200 heat pumps for long connection, and a series of small server base stations need to be installed in a nationwide range to control all the heat pumps, so that the deployment and maintenance costs are high.
2. And the server and the heat pump control panel are in short connection. When cell-phone APP and heat pump control panel are in same LAN, the two-dimensional code that the scanning MAC formed obtains control panel intranet IP, establishes the connection with it through the TCP agreement and comes control heat pump, promptly: the client initiates a connection request to the server, the server receives the request, and then the two parties establish connection. The client sends a message to the server, the server responds to the client, and then one request is completed; both sides can initiate the close operation wantonly at this time, and integrated WIFI module in the heat pump control panel does not rely on third party hardware, and stability and security are more controllable, when APP and control panel are in same LAN, can acquire control panel intranet IP through the APP scanning, then control the heat pump through TCP rather than establishing the connection.
Short connections are generally used for http services of a WEB site, because long connections consume certain resources for a server side, while thousands or even billions of frequent short connections for connections of client sides like WEB sites save some resources, if long connections are used, and thousands or even thousands of users are used at the same time, if each user occupies one connection, the concurrency is large, but each user uses a short connection well without frequent operation.
The data acquisition mode is as follows:
the input of the heat pump control board is 9 pieces of temperature information and 1 piece of current information: the temperature of inlet water, the temperature of middle-cooling outlet water, the temperature of suction air, the temperature of environment, the temperature of exhaust air, the temperature of a coil pipe, the temperature of return water, the temperature of a water tank and the current of a compressor; the output is 2 expansion valve openings and 5 switch outputs: the system comprises a main expansion valve, an enthalpy-increasing expansion valve, a fan, a four-way valve, a compressor, an enthalpy-increasing valve, electric auxiliary heat and crankshaft heating.
A self-checking protection program of each sensor in the heat pump is arranged in the heat pump control panel;
an AD data acquisition program is arranged in the heat pump control panel;
setting an electronic expansion valve driving program;
the heat pump control panel is connected with the industrial control screen on the heat pump, and the communication mode of the industrial control screen is as follows:
the time serial port 1 and the baud rate 9600 used for industrial control screen communication correspond to I/O ports: TX-PA 9, RX-PA 10;
in the serial port 1 interrupt program, 7 pieces of data with 33 heads ee and ends are stored in buf1[ ], and a flag parameter ready is set to indicate that an instruction containing the data is received.
The industrial control screen mainly has the functions of displaying temperature information, setting a starting mode, setting real-time, setting parameters, inputting WIFI account passwords, starting and shutting down at regular time and displaying fault information.
Before the WIFI is enabled, the WIFI module is required to send an AT instruction to configure.
The real-time clock is arranged in the heat pump control panel, and can continue timing after the main board is powered off, so that the accuracy of time is guaranteed. The industrial control screen can modify the current time of the real-time clock of the mainboard.
The opening degree of the expansion valve is adjusted through a fuzzy control algorithm, so that the exhaust temperature is stabilized at a set value, overvoltage protection and compressor faults caused by overhigh exhaust temperature are avoided, and the heating effect of the heat pump is influenced by overlow exhaust temperature.
Drawings
Fig. 1 is an overall block diagram of the present management system.
Fig. 2 is a flow chart of the operation of the heat pump, the APP and the server in the management system.
Fig. 3 is a flowchart showing the execution of each function of the management system.
Fig. 4 is a schematic diagram of the connection structure of the hardware in the management system.
Fig. 5 is a self-test protection program block diagram.
Fig. 6 is a flowchart of the AD acquisition procedure.
Fig. 7 is a flowchart of electronic expansion valve driving.
Fig. 8 is an industrial control screen communication flow chart.
Fig. 9 is a flowchart illustrating the configuration of the WIFI module sending AT commands.
Fig. 10 is a program execution diagram of the fuzzy control algorithm.
Detailed Description
The following are specific embodiments of the present invention and are further described with reference to the drawings, but the present invention is not limited to these embodiments.
As shown in fig. 1, the management system includes a heat pump control board, a mobile phone APP and a server; the operation procedure of the three is shown in fig. 2.
The heat pump control board can acquire data of a single heat pump and can send an operation instruction to the heat pump;
communication between heat pump control panel, cell-phone APP and the server:
the heat pump control board is used as an HTTP client, is connected with the server through an HTTP protocol, updates the heat pump state information to the server end, and updates the heat pump state information once every 30 minutes;
when the mobile phone APP and the heat pump control board are in the same local area network, the mobile phone APP is used as a TCP client, the heat pump control board is used as a TCP server, and the APP sends an operation control command, a request state information and other instructions to the heat pump control board through a TCP protocol;
when the mobile phone APP and the heat pump control board are not in the same local area network, the mobile phone APP is used as an HTTP client, connection is established with the server through an HTTP protocol, and the latest heat pump state information is obtained from the server;
on the premise of realizing control signal transmission, there are two main solutions:
1. and the server and the heat pump control panel are connected in a long way. Simulating the case of long TCP connections: the client initiates connection to the server, the server receives the connection of the client, the client and the server establish connection, after the client and the server complete one request, the connection between the client and the server is not actively closed, and the subsequent read-write operation can continuously use the connection. Each TCP connection needs three-step handshake, each operation is not disconnected after the operation is finished, a data packet is directly sent during next processing, TCP connection does not need to be established, long connection is mostly used for communication with frequent operation and point-to-point, and the number of connections cannot be too many. For a specific heat pump project, if a long connection mode is adopted, a webpage end can realize real-time control of a heat pump control panel, but one server only supports nearly 200 heat pumps for long connection, and a series of small server base stations need to be installed in a nationwide range to control all the heat pumps, so that the deployment and maintenance costs are high.
2. And the server and the heat pump control panel are in short connection. When cell-phone APP and heat pump control panel are in same LAN, the two-dimensional code that the scanning MAC formed obtains control panel intranet IP, establishes the connection with it through the TCP agreement and comes control heat pump, promptly: the client initiates a connection request to the server, the server receives the request, and then the two parties establish connection. The client sends a message to the server, the server responds to the client, and then one request is completed; both sides can initiate the close operation wantonly at this time, and integrated WIFI module in the heat pump control panel does not rely on third party hardware, and stability and security are more controllable, when APP and control panel are in same LAN, can acquire control panel intranet IP through the APP scanning, then control the heat pump through TCP rather than establishing the connection.
As shown in fig. 4, the heat pump control panel includes power module, the execution module, the information acquisition module, CPU, the communication board, touch-sensitive screen and wiFi module, CPU links to each other with power module, CPU passes through the fan of execution unit control heat pump, the cross valve, the compressor, the electricity is assisted hot, increase the enthalpy valve, bent axle and expansion valve, each sensor passes through the information acquisition unit in the heat pump and delivers to CPU, link to each other through 485 communication mode between CPU and the communication board, the touch-sensitive screen links to each other with the communication board, through wiFi module intercommunication between cell-phone APP and the communication board, server and cell-phone APP intercommunication, through the communication of HTTP POST agreement between server and the wiFi module. The input of the mainboard is 9 pieces of temperature information and 1 piece of current information: water inlet temperature, middle cooling outlet temperature, air suction temperature, environment temperature, exhaust temperature, coil pipe temperature, return water temperature, water tank temperature and compressor current.
The output is 2 expansion valve openings and 5 switch outputs: the system comprises a main expansion valve, an enthalpy-increasing expansion valve, a fan, a four-way valve, a compressor, an enthalpy-increasing valve, electric auxiliary heat and crankshaft heating.
As shown in the program structure diagram 3, the program function of the heat pump controller mainly includes the following parts:
I/O initialization, self-checking protection, AD acquisition, electronic expansion valve driving, industrial control screen communication, WIFI communication, a real-time clock, calculation output and a fuzzy control algorithm;
now divide the function into
I/O initialization
The I/O port mainly comprises an AD acquisition port, an expansion valve output port and an opening light output port.
There are 10 AD collection mouths, do respectively:
PC 0-Water inflow temperature
PC 1-Medium Cooling temperature
PC 2-middle cold exit temperature
PC 3-temperature of intake air
PA 0-ambient temperature
PA 4-exhaust temperature
PC 4-coil temperature
PC 5-backwater temperature
PB 0-tank temperature
PB1 compressor Current
The electronic expansion valve has two, and control mode is similar four-phase eight claps step motor, 8 delivery outlets:
Figure BDA0002246950860000071
the switching value output port determines the switching states of a fan compressor and the like by controlling a relay switch through ULN 2003:
Figure BDA0002246950860000081
the self-checking protection program is shown in fig. 5, the self-checking protection function is to detect whether each sensor of the heat pump equipment works normally, and to perform alarm and shutdown protection according to specific conditions, and the self-checking program code is in check.
The self-check function is performed once in the main function, 7.5 s.
When the program is executed, whether the sensor fails or not is firstly detected, when the temperature value is out of-30-150, the sensor is considered to be failed, the failure parameter is set to be 1, and otherwise, the failure parameter is set to be 0.
The fault parameters correspond to sensors:
water inlet-error 1, medium cooling inlet-error 2, medium cooling outlet-error 3, air suction-error 4, environment-error 5, exhaust-error 6, coil pipe-error 7, water return-error 8, water tank-error 9 and current-error 10.
And a fault marking parameter lock _ ixx (data) is set to be 1, and after the fault signal is sent to the industrial control screen, the parameter is set to be 2, so that the fault signal is prevented from being repeatedly sent. When the temperature is set to 0 in the range, the fault is recovered after the fault, the fault recovery signal is sent through the judgment flag parameter, the sensor fault is set for 5 minutes without clearing the shutdown protection, error _ time is in TIM2, and 100ms is added once when the fault occurs.
And then detecting whether the high-pressure, low-pressure and water flow sensors have faults or not, and continuously detecting the fault state for three times after the faults occur, and triggering shutdown protection.
After either failure occurred and shutdown protection was entered, the failure was recovered for 2 minutes before restarting.
The AD acquisition program flow is shown in fig. 6:
AD acquisition program code is placed in adc.c,
void ADC _ GPIO _ configuration (void) is an initialization IO port function,
void SZ _ STM32_ ADC _ configuration (void) is to initialize the DMA function.
Collecting 10 times in each channel, and storing the collection structure in __ IO uint16_ t ADCConvertedValue [ N ] [ M ]; DMA is adopted for collection, and DMA buffer space DMA _ InitStructure. DMA _ BufferSize is M × N;
and summing the acquired results once every 0.5s in the mian, averaging, calculating to obtain the actual temperature, assigning to a temperature parameter, setting 0 in a summation function by using flag _ adc as a marking variable for avoiding repeated operation, and setting 1 in a TIM2 interruption function of timer.
Parameters correspond to:
water _ in-inlet temperature
mid _ in — cold exit temperature;
mid _ out-Medium Cold Outlet temperature
air int-inspiratory temperature
environment-ambient temperature
air _ out-exhaust temperature
coil-coil temperature
Water _ ou-return temperature
Water _ box-tank temperature
Current-compressor current
The driving flow of the electronic expansion valve is shown in fig. 7:
the driving mode of the electronic expansion valve is similar to a four-phase eight-beat stepping motor, and the electrifying mode is as follows: when the operation is started, the full energization is performed for 500 milliseconds in the phase at the time of the stop, and then a pulse is transmitted; after the end of the operation, the energization was performed for 500 milliseconds in the end phase, and then the energization was stopped.
The input voltage rules are as the following table, for convenient programming, the operation states are divided into 4 types, the operation states are controlled by a variable mode, when the mode is 1, the operation states are the starting state, and the stopped phase A is fully electrified for 500 ms; when mode is 2, the state is a reverse rotation state, and the opening degree of the electronic expansion valve is reduced; when mode is 3, the electronic expansion valve is in a positive rotation state, and the opening degree of the electronic expansion valve is increased; when mode is 1, the state is in a stopped state, and after the stopped a phase is fully energized for 500ms, all four phases are turned off.
STEP Phase A Phase B Phase c Phase d
8N+0 × × ×
8N+1 × ×
8N+2 × × ×
8N+3 × ×
8N+4 × × ×
8N+5 × ×
8N+6 × × ×
8N+7 × ×
X no power (output H), ○ power (output L)
N represents an integer.
In order to simulate the output voltage of the PWM for controlling the driving of the electronic expansion valve, the control output ports of the two expansion valves are respectively placed in the timer TIM3 and TIM5, the timer is interrupted for 1ms, and the operation is performed every 4s for 1 step, and 8 steps are a cycle.
The time serial port 1 and the baud rate 9600 used for industrial control screen communication correspond to I/O ports: TX-PA 9, RX-PA 10.
As shown in fig. 8, in the serial port 1 interrupt routine, 7 pieces of data with 33 heads ee and ends are stored in buf1[ ], and a flag parameter ready is set to indicate that an instruction containing data is received.
The industrial control screen mainly has the functions of displaying temperature information, setting a starting mode, setting real-time, setting parameters, inputting WIFI account passwords, starting and shutting down at regular time and displaying fault information.
The communication protocol (every time the main board returns data, 0XFF OXFF is added as the end, the industrial control screen can receive the response):
Figure BDA0002246950860000101
Figure BDA0002246950860000111
Figure BDA0002246950860000121
Figure BDA0002246950860000131
before WIFI is enabled, AT command is first sent to the WIFI module for configuration, and as shown in fig. 9,
the configuration steps are as follows:
Figure BDA0002246950860000132
in order to realize the transmission of the code, a subfunction atk _ rm04_ send _ cmd (u8 cmd, u8 ack, u16waittime) is defined, wherein cmd is a transmitted AT instruction, ack is an expected return instruction, waittime is waiting time, and if the return instruction is not received after the time, the return exception is judged.
To acquire the MAC address and the IP address, sub-functions void atk _ rm04_ get _ wanip (u8 ipbuf, u8 macbuf), void atk _ rm04_ get _ MAC (u8 ipbuf) are defined.
The communication protocol of the mainboard through WIFI and the mobile phone APP is as follows:
Figure BDA0002246950860000133
Figure BDA0002246950860000141
Figure BDA0002246950860000151
the main board sends an HTTP request to the server through WIFI:
the request contains a WIFI module MAC address, 9 pieces of temperature information, 1 piece of compressor current information, 14 pieces of fault information and the current moment.
The real-time clock can continue timing after the mainboard is powered off, so that the accuracy of time is ensured. The industrial control screen can modify the current time of the real-time clock of the mainboard.
RTC (real time clock) configuration program in rtc.c, the modification time is mainly used for the sub-function RTC _ Set (u16year, u8smon, u8sday, u8shour, u8smin, u8ssec), and the program is executed in the main function.
The sub-function void time (void) in usrat.c is the time data for receiving the industrial control screen modification.
u8RTC _ Get _ Week (u16year, u8month, u8day) is the time of Week obtained for calculation.
The RTC has the second function of making time reference for timing startup and shutdown, and a user can directly set the heat pump equipment to be turned on or off at any time on the day without counting the number of hours later.
The timing startup and shutdown program is placed in the computer
And (2) timing _ open (int shi, int fen and int tmode), timing to start, wherein tmode is a mode during starting, 1 is refrigeration, 2 is heating, 3 is defrosting, and 0 indicates that the industrial control screen is not started, and the switch button of the industrial control screen is controlled to change color.
And the timing switch is used for judging whether the timing shutdown is started or not by the tmode, and 0 represents that the timing shutdown is not started.
void timing _ reset (void), timing reset, current day 0: 0: and at the moment 0, all timing is cancelled and needs to be reset, so that the user is prevented from forgetting to set the timing, and accidents are avoided.
The program of the part is mainly used for judging the current state, and controlling the on-off states of a fan, a compressor, a four-way valve, an electric auxiliary heater, an enthalpy increasing valve and the like through a relay after an output result is obtained through calculation.
The calculation output part has several important parameters:
Figure BDA0002246950860000161
Figure BDA0002246950860000171
enter defrost condition (& &): a heating state; heating time is greater than 45; continuous heating time is more than 6; coil temperature < 1; environment < 13.
Exit from defrost condition (|): coil temperature > 23; the defrost time is > 9.
Electric auxiliary heating turn-on condition (& &): a heating state; the temperature of the water tank is less (the set temperature is + 5); ambient temperature <7
Turning off the electric auxiliary heating condition (|); a refrigeration state; water temperature > set temperature; a defrosting state; compressor shutdown
Enthalpy increasing valve opening condition (&); the ambient temperature is lower than the opening temperature of the enthalpy-increasing valve; working time is more than 1min
Closing the enthalpy-increasing valve condition (|); a refrigeration state; a defrosting state; the compressor is shut down; lower ring temperature (enthalpy increasing valve temperature +3)
The fuzzy control algorithm mainly adjusts the opening degree of the expansion valve, so that the exhaust temperature is stabilized at a set value, and overvoltage protection and compressor faults caused by overhigh exhaust temperature and the heating effect of the heat pump influenced by overlow exhaust temperature are avoided. The program execution flow is shown in fig. 10:
an input quantity error P language feature point, int PFF [4] ═ 0,150,250,350 }; for convenience of calculation, the temperature is amplified by ten times.
An input error change rate D linguistic feature point, int DFF [4] ═ 0,6,15,25 };
an output quantity U language feature point, int UFF [7] ═ 0,10,15,25,35,45,55 };
the membership function is a triangular function, the ambiguity resolution is a gravity center method, and four rules are taken for weighted average. The calculation period is 1 s.
The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.

Claims (6)

1. A heat pump management system based on the Internet of things is characterized in that the management system collects heat pump running state data obtained by a sensor through a heat pump control panel and uploads the data to a mobile phone APP and a server, and the server analyzes the running state information;
the heat pump control board can simultaneously acquire data of a plurality of heat pumps and can send an operation instruction to the heat pumps; communication between heat pump control panel, cell-phone APP and the server:
the heat pump control panel includes power module, execution module, information acquisition module, CPU, the communication board, touch-sensitive screen and wiFi module, CPU links to each other with power module, CPU passes through the fan of execution unit control heat pump, the cross valve, the compressor, the electricity is assisted hot, increase the enthalpy valve, bent axle and expansion valve, each sensor passes through information acquisition unit in the heat pump and delivers for CPU, link to each other through 485 communication modes between CPU and the communication board, the touch-sensitive screen links to each other with the communication board, through wiFi module intercommunication between cell-phone APP and the communication board, server and cell-phone APP intercommunication, through HTTP POST agreement communication between server and the wiFi module.
2. The heat pump management system based on the internet of things as claimed in claim 1, wherein the specific communication modes among the heat pump control board, the mobile phone APP and the server are as follows:
the server and the heat pump control panel are connected in a long way: simulating the case of long TCP connections: the client initiates connection to the server, the server receives the connection of the client, the client and the server establish connection, after the client and the server complete one request, the connection between the client and the server is not actively closed, and the subsequent read-write operation can continuously use the connection. Each TCP connection needs three-step handshake, each operation is not disconnected after the operation is finished, a data packet is directly sent during next processing, TCP connection does not need to be established, long connection is mostly used for communication with frequent operation and point-to-point, and the number of connections cannot be too many;
and the server and the heat pump control panel are in short connection. When cell-phone APP and heat pump control panel are in same LAN, the two-dimensional code that the scanning MAC formed obtains control panel intranet IP, establishes the connection with it through the TCP agreement and comes control heat pump, promptly: the client initiates a connection request to the server, the server receives the request, and then the two parties establish connection. The client sends a message to the server, the server responds to the client, and then one request is completed; both sides can initiate the close operation wantonly at this time, and integrated WIFI module in the heat pump control panel does not rely on third party hardware, and stability and security are more controllable, when APP and control panel are in same LAN, can acquire control panel intranet IP through the APP scanning, then control the heat pump through TCP rather than establishing the connection.
3. The heat pump management system based on the internet of things as claimed in claim 1 or2, wherein a self-checking protection program of each sensor in the heat pump is arranged in the heat pump control panel.
4. The Internet of things-based heat pump management system according to claim 1 or2, wherein an AD data acquisition program is arranged in the heat pump control board.
5. The internet of things-based heat pump management system according to claim 1 or2, wherein an electronic expansion valve driver is provided.
6. The heat pump management system based on the internet of things as claimed in claim 1 or2, wherein the opening of the expansion valve is adjusted through a fuzzy control algorithm, so that the exhaust temperature is stabilized at a set value, overvoltage protection and compressor failure caused by overhigh exhaust temperature are avoided, and the heating effect of the heat pump is prevented from being influenced by overlow exhaust temperature.
CN201911020157.XA 2019-10-25 2019-10-25 Heat pump management system based on Internet of things Pending CN110995778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911020157.XA CN110995778A (en) 2019-10-25 2019-10-25 Heat pump management system based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911020157.XA CN110995778A (en) 2019-10-25 2019-10-25 Heat pump management system based on Internet of things

Publications (1)

Publication Number Publication Date
CN110995778A true CN110995778A (en) 2020-04-10

Family

ID=70082257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911020157.XA Pending CN110995778A (en) 2019-10-25 2019-10-25 Heat pump management system based on Internet of things

Country Status (1)

Country Link
CN (1) CN110995778A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467310A (en) * 2021-07-07 2021-10-01 衢州市智能制造技术与装备研究院 Air energy heat pump control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102692076A (en) * 2012-06-13 2012-09-26 广东志高空调有限公司 Air source heat pump water heater with cloud function
CN206100173U (en) * 2016-08-16 2017-04-12 广东智科电子股份有限公司 Heat pump swimming pool machine of available cell -phone control
CN107490222A (en) * 2017-09-08 2017-12-19 深圳市智物联网络有限公司 The remote monitoring and administration method and Internet of Things management platform of a kind of heat pump
CN207849845U (en) * 2018-02-09 2018-09-11 佛山市汇生采电子有限公司 A kind of heat pump controller based on internet of things functional

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102692076A (en) * 2012-06-13 2012-09-26 广东志高空调有限公司 Air source heat pump water heater with cloud function
CN206100173U (en) * 2016-08-16 2017-04-12 广东智科电子股份有限公司 Heat pump swimming pool machine of available cell -phone control
CN107490222A (en) * 2017-09-08 2017-12-19 深圳市智物联网络有限公司 The remote monitoring and administration method and Internet of Things management platform of a kind of heat pump
CN207849845U (en) * 2018-02-09 2018-09-11 佛山市汇生采电子有限公司 A kind of heat pump controller based on internet of things functional

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113467310A (en) * 2021-07-07 2021-10-01 衢州市智能制造技术与装备研究院 Air energy heat pump control system

Similar Documents

Publication Publication Date Title
CN102705954B (en) Internet-based automatic fault repair and detection method of frequency-conversion air conditioner
CN104374052B (en) Energy-saving control method for central air conditioner and system based on neutral net
CN106839313B (en) The communication means and device of multi-online air-conditioning system
CN105605741A (en) Air conditioner dehumidification control method and air conditioner dehumidification control device
CN210921882U (en) Heat pump control system
CN113465121A (en) Remote monitoring system based on air conditioner of Internet of things and control method thereof
CN107023942B (en) Mobile air conditioner control method and device
CN110995778A (en) Heat pump management system based on Internet of things
CN109489219A (en) Photovoltaic household appliance control method and device, controller and photovoltaic air conditioner
CN114322202A (en) Fault self-diagnosis method and system based on cloud server
CN201615566U (en) Power-saving remote monitoring terminal for public air conditioners
CN104714531B (en) Solar energy heat pump system and its monitoring system and monitoring method, terminal device
WO2023115878A1 (en) Cloud server-based fault self-diagnosis method and system
CN109737565A (en) Method for controlling of operation for air conditioner indoor unit
CN105115030A (en) Intelligent room temperature control system and method
CN205191723U (en) Intelligence room temperature control system
CN107270475A (en) The autonomous dormancy control method of air-conditioner outdoor unit and device
CN108583212B (en) New energy automobile heat pump air conditioner components of a whole that can function independently control system
CN111023465A (en) Control method and device of air conditioner, air conditioner and readable storage medium
CN114992857A (en) Gas heating stove exhaust method, device, equipment and medium
CN108954717A (en) Control method, air conditioner and the computer readable storage medium of air conditioner
CN114576808A (en) Air optimization system and air optimization control terminal
CN108397865A (en) A kind of control method and device of the air-conditioning system of Applied Electrochemistry press
JP2004239537A (en) Control method of multiple room type air conditioner
CN113587376A (en) One-key code matching method and system for intelligent controller of air conditioner

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410