Content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of circuit diagram to generate method and device, on improving
State problem.
Embodiments providing a kind of circuit drawing generating method, circuit drawing generating method includes:Obtain user's input
The corresponding track data with entity circuit, described track data includes the line name of all circuits, the level of all circuits
The parameter information of the collector in relation and every circuit;
Generate and corresponding first circuit diagram of described track data according to described track data;
Wherein, the parameter information of collector includes the electricity of the title of collector, the address information of collector and collector
Parametric type.
Preferably, described method also includes:
According to user operation, described track data is modified;
Described first circuit diagram is updated to amended described track data corresponding second circuit figure.
Preferably, described method also includes:
Increase first line data according to user operation newly in described track data;
Corresponding 3rd electricity of described track data after described first circuit diagram is updated to and increases newly first line data
Lu Tu.
Preferably, described method also includes:
Delete the second track data according to user operation in described track data;
Corresponding 4th electricity of described track data after described first circuit diagram is updated to and deletes the second track data
Lu Tu.
Preferably, the parameter information of described collector also includes the communication protocol type of collector.
The embodiment of the present invention additionally provides a kind of circuit diagram generating means, and circuit diagram generating means includes:
Data capture unit, for obtaining the corresponding track data with entity circuit of user's input, described track data
Including the parameter information of the collector on the line name of all circuits, the hierarchical relationship of all circuits and every circuit;
Circuit diagram signal generating unit, for generating and corresponding first circuit of described track data according to described track data
Figure;
Wherein, the parameter information of collector includes the electricity of the title of collector, the address information of collector and collector
Parametric type.
Preferably, circuit diagram generating means also includes:Modification unit and the first updating block,
Described modification unit is for modifying to described track data according to user operation;
Described first updating block is corresponding with amended described track data for being updated to described first circuit diagram
Second circuit figure.
Preferably, circuit diagram generating means also includes:Newly-increased unit and the second updating block;
Described newly-increased unit is for increasing first line data newly according to user operation in described track data;
Described second updating block is for being updated to and increasing newly described first circuit diagram described in after first line data
Track data corresponding tertiary circuit figure.
Preferably, circuit diagram generating means also includes:Delete unit and the 3rd updating block;
Described deletion unit is for deleting the second track data according to user operation in described track data;
Described 3rd updating block is for being updated to described first circuit diagram and deleting described in after the second track data
Corresponding 4th circuit diagram of track data.
Preferably, the parameter information of described collector also includes the communication protocol type of collector.
For prior art, the circuit diagram that the present invention provides generates method and device and has following beneficial effect:
The circuit diagram that the present invention provides generates method and device, can complete blueprint drawing very easily, and at circuit
After figure is completed, can be by the collector collection importing on entity circuit on every circuit to the user terminal of blueprint drawing
Data message, thus reflect the current data parameter of each circuit in entity circuit in real time, it is simple to user investigates entity circuit
Failure condition, conveniently carries out overhauling and Centralized Monitoring to entity circuit.
For making the above-mentioned purpose of the present invention, feature and advantage to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Detailed description of the invention
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Generally exist
The assembly of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged with various different configurations and design herein.Cause
This, be not intended to limit claimed invention to the detailed description of the embodiments of the invention providing in the accompanying drawings below
Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment being obtained on the premise of going out creative work, broadly falls into the scope of protection of the invention.
It should be noted that:Similar label and letter represent similar terms, therefore, once a certain Xiang Yi in following accompanying drawing
Individual accompanying drawing is defined, does not then need to define it further and explain in accompanying drawing subsequently.Meanwhile, the present invention's
In description, term " first ", " second " etc. are only used for distinguishing and describe, and it is not intended that indicate or hint relative importance.
As it is shown in figure 1, be the block diagram of the user terminal 200 that present pre-ferred embodiments provides.Described user is eventually
End 200 includes that the 250th, circuit diagram generating means the 210th, memory the 220th, storage control the 230th, processor the 240th, Peripheral Interface inputs
Output unit the 260th, audio unit 270 and display unit 280.Described user terminal 200 can be PC (personal
Computer, PC), panel computer, smart mobile phone, personal digital assistant (personal digital assistant, PDA)
Deng.
Described memory the 220th, storage control the 230th, processor the 240th, Peripheral Interface the 250th, input-output unit the 260th, sound
Frequently unit the 270th, each element of display unit 280 is electrically connected with, each other directly or indirectly to realize the transmission of data or friendship
Mutually.For example, these elements can pass through one or more communication bus each other or holding wire realizes being electrically connected with.Described circuit
Figure generating means 210 includes that at least one can be stored in described memory 220 with the form of software or firmware (firmware)
Or the software being solidificated in the operating system (operating system, OS) of described circuit diagram generating means 210 terminal device
Functional module.Described processor 240 is for performing the executable module of storage in memory 220, and for example described circuit diagram generates
Software function module that device 210 includes or computer program.
Wherein, memory 220 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 220 is used for storing program, and described processor 240, after receiving execution instruction, performs described program, aforementioned
The method performed by the server flowing through Cheng Dingyi that embodiment of the present invention any embodiment discloses can apply in processor,
Or realized by processor 240.
Processor 240 is probably a kind of IC chip, has the disposal ability of signal.Above-mentioned processor 240 can
Being general processor, including central processing unit (Central Processing Unit is called for short CPU), network processing unit
(Network Processor is called for short NP) etc.;Can also is that digital signal processor (DSP), special IC (ASIC),
Ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete firmly
Part assembly.Can realize or perform the disclosed each method in the embodiment of the present invention, step and logic diagram.General processor
Can be microprocessor or this processor also can be the processor etc. of any routine.
Various input/output devices are coupled to processor 240 and memory 220 by described Peripheral Interface 250.At some
In embodiment, Peripheral Interface 250, processor 240 and storage control 230 can realize in one single chip.Other one
In a little examples, they can be realized by independent chip respectively.
Input-output unit 260 realizes the mutual of user and described user terminal 200 for being supplied to user input data.
Described input-output unit 260 may be, but not limited to, mouse and keyboard etc..
Audio unit 270 provides a user with COBBAIF, and it can include one or more microphone, one or more raises
Sound device and voicefrequency circuit.
Display unit 280 provides interactive interface (such as user operation circle between described user terminal 200 and user
Face) or be used for showing view data to user's reference.In the present embodiment, described display unit 280 can be liquid crystal display
Or touch control display.If touch control display, it can be for supporting capacitance type touch control screen or the resistance of single-point and multi-point touch operation
Formula touch screen etc..Support that single-point and multi-point touch operation refer to that touch control display can sense on this touch control display one
Or the touch control operation that multiple position produces simultaneously, and the touch control operation sensing this transfers to processor 240 to carry out calculating and
Process.
Refer to Fig. 2, be the circuit diagram being applied to the user terminal 200 shown in Fig. 1 that present pre-ferred embodiments provides
The flow chart of generation method.Below the idiographic flow shown in Fig. 2 is described in detail.
Step S101, it is thus achieved that the corresponding track data with entity circuit of user's input.
The circuit drawing generating method that the present invention provides is applied to user terminal 200, for that input according to user and entity
The corresponding track data of circuit, generation one and the corresponding circuit diagram of entity circuit, and will gather on bar circuit each in entity circuit
Data message clear complete reflecting in the circuit diagram generating, in order to Centralized Monitoring is carried out to entity circuit.
Concrete, when making circuit diagram, first user is to user terminal 200 input and entity circuit corresponding circuit number
According to this track data includes the collection on the line name of all circuits, the hierarchical relationship of all circuits and every circuit
The parameter information of device.
For example, entity circuit includes 2 backbones for powering office building and workshop, counts respectively for convenience of describing
For office building backbone and workshop backbone.It is divided into again 3 branch lines below office building backbone, be respectively used to office building 1
1st floor branch line, 2nd floors branch lines that office building is powered for 2nd floors and the 3rd floors branch lines that office building is powered for 3rd floors that building powers.Workshop trunk
Be divided into again 2 branch lines below line, be respectively used to No. 1 workshop branch line that No. 1 workshop is powered and for No. 2 workshops are powered 2
Number workshop branch line.Now, this track data includes backbone and branch line amounts to 2 layers of hierarchical relationship, includes in track data
Office building backbone, workshop backbone, 1st floor branch line, 2nd floors branch lines, 3rd floors branch lines, No. 1 workshop branch line and No. 2 workshop branch lines amount to 7
Bar circuit, is provided with a collector in every circuit.
The parameter information of the collector on every circuit all includes the address letter of the title of collector, collector distribution
Electric parameter type that breath, collector gather, the communication protocol type etc. of collector.
Wherein, the title of collector is for making a distinction to collector.The address information of collector distribution and entity circuit
In the address information of corresponding collector consistent, in order to the collector one_to_one corresponding in entity circuit.The electricity that collector gathers
The type of the electric parameter that parametric type collects for instruction, for example, it may be electric current, voltage, power etc., can also is that collection
Temperature, humidity etc..
Step S102, generates and the corresponding circuit diagram of track data.
User terminal 200 receive input with entity circuit after corresponding track data, its circuit diagram generating means 210
Generate and corresponding first circuit diagram of this track data according to after this track data.
Collector in entity circuit is electrically connected with user terminal 200, and can feed back to the data message collecting
User terminal 200.Owing to track data including the address information of the collector on every circuit, i.e. in entity circuit every
Collector on circuit and the collector one_to_one corresponding in the first circuit diagram, therefore can be aobvious on every circuit in the first circuit diagram
The data message that in corresponding entity circuit, collector collects is shown, thus reflects the current of each circuit in entity circuit in real time
Data parameters, it is simple to user investigates the failure condition of entity circuit, conveniently carries out overhauling and Centralized Monitoring to entity circuit.
So, user has only to input track data corresponding with entity circuit and can automatically generate corresponding with entity circuit
The first circuit diagram, thus complete the drafting of circuit diagram very easily, and after circuit diagram is completed, can be by drafting
The data message that the collector that the user terminal 200 of circuit diagram imports on entity circuit on every circuit gathers, and at the first electricity
Show on the figure of road, thus reflect the current data parameter of each circuit in entity circuit in real time, it is simple to user investigates entity electricity
The failure condition on road, conveniently carries out overhauling and Centralized Monitoring to entity circuit.
Step S103, enters edlin according to user operation, and updates circuit diagram to track data.
During making circuit diagram, the track data of input may be caused to make mistakes due to the carelessness of user, or real
The circuit of body circuit has carried out certain adjustment.Corresponding with entity circuit consistent for guaranteeing the circuit diagram generating, the present embodiment carries
The circuit drawing generating method of confession also can carry out edit operation, and first having generated after edit operation to the data having inputted
Circuit diagram is updated to new circuit diagram.
Concrete, when address information input error due to user's carelessness of certain collector in the track data of input
When, owing to the address information of input is not mated with the address information of the collector in entity circuit, the first circuit therefore generating
Figure there is a circuit do not mate with the address information of collector in entity circuit due to the address information of its collector, therefore give birth to
The first circuit diagram becoming has the data parameters in the corresponding entity circuit of circuit Wireless Display.Now, user can be to
The track data of input is modified operation, modifies the address information of track data input error, makes this address information
Identical with the address information of collector corresponding in entity circuit, after modification completes, circuit diagram generating means 210 is by the first circuit
Figure is updated to second circuit figure so that the second circuit figure of generation is corresponding with entity circuit, can show corresponding entity electricity completely
The electrical quantity of every circuit in road.
When entity circuit needs the circuit increasing a power supply (as increased No. 3 workshops under the backbone of workshop
Branch line), then (first line data are corresponding can to increase by first line data in the track data having inputted by user operation
The supply line increasing in entity circuit), after increasing first line data in the track data having inputted, circuit diagram generates dress
Put 210 first circuit diagram is updated to and increases the track data corresponding tertiary circuit figure after first line data so that raw
The tertiary circuit figure becoming is corresponding with the entity circuit of current time.
When entity circuit decreases a supply line, then can be by user operation in the track data having inputted
Delete one second track data (supply line reducing in the second track data correspondent entity circuit), at the circuit number having inputted
After middle deletion the second track data, the first circuit diagram is updated to and deletes the second track data by circuit diagram generating means 210
After corresponding 4th circuit diagram of track data so that the 4th circuit diagram of generation is corresponding with the entity circuit of current time.
So, when the track data of input is made mistakes or entity circuit changes, can be by track data be carried out
Edit operation so that the circuit diagram of generation can keep corresponding consistent at any time with entity circuit, thus reflect in real time in entity circuit
The current data parameter of each circuit, it is simple to user investigates the failure condition of entity circuit, convenient entity circuit is carried out maintenance and
Centralized Monitoring.
Refer to Fig. 3, be the high-level schematic functional block diagram of the circuit diagram generating means 210 that present pre-ferred embodiments provides.
As it is shown on figure 3, circuit diagram generating means 210 includes data capture unit 211 and circuit diagram signal generating unit 212, data acquisition
Unit 211 is for obtaining the corresponding track data with entity circuit of user's input, and described track data includes all circuits
The parameter information of the collector on line name, the hierarchical relationship of all circuits and every circuit, circuit diagram signal generating unit 212
For generating and corresponding first circuit diagram of described track data according to described track data, wherein, the parameter information of collector
Including the communication protocol type of the electric parameter type of the address information of the title of collector, collector, collector and collector
Deng.It should be understood that data capture unit 211 can be used for performing above-mentioned step S101.Circuit diagram signal generating unit 212 can be used for
Perform above-mentioned step S102.
Further, refer to Fig. 3, be that the circuit diagram generating means that the embodiment of the present invention provides also includes modification unit
213rd, the 214th, the first updating block increases unit the 215th, the second updating block newly and the 216th, deletes unit 217 and the 3rd updating block
218.
Wherein, changing unit 213 to be used for modifying track data according to user operation, the first updating block 214 is used
In the first circuit diagram being updated to and amended track data corresponding second circuit figure.
Newly-increased unit 215 is for increasing first line data, the second updating block newly according to user operation in track data
216 are used for the track data corresponding tertiary circuit figure after being updated to and increase newly first line data by the first circuit diagram.
Delete unit 217 for deleting the second track data, the 3rd updating block in track data according to user operation
218 are used for corresponding 4th circuit diagram of track data after being updated to and delete the second track data the first circuit diagram.
It should be noted that the first updating block the 214th, the second updating block 216 and the 3rd updating block 218 can be
Same unit, in the present embodiment and for doing any restriction.
To sum up, the circuit diagram that the embodiment of the present invention provides generates method and device, can complete protracting circuit very easily
Figure, and after circuit diagram is completed, can be by every circuit on the user terminal importing entity circuit to blueprint drawing
The data message that gathers of collector, thus reflect the current data parameter of each circuit in entity circuit in real time, it is simple to Yong Hupai
Check and verify the failure condition of body circuit, conveniently carry out overhauling and Centralized Monitoring to entity circuit.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through
Other mode realizes.Device embodiment described above is only schematically, for example, and the flow chart in accompanying drawing and block diagram
Show the device of the multiple embodiments according to the present invention, method and computer program product architectural framework in the cards,
Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code
Part, a part for described module, program segment or code comprises holding of one or more logic function for realizing regulation
Row instruction.It should also be noted that at some as in the implementation replaced, the function being marked in square frame also can be to be different from
The order being marked in accompanying drawing occurs.For example, two continuous print square frames can essentially perform substantially in parallel, and they are sometimes also
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can be with the special base of the function or action performing regulation
Realize in the system of hardware, or can realize with the combination of specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation
Point, it is also possible to it is modules individualism, it is also possible to two or more modules are integrated to form an independent part.
If described function is using the form realization of software function module and as independent production marketing or use, permissible
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter
Calculation machine software product is stored in a storage medium, including some instructions are with so that a computer equipment (can be individual
People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.
And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.Need
Illustrate, herein, the relational terms of such as first and second or the like be used merely to by an entity or operation with
Another entity or operating space separate, and not necessarily require or imply there is any this reality between these entities or operation
The relation on border or order.And, term " includes ", "comprising" or its any other variant are intended to the bag of nonexcludability
Contain, so that include that the process of a series of key element, method, article or equipment not only include those key elements, but also include
Other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.
In the case of there is no more restriction, the key element being limited by statement " including ... ", it is not excluded that including described key element
Process, method, article or equipment there is also other identical element.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, that is made any repaiies
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exist
Figure below represents similar terms, therefore, once a certain Xiang Yi accompanying drawing is defined, is then not required in accompanying drawing subsequently
It is defined further and explains.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.