CN103200078A - Gateway, communication network and data processing method - Google Patents

Gateway, communication network and data processing method Download PDF

Info

Publication number
CN103200078A
CN103200078A CN2012100042607A CN201210004260A CN103200078A CN 103200078 A CN103200078 A CN 103200078A CN 2012100042607 A CN2012100042607 A CN 2012100042607A CN 201210004260 A CN201210004260 A CN 201210004260A CN 103200078 A CN103200078 A CN 103200078A
Authority
CN
China
Prior art keywords
data
modbus
frame
gateway
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.)
Granted
Application number
CN2012100042607A
Other languages
Chinese (zh)
Other versions
CN103200078B (en
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201210004260.7A priority Critical patent/CN103200078B/en
Publication of CN103200078A publication Critical patent/CN103200078A/en
Application granted granted Critical
Publication of CN103200078B publication Critical patent/CN103200078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a gateway, communication network and data processing method. The gateway comprises a first analyzing module, a conversion module, a second analyzing module and a combination module, wherein the first analyzing module is used for carrying out analysis on received controller area network (CAN) data frames, the conversion module is used for enabling CAN dada achieved through analysis to be converted into MODBUS data, the second analyzing module is used for carrying out analysis on the MODBUS data, and the combination module is used for enabling the analyzed MODBUS data to be combined into MODBUS data frames. Through the gateway, communication network and data processing method, conversion of the CAN data frames and the MODBUS data frames is carried out, so that states of CAN bus network are enabled to be acquired by MODBUS network conveniently and electrical equipment such as air-conditioners can be integrated into building network to be joint-debugged and joint-controlled.

Description

Gateway, communication network and data processing method
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, electrical equipment such as air-conditioning can be formed network and carry out communication, and its communication mechanism adopts the CAN bus usually, and form inner privately owned local area control network by the CAN bus.
Simultaneously, present disclosed building network is formed the MODBUS network based on the MODBUS protocol technology usually.But above-mentioned CAN bus network can not insert the MODBUS network, carries out the uniting and adjustment joint control thereby be difficult to that electrical equipment such as air-conditioning are incorporated the building network, and the user experiences not high.
Summary of the invention
Thereby can not insert the MODBUS network at the CAN bus network is difficult to that electrical equipment such as air-conditioning are incorporated the building network and carries out the problem of uniting and adjustment joint control and propose the present invention, for this reason, main purpose of the present invention is to provide a kind of gateway, communication network and data processing method, to address the above problem.
According to an aspect of the present invention, provide a kind of gateway, having comprised: first parsing module is used for the CAN Frame that receives is resolved; Modular converter, the CAN data transaction that is used for parsing is obtained becomes the MODBUS data; Second parsing module is used for the MODBUS data are resolved; Composite module, the MODBUS data after being used for resolving are combined into the MODBUS Frame.
Preferably, modular converter comprises the conversion submodule, be used for to adopt the mode of field correspondence, and the field in the CAN data that parsing is obtained converts field corresponding in the MODBUS data to.
Preferably, above-mentioned gateway also comprises: receiver module is used for receiving inquiry and control command from the MODBUS network; Feedback module is used for feedback MODBUS Frame.
Preferably, above-mentioned gateway also comprises: scheduler module, be used for after receiver module receives inquiry and control command, and the scheduling modular converter is carried out the operation that the CAN data transaction that parsing is obtained becomes the MODBUS data.
According to an aspect of the present invention, also provide a kind of gateway, having comprised: first parsing module is used for the MODBUS Frame that receives is resolved; Modular converter, the MODBUS data transaction that is used for parsing is obtained becomes the CAN data; Second parsing module is used for the CAN data are resolved; Composite module, the CAN data after being used for resolving are combined into the CAN Frame.
Preferably, modular converter comprises the conversion submodule, be used for to adopt the mode of field correspondence, and the field in the MODBUS data that parsing is obtained converts field corresponding in the CAN data to.
Preferably, above-mentioned gateway also comprises: first sending module, and for the response frame that sends the MODBUS Frame.
Preferably, above-mentioned gateway also comprises: second sending module, be used for sending the CAN Frame to the CAN network, and wherein the CAN Frame is used for the equipment of control CAN network.
According to another aspect of the present invention, provide a kind of communication network, comprised electric equipment and above-mentioned gateway.
Preferably, electric equipment comprises one of following: air-conditioning, refrigerator.
According to a further aspect of the invention, provide a kind of data processing method, having comprised: the CAN Frame that receives has been resolved; The CAN data transaction that parsing is obtained becomes the MODBUS data; The MODBUS data are resolved; MODBUS data after resolving are combined into the MODBUS Frame.
According to a further aspect of the invention, also provide a kind of data processing method, having comprised: the MODBUS Frame that receives has been resolved; The MODBUS data transaction that parsing is obtained becomes the CAN data; The CAN data are resolved; CAN data after resolving are combined into the CAN Frame.
By the present invention, by carrying out the conversion of CAN Frame and MODBUS Frame, thereby be conducive to the state that the MODBUS network is known the CAN bus network, realize that electrical equipment such as air-conditioning are incorporated the building network carries out the uniting and adjustment joint control.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not constitute improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is the structured flowchart one according to the gateway of the embodiment of the invention;
Fig. 2 is the structured flowchart two according to the gateway of the embodiment of the 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 bus to the protocol conversion model schematic diagram of MODBUS network;
Fig. 5 is the schematic diagram of gateway hardware configuration according to the preferred embodiment of the invention;
Fig. 6 is the flow chart one according to the data processing method of the embodiment of the invention;
Fig. 7 is the flowchart 2 according to the data processing method of the embodiment of the invention.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up 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 according to the gateway of the embodiment of the invention, as shown in Figure 1, and first parsing module 11, modular converter 12, second parsing module 13 and composite module 14.Be described in greater detail below.
First parsing module 11 is used for the CAN Frame that receives is resolved; Modular converter 12 is connected to first parsing module 11, is used for that first parsing module 11 is resolved the CAN data transaction that obtains and becomes the MODBUS data; Second parsing module 13 is connected to modular converter 12, is used for the MODBUS data of modular converter 12 conversions are resolved; Composite module 14 is connected to second parsing module 13, is used for the MODBUS data after 13 parsings of second parsing module are combined into the MODBUS Frame.
In the correlation technique, be difficult to that electrical equipment such as air-conditioning are incorporated the building network and carry out the uniting and adjustment joint control thereby the CAN bus network can not insert the MODBUS network.In the embodiment of the invention, the CAN Frame can be converted to the MODBUS Frame, thereby be conducive to the state that the MODBUS network is known the CAN bus network, realize that electrical equipment such as air-conditioning are incorporated the building network carries out the uniting and adjustment joint control.
Preferably, modular converter 12 comprises conversion submodule 122, be used for to adopt the mode of field correspondence, and the field in the CAN data that parsing is obtained converts field corresponding in the MODBUS data to.
Further, above-mentioned gateway also comprises receiver module 14, is used for receiving inquiry and control command from the MODBUS network; Feedback module 15 is connected to receiver module 14, is used for after receiver module 14 receives inquiry and control command, and feedback MODBUS Frame like this, by inquiry and the feedback of MODBUS network, can guarantee the data of MODBUS network inquiry in the CAN network.
Further, above-mentioned gateway also comprises scheduler module 16, be connected to modular converter 12 and receiver module 14, be used for after receiver module 14 receives inquiry and control command, scheduling modular converter 12 is carried out the operation that the CAN data transaction that parsing is obtained becomes the MODBUS data.Like this, the CAN data are constantly resolved but can be initiatively to the MODBUS data transaction, just can change after having only the MODBUS network to send inquiry and control command.Therefore, can avoid taking too much gateway resource and carry out conversion operations.
The present invention also provides a kind of gateway, and Fig. 2 is the structured flowchart two according to the gateway of the embodiment of the invention, as shown in Figure 2, comprises first parsing module 21, modular converter 22, second parsing module 23 and composite module 24.Be described in greater detail below.
First parsing module 21 is used for the MODBUS Frame that receives is resolved; Modular converter 22 is connected to first parsing module 21, is used for that first parsing module 21 is resolved the MODBUS data transaction that obtains and becomes the CAN data; Second parsing module 23 is connected to modular converter 22, is used for the CAN data of modular converter 22 conversions are resolved; Composite module 24 is connected to second parsing module 23, is used for the CAN data after 23 parsings of second parsing module are combined into the CAN Frame.
In the correlation technique, be difficult to that electrical equipment such as air-conditioning are incorporated the building network and carry out the uniting and adjustment joint control thereby the CAN bus network can not insert the MODBUS network.In the embodiment of the invention, the MODBUS Frame can be converted to the CAN Frame, thereby be conducive to the MODBUS network CAN bus network be controlled, realize that electrical equipment such as air-conditioning are incorporated the building network carries out the uniting and adjustment joint control.
Preferably, modular converter 22 comprises conversion submodule 222, be used for to adopt the mode of field correspondence, and the field in the MODBUS data that parsing is obtained converts field corresponding in the CAN data to.
And then above-mentioned gateway also comprises: first sending module 25, and for the response frame that sends the MODBUS Frame.In this preferred embodiment, by the MODBUS Frame is sent response frame, can guarantee the transmission accurately and reliably of MODBUS Frame, thereby be conducive to the MODBUS network more the CAN bus network be controlled, realize that electrical equipment such as air-conditioning are incorporated the building network carries out the uniting and adjustment joint control.
And then above-mentioned gateway also comprises: second sending module 26, be connected to composite module 24, and be used for sending the CAN Frame that composite module 24 is combined into to the CAN network, wherein the CAN Frame is used for the equipment of control CAN network.This preferred embodiment can realize that the MODBUS network controls the CAN bus network, and then realizes that electrical equipment such as air-conditioning are incorporated the building network carries out the uniting and adjustment joint control.
Based on above-mentioned gateway, the present invention also provides a kind of communication network, and this communication network can comprise electric equipment and above-mentioned each described gateway.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, and as shown in Figure 3, the CAN communication network that gateway downwards can the service of connection devices layer provides the MODBUS protocol interface downwards.Machines in the multipotency of every cover gateway inserts 128 groups, the outer machine of 32 covers, and can exist simultaneously with the terminal presentation facility (as the centralized control manual operator) of CAN Communication Layer.
To be example below with the air-conditioning be described in detail the implementation procedure of the embodiment of the invention.
Fig. 4 is that gateway CAN bus as shown in Figure 4, has been described the process of CAN data and MODBUS data double-way conversion to the protocol conversion model schematic diagram of MODBUS network according to the preferred embodiment of the invention.Flow to (1) to (4) according to the signal among Fig. 4 below, the field transfer process that the MODBUS data is converted to the CAN data is described in detail.
MODBUS serial link frame among Fig. 4 comprises the data of the address field of 1Byte, the function code of 1Byte, some Byte and the error checking and correction of 2Byte.
(1) MODBUS data analytic sheaf is resolved the MODBUS data, and it specifically can comprise, and the BMS valid data are resolved, BMS end specific category type dissection process.
(2) MODBUS data transaction, it specifically can comprise Query Information (for example query State amount, inquiry analog quantity and inquiry gateway information) and modification information (for example revise quantity of state and revise analog quantity).
(3) CAN data transaction, it specifically can comprise, and the air-conditioning type is resolved, CAN end specific category type dissection process.
(4) CAN data analytic sheaf is resolved the CAN data, and it specifically can be resolved the CAN data according to the CAN2.0 agreement.
CAN data after the parsing are combined into 1 start of frame bits of CAN standard, 32 arbitration section, 6 control section, the data segment of 0-64 position, 16 CRC section, 2 ACK section and 7 frame end position.Wherein arbitration section can be used for MAC Address (comprising single-level address and two-level address) and the data category of memory function attribute, function type, air-conditioning equipment, data segment can be used for the storage valid data, specifically comprises indoor set set state parameter and fault parameter, off-premises station set state parameter and fault parameter and unit equipment information.
Need to prove, the CAN data be converted to the process of MODBUS data and process that above-mentioned MODBUS data are converted to the CAN data similar, do not repeat them here.
Continue to describe the preferred embodiments of the present invention one and preferred embodiment two below.
Preferred embodiment one
This preferred embodiment one has been described the process of monitoring CAN bus unit data, arbitration section, control section, the data segment of CAN Frame correspondence are stored in the MCU hardware register namely to support the master chip MCU of CAN function will check accurately, therefrom resolve the data of CAN.
(1) 1 transmission of the interior machine below the outer machine 1 come out in this indoor environment temperature, interior machine of machine go into to manage in temperature, the interior machine manage temperature, interior machine goes out to manage temperature, the relevant information of arbitration section wherein, control section, data segment as table 1 to shown in the table 5.
The function code correspondence table of table 1 unit arbitration section
Figure BDA0000129291470000051
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
The Byte data category
Table 4 unit control 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 goes into to manage temperature Manage temperature in the interior machine Interior machine goes out to manage temperature
(2) gateway obtains valid data by CAN data analytic sheaf, and valid data are passed through the CAN data transaction, and corresponding equipment (so 4 temperature of machine 1 in the outer machine 1 in the example) is stored in the gateway CAN register.
(3) timely monitor upgrades the set state of gateway stores.
Preferred embodiment two
This preferred embodiment two has been described the process of searching air conditioner unit information, and wherein its unit information is fed back in the order of air-conditioning real-time response MODBUS main equipment.
(1) the MODBUS main equipment indoor environment temperature, the interior machine that remove to obtain the interior machine 1 below the outer machine 1 by gateway go into to manage in temperature, the interior machine manage temperature, interior machine goes out to manage temperature.If four variablees are arranged in the MODBUS protocol point table register successively in proper order.Wherein, the claim frame corresponding relation of MODBUS is as shown in table 6.
Table 6 MODBUS claim frame correspondence table
Figure BDA0000129291470000052
(2) after gateway is received these data, by the MODBUS analytic sheaf, parse request inquiry and the control command of MODBUS main equipment, and outside finding from the CAN register by the MODBUS data transaction indoor environment temperature, the interior machine of the interior machine 1 below the machine 1 go into to manage in temperature, the interior machine manage temperature, interior machine goes out to manage the temperature respective value.
(3) gateway feeds back to the MODBUS analytic sheaf, the packing response data.Wherein, the corresponding relation of inquiry response frame is as shown in table 7.
Table 7 inquiry response frame correspondence table
Figure BDA0000129291470000061
To sum up, in this preferred embodiment two, the conversion from the CAN Frame to the MODBUS Frame.In gateway, the CAN data of CAN network are constantly resolved but can be initiatively to the MODBUS data transaction, thereby just can conduct the MODBUS network from the CAN data to the MODBUS data transaction after having only the MODBUS network to send inquiry or control command.Simultaneously, the MODBUS network also can constantly send inquiry or control command to the CAN network, so the conversion of data is continual between MODBUS network and the CAN network.
Preferred embodiment three
This preferred embodiment three has been described the process of control air-conditioning unit information, and wherein corresponding control is carried out in the order of air-conditioning real-time response MODBUS main equipment.
(1) the MODBUS main equipment by gateway go to control the interior machine 1 below the outer machine 1 the setting machine open/close, set superpower wind shelves, energy-conservation setting.Wherein, the distributing order of these three variablees is shown in table 8, table 9.
The Partial Variable table of arranging in the table 8 MODBUS protocol point table coil
Set machine open/close Set superpower wind shelves Energy-conservation setting
Open Close Open
The claim frame correspondence table of table 9 MODBUS
Figure BDA0000129291470000062
(2) after gateway is received these data, by the MODBUS analytic sheaf, parse the request control command of MODBUS main equipment.
(3) gateway is made the control response frame of MODBUS main equipment, and this control response frame is used for the expression gateway and has received the MODBUS control information.Wherein, the corresponding relation of this control response frame is as shown in table 10.
The correspondence table of table 10 control response frame
Figure BDA0000129291470000071
(4) when sending the control response frame, gateway is given to CAN data transaction layer by MODBUS data transaction corresponding data, gateway is again by the CAN analytic sheaf packing control frame with the CAN frame format, wherein contain the interior machine 1 below the outer machine 1 that MODBUS sends the setting machine open/close, set superpower wind shelves, energy-conservation set information.
(5) gateway is dealt into the air-conditioning network layer with this CAN control frame, so that unit is controlled and make response according to the CAN control frame of gateway.The relevant information of arbitration section wherein, control section, data segment as table 11 to shown in the 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
The Bit data category
Table 14 gateway control section correspondence table
Control section
Valid data length
Table 15 gateway data segment correspondence table
Figure BDA0000129291470000073
To sum up, the MODBUS Frame is by behind the MODBUS data analytic sheaf resolution data in this preferred embodiment three, thereby convert the CAN data format to by the MODBUS data transaction, and then resolve to the CAN data frame format by CAN data analytic sheaf, be combined into the CAN Frame at last, thereby finish the conversion from the MODBUS Frame to the CAN Frame
In order to further describe above-mentioned gateway, the present invention also provides a kind of implementation of above-mentioned gateway.
Fig. 5 is the schematic diagram of gateway hardware configuration according to the preferred embodiment of the invention, and as shown in Figure 5, gateway hardware comprises power supply module, communication circuit module, memory circuit module, display circuit module, other peripheral circuit modules.Be described in greater detail below.
The power supply circuits interface adopts wide voltage terminal and light current binding post, adopts the wide voltage input of 85V~240V or 24VDC directly to insert two kinds of supply power modes.The client both can provide the forceful electric power power supply to power to gateway according to country variant region actual conditions, can adopt general 24VDC to power to gateway again, made supply power mode to select.In conjunction with actual project situation, choose supply power mode flexibly, operability is convenient.Be mainboard of the independent one-tenth of power switch power-supply controller of electric that wide voltage transfers light current to, gateway is supported light current 24VDC power supply, and by the gateway mould structure, the client provides the wide voltage of 85V~240V or direct 24VDC to power as required.
Communicating circuit uses CAN interface binding post and MODBUS binding post or RJ45 network interface.Make gateway can dock a CAN air-conditioning bus network, adopt expansion frame or the standard frame of CANbus 2.0, by defining different arbitration section function codes, have inquiry and management air-conditioning equipment IP identify label, monitoring air-conditioning equipment running status, carry out common single device control and packet equipment control, IP conflict are reported to the police and functions such as bomp function.Realize that gateway carries out network identity for the air-conditioning equipment of different engineerings position, can monitor and control appliance, and the block functions coding mode of subregion and floor control can be provided, and have perfect CAN miscommunication mechanism to handle, it is normal to guarantee that the CAN communication network inserts.
Communicating circuit also makes gateway can insert the MODBUS communication network, supports register, coil read-write capability, to realize monitoring and control air-conditioning information.
As MODBUS from equipment, define based on MODBUS standard feature sign indicating number, expansion arranges the grouping group number, reads the grouping group number, grouping control issues function code, grouping control is that host computer (BMS) the control object unit identical to group number in the network (for example indoor set air-conditioning equipment in this programme) controlled simultaneously, to reach the purpose of quick control.Grouping control only is used for write operation, and gateway does not need to reply, and host computer (BMS) can judge by reading valid data frame ordering counter whether control is successful.
In the MODBUS agreement except the air-conditioning state parameter and fault parameter, the function that also comprises abundant locking operating states of the units, remote lock control (namely shielding all keypress functions of manual operator), remote monitoring shielding temperature (namely shielding the manual operator temp regulating function), remote monitoring mask pattern (namely shielding manual operator mode adjustment function), remote monitoring shield shutdown function (namely shielding manual operator switching on and shutting down set-up function).Remote monitoring software control function is not subjected to screening effect.Also contain cooling and warming energy efficiency temperature limitation function, when refrigerated energy-saving works, make design temperature be not less than the energy efficiency temperature lower limit, when heating energy-conservation working, make design temperature not be higher than the energy efficiency temperature lower limit.This type of function is conducive to the intelligent automation telemanagement air-conditioning equipment in hotel type or office formula building.
USB HOST communication modes is realized the function by USB flash disk auto-update gateway program, and checks demonstration gateway device version information by display screen.By sales force or agent, when the client needs the expansion of gateway or upgrade function, need not change client's gateway hardware by this kind mode, also can satisfy client's demand.
Memory circuit is stored the important service data of jumbo unit by the SD card, satisfy air-conditioning household cost allocation data backup demand, and by SDRAM mode record trouble for the previous period operating states of the units so that host computer (BMS) can be read when needing fast, and power-failure memory gateway important information, real-time clock RTC is provided.
Display circuit comprises LED light, charactron, LCD screen, shows the running status of each functions of modules of gateway.Be convenient to that the client checks or engineering debug personnel uniting and adjustment gateway device.
Other peripheral circuit modules mainly comprise reset circuit, external crystal-controlled oscillation, program debugging interface, key circuit, I/O control etc., and wherein I/O control input and output realize fire, the gate inhibition air-conditioning equipment that links.
The present invention also provides a kind of data processing method, and Fig. 6 is the flow chart one according to the data processing method of the embodiment of the invention, as shown in Figure 6, comprises that following step S602 is to step S608.
Step S602 resolves the CAN Frame that receives.
Step S604, the CAN data transaction that parsing is obtained becomes the MODBUS data.
Step S606 resolves the MODBUS data.
Step S608 is combined into the MODBUS Frame with the MODBUS data after resolving.
The present invention also provides a kind of data processing method, and Fig. 7 is the flowchart 2 according to the data processing method of the embodiment of the invention, as shown in Figure 7, comprises that following step S702 is to step S708.
Step S702 resolves the MODBUS Frame that receives.
Step S704, the MODBUS data transaction that parsing is obtained becomes the CAN data.
Step S706 resolves the CAN data.
Step S708 is combined into the CAN Frame with the CAN data after resolving.
Need to prove, can in the computer system such as one group of computer executable instructions, carry out in the step shown in the flow chart of accompanying drawing, and, though there is shown logical order in flow process, but in some cases, can carry out step shown or that describe with the order that is different from herein.
In sum, according to the abovementioned embodiments of the present invention, a kind of gateway, communication network and data processing method are provided.By the present invention, by carrying out the conversion of CAN Frame and MODBUS Frame, thereby be conducive to the state that the MODBUS network is known the CAN bus network, realize that electrical equipment such as air-conditioning are incorporated the building network carries out the uniting and adjustment joint control.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and be carried out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. gateway is characterized in that comprising:
First parsing module is used for the CAN Frame that receives is resolved;
Modular converter, the CAN data transaction that is used for parsing is obtained becomes the MODBUS data;
Second parsing module is used for described MODBUS data are resolved;
Composite module, the MODBUS data after being used for resolving are combined into the MODBUS Frame.
2. gateway according to claim 1 is characterized in that, described modular converter comprises the conversion submodule, be used for to adopt the mode of field correspondence, and the field in the CAN data that parsing is obtained converts field corresponding in the MODBUS data to.
3. gateway according to claim 1 is characterized in that, also comprises:
Receiver module is used for receiving inquiry and control command from the MODBUS network;
Feedback module is used for the described MODBUS Frame of feedback.
4. gateway according to claim 3 is characterized in that, also comprises: scheduler module, be used for after receiver module receives inquiry and control command, and dispatch described modular converter and carry out the operation that the CAN data transaction that parsing is obtained becomes the MODBUS data.
5. gateway is characterized in that comprising:
First parsing module is used for the MODBUS Frame that receives is resolved;
Modular converter, the MODBUS data transaction that is used for parsing is obtained becomes the CAN data;
Second parsing module is used for described CAN data are resolved;
Composite module, the CAN data after being used for resolving are combined into the CAN Frame.
6. gateway according to claim 5 is characterized in that, described modular converter comprises the conversion submodule, be used for to adopt the mode of field correspondence, and the field in the MODBUS data that parsing is obtained converts field corresponding in the CAN data to.
7. gateway according to claim 5 is characterized in that, also comprises: first sending module, and for the response frame that sends described MODBUS Frame.
8. gateway according to claim 5 is characterized in that, also comprises: second sending module, be used for sending described CAN Frame to the CAN network, and wherein said CAN Frame is used for the equipment of the described CAN network of control.
9. a communication network is characterized in that comprising each described gateway in electric equipment and the claim 1 to 8.
10. communication network according to claim 9 is characterized in that, it is one of following that described electric equipment comprises: air-conditioning, refrigerator.
11. a data processing method is characterized in that comprising:
The CAN Frame that receives is resolved;
The CAN data transaction that parsing is obtained becomes the MODBUS data;
Described MODBUS data are resolved;
MODBUS data after resolving are combined into the MODBUS Frame.
12. a data processing method is characterized in that comprising:
The MODBUS Frame that receives is resolved;
The MODBUS data transaction that parsing is obtained becomes the CAN data;
Described CAN data are resolved;
CAN data after resolving are combined into the CAN Frame.
CN201210004260.7A 2012-01-06 2012-01-06 gateway, communication network and data processing method Active CN103200078B (en)

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 true CN103200078A (en) 2013-07-10
CN103200078B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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 (Controller Area Network) bus data transmitting method, CAN bus data receiving method and firmware upgrade method
CN105592018A (en) * 2014-10-30 2016-05-18 青岛海信日立空调系统有限公司 Protocol conversion method, device, and building automatic control system
CN105592069A (en) * 2015-11-13 2016-05-18 青岛海信日立空调系统有限公司 Protocol conversion method and device and control system
CN105864898A (en) * 2016-06-01 2016-08-17 珠海格力电器股份有限公司 Multi-connected air conditioning unit
CN108337141A (en) * 2018-01-05 2018-07-27 无锡腾越信息技术有限公司 Multi-gang air-conditioner gateway Modbus communication protocols
CN109802899A (en) * 2017-11-17 2019-05-24 长沙闽壹湖电子科技有限责任公司 A kind of CAN bus based modbus communication scheme
CN109981435A (en) * 2019-04-02 2019-07-05 中安智联未来有限公司 Turn MQTT gateway and communication system based on CAN-ModBus
CN110568806A (en) * 2019-10-25 2019-12-13 上海电气集团股份有限公司 Servo driver and servo driving system
CN110765347A (en) * 2018-07-27 2020-02-07 珠海格力电器股份有限公司 Equipment data query method, device and system
CN111023262A (en) * 2019-12-19 2020-04-17 青岛海信日立空调系统有限公司 Modbus protocol conversion device and multi-online centralized control system
CN114855909A (en) * 2022-05-13 2022-08-05 徐州徐工基础工程机械有限公司 Multi-module communication device and slot cleaning machine

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002417A1 (en) * 2003-07-02 2005-01-06 Kelly Thomas J. Systems and methods for performing protocol conversions in a work machine
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050002417A1 (en) * 2003-07-02 2005-01-06 Kelly Thomas J. Systems and methods for performing protocol conversions in a work machine
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)

* Cited by examiner, † Cited by third party
Title
LOU GUOHUAN等: "Reserch on Designing Method of CAN Bus and Modbus Protocol Conversion Interface", 《2009 INTERNATIONAL CONFERENCE ON FUTURE BIOMEDICAL INFORMATION ENGINEERING》 *
杨夫星: "Modbus与CAN总线协议适配器的设计与实现", 《万方学位论文数据库》 *

Cited By (18)

* Cited by examiner, † Cited by third party
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 (Controller Area Network) bus data transmitting method, CAN bus data receiving method and firmware upgrade method
CN105592069A (en) * 2015-11-13 2016-05-18 青岛海信日立空调系统有限公司 Protocol conversion method and device and control system
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
CN108337141A (en) * 2018-01-05 2018-07-27 无锡腾越信息技术有限公司 Multi-gang air-conditioner gateway Modbus communication protocols
CN110765347A (en) * 2018-07-27 2020-02-07 珠海格力电器股份有限公司 Equipment data query method, device and system
CN109981435A (en) * 2019-04-02 2019-07-05 中安智联未来有限公司 Turn MQTT gateway and communication system based on CAN-ModBus
CN109981435B (en) * 2019-04-02 2021-09-28 中安智联未来有限公司 Gateway and communication system based on CAN-ModBus to MQTT
CN110568806A (en) * 2019-10-25 2019-12-13 上海电气集团股份有限公司 Servo driver and servo driving system
CN110568806B (en) * 2019-10-25 2022-05-06 上海电气集团股份有限公司 Servo driver and servo driving system
CN111023262A (en) * 2019-12-19 2020-04-17 青岛海信日立空调系统有限公司 Modbus protocol conversion device and multi-online centralized control system
CN111023262B (en) * 2019-12-19 2021-04-16 青岛海信日立空调系统有限公司 Modbus protocol conversion device and multi-online centralized control system
CN114855909A (en) * 2022-05-13 2022-08-05 徐州徐工基础工程机械有限公司 Multi-module communication device and slot cleaning machine
CN114855909B (en) * 2022-05-13 2024-01-30 徐州徐工基础工程机械有限公司 Multi-module communication device and groove cleaning machine

Also Published As

Publication number Publication date
CN103200078B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN103200078A (en) Gateway, communication network and data processing method
CN202166887U (en) Distribution type control system based on internet of things
CN202385128U (en) Gateway and communication network
CN105095553A (en) Topology display method and device
CN106027351B (en) A kind of embedded web server fieldbus fault diagnosis communication module
CN102984096B (en) Assembling method for controller area network (CAN) data frames applied in ship dynamic information acquisition device
CN103428051A (en) System and method for testing communication devices
CN105788226A (en) Broadband carrier parallel meter reading method and broadband carrier parallel meter reading system
CN113659713A (en) Plug and play method for power distribution internet of things end-side equipment based on HPLC communication
CN105897471A (en) Out-of-band management system and out-of-band management method
CN110932952B (en) Control system, control method and upgrading method of intelligent household product
CN102611563A (en) Management system of RFID (radio frequency identification devices) electronic distributing frame
CN103138944A (en) Server rack system and power management method thereof
CN103048984A (en) Multi-channel ARINC(aeronautical radio incorporated) 700 bus monitoring device and realizing method thereof
CN103227449A (en) Automatic check system for setting values of protective devices
CN104089377A (en) Air conditioner, control method and device thereof and controller
CN102866967B (en) I 2c device management method and complex programmable logic device (CPLD)
CN107911493A (en) Realize the method that the address of 485 equipment is distributed automatically in backstage
CN103217956B (en) Industrial control system as well as control method and control device thereof
CN104701982B (en) A kind of method for carrying out automatic upgrading to distribution line monitoring terminal
CN106338938B (en) A kind of backplane bus communication addressing system and method
CN202749911U (en) Power distribution terminal
CN108345558B (en) RS485 centralized configuration unit supporting multiple protocols
CN204759119U (en) Local consumer off -line network management control system
CN208271171U (en) A kind of server debugging apparatus and server

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