CN106448111A - Socket-based electric energy collection and environmental sensing node system - Google Patents

Socket-based electric energy collection and environmental sensing node system Download PDF

Info

Publication number
CN106448111A
CN106448111A CN201610958689.8A CN201610958689A CN106448111A CN 106448111 A CN106448111 A CN 106448111A CN 201610958689 A CN201610958689 A CN 201610958689A CN 106448111 A CN106448111 A CN 106448111A
Authority
CN
China
Prior art keywords
electric energy
sensing node
environment sensing
socket
module
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
CN201610958689.8A
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.)
Guiyang Power Supply Bureau Guizhou Power Grid Co ltd
Original Assignee
Guiyang Power Supply Bureau Guizhou Power Grid 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 Guiyang Power Supply Bureau Guizhou Power Grid Co ltd filed Critical Guiyang Power Supply Bureau Guizhou Power Grid Co ltd
Priority to CN201610958689.8A priority Critical patent/CN106448111A/en
Publication of CN106448111A publication Critical patent/CN106448111A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a socket-based electric energy collection and environmental sensing node system, comprising an electric energy collection and environment sensing node box body, a remote server and a user's electric load; the electric energy collection and environment sensing node box body is mounted to a mains line within an electric energy consumer scope; an electric energy collection and environment sensing node is connected to the remote server through Wi-Fi network based on socket manner; a circuit board is mounted in the electric energy collection and environment sensing node box body; the defects are overcame that a traditional user is unable to perform complete analysis on electricity consumption information, data basis is unable to be provided for a power supply department in electricity usage analysis and prediction, and convenience is unable to be provided in terms of electricity usage control, interaction between a power supply unit and users and the like.

Description

A kind of electric energy acquisition based on socket and environment sensing node system
Technical field
The present invention relates to a kind of electric energy acquisition and environment sensing node system, more particularly, to a kind of electric energy based on socket Collection and environment sensing node system, belong to electric energy quality monitoring field.
Background technology
Fast-developing with social economy, power demand continues to increase, and power supply and demand situation constant tension, electricity consumption Situation very severe.For this reason, according to China's national situation, power industry has formulated strong intelligent grid development plan.With intelligent electricity The development of net, for more preferable service user, it is desirable to provide more accurate and real-time electric energy energy consumption monitoring.Node design in kind Become socket type, complete the real-time monitoring to user side electric energy.System accuracy is high, good stability, is that user selects electricity consumption row For providing a favourable reference.
At present, pyroelectric monitor equipment often can only record total electricity consumption, can not grasp electrical equipment real-time electricity consumption situation. Traditional mode is the single-phase type electronic electric energy meter metering that most domestic family and enterprise install and use, but its display interface Little, information storage is also little, and disposal ability is limited, poor operability, can only read user's total electricity consumption monthly, user cannot The shortcomings of energy information is carried out with complete analysis it is impossible to provide the data foundation of electrical energy consumption analysis and prediction, no for power supply department Can control in electricity expenditure, the aspect such as interact of power supply unit and user provides and convenient uses it is impossible to meet growing society Electric demand.
Content of the invention
The technical problem to be solved in the present invention is to provide a kind of electric energy acquisition based on socket and environment sensing node system System, solving traditional mode using a kind of electric energy acquisition based on socket and environment sensing node system is most domestic man The single-phase type electronic electric energy meter metering that front yard and enterprise install and use, but its display interface is little, and information storage is also little, processes energy Power is limited, poor operability, can only read user's total electricity consumption monthly, and user cannot carry out complete analysis to energy information The shortcomings of it is impossible to for power supply department provide electrical energy consumption analysis with prediction data according to it is impossible to electricity expenditure control, power supply unit With user interact etc. aspect provide convenient it is impossible to meet the problem of growing society's electricity consumption demand.
The technical solution used in the present invention is a kind of electric energy acquisition based on socket and environment sensing node system, including Electric energy acquisition and environment sensing node diaphragm capsule body, remote server and user's electric load, described electric energy acquisition and environment Sensing node diaphragm capsule body is arranged on the line of power consumer within battery limit;Described electric energy acquisition and environment sensing node It is connected with remote server by wifi network based on socket mode;Circuit board is arranged on electric energy acquisition and environment sensing section Point diaphragm capsule is originally internal.
Described electric energy acquisition and environment sensing node diaphragm capsule shell are socket, electric energy acquisition and environment sensing node Diaphragm capsule shell also includes connecting the plug of civil power and the socket connecting user's electric load.
Described circuit board includes electric energy metering module, power module, radio receiving transmitting module and serial ports, and power module passes through City is electrically connected and is respectively electric energy metering module and wireless receiving and dispatching mould after conversion by electric energy acquisition and environment sensing node diaphragm capsule plug Block provides power supply;Radio receiving transmitting module and electric energy metering module are connected by serial port module.
Described radio receiving transmitting module is HF-A11.
Using technical scheme, only diaphragm capsule need to be inserted powered outlet, the power module in diaphragm capsule is just Civil power is converted into unidirectional current, is that electric energy metering module is powered, electric energy metering module be responsible for gathering the voltage of electrical appliance, electric current, Active power and four groups of data of power consumption, by the way of socket, by data, the wireless sending module in diaphragm capsule is sent to far Journey server end, you can realize the voltage to electricity consumption user, electric current, active power and four groups of data accurate acquisition of power consumption and reality When send, only need to pass through server end monitoring system can Real-time Collection user electricity consumption situation, and collect to all Information carries out comprehensive analysis.
Described electric energy acquisition and environment sensing node diaphragm capsule shell are socket, electric energy acquisition and environment sensing node Diaphragm capsule shell also includes connecting the plug of civil power and the socket connecting user's electric load, and this structure is easy to install, power taking and electricity consumption side Just, with user power utilization circuit rational deployment, use that is not only attractive in appearance but also not affecting the external electrical equipment of user.
Described circuit board includes electric energy metering module, power module, radio receiving transmitting module and serial ports, and power module passes through City is electrically connected and is respectively electric energy metering module and wireless receiving and dispatching mould after conversion by electric energy acquisition and environment sensing node diaphragm capsule plug Block provides power supply;Radio receiving transmitting module and electric energy metering module are connected by serial port module, and this connection can achieve data acquisition, electricity Source conversion, data transfer.
Described radio receiving transmitting module is HF-A11, and HF-A11 embedded WiFi module provides one kind UART/ ether The interface data such as net/GPIO go to the solution of WiFi interface.By HF-A11 module, traditional low side serial equipment or The equipment that MCU controls all can very easily access WiFi wireless network, thus realize internet of things controlling and management.
In sum, can be solved using a kind of electric energy acquisition based on socket and environment sensing node system traditional Mode is the single-phase type electronic electric energy meter metering that most domestic family and enterprise install and use, but its display interface is little, letter Breath amount of storage is also little, and disposal ability is limited, poor operability, can only read user's total electricity consumption monthly, and user cannot be to electricity Can information the shortcomings of carry out complete analysis it is impossible to for power supply department provide the data of electrical energy consumption analysis and prediction according to it is impossible to Electricity expenditure controls, power supply unit and user interact etc. aspect provide convenient it is impossible to meet growing society's electricity consumption need The problem asked.
Brief description
Fig. 1 is present system schematic diagram figure;
Fig. 2 is outward appearance front view of the present invention;
Fig. 3 is outside side view of the present invention.
Specific embodiment
Below invention is described further.
As shown in Figures 1 to 3, a kind of electric energy acquisition based on socket and environment sensing node system, including electric energy acquisition And environment sensing node diaphragm capsule body, remote server and user's electric load, electric energy acquisition and environment sensing node diaphragm capsule basis Body is arranged on the line of power consumer within battery limit;Electric energy acquisition and environment sensing node are passed through based on socket mode Wifi network is connected with remote server;Circuit board is arranged on electric energy acquisition and environment sensing node diaphragm capsule is originally internal.
Electric energy acquisition and environment sensing node diaphragm capsule shell are socket, outside electric energy acquisition and environment sensing node diaphragm capsule Shell also includes connecting the plug of civil power and the socket connecting user's electric load.
Circuit board includes electric energy metering module, power module, radio receiving transmitting module and serial ports, and power module is adopted by electric energy City is electrically connected and is respectively electric energy metering module and radio receiving transmitting module offer after conversion by collection and environment sensing node diaphragm capsule plug Power supply;Radio receiving transmitting module and electric energy metering module are connected by serial port module.
The diaphragm capsule of the present invention can adopt metal diaphragm capsule or plastics diaphragm capsule, and diaphragm capsule outward appearance can be square, alternatively circular and Other any profiles, the present embodiment adopts cabinet, and profile adopts square outer box.
Power module adopts 7805 circuit of three-terminal voltage-stabilizing integrated, exports direct current 5V, then through SP1117-3.3 three-terminal voltage-stabilizing Chip provides direct current 3.3V, because acquisition node is mainly towards indoor electrical appliance, so making socket pattern, due to AC to be used 220V/50HZ Alternating Current Power Supply.In hardware circuit, power module needs to export DC3.3V, DC5V.So installing one piece in diaphragm capsule Power module, responsible Power convert.
The design of metering module is the core of the system hardware circuit design it is desirable to ensure gathered data high precision, reliability Property is strong.The system adopts electric energy computation chip RN8209G, it be a can measure active power, active energy, and can be simultaneously The chip that there is provided current effective value, voltage effective value, line frequency, zero passage to interrupt etc., has had small volume, low cost concurrently simultaneously again Advantage, may be mounted in plastics diaphragm capsule, and plastics diaphragm capsule side can open a number of hole, for producing diaphragm capsule internal circuit Heat distribute it is ensured that diaphragm capsule internal circuit components and parts normal operation it is possible to improve service life.
RN8209G power consumption is very low, and representative value is 32mW.Powered using DC5V power supply, inside includes electric source monitoring circuit, When supply voltage is less than 4V ± 0.1V, chip is reset, the chip normal work when supply voltage is higher than 4.3V ± 0.1V.Interior When the effect of portion's power supply supervisory circuit is to ensure that electricity and power-off, the reliably working of chip.Therefore, in normal work, power supply Voltage pulsation should not exceed ± 0.3V.
RN8209G provides two-way electric current and a road voltage effective value measurement, including three road ADC, is respectively intended to phase line electricity Stream, neutral line current and voltage are sampled.Measurement error very little:Electric current and voltage are 400:In 1 dynamic range, virtual value error <0.5%, active energy and reactive energy error are 1500:In the range of 1<0.1%.
RN8209G is communicated with microcontroller using UART generic asynchronous serial mouth it is only necessary to both threads, and one sends (TX), one receives (RX).Support digital gain, phase place and offset correction.Active, reactive energy pulse respectively from PF, QF pin exports.
The serial ports of metering module is UART serial ports, computation chip can be carried out by UART serial ports using microcontroller Configuration and correction.UART interface is operated in and meets the from pattern of UART protocol, half duplex communication, 9 UART (containing even parity bit) On, frame structure comprises verification and byte.Its communication frame format is by CMD (command byte)+DATA (data byte)+CKSM (verification And byte) composition.Checksum algorithm is as follows:CheckSum[7:0]=~(CMD [7:0]+DATAn[7:0]......+DATA1 [7:0]).Chip configures baud rate by hardware pins B1 and B0, has four kinds of baud rates available, by being wirelessly transferred speed The considering of rate etc., the baud rate that the system selects selects 9600bps.
The electrical energy parameter of metering module collection, in alternating current circuit, in addition to P=UI, also response voltage, an electric current The cosine of phase contrast, i.e. powerfactorcosφ, RN8209 module provides the method for measurement as follows:
Current effective value
Each power frequency period inter-sync sampling number is taken to be N, then current effective value IdIt is calculated as follows:
In formula, i (k) is the instantaneous value of k moment electric current;K is sampling sequence number.
Voltage effective value
Each power frequency period inter-sync sampling number is taken to be N, then current effective value UdIt is calculated as follows:
In formula, u (k) is the instantaneous value of k moment electric current;K is sampling sequence number.
Active power
Using integral algorithm, active-power PdFor:
Can ensure that obtained electrical energy parameter can accurately be sampled.
Radio transmission device due to being related to requires comparison high, and wireless sending module of the present invention adopts HF-A11, HF-A11 Embedded WiFi module provides a kind of solution interface data such as UART/ Ethernet/GPIO being gone to WiFi interface.Logical Cross HF-A11 module, the equipment of traditional low side serial equipment or MCU control all can very easily access WiFi wireless network, Thus realize internet of things controlling and management.The embedded module internal of HF-A11 is integrated with WLAN MAC, and Base-Band Processing, before radio frequency The hardware such as end, software provides complete 802.11b/g/n WLAN protocol, ICP/IP protocol, the agreement such as configuration management.
Serial ports turns the wireless telecommunications that WiFi module achieves data.The external pin of HF-A11 has 14, main in this secondary design To use:GND、3.3v、TX、RX、nLink、nReload.Wherein nLink, nReload connect 3.3v high level, just make chip Often work.TX, RX meet RX, TX of metering module respectively, realize the read-write of serial data.
Wireless module needs to carry out necessary configuration in initialization.Use for the first time, module acquiescence is in AP (access Point) pattern, computer connects wireless module by WiFi, inputs 10.10.100.254 in a browser afterwards, opens wireless The configuration page (default username and password are admin) of module.In the present invention, need to allow wireless module to be operated in STA (station) pattern.WAP setting can change network name SSID.Wireless terminal is arranged, and selects wirelessly will connect The network name (i.e. router to be connected) entering, selects an AP in drop-down list, and inputs password.In serial ports and network In agreement setting, baud rate selects 9600, data bit 8, check bit Even, stop position 1, network schemer to select client, agreement Give tacit consent to 8899, server address for TCP, port numbers, need input to be connected in current local network router and prepare as service The IP (IP that router distributes automatically) of the computer of device.All these setting is intended to click on and determines.Model selection selects Station pattern.Finally select to restart in module management.Represent after AP in wireless list disappears and restart successfully.
Adopt python language coding in remote server, to ensure that data is capable of zero defect, no repeats Send, and receive in order, socket adopts Stream Socket to be used for providing towards connection, reliable data transport service.
After completing all hardware facility and software programming, diaphragm capsule plug can be inserted in user power utilization circuit, simultaneously Enable user power utilization equipment, system brings into operation, client request is to propose connection request by the socket of client, connect Target be server side socket.For this reason, the socket of client must describe the socket of its server to be connected first Word, it is indicated that the address of server socket and port numbers, then proposes connection request to server side socket again.
When server side socket listens to the connection request receiving client socket in other words, it just responds visitor The request of family end socket, sets up a new thread, the information of server side socket is sent to client, once client End confirms this connection, and connection can be set up.And server end keeps listening state, continue to the company of other clients Connect request.
The present invention carries out data processing using socket and selects asynchronous mode.The feature of asynchronous mode is by Socket When being attached, receive, sending operation, client computer or server are not at obstruction mode, but utilize callback mechanism Be attached, receive, transmission processe, directly return after the method that thus can send calling or receive, and continue executing with Following program.
In remote monitoring picture it is possible to see that the energy data of user is passed through diaphragm capsule and is transferred in unlimited mode Server, just can be analyzed using the data collecting in server end and manage.

Claims (4)

1. a kind of electric energy acquisition based on socket and environment sensing node system, including electric energy acquisition and environment sensing node mould Box body, remote server and user's electric load it is characterised in that:Described electric energy acquisition and environment sensing node diaphragm capsule are originally Body is arranged on the line of power consumer within battery limit;Described electric energy acquisition and environment sensing node are based on socket mode It is connected with remote server by wifi network;Circuit board is arranged on electric energy acquisition and environment sensing node diaphragm capsule is originally internal.
2. a kind of electric energy acquisition based on socket according to claim 1 and environment sensing node system, its feature exists In:Described electric energy acquisition and environment sensing node diaphragm capsule shell are socket, electric energy acquisition and environment sensing node diaphragm capsule Shell also includes connecting the plug of civil power and the socket connecting user's electric load.
3. a kind of electric energy acquisition based on socket according to claim 2 and environment sensing node system, its feature exists In:Described circuit board includes electric energy metering module, power module, radio receiving transmitting module and serial ports, and power module passes through electric energy City is electrically connected respectively electric energy metering module and radio receiving transmitting module after conversion and carries by collection and environment sensing node diaphragm capsule plug Power supply source;Radio receiving transmitting module and electric energy metering module are connected by serial port module.
4. a kind of electric energy acquisition based on socket according to claim 3 and environment sensing node system, its feature exists In:Described radio receiving transmitting module is HF-A11.
CN201610958689.8A 2016-10-28 2016-10-28 Socket-based electric energy collection and environmental sensing node system Pending CN106448111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610958689.8A CN106448111A (en) 2016-10-28 2016-10-28 Socket-based electric energy collection and environmental sensing node system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610958689.8A CN106448111A (en) 2016-10-28 2016-10-28 Socket-based electric energy collection and environmental sensing node system

Publications (1)

Publication Number Publication Date
CN106448111A true CN106448111A (en) 2017-02-22

Family

ID=58180206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610958689.8A Pending CN106448111A (en) 2016-10-28 2016-10-28 Socket-based electric energy collection and environmental sensing node system

Country Status (1)

Country Link
CN (1) CN106448111A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915018A (en) * 2012-11-01 2013-02-06 山东大学 Distributed environment monitoring system based on WIFI
CN104408906A (en) * 2014-12-17 2015-03-11 国家电网公司 TD-LTE (time division long term evolution) wireless communication concentrator and electric meter data acquisition method
CN104916998A (en) * 2015-05-06 2015-09-16 安徽中家智锐科技有限公司 Intelligent household socket based on transmission via Wi-Fi technology
CN204992153U (en) * 2015-07-28 2016-01-20 北京智芯微电子科技有限公司 Multi -functional smart jack based on wi -Fi

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915018A (en) * 2012-11-01 2013-02-06 山东大学 Distributed environment monitoring system based on WIFI
CN104408906A (en) * 2014-12-17 2015-03-11 国家电网公司 TD-LTE (time division long term evolution) wireless communication concentrator and electric meter data acquisition method
CN104916998A (en) * 2015-05-06 2015-09-16 安徽中家智锐科技有限公司 Intelligent household socket based on transmission via Wi-Fi technology
CN204992153U (en) * 2015-07-28 2016-01-20 北京智芯微电子科技有限公司 Multi -functional smart jack based on wi -Fi

Similar Documents

Publication Publication Date Title
CN104243295B (en) Intelligent gateway device based on dual network mixed communication
Zhao et al. Development of an energy monitoring system for large public buildings
CN202133715U (en) Distributed electric energy metering system based on sensing net
CN202189966U (en) Intelligent power plug
CN206946700U (en) A kind of ammeter data acquisition system based on NB IoT
CN203339424U (en) Wireless intelligent energy consumption gauge
CN201897871U (en) Domestic electricity utilization information monitoring system adopting intelligent ammeter
CN202103276U (en) Intelligent plug with communication function
CN104123825A (en) Method and system for communication between mobile communication terminal and instrument
CN104635713B (en) A kind of electric energy metered system
CN105681181A (en) Home gateway system suitable for smart home
CN204597127U (en) Close-coupled socket
CN106441444A (en) ZigBee-based electric energy collecting and environment sensing node and data transmission method
CN206331579U (en) LoRa universal nodes
CN106329234A (en) Smart patch board with temperature and humidity detection function
CN204721367U (en) Width funtion based on ethernet ip v6 communication protocol is powered concentrator
CN208689740U (en) Efficiency collector and system
CN106448111A (en) Socket-based electric energy collection and environmental sensing node system
CN109752589A (en) A kind of low-voltage intelligent monitoring system
CN202057425U (en) An intelligent long-distance temperature acquisition and transmission module
CN205429874U (en) Photovoltaic microgrid system based on thing networking sensing technology
CN109038808A (en) A kind of home safety electricity consumption intelligent monitor and WiFi communication monitoring method
CN209570637U (en) A kind of low-voltage intelligent terminal system
CN209624680U (en) A kind of low-voltage intelligent monitoring system
CN209264843U (en) Attaching plug formula integration Internet of Things power param eter supervision device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20170222