CN103200078B - gateway, communication network and data processing method - Google Patents
gateway, communication network and data processing method Download PDFInfo
- Publication number
- CN103200078B CN103200078B CN201210004260.7A CN201210004260A CN103200078B CN 103200078 B CN103200078 B CN 103200078B CN 201210004260 A CN201210004260 A CN 201210004260A CN 103200078 B CN103200078 B CN 103200078B
- Authority
- CN
- China
- Prior art keywords
- data
- modbus
- frame
- module
- gateway
- 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.)
- Active
Links
- 238000004891 communication Methods 0.000 title claims abstract description 23
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000006243 chemical reaction Methods 0.000 claims abstract description 20
- 238000004378 air conditioning Methods 0.000 claims description 32
- 230000004044 response Effects 0.000 claims description 17
- 230000015572 biosynthetic process Effects 0.000 claims description 13
- 238000003786 synthesis reaction Methods 0.000 claims description 13
- 239000002131 composite material Substances 0.000 claims description 11
- 238000004458 analytical method Methods 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 21
- 238000000034 method Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 12
- 230000008859 change Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000001276 controlling effect Effects 0.000 description 3
- 238000004134 energy conservation Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 238000002224 dissection Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012856 packing Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000005764 inhibitory process Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 125000003396 thiol group Chemical class [H]S* 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000010977 unit operation Methods 0.000 description 1
Landscapes
- Selective Calling Equipment (AREA)
- Small-Scale Networks (AREA)
- Air Conditioning Control Device (AREA)
Abstract
The invention discloses a gateway, a communication network and a data processing method, wherein the gateway comprises: the first analysis module is used for analyzing the received CAN data frame; the conversion module is used for converting the CAN data obtained by analysis into MODBUS data; the second analysis module is used for analyzing MODBUS data; and the combination module is used for combining the resolved MODBUS data into an MODBUS data frame. According to the invention, the CAN data frame and the MODBUS data frame are converted, so that the MODBUS network CAN acquire the state of the CAN bus network, and the air conditioner and other electrical appliances are fused into a building network for joint debugging and joint control.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of gateway, communication network and data processing method.
Background technology
At present, the electrical equipment such as air-conditioning can carry out communication by network consisting, and its communication mechanism generally uses CAN, and leads to
Cross CAN and form internal privately owned local operation networks.
Meanwhile, presently disclosed building network is typically based on MODBUS protocol technology composition MODBUS network.But, above-mentioned
CAN network can not access MODBUS network, thus be difficult to that the electrical equipment such as air-conditioning are incorporated building network and carry out joint debugging joint control,
Consumer's Experience is the highest.
Summary of the invention
MODBUS network can not be accessed for CAN network thus be difficult to that the electrical equipment such as air-conditioning are incorporated building network and enter
The problem of row joint debugging joint control and the present invention is proposed, to this end, present invention is primarily targeted at a kind of gateway of offer, communication network and
Data processing method, to solve the problems referred to above.
According to an aspect of the invention, it is provided a kind of gateway, including: the first parsing module, for the CAN received
Frame resolves;Modular converter, is converted into MODBUS data for CAN data parsing obtained;Second parsing module,
For MODBUS data are resolved;Composite module, the MODBUS data set synthesis MODBUS Frame after resolving.
Preferably, modular converter includes transform subblock, is used for the mode using field corresponding, CAN parsing obtained
Field in data is converted in MODBUS data the field of correspondence.
Preferably, above-mentioned gateway also includes: receiver module, for receiving the inquiry from MODBUS network and control life
Order;Feedback module, is used for feeding back MODBUS Frame.
Preferably, above-mentioned gateway also includes: scheduler module, for receiver module receive inquiry and control command it
After, the CAN data that scheduling modular converter performs parsing to be obtained are converted into the operation of MODBUS data.
According to an aspect of the present invention, additionally provide a kind of gateway, including: the first parsing module, for reception
MODBUS Frame resolves;Modular converter, is converted into CAN data for MODBUS data parsing obtained;Second solves
Analysis module, for resolving CAN data;Composite module, the CAN data set synthesis CAN Frame after resolving.
Preferably, modular converter includes transform subblock, is used for the mode using field corresponding, parsing is obtained
Field in MODBUS data is converted in CAN data the field of correspondence.
Preferably, above-mentioned gateway also includes: the first sending module, for sending the response frame of MODBUS Frame.
Preferably, above-mentioned gateway also includes: the second sending module, for sending CAN Frame, wherein CAN to CAN network
Frame is for controlling the equipment in CAN network.
According to another aspect of the present invention, it is provided that a kind of communication network, including electric equipment and above-mentioned gateway.
Preferably, electric equipment includes one below: air-conditioning, refrigerator.
According to a further aspect of the invention, it is provided that a kind of data processing method, including: to the CAN Frame received
Resolve;CAN data parsing obtained are converted into MODBUS data;MODBUS data are resolved;After resolving
MODBUS data set synthesis MODBUS Frame.
According to a further aspect of the invention, additionally provide a kind of data processing method, including: to the MODBUS number received
Resolve according to frame;MODBUS data parsing obtained are converted into CAN data;CAN data are resolved;After resolving
CAN data set synthesis CAN Frame.
By the present invention, by carrying out the conversion of CAN Frame and MODBUS Frame, thus beneficially MODBUS network
Know the state of CAN network, it is achieved the electrical equipment such as air-conditioning are incorporated building network and carries out joint debugging joint control.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the structured flowchart one of gateway according to embodiments of the present invention;
Fig. 2 is the structured flowchart two of gateway according to embodiments of the present invention;
Fig. 3 is the schematic diagram of communication network according to the preferred embodiment of the invention;
Fig. 4 be according to the preferred embodiment of the invention gateway CAN to MODBUS network protocol conversion model illustrate
Figure;
Fig. 5 is the schematic diagram of gateway hardware structure according to the preferred embodiment of the invention;
Fig. 6 is the flow chart one of data processing method according to embodiments of the present invention;
Fig. 7 is the flowchart 2 of data processing method according to embodiments of the present invention.
Detailed description of the invention
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can phases
Combination mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
The invention provides a kind of gateway, Fig. 1 is the structured flowchart one of gateway according to embodiments of the present invention, such as Fig. 1 institute
Show, the first parsing module 11, modular converter the 12, second parsing module 13 and composite module 14.It is described in greater detail below.
First parsing module 11, for resolving the CAN Frame received;Modular converter 12, is connected to the first solution
Analysis module 11, is converted into MODBUS data for the first parsing module 11 is resolved the CAN data obtained;Second parsing module
13, it is connected to modular converter 12, for the MODBUS data of modular converter 12 conversion are resolved;Composite module 14, connects
To the second parsing module 13, the MODBUS data set synthesis MODBUS Frame after the second parsing module 13 is resolved.
In correlation technique, CAN network can not access MODBUS network thus be difficult to the electrical equipment such as air-conditioning are incorporated building
Space network carries out joint debugging joint control.In the embodiment of the present invention, CAN Frame can be converted to MODBUS Frame, thus favorably
The state of CAN network is known, it is achieved the electrical equipment such as air-conditioning are incorporated building network and carries out joint debugging joint control in MODBUS network.
Preferably, modular converter 12 includes transform subblock 122, is used for the mode using field corresponding, parsing is obtained
CAN data in field be converted in MODBUS data correspondence field.
Further, above-mentioned gateway also includes receiver module 14, for receiving the inquiry from MODBUS network and control
Order;Feedback module 15, is connected to receiver module 14, after receiving inquiry and control command at receiver module 14, instead
Feedback MODBUS Frame, so, by inquiry and the feedback of MODBUS network, it is ensured that MODBUS network inquiry is to CAN net
Data in network.
Further, above-mentioned gateway also includes scheduler module 16, is connected to modular converter 12 and receiver module 14, is used for
After receiver module 14 receives inquiry and control command, the CAN data that scheduling modular converter 12 performs to obtain parsing turn
Change the operation of MODBUS data into.So, CAN data constantly resolve but will not actively change to MODBUS data, only
MODBUS network just can be changed after have issued inquiry and control command.Carry out turning it can thus be avoided take too much gateway resource
Change operation.
Present invention also offers a kind of gateway, Fig. 2 is the structured flowchart two of gateway according to embodiments of the present invention, such as Fig. 2
Shown in, including the first parsing module 21, modular converter the 22, second parsing module 23 and composite module 24.Below it is carried out in detail
Thin description.
First parsing module 21, for resolving the MODBUS Frame received;Modular converter 22, is connected to first
Parsing module 21, is converted into CAN data for the first parsing module 21 is resolved the MODBUS data obtained;Second parsing module
23, it is connected to modular converter 22, for the CAN data of modular converter 22 conversion are resolved;Composite module 24, is connected to
Two parsing modules 23, the CAN data set synthesis CAN Frame after the second parsing module 23 is resolved.
In correlation technique, CAN network can not access MODBUS network thus be difficult to the electrical equipment such as air-conditioning are incorporated building
Space network carries out joint debugging joint control.In the embodiment of the present invention, MODBUS Frame can be converted to CAN Frame, thus favorably
In MODBUS network, CAN network is controlled, it is achieved the electrical equipment such as air-conditioning are incorporated building network and carries out joint debugging joint control.
Preferably, modular converter 22 includes transform subblock 222, is used for the mode using field corresponding, parsing is obtained
MODBUS data in field be converted in CAN data correspondence field.
And then, above-mentioned gateway also includes: the first sending module 25, for sending the response frame of MODBUS Frame.This is excellent
Select in embodiment, by MODBUS Frame is sent response frame, it can be ensured that the transmission accurately and reliably of MODBUS Frame, from
And advantageously in MODBUS network, CAN network is controlled, it is achieved the electrical equipment such as air-conditioning are incorporated building network and carries out
Joint debugging joint control.
And then, above-mentioned gateway also includes: the second sending module 26, is connected to composite module 24, for sending to CAN network
The CAN Frame that composite module 24 is combined into, wherein CAN Frame is for controlling the equipment in CAN network.This preferred embodiment
MODBUS network can be realized CAN network is controlled, and then the electrical equipment such as air-conditioning are incorporated building network and carry out by realization
Joint debugging joint control.
Based on above-mentioned gateway, present invention also offers a kind of communication network, this communication network can include electric equipment with
And the gateway described in any of the above-described item.And then above-mentioned electric equipment can be air-conditioning or refrigerator.
Fig. 3 is the schematic diagram of communication network according to the preferred embodiment of the invention, as it is shown on figure 3, gateway can dock downwards
The CAN communication network of mechanical floor, provides downwards MODBUS protocol interface.Often set gateway machine in multipotency accesses 128 groups, outside 32 sets
Machine, and can exist with the terminal presentation facility (such as centralized Control manual operator) of CAN communication layer simultaneously.
It is described in detail the embodiment of the present invention being realized process as a example by air-conditioning below.
Fig. 4 be according to the preferred embodiment of the invention gateway CAN to MODBUS network protocol conversion model illustrate
Figure, as shown in Figure 4, describes CAN data and the process of MODBUS data double-way conversion.Flow to below as the signal in Fig. 4
(1) to (4), the field transformation process that MODBUS data are converted to CAN data is described in detail.
MODBUS serial link frame in Fig. 4 includes the address field of 1Byte, the function code of 1Byte, the data of some Byte
And the error checking and correction of 2Byte.
(1) MODBUS data parsing layer resolves MODBUS data, and it specifically can include the parsing of BMS valid data, BMS end
Specific category type dissection process.
(2) MODBUS data conversion, its specifically can include Query Information (such as inquire about quantity of state, inquiry analog quantity and
Inquiry gateway information) and amendment information (such as amendment quantity of state and amendment analog quantity).
(3) CAN data conversion, it specifically can include air conditioner type parsing, CAN end specific category type dissection process.
(4) CAN data parsing layer resolves CAN data, and CAN data specifically can be solved by it according to CAN2.0 agreement
Analysis.
The start of frame bits of CAN data set synthesis 1 of CAN specification after parsing, the arbitration section of 32, the control section of 6,
The data segment of 0-64 position, the CRC section of 16, the ACK section of 2 and the frame end position of 7.Wherein arbitration section may be used for storing merit
Energy attribute, function type, the MAC Address (including single-level address and two-level address) of air-conditioning equipment and data category, data segment can
For storage valid data, specifically include indoor set set state parameter and fault parameter, off-premises station set state parameter and
Fault parameter and unit equipment information.
It should be noted that the process that CAN data are converted to MODBUS data is converted to CAN number with above-mentioned MODBUS data
According to process be similar to, do not repeat them here.
Continue with description the preferred embodiments of the present invention one and preferred embodiment two.
Preferred embodiment one
This preferred embodiment one describes the process of monitoring CAN unit data, i.e. supports the master chip of CAN function
MCU is stored in checking arbitration section that CAN Frame accurately is corresponding, control section, data segment in MCU hardware register, therefrom
Resolve the data of CAN.
(1) outer machine 1 interior machine 1 below transmits out the indoor environment temperature of this interior machine, interior machine enters pipe temperature, manage in interior machine
Temperature, interior machine go out pipe temperature, arbitration section therein, control section, data segment relevant information as shown in table 1 to table 5.
The function code correspondence table of table 1 unit arbitration section
The air-conditioning equipment MAC Address correspondence table of table 2 unit arbitration section
Single-level address | Two-level address |
The MAC corresponding address of outer machine 1 | The MAC corresponding address of interior machine 1 |
The data category correspondence table of table 3 unit arbitration section
Data category |
Byte data category |
Table 4 unit allocation section correspondence table
Control section |
Valid data length |
Table 5 unit data segment correspondence table
Data byte Byte0 | Data byte Byte1 | Data byte Byte2 | Data byte Byte3 |
Indoor environment temperature | Interior machine enters pipe temperature | Pipe temperature in interior machine | Interior machine goes out pipe temperature |
(2) gateway passes through CAN data parsing layer, obtains valid data, and is changed by CAN data by valid data, will
Corresponding equipment (4 temperature of machine 1 in the outer machine 1 in such example) is stored in gateway CAN depositor.
(3) set state of timely monitor more new gateway storage.
Preferred embodiment two
This preferred embodiment two describes the process of searching air conditioner unit information, and wherein air-conditioning real-time response MODBUS master sets
Its unit information is fed back in standby order.
(1) MODBUS main equipment goes to obtain the indoor environment temperature of interior machine 1 below outer machine 1 by gateway, interior machine enters pipe
In temperature, interior machine, pipe temperature, interior machine go out pipe temperature.If four variable orders successively are arranged in MODBUS protocol point table register
In.Wherein, the claim frame corresponding relation of MODBUS is as shown in table 6.
Table 6 MODBUS claim frame correspondence table
(2), after gateway receives these data, by MODBUS analytic sheaf, requesting query and the control of MODBUS main equipment are parsed
System order, and from CAN depositor, find the indoor environment temperature of interior machine 1 below outer machine 1, interior by the conversion of MODBUS data
Machine enters pipe temperature in pipe temperature, interior machine, interior machine goes out pipe temperature respective value.
(3) gateway feeds back to MODBUS analytic sheaf, response data of packing.Wherein, the corresponding relation of inquiry response frame such as table 7
Shown in.
Table 7 inquiry response frame correspondence table
To sum up, in this preferred embodiment two, from CAN Frame to the conversion of MODBUS Frame.In a gateway, CAN net
The CAN data of network constantly resolve but will not actively change to MODBUS data, and only MODBUS network have issued inquiry or control
Just to the conversion of MODBUS data thus MODBUS network can be conducted from CAN data after system order.Meanwhile, MODBUS network can not yet
Disconnected sends inquiry or control command to CAN network, so the conversion of data is uninterrupted between MODBUS network and CAN network
's.
Preferred embodiment three
This preferred embodiment three describes the process controlling air conditioning unit information, and wherein air-conditioning real-time response MODBUS master sets
Standby order controls accordingly.
(1) MODBUS main equipment goes to control the setting machine open/close of outer machine 1 interior machine 1 below, set superpower wind by gateway
Shelves, energy-conservation setting.Wherein, the distributing order of these three variablees is as shown in table 8, table 9.
Table 8 MODBUS protocol point table thiol variation per minute arrangement table
Set machine open/close | Set superpower wind shelves | Energy-conservation setting |
Open | Close | Open |
The claim frame correspondence table of table 9 MODBUS
(2), after gateway receives these data, by MODBUS analytic sheaf, the request parsing MODBUS main equipment controls life
Order.
(3) gateway makes the control response frame of MODBUS main equipment, and this control response frame is used for representing that gateway have received
MODBUS controls information.Wherein, the corresponding relation of this control response frame is as shown in table 10.
Table 10 controls the corresponding table of response frame
(4) while sending control response frame, gateway is given to CAN data by MODBUS data conversion corresponding data and turns
Change layer, gateway again by the packing of CAN analytic sheaf with the control frame of CAN frame format, wherein contain below the outer machine 1 that MODBUS sends
Interior machine 1 setting machine open/close, set superpower wind shelves, energy-conservation set information.
(5) this CAN control frame is dealt into air-conditioning Internet by gateway, in order to unit is controlled also according to the CAN control frame of gateway
Respond.Arbitration section therein, control section, data segment relevant information as shown in table 11 to table 15.
The function code correspondence table of table 11 gateway arbitration section
The air-conditioning equipment MAC Address correspondence table of table 12 gateway arbitration section
Single-level address | Two-level address |
The MAC corresponding address of outer machine 1 | The MAC corresponding address of interior machine 1 |
The data category correspondence table of table 13 gateway arbitration section
Data category |
Bit data category |
Table 14 gateway control section correspondence table
Control section |
Valid data length |
Table 15 gateway data section correspondence table
To sum up, after in this preferred embodiment three, MODBUS Frame resolves data by MODBUS data parsing layer, pass through
MODBUS data are changed thus are converted into CAN data form, resolve to CAN Frame lattice by CAN data parsing layer the most again
Formula, is finally combined into CAN Frame, thus completes from MODBUS Frame to the conversion of CAN Frame,
In order to further describe above-mentioned gateway, present invention also offers a kind of implementation of above-mentioned gateway.
Fig. 5 is the schematic diagram of gateway hardware structure according to the preferred embodiment of the invention, as it is shown in figure 5, gateway hardware bag
Include power supply module, communication circuit module, storage circuit module, display circuit module, other peripheral circuit module.The most right
It is described in detail.
Power supply circuits interface uses Width funtion binding post and light current binding post, uses the input of 85V~240V Width funtion
Or 24VDC is directly accessed two kinds of power supply modes.Client both can provide forceful electric power power supply according to country variant region practical situation
Power to gateway, general 24VDC can be used again to power to gateway so that power supply mode may select.In conjunction with Practical Project feelings
Condition, chooses power supply mode flexibly, and operability is convenient.I.e. to transfer the power switch power-supply controller of electric of light current to independent for Width funtion
Becoming a mainboard, gateway supports that light current 24VDC powers, and by gateway mould structure, client provides 85V~240V width as required
Voltage or directly 24VDC power.
Communicating circuit uses CAN interface binding post and MODBUS binding post or RJ45 network interface.Gateway can be docked
Article one, CAN air-conditioning bus network, uses extension frame or the standard frame of CANbus 2.0, by defining different arbitration section functions
Code, has inquiry and management air-conditioning equipment IP identity, monitoring air-conditioning equipment running status, carries out common single device control
With functions such as packet equipment control, IP collision alert and bomp functions.Realize the gateway air-conditioning for different engineered locations
Equipment carries out network identity, it is possible to equipment is monitored and controlled, and is provided that the block functions code mode that subregion and floor control,
And having perfect CAN communication error mechanism to process, it is ensured that CAN communication network insertion is normal.
Communicating circuit also makes gateway can access MODBUS communication network, supports depositor, coil read-write capability, to realize
Air-conditioning information is monitored and controlled.
As MODBUS from equipment, defining based on MODBUS standard feature code, extension arranges packet group number, reads packet group
Number, packet control issue function code, packet control is the control object unit (example that host computer (BMS) is identical to group number in network
Indoor set air-conditioning equipment as in this programme) control, to reach the purpose of quick control simultaneously.Packet control is only used for writing
Operation, gateway need not reply, and host computer (BMS) be can determine that by reading valid data frame ordering enumerator and controls whether into
Merit.
In MODBUS agreement except air-conditioning state parameter and fault parameter in addition to, also include the locking unit operation shape enriched
The function of state, remote lock controls (i.e. the shielding all keypress functions of manual operator), remotely monitoring shielding temperature and (i.e. shields manual operator
Temp regulating function), remotely monitor mask pattern (i.e. shielding manual operator mode adjustment function), remotely monitoring shielding switching on and shutting down merit
(can i.e. shield manual operator switching on and shutting down set-up function).Remote monitoring software controls the non-shielded impact of function.Possibly together with refrigerated medium
Thermal center energy temperature limiting function, when refrigerated energy-saving works so that design temperature is not less than energy efficiency temperature lower limit, when heating joint
When can work so that design temperature is not higher than energy efficiency temperature lower limit.This type of function is conducive to hotel type or formula building of handling official business
Intelligent automation remotely manages air-conditioning equipment.
USB HOST communication modes, it is achieved by the function of USB flash disk automatic upgrade gateway program, and checked aobvious by display screen
Show gateway device version information.By salesman or agent, when client needs extension or the upgrade function of gateway, pass through
This kind of mode need not change the gateway hardware of client, also can meet the demand of client.
Storage circuit stores the important service data of jumbo unit by SD card, meets air-conditioning household cost allocation data backup
Demand, and by SDRAM mode record fault operating states of the units for the previous period so that can be by soon when host computer (BMS) needs
Fast reading takes, and power-failure memory gateway important information, it is provided that real-time clock RTC.
Display circuit includes LED light, charactron, LCD screen, the running status of the display each functions of modules of gateway.It is easy to
Client checks or engineering commissioning staff's joint debugging gateway device.
Other peripheral circuit module mainly include that reset circuit, external crystal-controlled oscillation, program debugging interface, key circuit, I/O are controlled
Systems etc., wherein input and output realize fire, gate inhibition links air-conditioning equipment in I/O control.
Present invention also offers a kind of data processing method, Fig. 6 is data processing method according to embodiments of the present invention
Flow chart one, as shown in Figure 6, including steps S602 to step S608.
Step S602, resolves the CAN Frame received.
Step S604, CAN data parsing obtained are converted into MODBUS data.
MODBUS data are resolved by step S606.
Step S608, the MODBUS data set synthesis MODBUS Frame after resolving.
Present invention also offers a kind of data processing method, Fig. 7 is data processing method according to embodiments of the present invention
Flowchart 2, as it is shown in fig. 7, comprises steps S702 is to step S708.
Step S702, resolves the MODBUS Frame received.
Step S704, MODBUS data parsing obtained are converted into CAN data.
CAN data are resolved by step S706.
Step S708, the CAN data set synthesis CAN Frame after resolving.
It should be noted that can be at such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing
Computer system performs, and, although show logical order in flow charts, but in some cases, can be with not
It is same as the step shown or described by order execution herein.
In sum, according to the abovementioned embodiments of the present invention, it is provided that a kind of gateway, communication network and data process side
Method.By the present invention, by carrying out the conversion of CAN Frame and MODBUS Frame, thus beneficially MODBUS network is known
The state of CAN network, it is achieved the electrical equipment such as air-conditioning are incorporated building network and carries out joint debugging joint control.
Obviously, those skilled in the art should be understood that each module of the above-mentioned present invention or each step can be with general
Calculating device realize, they can concentrate on single calculating device, or be distributed in multiple calculating device and formed
Network on, alternatively, they can with calculate the executable program code of device realize, it is thus possible to by they store
Performed by calculating device in the storage device, or they are fabricated to respectively each integrated circuit modules, or by them
In multiple modules or step be fabricated to single integrated circuit module and realize.So, the present invention be not restricted to any specifically
Hardware and software combines.
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.
Claims (11)
1. a gateway, it is characterised in that including:
First parsing module, for resolving the CAN Frame received;
Modular converter, is connected to the first parsing module, is converted into MODBUS data for CAN data parsing obtained;
Second parsing module, is connected to modular converter, for resolving described MODBUS data;
Composite module, is connected to the second parsing module, the MODBUS data set synthesis MODBUS Frame after resolving;
Receiver module, for receiving the inquiry from MODBUS network and control command, wherein, receives at described receiver module
After described inquiry or control command, the CAN data that parsing is obtained by described modular converter are converted into MODBUS data.
Gateway the most according to claim 1, it is characterised in that described modular converter includes transform subblock, is used for using
The mode that field is corresponding, the field in CAN data parsing obtained is converted in MODBUS data the field of correspondence.
Gateway the most according to claim 1, it is characterised in that also include:
Feedback module, is connected to receiver module, is used for feeding back described MODBUS Frame.
Gateway the most according to claim 3, it is characterised in that also include: scheduler module, is connected to modular converter and reception
Module, after receiving inquiry and control command at receiver module, dispatches what parsing was obtained by the execution of described modular converter
CAN data are converted into the operation of MODBUS data.
5. a gateway, it is characterised in that including:
First parsing module, for resolving the MODBUS Frame received;
Modular converter, is connected to the first parsing module, is converted into CAN data for MODBUS data parsing obtained;
Second parsing module, is connected to modular converter, for resolving described CAN data;
Composite module, is connected to the second parsing module, the CAN data set synthesis CAN Frame after resolving;
First sending module, for sending the response frame of described MODBUS Frame, wherein, while sending response frame, net
Close by MODBUS data conversion corresponding data to CAN data conversion layer.
Gateway the most according to claim 5, it is characterised in that described modular converter includes transform subblock, is used for using
The mode that field is corresponding, the field in MODBUS data parsing obtained is converted in CAN data the field of correspondence.
Gateway the most according to claim 5, it is characterised in that also include: the second sending module, is connected to composite module,
For sending described CAN Frame to CAN network, wherein said CAN Frame is for controlling setting in described CAN network
Standby.
8. a communication network, it is characterised in that include the gateway according to any one of electric equipment and claim 1 to 7.
Communication network the most according to claim 8, it is characterised in that described electric equipment includes one below: air-conditioning, ice
Case.
10. a data processing method, it is characterised in that including:
The CAN Frame received is resolved;
Receive the inquiry from MODBUS network and control command;
CAN data parsing obtained are converted into MODBUS data, wherein, after receiving described inquiry or control command,
CAN data parsing obtained are converted into MODBUS data;
Described MODBUS data are resolved;
MODBUS data set synthesis MODBUS Frame after resolving.
11. 1 kinds of data processing methods, it is characterised in that including:
The MODBUS Frame received is resolved;
Send the response frame of described MODBUS Frame;
MODBUS data parsing obtained are converted into CAN data, and wherein, while sending response frame, gateway passes through
MODBUS data conversion corresponding data is to CAN data conversion layer;
Described CAN data are resolved;
CAN data set synthesis CAN Frame after resolving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210004260.7A CN103200078B (en) | 2012-01-06 | 2012-01-06 | gateway, communication network and data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210004260.7A CN103200078B (en) | 2012-01-06 | 2012-01-06 | gateway, communication network and data processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103200078A CN103200078A (en) | 2013-07-10 |
CN103200078B true CN103200078B (en) | 2016-08-24 |
Family
ID=48722442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210004260.7A Active CN103200078B (en) | 2012-01-06 | 2012-01-06 | gateway, communication network and data processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103200078B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105592018A (en) * | 2014-10-30 | 2016-05-18 | 青岛海信日立空调系统有限公司 | Protocol conversion method, device, and building automatic control system |
CN104506401A (en) * | 2015-01-06 | 2015-04-08 | 西安航天自动化股份有限公司 | Method for achieving Modbus protocol transmission based on ISA100.11a industrial sensor network |
CN105389281A (en) * | 2015-10-15 | 2016-03-09 | 珠海格力电器股份有限公司 | CAN bus data transmitting and receiving method and firmware upgrading method |
CN105592069B (en) * | 2015-11-13 | 2019-04-30 | 青岛海信日立空调系统有限公司 | A kind of method for converting protocol, device and control system |
CN105864898A (en) * | 2016-06-01 | 2016-08-17 | 珠海格力电器股份有限公司 | Multi-connected air conditioning unit |
CN109802899A (en) * | 2017-11-17 | 2019-05-24 | 长沙闽壹湖电子科技有限责任公司 | A kind of CAN bus based modbus communication scheme |
CN108337141B (en) * | 2018-01-05 | 2020-08-18 | 无锡腾越信息技术有限公司 | Modbus communication method for multi-split air conditioner gateway |
CN110765347A (en) * | 2018-07-27 | 2020-02-07 | 珠海格力电器股份有限公司 | Equipment data query method, device and system |
CN109981435B (en) * | 2019-04-02 | 2021-09-28 | 中安智联未来有限公司 | Gateway and communication system based on CAN-ModBus to MQTT |
CN110568806B (en) * | 2019-10-25 | 2022-05-06 | 上海电气集团股份有限公司 | Servo driver and servo driving system |
CN111023262B (en) * | 2019-12-19 | 2021-04-16 | 青岛海信日立空调系统有限公司 | Modbus protocol conversion device and multi-online centralized control system |
CN114855909B (en) * | 2022-05-13 | 2024-01-30 | 徐州徐工基础工程机械有限公司 | Multi-module communication device and groove cleaning machine |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728703A (en) * | 2005-06-29 | 2006-02-01 | 上海大学 | Method for converting protocol between Modbus and DeviceNet |
CN2847715Y (en) * | 2005-12-02 | 2006-12-13 | 江南机电设计研究所 | On-site bus protocol converter |
CN101729561A (en) * | 2009-11-19 | 2010-06-09 | 天津市百利电气有限公司 | Low-voltage electrical appliance communication protocol adapter |
CN101882108A (en) * | 2010-06-30 | 2010-11-10 | 三一重机有限公司 | Embedded software automatic test system and method thereof |
CN202385128U (en) * | 2012-01-06 | 2012-08-15 | 珠海格力电器股份有限公司 | Gateway and communication network |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7532640B2 (en) * | 2003-07-02 | 2009-05-12 | Caterpillar Inc. | Systems and methods for performing protocol conversions in a machine |
-
2012
- 2012-01-06 CN CN201210004260.7A patent/CN103200078B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728703A (en) * | 2005-06-29 | 2006-02-01 | 上海大学 | Method for converting protocol between Modbus and DeviceNet |
CN2847715Y (en) * | 2005-12-02 | 2006-12-13 | 江南机电设计研究所 | On-site bus protocol converter |
CN101729561A (en) * | 2009-11-19 | 2010-06-09 | 天津市百利电气有限公司 | Low-voltage electrical appliance communication protocol adapter |
CN101882108A (en) * | 2010-06-30 | 2010-11-10 | 三一重机有限公司 | Embedded software automatic test system and method thereof |
CN202385128U (en) * | 2012-01-06 | 2012-08-15 | 珠海格力电器股份有限公司 | Gateway and communication network |
Non-Patent Citations (2)
Title |
---|
Modbus与CAN总线协议适配器的设计与实现;杨夫星;《万方学位论文数据库》;20110630;第1-55页 * |
Reserch on Designing Method of CAN Bus and Modbus Protocol Conversion Interface;Lou Guohuan等;《2009 International Conference on Future Biomedical Information Engineering》;20091213;第180-182页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103200078A (en) | 2013-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103200078B (en) | gateway, communication network and data processing method | |
CN100526739C (en) | Central control system for air conditioner and operating method thereof | |
US8260471B2 (en) | Energy distribution management system | |
CN104052766B (en) | The comprehensive intelligent communication means and system of heterogeneous network based on cloud computing | |
CN102625554B (en) | Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof | |
CN203086496U (en) | Intelligent household system | |
CN202166887U (en) | Distribution type control system based on internet of things | |
CN106603716A (en) | Synchronization method of intelligent device state, intelligent device and control terminal thereof | |
CN100504211C (en) | Central air conditioner controller of radio frequency radio data communication and its communication setting method | |
CN107181659A (en) | Intelligent cabinet communication means and system based on RS485 buses | |
CN103645686A (en) | An electric appliance remote control system based on a cloud platform and a method | |
CN102420784A (en) | Home gateway, intelligent system and energy control method thereof | |
CN105788226A (en) | Broadband carrier parallel meter reading method and broadband carrier parallel meter reading system | |
CN106789483A (en) | A kind of distributed KNX intelligent domestic systems | |
CN106168764A (en) | Intelligent home control system based on Android platform | |
CN107249211A (en) | A kind of intelligent gateway and operational process based on LoRa and NB IoT | |
CN105700655A (en) | Rack server system and power supply management method thereof | |
CN201680549U (en) | Air-conditioner centralized control system | |
CN110109856A (en) | A kind of device and method of remotely administered server system BMC | |
CN202385128U (en) | Gateway and communication network | |
CN108255067A (en) | A kind of cloud computing house control system based on wireless sensor network | |
CN203882187U (en) | Wireless household network system | |
CN101729561A (en) | Low-voltage electrical appliance communication protocol adapter | |
CN103226535B (en) | A kind of microserver and management method thereof | |
CN109297143A (en) | System, method, apparatus and the computer storage medium of centralized air-conditioning control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |