Self-identifying smart communication protocol and communication modes modular converter
Technical field
The utility model relates to the conversion of conversion of self-identifying smart communication protocol and communication modes.Especially the modular converter of the self-identifying smart communication protocol of multiuser electric energy meter conversion and communication modes.
Background technology
The difference of multiuser electric energy meter and the electric energy meter that Every household has an ammeter is the shared power supply of a plurality of user's metering units and system controlled by computer circuit of multiuser electric energy meter, and multiuser electric energy meter all is to adopt wired RS485 communication modes.Because each multiuser electric energy meter all has own unique id information, must be entered into these information in advance in the communication modular converter, just can communicate by letter normally and work.If prior manual typing needs great amount of manpower to write down these information, waste time and energy, also make mistakes easily.And during on-the-spot the installation, also can only be by identical ID, multiuser electric energy meter is connected with corresponding communication modular converter, portability is poor.In case module goes wrong, can not in time change, because the id information difference must can be used in manual typing again, brought very big difficulty for on-the-spot the installation.
Each multiuser electric energy meter all has many users, at least tens families, tens families at most.Parameters such as the information of each household and power consumption are variant, and for the ease of obtaining and managing, the intelligent method that we have adopted self-identifying, have employed is certainly saved resource, and is convenient and reliable.
Because the electric line carrier communication mode does not need to set up again network, as long as live wire just can carry out data passes, therefore become one of preferred plan of transfer of data, in long-distance meter-reading system, enjoy favor.For the ease of remote meter reading and unified management, the original RS485 communication modes of multiuser electric energy meter need be converted to the electric line carrier communication mode.Since electric line carrier communication module manufacturer difference, the technology difference of employing, and frequency is also different, is difficult to compatible and general.
In order to solve the deficiencies in the prior art, the utility model provides a kind of self-identifying smart communication protocol of multiuser electric energy meter and the modular converter of communication modes.The utility model has adopted the automatic identification mode that powers on, and obtaining the ID information that the multi-user leads electric energy meter each household table automatically, is entered into automatically in the corresponding communication modular converter.The utility model adopted with long-distance meter-reading system in the electric line carrier communication mode of centralized automatic meter-reading device model identical, realized the RS485 communication modes is converted to the electric line carrier communication mode.The utility model has been realized the mutual conversion of the communications protocol of centralized automatic meter-reading device in multiuser electric energy meter communications protocol and the long-distance meter-reading system, to reach the purpose of mutual communication.The utility model compatibility is good, and is portable strong, on-the-spot easy for installation, good in economic efficiency.
Summary of the invention
In order to solve the deficiencies in the prior art, the utility model provides a kind of self-identifying smart communication protocol of multiuser electric energy meter and the modular converter of communication modes.It is made up of power circuit, RS485 communication interface, electric line carrier communication interface, RS485 communicating circuit, electric line carrier communication circuit, control circuit, memory circuit and clock circuit.Described RS485 communication interface is connected with multiuser electric energy meter; Described electric line carrier communication interface is connected with the centralized automatic meter-reading device.
Described power circuit is responsible for each several part circuit energy resource supply; Described RS485 communication interface is responsible for the physical connection with the multiuser electric energy meter communication cable, for the RS485 communicating circuit provides required communication signal; Described electric line carrier communication interface is responsible for the physical connection with centralized automatic meter-reading device communication cable, for electric line carrier communication circuit provides required communication signal; Described RS485 communicating circuit mainly is responsible for the communication with multiuser electric energy meter, control circuit issues various command to multiuser electric energy meter by the RS485 communicating circuit, and the RS485 communicating circuit obtains required various information uploadings from multiuser electric energy meter and gives control circuit; Described electric line carrier communication circuit mainly is responsible for the communication with the centralized automatic meter-reading device, host computer (the main control computer of forming by general commercial microcomputer, communication module and management software, below being referred to as host computer) transmitting order to lower levels is to the centralized automatic meter-reading device, the centralized automatic meter-reading device sends various command to control circuit by electric line carrier communication circuit, and control circuit uploads to the centralized automatic meter-reading device to the various information of the multiuser electric energy meter that obtains by electric line carrier communication circuit again; Described control circuit major control each several part circuit, and realize discerning automatically and the communications protocol conversion, the various command of the centralized automatic meter-reading device that is received by electric line carrier communication circuit explanation is converted to the order that multiuser electric energy meter can be discerned, send to multiuser electric energy meter by the RS485 communicating circuit; The various electrical parameters that described memory circuitry stores is required; Described clock circuit provides the time required when freezing electric weight.
Host computer sends a command to the centralized automatic meter-reading device, the centralized automatic meter-reading device is given self-identifying smart communication protocol and communication modes modular converter corresponding pass down the line, self-identifying smart communication protocol and communication modes modular converter are converted to the order that multiuser electric energy meter can be discerned to command interpretation again, be handed down to multiuser electric energy meter again, thereby obtain required various information from multiuser electric energy meter, realize unification, the centralized management of remote meter reading and electricity consumption.
Function of the present utility model realizes that by software program software program of the present utility model comprises primary control program, self-identifying program, communications protocol conversion program, communications protocol interpretive program, stored program and clock read-write program.Described primary control program is responsible for monitoring and is called each function program, finishes the function of self-identifying smart communication protocol and communication modes modular converter; Described self-identifying program is responsible for the identification of the id information of multiuser electric energy meter, is obtained and typing; Described communications protocol conversion program is responsible for the mutual conversion of the communications protocol and the required communications protocol of centralized automatic meter-reading device of multiuser electric energy meter, the purpose that can exchange information to reach, intercom mutually; Described communications protocol interpretive program is explained the various command of being received, the content of information, thereby carries out function corresponding; Described stored program is responsible for memory circuit is operated, and reads and the storing various information parameter; Described clock read-write program is responsible for the dialogue with clock circuit, realizes reading in real time the date and time of clock circuit, also can change the date and time of clock circuit in real time.
The utility model has adopted the automatic identification mode that powers on, and obtaining the ID information that the multi-user leads electric energy meter automatically, is entered into automatically in the communication modular converter.The utility model adopted with long-distance meter-reading system in the electric line carrier communication mode of centralized automatic meter-reading device model identical, realized the RS485 communication modes is converted to the electric line carrier communication mode.The utility model has been realized the mutual conversion of the communications protocol of centralized automatic meter-reading device in multiuser electric energy meter communications protocol and the long-distance meter-reading system, to reach the purpose of mutual communication.The utility model compatibility is good, and is portable strong, on-the-spot easy for installation, good in economic efficiency.
Description of drawings
Fig. 1 is self-identifying smart communication protocol and communication modes modular converter theory diagram.
Embodiment
Embodiment one, with reference to accompanying drawing 1, described self-identifying smart communication protocol of this embodiment and communication modes modular converter are made up of power circuit, RS485 communication interface, electric line carrier communication interface, RS485 communicating circuit, electric line carrier communication circuit, control circuit, memory circuit and clock circuit.Described RS485 communication interface is connected with multiuser electric energy meter; Described electric line carrier communication interface is connected with the centralized automatic meter-reading device.
Various hardware circuit functions are as follows:
Power circuit: mainly be responsible for each several part circuit energy resource supply.
RS485 communication interface: be responsible for the physical connection with the multiuser electric energy meter communication cable, for the RS485 communicating circuit provides required communication signal.
Electric line carrier communication interface: be responsible for the physical connection with centralized automatic meter-reading device communication cable, for electric line carrier communication circuit provides required communication signal.
The RS485 communicating circuit: the main communication of being responsible for multiuser electric energy meter, control circuit issues various command to multiuser electric energy meter by the RS485 communicating circuit, and the RS485 communicating circuit obtains required various information uploadings from multiuser electric energy meter and gives control circuit.
Electric line carrier communication circuit: the main communication of being responsible for the centralized automatic meter-reading device, (main control computer by general commercial microcomputer, communication module and management software are formed below is referred to as host computer to host computer.) transmitting order to lower levels is to the centralized automatic meter-reading device, the centralized automatic meter-reading device sends various command to control circuit by electric line carrier communication circuit.Control circuit uploads to the centralized automatic meter-reading device to the various information of the multiuser electric energy meter that obtains by electric line carrier communication circuit again.
Control circuit: major control each several part circuit, and realize identification automatically and communications protocol conversion.The various command of the centralized automatic meter-reading device that is received by electric line carrier communication circuit explanation is converted to the order that multiuser electric energy meter can be discerned, send to multiuser electric energy meter by the RS485 communicating circuit.
Memory circuit: store required various electrical parameters.
Clock circuit: the time required when freezing electric weight is provided.
Host computer sends a command to the centralized automatic meter-reading device, the centralized automatic meter-reading device is given self-identifying smart communication protocol and communication modes modular converter corresponding pass down the line, self-identifying smart communication protocol and communication modes modular converter are converted to the order that multiuser electric energy meter can be discerned to command interpretation again, be handed down to multiuser electric energy meter again, thereby obtain required various information from multiuser electric energy meter, realize unification, the centralized management of remote meter reading and electricity consumption.
Function of the present utility model realizes that by software program software program of the present utility model comprises primary control program, self-identifying program, communications protocol conversion program, communications protocol interpretive program, stored program, clock read-write program.
Various software functions are as follows:
Primary control program: be responsible for monitoring and call each function program, finish the function of self-identifying smart communication protocol and communication modes modular converter.
The self-identifying program: be responsible for to the id information of multiuser electric energy meter identification, obtain and typing.
Communications protocol conversion program: be responsible for the communications protocol of multiuser electric energy meter and the mutual conversion of the required communications protocol of centralized automatic meter-reading device, the purpose that can exchange information to reach, intercom mutually.
Communications protocol interpretive program: explain the various command of being received, the content of information, thereby carry out function corresponding.
Stored program: be responsible for memory circuit is operated, read and the storing various information parameter.
Clock read-write program: be responsible for the dialogue with clock circuit, realize reading in real time the date and time of clock circuit, also can change the date and time of clock circuit in real time.
The utility model has adopted the automatic identification mode that powers on, and obtaining the ID information that the multi-user leads electric energy meter automatically, is entered into automatically in the communication modular converter.The utility model adopted with long-distance meter-reading system in the electric line carrier communication mode of centralized automatic meter-reading device model identical, realized the RS485 communication modes is converted to the electric line carrier communication mode.The utility model has been realized the mutual conversion of the communications protocol of centralized automatic meter-reading device in multiuser electric energy meter communications protocol and the long-distance meter-reading system, to reach the purpose of mutual communication.The utility model compatibility is good, and is portable strong, on-the-spot easy for installation, good in economic efficiency.