CN107124421A - Communication means based on multi-protocols, multi-protocol gateway equipment and can storage medium - Google Patents

Communication means based on multi-protocols, multi-protocol gateway equipment and can storage medium Download PDF

Info

Publication number
CN107124421A
CN107124421A CN201710329826.6A CN201710329826A CN107124421A CN 107124421 A CN107124421 A CN 107124421A CN 201710329826 A CN201710329826 A CN 201710329826A CN 107124421 A CN107124421 A CN 107124421A
Authority
CN
China
Prior art keywords
frame
data
json
data frames
protocol
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
CN201710329826.6A
Other languages
Chinese (zh)
Other versions
CN107124421B (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 CN201710329826.6A priority Critical patent/CN107124421B/en
Publication of CN107124421A publication Critical patent/CN107124421A/en
Application granted granted Critical
Publication of CN107124421B publication Critical patent/CN107124421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a kind of communication means based on multi-protocols, methods described comprises the following steps:The source signal that source device is sent is obtained, the default data frame of source signal includes one or more communication protocol data frames;The default data frame of source signal is converted into normal data frame;Parsing is carried out to normal data frame and obtains Json data frames;Parsing is carried out to Json data frames and obtains the control parameter of target device, and the control parameter of target device is sent to the target device.Present invention also offers a kind of multi-protocol gateway equipment and can storage medium.The communication means based on multi-protocols of the present invention, multi-protocol gateway equipment and can storage medium, solve the problem of different communication mode needs to access multiple gateway devices, improve the versatility of gateway device, conversion between various communications protocols more facilitates, and disclosure satisfy that the demand of the building managements such as air-conditioning system communication.

Description

Communication means based on multi-protocols, multi-protocol gateway equipment and can storage medium
Technical field
The present invention relates to communication technical field, more particularly to a kind of communication means based on multi-protocols, multi-protocol gateway Equipment and can storage medium.
Background technology
Usually, the conversion of the most of only support single communication protocol of gateway, part gateway can realize multi-communication protocol Conversion, but above-mentioned multi-protocol gateway only supports Modbus, the communication protocol such as CAN, it is impossible to meet air-conditioning system centralized Control Demand, the versatility of gateway is poor.
The content of the invention
In view of the problem of versatility of above-mentioned gateway is poor, it is an object of the invention to provide a kind of logical based on multi-protocols Letter method, multi-protocol gateway equipment and can storage medium, improve gateway device versatility, disclosure satisfy that air-conditioning system etc. concentrate The demand of control.
To achieve the above object, the present invention is adopted the following technical scheme that:
A kind of communication means based on multi-protocols, methods described comprises the following steps:
The source signal that source device is sent is obtained, the default data frame of the source signal includes one or more communication protocol numbers According to frame;
The default data frame of the source signal is converted into normal data frame;
Parsing is carried out to the normal data frame and obtains Json data frames;
The control parameter that parsing obtains target device is carried out to the Json data frames, and by the control of the target device Parameter is sent to the target device.
In one of the embodiments, the step of default data frame of the source signal being converted into normal data frame enters one Step includes:
The source signal is parsed, obtains and is included in the data segment information of the source signal, the data segment information The parameter information to be controlled of the target device;
Json data frames are obtained according to the parameter information to be controlled of the target device included in the data segment information, its In, the Json data frames include control frame and/or the frame that gets parms;
The Json data frames are converted to the data format of default system, the mesh matched with the normal data frame is obtained Mark frame data;
The target frame data are write in the valid data section of the normal data frame, the normal data frame is obtained.
In one of the embodiments, also include before the step of being parsed to the Json data frames:
Judging the actual dial-up information of gateway dial-up information and multi-protocol gateway equipment that the Json data frames are carried is It is no consistent;
When the actual dial-up information of gateway dial-up information and the multi-protocol gateway equipment that the Json data frames are carried When consistent, then the Json data frames are received.
In one of the embodiments, the step that parsing obtains the control parameter of target device is carried out to the Json data frames Suddenly also include:
Judge the frame type of the Json data frames received;
Interface function corresponding with present frame type is called according to the frame type of the Json data frames;
The Json attributes of the Json data frames are obtained according to the corresponding interface function of present frame type;
The Json attributes are matched with default Json fields control table, the control ginseng of the target device is obtained Number.
In one of the embodiments, the communication means supports internet and LAN;
The default data frame of the source signal be TCP/IP data frames, CAN protocol data frame, Modbus protocol data frames and One or more in Bacnet protocol data frames.
Meanwhile, one embodiment of the invention additionally provides a kind of multi-protocol gateway equipment, including:
Read module, the source signal for obtaining source device transmission, the default data frame of the source signal include it is a kind of or Various communications protocols data frame;
Modular converter, for the default data frame of the source signal to be converted into normal data frame;
Parsing module, carries out parsing for the normal data frame and obtains Json data frames, and to the Json data frames Carry out the control parameter that parsing obtains target device;
Sending module, for the control parameter of the target device to be sent into the target device.
In one of the embodiments, the modular converter is further used for parsing the source signal, obtains institute State the parameter information to be controlled that the target device is included in the data segment information of source signal, the data segment information;According to institute The parameter information to be controlled for stating the target device included in data segment information obtains Json data frames, wherein, the Json data Frame includes control frame and/or the frame that gets parms;The Json data frames are converted to the data format of default system, obtained and institute State the target frame data of normal data frame matching;The target frame data are write to the valid data section of the normal data frame In, obtain the normal data frame.
In one of the embodiments, the multi-protocol gateway equipment also includes judge module, for judging the Json Whether the gateway dial-up information that data frame is carried is consistent with the actual dial-up information of multi-protocol gateway equipment;When the Json data When the gateway dial-up information that frame is carried is consistent with the actual dial-up information of the multi-protocol gateway equipment, then the Json numbers are received According to frame.
In one of the embodiments, the parsing module is further used for obtaining the Json data frames that have received Frame type;Interface function corresponding with present frame type is called according to the frame type of the Json data frames;According to present frame class The corresponding interface function of type obtains the Json attributes of the Json data frames;By the Json attributes and default Json fields control Tabulation is matched, and obtains the control parameter of the target device.
In one of the embodiments, the read module includes the first reading unit, the second reading unit, the 3rd reading Unit and the 4th reading unit;
First reading unit is used to obtain the TCP/IP data frames transmitted by ICP/IP protocol;
Second reading unit is used to obtain the CAN protocol data frame transmitted by CAN protocol;
3rd reading unit is used to obtain the Modbus protocol data frames transmitted by Modbus agreements;
4th reading unit is used to obtain the Bacnet protocol data frames transmitted by Bacnet agreements.
In addition, another embodiment of the present invention additionally provides a kind of multi-protocol gateway equipment, including processor, memory and The computer program on the memory is stored in, described in the computing device during computer program, above-mentioned is specifically performed The step in communication means described in one.
In addition, one embodiment of the invention additionally provide one kind can storage medium, the calculating that can be stored with storage medium Machine is instructed, when the computer instruction is executed by processor, the step in the specific communication means performed described in any of the above-described.
The beneficial effects of the invention are as follows:
The present invention the communication means based on multi-protocols, multi-protocol gateway equipment and can storage medium, pass through gateway device The one or more different communication protocol data frames received are converted into unified normal data frame, and to above-mentioned standard data Frame carries out parsing and obtains Json data frames, further carries out the control parameter that parsing obtains target device to Json data frames, solution The problem of different communication mode of having determined needs to access multiple gateway devices, improves the versatility of gateway device, a variety of communication protocols Conversion between view more facilitates, and disclosure satisfy that the demand of the building managements such as air-conditioning system communication.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment of communication means one based on multi-protocols of the present invention;
Fig. 2 is the flow chart of another embodiment of the communication means based on multi-protocols of the present invention;
Fig. 3 is the encapsulating structure figure of the embodiment of communication means Plays data frame one of the present invention;
Fig. 4 is the structured flowchart of the embodiment of multi-protocol gateway equipment one of the present invention;
Fig. 5 be Fig. 3 in the embodiment of multi-protocol gateway equipment one application scenarios block diagram.
Embodiment
In order that technical scheme is clearer, below in conjunction with accompanying drawing, to the logical based on multi-protocols of the present invention Letter method, multi-protocol gateway equipment and can storage medium be described in further detail.It should be appreciated that described herein specific Embodiment is only to explain that the present invention is not intended to limit the present invention.
As shown in figure 1, one embodiment of the invention provides a kind of communication means based on multi-protocols, the communication means can be with The conversion between multiple different communication protocols is realized, and disclosure satisfy that the central controlled demand of air-conditioner set.Specifically, it is above-mentioned logical Letter method can be used in multi-protocol gateway equipment, and the above method comprises the following steps:
S100, multi-protocol gateway equipment obtain the source signal that source device is sent, and the default data frame of source signal includes one kind Various communications protocols data frame, i.e. source signal can be sent to multi-protocol gateway equipment by various communications protocols.Specifically, source Equipment can be host computer, and such as client, source device can also be controlled device, such as air-conditioner set.Source device is sent out The signal that the source signal sent can send for host computer or air-conditioner set to the multi-protocol gateway equipment, for example, source signal can be with It is the control signal that host computer is sent, or source signal is feedback signal that air-conditioner set is returned etc..
Further, the multi-protocol gateway equipment can be with integrated ICP/IP protocol, CAN protocol (Controller Area Network, control area network, it is a kind of serial communication protocol bus applied in real time), Modbus agreements (agreement Support traditional RS-232, RS-422, RS-485 and ethernet device) and Bacnet agreements (A Data Communication Protocol for Building Automation and Control Networks, building automation and coutrol network data is led to Interrogate agreement) etc. a variety of different communication protocols, and realize the conversion between above-mentioned various communications protocols.That is the multi-protocol gateway equipment It can receive with the data of above-mentioned a variety of different communication protocol transmission, the default data frame of source signal can be TCP/IP data Frame, CAN protocol data frame, Modbus protocol data frames or Bacnet protocol data frames.Further, above-mentioned communication means branch Hold internet and LAN (including Ethernet and the direct-connected mode of radio communication) etc..Because the multi-protocol gateway can be with Integrated Bacnet agreements, therefore applied in the systems such as illumination, air-conditioning system, security and fire-fighting.
The default data frame of source signal is converted to normal data frame by S200, multi-protocol gateway;So, can by it is a variety of not Source signal with communication protocol data frame is converted to specific normal data frame, thereby may be ensured that source device leads to gateway data The uniqueness of letter.For example, source signal is sent to gateway device by host computer by ICP/IP protocol, to ensure data communication only One property, the source signal for the TCP/IP data frames that gateway device can transmit its source device is converted to normal data frame.
Specifically, as shown in figure 3, the normal data frame can include source address, guidance code, valid data section, function code, Check code, data length and destination address.Wherein, the address for being originally sent equipment of the quasi- data frame of source address table indicating, such as may be used Think the address of host computer;Destination address represents that normal data frame eventually arrives at the address of equipment, can be such as controlled air conditioner The address of group.Further, source address and destination address can be identified using 7 byte modes.For undefined such The situation data frame of address, 0 is disposed as by each byte of its source address and destination address.Set for the MAC Address of 6 bytes It is standby, MAC Address can successively be filled in from low to high, end byte is set to 0.
Guidance code is used for the beginning length of identification standard data frame, generally 2 bytes.Function code is used for identification standard number According to the type of frame, generally 1 byte.Check code calculates acquisition by the way of cyclic redundancy.Data length is represented from function Code word section starts, to the length of last byte of valid data section.Valid data section is main interior comprising normal data frame Hold, the valid data section in the present embodiment can be converted to Json data frame formats, and valid data section can be according to source signal Obtain.For example, when host computer is controlled as source device to air-conditioner set (target device), the source in the normal data frame Address, guidance code, function code and destination address could be arranged to default value, and the source signal that can be sent according to host computer is had Data segment and data length are imitated, and calculates by way of cyclic redundancy acquisition check code.
S300, multi-protocol gateway carry out parsing to normal data frame and obtain Json data frames (JavaScript Object Notation, JS object tag, it is a kind of data interchange format of lightweight);Specifically, it can intercept in normal data frame Valid data section, by normal data frame valid data section parsed to obtain Json data frames.Due to default Normal data frame in valid data section can be formed by specific Json frame formats data conversion, therefore, it can by right Normal data frame carries out parsing and obtains Json data frames.
S400, multi-protocol gateway carry out parsing to Json data frames and obtain the control parameter of target device, and target is set Standby control parameter is sent to target device.Specifically, character string forms can be obtained by carrying out parsing to Json data frames Json attributes, the control parameter of target device can be known according to the Json attributes.Further, by the target device of acquisition Control parameter be converted into the data of 16 systems, and the data of 16 systems are further converted to the data frame of target device support Form, in order to which the control parameter of target device is sent into target device.
In one embodiment, above-mentioned steps S200 further comprises:
Source signal is parsed, treating comprising target device in the data segment information of source signal, data segment information is obtained Control parameter information;
Json data frames are obtained according to the parameter information to be controlled of the target device included in data segment information, wherein, Json data frames can include control frame and/or the frame that gets parms;
Json data frames are converted to the data format of default system, the target frame number matched with normal data frame is obtained According to;Specifically, because Json data frames are expressed as the form of character string, therefore the Json data frames can be converted to 16 systems Data format, it is 16 binary datas to obtain the target frame data that are matched with normal data frame, i.e. the target frame data.
Target frame data are write in the valid data section of normal data frame, normal data frame is obtained.Specifically, can be by Target frame data insertion normal data frame valid data section in, can update afterwards Current standards data frame data length and Check code, obtains normal data frame.
In one embodiment, as shown in Fig. 2 also comprising the following steps before above-mentioned steps S400:
S500, judge that gateway dial-up information and the actual dial-up information of multi-protocol gateway equipment that Json data frames carry are It is no consistent;Specifically, gateway dial-up information is carried in the control frame of Json data frames and the frame that gets parms.Further, When the frame type of Json data frames is control frame, it can be determined that gateway dial-up information and multi-protocol gateway that the control frame is carried Whether the actual dial-up information of equipment is consistent.When the frame type of Json data is to get parms frame, it can be determined that the acquisition is joined Whether the gateway dial-up information that number frame is carried is consistent with the actual dial-up information of multi-protocol gateway equipment.
When the gateway dial-up information that Json data frames are carried is consistent with the actual dial-up information of multi-protocol gateway equipment, then Step S510 is performed, multi-protocol gateway receives the Json data frames.Wherein, gateway dial-up information is expressed as the physics group of gateway Code, authentication code during row data communication is entered mainly as source device and gateway.The gateway dial-up information carried when Json data frames When consistent with the actual dial-up information of multi-protocol gateway equipment, then gateway device can be determined that the Json data frames of source device transmission Really oneself is destined to, now source device (such as host computer) can carry out data communication with gateway, and receive host computer Json data frames, gateway device can be by the successful feedback of the information of data receiver to source device (such as host computer).When Json data When the actual dial-up information of the gateway dial-up information that frame is carried and multi-protocol gateway equipment is inconsistent, then gateway device can be determined that Source device transmission Json data frames it is wrong, reject its transmission Json data frames, now source device (such as host computer) with Gateway device can not be communicated, and gateway device can be by the feedback of the information of data receiver failure to source device (such as host computer).
Further, as shown in Fig. 2 above-mentioned steps S400 also comprises the following steps:
The frame type for the Json data frames that S410, judgement have been received;Specifically, when the gateway dial-up that Json data frames are carried When information is consistent with the actual dial-up information of multi-protocol gateway equipment, gateway device receives above-mentioned Json data frames.Due to data The frame type of frame is different, and its corresponding processing method is also different, therefore can determine whether the frame type of above-mentioned Json data It is control frame or gets parms frame, determines its corresponding data frame processing method.
For example, the frame type of above-mentioned Json data can be control frame or the frame that gets parms, wherein, control frame can be group Control frame and multiselect control frame.Specifically, team control frame refers to that pair all target devices being connected with gateway device are controlled, example Such as, when needing pair all indoor apparatus of air conditioner being connected with gateway device to be controlled, then need to use team control frame.Multiselect control frame Refer to pair partial target equipment being connected with gateway device (can be one or more target devices, but not all target device) It is controlled.For example, 100 indoor apparatus of air conditioner are connected under the gateway device, when user needs to control 80 indoor sets therein, Then need to use multiselect control frame.When user needs 100 indoor sets of control, then need to use team control frame.Further, it is many Select control frame and team control frame to need control each indoor set control parameter when it is optional.
The frame that gets parms is used for the parameter information for obtaining target device.For example, user can be needed by upper computer selecting The operational factor for the indoor apparatus of air conditioner that the indoor apparatus of air conditioner and needs of inquiry are inquired about.Further, when only need to controlling or obtain During operational factor in air conditioning chamber, then need to only there are interior machine number field and interior machine fortune in the valid data section of normal data frame Row parameter information.If need control indoor set, outdoor unit and sub outer machine simultaneously, in the valid data section of normal data frame Corresponding field information, field attribute are added, that is, increases the corresponding control parameter of Json field control tables.
S420, interface function corresponding with present frame type called according to the frame type of Json data frames;Wherein, herein The corresponding interface function of present frame type is mainly used in limiting the data processing method of present frame type.
S430, the Json attributes according to the corresponding interface function acquisition Json data frames of present frame type;Specifically, Json Attribute can be text formatting, and the parameter to be controlled of target device can be intuitively obtained according to Json attributes.
S440, Json attributes are matched with default Json fields control table, obtain the control parameter of target device. For example, default Json fields control table can include affiliated type (e.g., whole air-conditioning system, the air conditioning chamber of parameter to be controlled Interior machine, air-conditioner outdoor unit etc.), the coordinate of parameter to be controlled, read-write field, the title of parameter to be controlled, Json fields, treat Processing method of control parameter etc..In the present embodiment, the control address of each Json attribute can be obtained using hash algorithm, Position of the Json attributes in Json field control tables is obtained by hash algorithm Rapid matching, set to obtain each target Standby control parameter.
Meanwhile, as shown in figure 4, one embodiment of the invention additionally provides a kind of multi-protocol gateway equipment 10, the multi-protocols net Close equipment 10 can with integrated ICP/IP protocol, CAN protocol (Controller Area Network, control area network, its A kind of serial communication protocol bus applied in real time), Modbus agreements (agreement support traditional RS-232, RS-422, RS-485 and ethernet device) and Bacnet agreements (A Data Communication Protocol for Building Automation and Control Networks, building automation and coutrol Data Communication in Computer Networks agreement) etc. a variety of different communications association View, and realize the conversion between above-mentioned various communications protocols.Further, above-mentioned multi-protocol gateway equipment can apply to interconnection Net and LAN (including Ethernet and the direct-connected mode of radio communication).As shown in figure 5, the multi-protocol gateway 10 can connect It is connected between client (source device) 20 and air-conditioner set (target device) 30, between client 20 and air-conditioner set 30 Data communication.
Specifically, above-mentioned multi-protocol gateway equipment includes read module 110, modular converter 120, parsing module 140 and hair Send module 150.Wherein, read module 110 is used for the source signal for obtaining source device transmission, and the default data frame of source signal includes one Plant or various communications protocols data frame;The default data frame of source signal is TCP/IP data frames, CAN protocol data frame, Modbus Protocol data frame and Bacnet protocol data frames.Further, read module 110 includes the first reading unit, the second reading list Member, the 3rd reading unit and the 4th reading unit;First reading unit is used to obtain the TCP/IP transmitted by ICP/IP protocol Data frame;Second reading unit is used to obtain the CAN protocol data frame transmitted by CAN protocol;3rd reading unit is used to obtain Take the Modbus protocol data frames transmitted by Modbus agreements;4th reading unit is used to obtain to be transmitted by Bacnet agreements Bacnet protocol data frames.
Modular converter 120 is used to the default data frame of source signal being converted to normal data frame.So, can by it is a variety of not Source signal with communication protocol data frame is converted to specific normal data frame, thereby may be ensured that source device leads to gateway data The uniqueness of letter.For example, source signal is sent to gateway device by host computer by ICP/IP protocol, to ensure data communication only One property, the source signal for the TCP/IP data frames that gateway device can transmit its source device is converted to normal data frame.
Parsing module 140 is used for normal data frame and carries out parsing acquisition Json data frames, and Json data frames are solved Analysis obtains the control parameter of target device.Specifically, the valid data section in normal data frame can be intercepted, by criterion numeral Parsed according to the valid data section in frame to obtain Json data frames.Due to the valid data section in default normal data frame It can be formed by specific Json frame formats data conversion, therefore, it can obtain Json by carrying out parsing to normal data frame Data frame.Meanwhile, it can be belonged to by carrying out the Json attributes that parsing obtains character string forms to Json data frames according to the Json Property can know the control parameter of target device.Further, the control parameter of the target device of acquisition is converted into 16 systems Data, and the data of 16 systems are further converted to target the data frame format supported are set, in order to by target device Control parameter be sent to target device.Sending module 150 is used to the control parameter of target device being sent to target device.
In one embodiment, modular converter 120 is further used for parsing source signal, obtains the data of source signal The parameter information to be controlled of target device is included in segment information, data segment information;Target according to being included in data segment information is set Standby parameter information to be controlled obtains Json data frames, wherein, Json data frames include control frame and/or the frame that gets parms;Will Json data frames are converted to the data format of default system, obtain the target frame data matched with normal data frame;By target frame In the valid data section of data write-in normal data frame, normal data frame is obtained.
In one embodiment, multi-protocol gateway equipment also includes judge module 130, for judging that Json data frames are carried Gateway dial-up information it is whether consistent with the actual dial-up information of multi-protocol gateway equipment;When the gateway that Json data frames are carried is dialled When code information is consistent with the actual dial-up information of multi-protocol gateway equipment, then Json data frames are received.Wherein, gateway dial-up information The physics dial-up of gateway is expressed as, authentication code during row data communication is entered mainly as source device and gateway.When Json data frames When the gateway dial-up information of carrying is consistent with the actual dial-up information of multi-protocol gateway equipment, then gateway device can be determined that source is set The Json data frames of standby transmission are destined to oneself really, and now source device (such as host computer) can lead to gateway progress data News, and receive the Json data frames of host computer, gateway device can by the successful feedback of the information of data receiver to source device (as above Position machine).When the actual dial-up information of the gateway dial-up information that Json data frames are carried and multi-protocol gateway equipment is inconsistent, then Gateway device can be determined that the Json data frames of source device transmission are wrong, reject the Json data frames of its transmission, now source Equipment (such as host computer) can not be communicated with gateway device, and gateway device can be by the feedback of the information of data receiver failure to source Equipment (such as host computer).
In one embodiment, parsing module 140 is further used for obtaining the frame type of the Json data frames received;Root Interface function corresponding with present frame type is called according to the frame type of Json data frames;According to the corresponding interface letter of present frame type Number obtains the Json attributes of Json data frames;Json attributes are matched with default Json fields control table, target is obtained The control parameter of equipment.
Read module 110, modular converter 120, parsing module 140 and the transmission of the multi-protocol gateway equipment of the present embodiment Module 150 is corresponding with step S100~step S400 in above-mentioned communication means respectively, and its operation principle is with above communicating The execution step of method is basically identical, and the specific work process of the multi-protocol gateway equipment can be found in described above.
In addition, one embodiment of the invention additionally provides a kind of multi-protocol gateway equipment, including processor, memory and deposit The computer program of storage on a memory, during computing device above computer program, is specifically performed in any of the above-described embodiment Communication means in step.
In addition, one embodiment of the invention additionally provide one kind can storage medium, the computer that can be stored with storage medium Instruction, when above computer instruction is executed by processor, specifically according to the step in the communication means in any of the above-described embodiment It is rapid to perform.
The present invention the communication means based on multi-protocols, multi-protocol gateway equipment, computer equipment and can storage medium, lead to The normal data frame that gateway device is converted to a variety of different communication protocol data frames received standard is crossed, and to above-mentioned standard Data frame carries out parsing and obtains Json data, further carries out the control parameter that parsing obtains target device to Json data, carries The high versatility of gateway device, disclosure satisfy that the demand of the building managements such as air-conditioning system communication.
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (12)

1. a kind of communication means based on multi-protocols, it is characterised in that methods described comprises the following steps:
The source signal that source device is sent is obtained, the default data frame of the source signal includes one or more communication protocol datas Frame;
The default data frame of the source signal is converted into normal data frame;
Parsing is carried out to the normal data frame and obtains Json data frames;
The control parameter that parsing obtains target device is carried out to the Json data frames, and by the control parameter of the target device It is sent to the target device.
2. communication means according to claim 1, it is characterised in that the default data frame of the source signal is converted into mark The step of quasi- data frame, further comprises:
The source signal is parsed, obtained in the data segment information of the source signal, the data segment information comprising described The parameter information to be controlled of target device;
Json data frames are obtained according to the parameter information to be controlled of the target device included in the data segment information, wherein, institute Stating Json data frames includes control frame and/or the frame that gets parms;
The Json data frames are converted to the data format of default system, the target frame matched with the normal data frame is obtained Data;
The target frame data are write in the valid data section of the normal data frame, the normal data frame is obtained.
3. communication means according to claim 1, it is characterised in that the step of being parsed to the Json data frames it It is preceding also to include:
Judge gateway dial-up information that the Json data frames carry and multi-protocol gateway equipment actual dial-up information whether one Cause;
When the gateway dial-up information that the Json data frames are carried is consistent with the actual dial-up information of the multi-protocol gateway equipment When, then receive the Json data frames.
4. communication means according to claim 3, it is characterised in that parsing is carried out to the Json data frames and obtains target The step of control parameter of equipment, also includes:
Judge the frame type of the Json data frames received;
Interface function corresponding with present frame type is called according to the frame type of the Json data frames;
The Json attributes of the Json data frames are obtained according to the corresponding interface function of present frame type;
The Json attributes are matched with default Json fields control table, the control parameter of the target device is obtained.
5. the communication means according to claim any one of 1-4, it is characterised in that the communication means support internet with And LAN;
The default data frame of the source signal be TCP/IP data frames, CAN protocol data frame, Modbus protocol data frames and One or more in Bacnet protocol data frames.
6. a kind of multi-protocol gateway equipment, it is characterised in that including:
Read module, the source signal for obtaining source device transmission, the default data frame of the source signal includes one or more Communication protocol data frame;
Modular converter, for the default data frame of the source signal to be converted into normal data frame;
Parsing module, carries out parsing for the normal data frame and obtains Json data frames, and the Json data frames are carried out Parsing obtains the control parameter of target device;
Sending module, for the control parameter of the target device to be sent into the target device.
7. multi-protocol gateway equipment according to claim 6, it is characterised in that the modular converter is further used for institute State source signal to be parsed, obtain and the target device is included in the data segment information of the source signal, the data segment information Parameter information to be controlled;Json numbers are obtained according to the parameter information to be controlled of the target device included in the data segment information According to frame, wherein, the Json data frames include control frame and/or the frame that gets parms;The Json data frames are converted to default The data format of system, obtains the target frame data matched with the normal data frame;Target frame data write-in is described In the valid data section of normal data frame, the normal data frame is obtained.
8. multi-protocol gateway equipment according to claim 6, it is characterised in that the multi-protocol gateway equipment also includes sentencing Disconnected module, the actual dial-up information for judging gateway dial-up information and multi-protocol gateway equipment that the Json data frames are carried It is whether consistent;When the actual dial-up information of gateway dial-up information and the multi-protocol gateway equipment that the Json data frames are carried When consistent, then the Json data frames are received.
9. multi-protocol gateway equipment according to claim 8, it is characterised in that the parsing module is further used for obtaining The frame type of the Json data frames received;Called according to the frame type of the Json data frames corresponding with present frame type Interface function;The Json attributes of the Json data frames are obtained according to the corresponding interface function of present frame type;Will be described Json attributes are matched with default Json fields control table, obtain the control parameter of the target device.
10. multi-protocol gateway equipment according to claim 6, it is characterised in that the read module includes first and read Unit, the second reading unit, the 3rd reading unit and the 4th reading unit;
First reading unit is used to obtain the TCP/IP data frames transmitted by ICP/IP protocol;
Second reading unit is used to obtain the CAN protocol data frame transmitted by CAN protocol;
3rd reading unit is used to obtain the Modbus protocol data frames transmitted by Modbus agreements;
4th reading unit is used to obtain the Bacnet protocol data frames transmitted by Bacnet agreements.
11. a kind of multi-protocol gateway equipment, it is characterised in that including processor, memory and be stored on the memory Computer program, described in the computing device during computer program, specifically perform as described in claim any one of 1-5 Step in communication means.
12. one kind can storage medium, it is characterised in that the computer instruction, the computer of being stored with storage medium When instruction is executed by processor, the step in the communication means as described in claim any one of 1-5 is specifically performed.
CN201710329826.6A 2017-05-11 2017-05-11 Communication means, multi-protocol gateway equipment based on multi-protocols and can storage medium Active CN107124421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710329826.6A CN107124421B (en) 2017-05-11 2017-05-11 Communication means, multi-protocol gateway equipment based on multi-protocols and can storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710329826.6A CN107124421B (en) 2017-05-11 2017-05-11 Communication means, multi-protocol gateway equipment based on multi-protocols and can storage medium

Publications (2)

Publication Number Publication Date
CN107124421A true CN107124421A (en) 2017-09-01
CN107124421B CN107124421B (en) 2019-10-18

Family

ID=59728063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710329826.6A Active CN107124421B (en) 2017-05-11 2017-05-11 Communication means, multi-protocol gateway equipment based on multi-protocols and can storage medium

Country Status (1)

Country Link
CN (1) CN107124421B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566403A (en) * 2017-10-16 2018-01-09 郑州云海信息技术有限公司 It is a kind of to realize general multi-protocols interconnecting method, system and control chip
CN107656704A (en) * 2017-09-28 2018-02-02 郑州云海信息技术有限公司 Multi-protocol data shares storage method, device, equipment and computer-readable storage medium
CN107770181A (en) * 2017-10-26 2018-03-06 南京诚思机器人科技有限公司 A kind of exchange method of robot system, interaction process apparatus and system
CN108337141A (en) * 2018-01-05 2018-07-27 无锡腾越信息技术有限公司 Multi-gang air-conditioner gateway Modbus communication protocols
CN108737259A (en) * 2018-05-08 2018-11-02 平安证券股份有限公司 Gateway device, data transmission method and storage medium
CN111049791A (en) * 2018-10-15 2020-04-21 富士电机株式会社 Vending machine system and communication method of vending machine system
CN111610765A (en) * 2020-05-25 2020-09-01 珠海格力电器股份有限公司 Distributed message control device and method and building control system
CN112399446A (en) * 2020-10-16 2021-02-23 云镝智慧科技有限公司 Edge gateway communication method, device, computer equipment and storage medium
CN112511557A (en) * 2020-12-17 2021-03-16 南京理工大学 Protocol conversion method for application gateway of relay protection device on 10kV line
CN113132158A (en) * 2021-04-07 2021-07-16 珠海格力电器股份有限公司 Point table configuration method, device, controller and storage medium
CN113381999A (en) * 2021-06-08 2021-09-10 杭州昊美科技有限公司 Communication method and device and electronic equipment
CN113422718A (en) * 2021-06-18 2021-09-21 河南力安测控科技有限公司 Configuration protocol-based internet of things gateway and method for docking equipment
CN113722013A (en) * 2021-09-10 2021-11-30 中国西安卫星测控中心 Data exchange method suitable for Beidou third-satellite measurement, operation and control system
CN114006928A (en) * 2021-11-04 2022-02-01 深圳市骏嘉科技发展有限公司 Internet of things data processing method based on multi-protocol real-time communication
CN115001884A (en) * 2021-02-26 2022-09-02 星络家居云物联科技有限公司 Computer readable storage medium, gateway device and communication protocol authorization method thereof
CN115484130A (en) * 2022-08-31 2022-12-16 江苏奥立信数字科技有限公司 Internet of things gateway and air compression online storage system for same
CN117896204A (en) * 2024-03-14 2024-04-16 季华实验室 CAN-based microwave power supply communication method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150584A (en) * 2007-10-31 2008-03-26 中兴通讯股份有限公司 A multi-protocol conversion device and method for SMS gateway
US20130227672A1 (en) * 2012-02-28 2013-08-29 Verizon Patent And Licensing Inc. Next generation secure gateway
CN104331028A (en) * 2013-07-22 2015-02-04 上海联影医疗科技有限公司 Control device and bus system
CN104683173A (en) * 2013-12-03 2015-06-03 北京赛迪电子系统测评实验室有限公司 Detection system and detection method of heterogeneous IOT (Internet Of Things)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150584A (en) * 2007-10-31 2008-03-26 中兴通讯股份有限公司 A multi-protocol conversion device and method for SMS gateway
US20130227672A1 (en) * 2012-02-28 2013-08-29 Verizon Patent And Licensing Inc. Next generation secure gateway
CN104331028A (en) * 2013-07-22 2015-02-04 上海联影医疗科技有限公司 Control device and bus system
CN104683173A (en) * 2013-12-03 2015-06-03 北京赛迪电子系统测评实验室有限公司 Detection system and detection method of heterogeneous IOT (Internet Of Things)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
桂健: "兼容多种通信方式的智能网关设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656704A (en) * 2017-09-28 2018-02-02 郑州云海信息技术有限公司 Multi-protocol data shares storage method, device, equipment and computer-readable storage medium
CN107566403A (en) * 2017-10-16 2018-01-09 郑州云海信息技术有限公司 It is a kind of to realize general multi-protocols interconnecting method, system and control chip
CN107770181B (en) * 2017-10-26 2020-10-30 南京诚思机器人科技有限公司 Interaction method, interaction processing device and system of robot system
CN107770181A (en) * 2017-10-26 2018-03-06 南京诚思机器人科技有限公司 A kind of exchange method of robot system, interaction process apparatus and system
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
CN108737259A (en) * 2018-05-08 2018-11-02 平安证券股份有限公司 Gateway device, data transmission method and storage medium
CN111049791A (en) * 2018-10-15 2020-04-21 富士电机株式会社 Vending machine system and communication method of vending machine system
CN111610765A (en) * 2020-05-25 2020-09-01 珠海格力电器股份有限公司 Distributed message control device and method and building control system
CN112399446A (en) * 2020-10-16 2021-02-23 云镝智慧科技有限公司 Edge gateway communication method, device, computer equipment and storage medium
CN112511557A (en) * 2020-12-17 2021-03-16 南京理工大学 Protocol conversion method for application gateway of relay protection device on 10kV line
CN115001884A (en) * 2021-02-26 2022-09-02 星络家居云物联科技有限公司 Computer readable storage medium, gateway device and communication protocol authorization method thereof
CN113132158B (en) * 2021-04-07 2022-05-31 珠海格力电器股份有限公司 Point table configuration method, device, controller and storage medium
CN113132158A (en) * 2021-04-07 2021-07-16 珠海格力电器股份有限公司 Point table configuration method, device, controller and storage medium
CN113381999A (en) * 2021-06-08 2021-09-10 杭州昊美科技有限公司 Communication method and device and electronic equipment
CN113381999B (en) * 2021-06-08 2023-04-28 杭州昊美科技有限公司 Communication method and device and electronic equipment
CN113422718A (en) * 2021-06-18 2021-09-21 河南力安测控科技有限公司 Configuration protocol-based internet of things gateway and method for docking equipment
CN113722013A (en) * 2021-09-10 2021-11-30 中国西安卫星测控中心 Data exchange method suitable for Beidou third-satellite measurement, operation and control system
CN113722013B (en) * 2021-09-10 2023-07-28 中国西安卫星测控中心 Data exchange method suitable for Beidou No. three satellite measurement, operation and control system
CN114006928A (en) * 2021-11-04 2022-02-01 深圳市骏嘉科技发展有限公司 Internet of things data processing method based on multi-protocol real-time communication
CN114006928B (en) * 2021-11-04 2024-04-19 深圳市骏嘉科技发展有限公司 Internet of things data processing method based on multi-protocol real-time communication
CN115484130A (en) * 2022-08-31 2022-12-16 江苏奥立信数字科技有限公司 Internet of things gateway and air compression online storage system for same
CN115484130B (en) * 2022-08-31 2023-11-03 江苏奥立信数字科技有限公司 Internet of things gateway and air compression online storage system for same
CN117896204A (en) * 2024-03-14 2024-04-16 季华实验室 CAN-based microwave power supply communication method and device, electronic equipment and storage medium
CN117896204B (en) * 2024-03-14 2024-05-28 季华实验室 CAN-based microwave power supply communication method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107124421B (en) 2019-10-18

Similar Documents

Publication Publication Date Title
CN107124421A (en) Communication means based on multi-protocols, multi-protocol gateway equipment and can storage medium
CN104270468B (en) A kind of system of wechat control internet of things equipment
CN105407028B (en) Method and system for high bandwidth servomechanism management
CN104219150B (en) Flow table issuance method and device
US9674315B2 (en) Methods for dynamically binding header field identifiers in a network control protocol
US11038706B2 (en) Method for automatic configuration of sematic-based projects in building automation systems
US8234394B2 (en) Web access for non-TCP/IP control devices of an industrial control system
CN101341450B (en) Method, communication network, and control unit for the cyclical transmission of data
CN107018165A (en) The method and device of control internet of things equipment, server, mobile device
CN107465617A (en) The message transmission control method and communication network device of communication network device
CN107222458A (en) A kind of data processing method and system of the BACnet protocol stacks of compatible Modbus agreements
CN109525517A (en) Role's type automatic setting system and method for Ethernet interchanger
CN110855464A (en) Network topology structure adjusting method and device
CN108377499A (en) A kind of method for network access, routing device and terminal
CN100463426C (en) Sevice quality control/device and method based on virtual network marker
CN107046509A (en) A kind of intelligent industrial-control network data integration method parsed based on mirror port
CN112235157A (en) Router equipment testing method and system based on two-layer network
JP4513506B2 (en) Device management system and gateway device
CN108337141B (en) Modbus communication method for multi-split air conditioner gateway
CN108259326A (en) Routing table update method, apparatus, distribution node and leaf message forwarding equipment
CN112532519A (en) Method for slightly controlling data Flow behavior by adopting BGP Flow Specification
US6914906B1 (en) Method for RF network virtual end nodes
CN104869669B (en) A kind of Intelligent wireless router
CN114567651B (en) Rapid visual access method for equipment and Internet of things platform
CN102843439B (en) Equipment communication method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant