| Facing the increasingly tense of global energy, the world attaches great importance to energy-saving technologies. Among them, building energy efficiency becomes a current hot issue of common concern. At present, the studies of building energy-saving technology mostly locate in the selection of building materials and equipment changing of the energy consumption system in the building. However, the situation how much energy is truly used effectively often is ignored. Considering this, the thesis points an energy efficiency theory, divides the building energy efficiency situation into two parts: energy transmitting efficiency and energy using efficiency, uses this theory to realize the measure of energy. According to the result achieved by analyzing and evaluating the building energy, we get a guiding advice and execution method, directing us to manage energy in order to realize the goal of energy-saving.The thesis mainly introduces a method of measuring the building energy using situation of HVAC and illumination system based on embedded technology. This system uses Microchip's PIC18F series embedded microcontroller as the hardware platform and real-time operating system as the software design method.According to the difference of situation of energy using in the building, we select several typical areas and put energy measuring sensors and detecting sensors in these areas, sample kinds of data such as temperature, light, detecting alarm numbers and get the energy using situation by dealing with data. As the data transmission is concerned, we choose Ethernet combining 485-bus to realize data transmission. This method not only makes the installation of transmission equipments in different buildings very convenient, but also insures data transmission reliable.On the side of software design, we choose RTOS instead of traditional software programming method. According RTOS, the system is divided into several different tasks and designed separately. Using message mechanism, the system can be switched flexible between every task. The thesis mainly introduces the way how to use RTOS to divide a system into several tasks and emphasizes the design technique of data transmission. In the help of RTOS, the programming becomes very convenient, the system design is simple, and the efficiency of cooperation is highly advanced.Finally, according the design, hardware and software of the system are developed. Then the system is tested to prove that the theory is feasible. And also, for the problems appeared in the period of test, the system is modified and realized the goal as most as possible. |