CN110377554A - A kind of multi-protocol data integral communication device and method based on serial communication - Google Patents

A kind of multi-protocol data integral communication device and method based on serial communication Download PDF

Info

Publication number
CN110377554A
CN110377554A CN201910685468.1A CN201910685468A CN110377554A CN 110377554 A CN110377554 A CN 110377554A CN 201910685468 A CN201910685468 A CN 201910685468A CN 110377554 A CN110377554 A CN 110377554A
Authority
CN
China
Prior art keywords
data
communication
interface
communication device
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
CN201910685468.1A
Other languages
Chinese (zh)
Other versions
CN110377554B (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.)
Beijing Yongjia Fire Technology Co Ltd
Original Assignee
Beijing Yongjia Fire Technology Co Ltd
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 Beijing Yongjia Fire Technology Co Ltd filed Critical Beijing Yongjia Fire Technology Co Ltd
Priority to CN201910685468.1A priority Critical patent/CN110377554B/en
Publication of CN110377554A publication Critical patent/CN110377554A/en
Application granted granted Critical
Publication of CN110377554B publication Critical patent/CN110377554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

A kind of multi-protocol data integral communication device based on serial communication, including multiple inlet interfaces and an outlet interface, read-write data processor is connected between the inlet interface and outlet interface, there are a variety of reception subfunctions corresponding with communication protocol and output subfunction in the data processor, the communication device is additionally provided with configuration device, it is that each outlet interface and inlet interface configuration send and receive the subfunction of data by configuration device, exports the detection device detection data of various communications protocols by unified communication mode to realize.

Description

A kind of multi-protocol data integral communication device and method based on serial communication
Technical field
The present invention relates to fields of communication technology, more particularly, to a kind of multi-protocol data integrated communicaton based on serial communication Device and method.
Background technique
Country's fire alarm system various brands equipment is all made of this brand communications protocol at present, can not carry out between various brands Information transmission, however, various fire-fighting electronic products can be used in the monitoring and alarming system of some large sizes, these electricity Sub- product category is various, mostly uses the mode of serial communication in data output process greatly, not due to output data digit itself Together, and to security requirement difference, communications protocol is various, and manufacturer is when producing electrical type testing product, mostly The communications protocol of this brand can be used, so that the reception and processing for information generate greatly puzzlement.Such as Edward EST3 type FAS system System, itself power system capacity are 160000 points, and the Node station itself connected is even more up to 2500 points, so in arrangement EST3 type In FAS systematic procedure, it is necessary first to which what research staff overcame is exactly information transmitting and the processing between different communication protocol product Problem.After determining whole monitoring and alarming system, the number that special programming personnel researches and develops monitoring and alarming system is needed According to processing routine or the gateway of unlike signal is bought to realize that the data for being directed to different communications protocol acquire, and is caused in the market Large-scale monitoring and alarming system cannot constitute the production of pipeline system, occupy a large amount of R&D fund.
Summary of the invention
The object of the present invention is to provide a kind of multi-protocol data integral communication device based on serial communication, the communication device Multiple kinds can be cooperated, realize the concentrated collection to a variety of data.
Foregoing invention purpose of the invention has the technical scheme that
A kind of multi-protocol data integral communication device based on serial communication, including multiple inlet interfaces and an outlet connect Mouthful, it is connected with read-write data processor between the inlet interface and outlet interface, has and leads in the data processor Believe the corresponding a variety of reception subfunctions of agreement and output subfunction, the communication device is additionally provided with for receiving sub- letter for single Number is configured at single inlet interface and single output subfunction is configured to the configuration device of outlet interface, the sub- letter of output The corresponding communication protocol codes of number successively include: a start bit, at least two stop positions and are located at start bit and stop position Between data bit, the data of each group of data bit correspond to the inlet wire data of single inlet interface and configured with partition position;Or one A start bit, a flag bit, a stop position and the data bit between flag bit and stop position.
Pass through configuration device first when needing to carry out data acquisition to plurality of devices by using above-mentioned technical proposal The subfunction that data are sended and received for each outlet interface and inlet interface configuration, so that the data entered by inlet interface It can be received in a manner of correspondingly received subfunction, the appearance data of each outlet interface can be accordingly to export the side of subfunction Formula output data is exported the detection device detection data of various communications protocols by unified communication mode to realize.It connects During receipts: a start bit, at least two stop positions and the data bit between start bit and stop position, each group of number The inlet wire data of single inlet interface are corresponded to according to the data of position and can realize that single transmission is more configured with the communication protocol for separating position Group data;One start bit, a flag bit, a stop position and the data bit between flag bit and stop position it is logical Letter agreement, which can be realized, to be identified multi-group data and is sequentially output.
As an improvement of the present invention, the configuration device is detachably connected with the data processor.
By using above-mentioned technical proposal, configuration device is detachably connected with data processor, can be simplified in communication device The circuit structure in portion also achieves a tractor serves several purposes of configuration device on the basis of reducing the installation volume of communication device.
As an improvement of the present invention, the configuration device includes setting configuration interface on the communication device and by matching Set the host computer that interface is connect with data processor.
The configuration circuit inside communication device can be saved in a manner of host computer configuration by using above-mentioned technical proposal And configuration device, the internal structure of communication device is simplified, to reduce the production cost of communication device.
As an improvement of the present invention, the communication device is provided with the display screen for showing each interface communication protocol.
By using above-mentioned technical proposal, the autonomous configuration of the communication protocol of communication device is can be achieved in the setting of display screen, So that the application mode of communication device is freer.
As an improvement of the present invention, the configuration device includes the configuration button for cooperating display screen.
By using above-mentioned technical proposal, button is configured compared to the button on display screen, the service life is longer, structure It is more stable, the requirement to display screen on the one hand can be reduced, the cost of configuration device is on the other hand also reduced.
As an improvement of the present invention, the data processor is also connected with HART communication module.
By using above-mentioned technical proposal, the networking between multiple communication devices is can be achieved in the setting of HART communication module, In mass data collection process, the arrangement of on-scene communication line can be simplified, reduce the use cost of communication device.
It is a further object of the present invention to provide a kind of communication means based on above-mentioned communication device, which can match Multiple kinds are closed, realize the concentrated collection to a variety of data.
Foregoing invention purpose of the invention has the technical scheme that
As an improvement of the present invention, various communications protocols are filled into the control program of data processor in a manner of subfunction, is led to Crossing configuration device is that each inlet interface and outlet interface configure subfunction corresponding with corresponding communication protocol.
Control by using above-mentioned technical proposal, by the way that communication protocol to be filled into data processor in a manner of subfunction In program, realize the data receiver to single data interface various ways so that communication device can adapt to it is a variety of different Communication protocol data acquisition.
In conclusion advantageous effects of the invention are as follows:
1. due to communication protocol is filled into data processor in a manner of subfunction control program in, connect when needing to adjust inlet wire When mouth receives mode, it is only necessary to the calling of subfunction is replaced, to realize the reception to various communications protocols data;
2., when communication protocol type changes, such as introducing new product since data processor is read-write data processor In the process, it is only necessary to data processor internal processes are updated and may make communication device has to receive corresponding communication protocol The function of data reduces the replacement probability for having used communication device, while also increasing the scope of application of communication device.
Detailed description of the invention
Fig. 1 is communication apparatus structure schematic diagram in embodiment one;
Fig. 2 is communication device built-in system figure in embodiment one;
Fig. 3 is communication apparatus structure schematic diagram in embodiment three.
In figure, 1, shell;2, inlet interface;3, outlet interface;4, interface is configured;5, read-write interface;6, display screen;7, match Set button.
Specific embodiment
Embodiment one:
Below in conjunction with attached drawing, invention is further described in detail.
It referring to Figures 1 and 2, is a kind of multi-protocol data integral communication device based on serial communication disclosed by the invention, Shell 1 including rectangle, the data processor in shell 1 and eight inlet interfaces that 1 same side of shell is set 2, an outlet interface 3 and a configuration interface 4.Wherein data processor is the single-chip microcontroller with data integration processing function, It is herein preferably the single-chip microcontroller of STM32F103VCT6 model.There are a variety of receptions corresponding with communication protocol in data processor Subfunction and output subfunction, communication device connect host computer by configuring interface 4, and are each inlet interface by host computer 2 and outlet interface 3 configure it is corresponding receive subfunction, to realize that same interface adapts to receive various communications protocols data.
In binary data transmission mode as an example, such as communication protocol A are as follows: 1 start bit, 8 data bit, 1 bit parity school Test position and 1 stop position;
Communication protocol B are as follows: 1 start bit, 4 are data bit, 1 bit-errors check bit and 1 stop position;
Communication protocol C are as follows: 1 start bit, 1 bit check position, 8 data bit and 1 stop position.
Then when receiving the detection data using communication protocol A output detection data, corresponding inlet interface 2 is received into number According to mode be configured to the reception subfunction of corresponding communication protocol A, and extracting 2-9 data is detection data, and by out Line interface 3 is to export the corresponding communication protocol transmission mode output of subfunction.
In order to enable outlet interface 3 to export the received data of multiple inlet interfaces 2, the corresponding communication protocols of output subfunction View code successively includes a start bit, two stop positions and the data bit between start bit and stop position, and each group The data of data bit correspond to the inlet wire data of single inlet interface 2 and configured with partition positions.Wherein start bit " 1 " effectively, stops Effectively, partition position uses four partition positions for position " 01 ", and partition position " 0000 " is effective.
As three inlet interfaces 2 are respectively configured as of reception corresponding to communication protocol A, communication protocol B and communication protocol C Function, data code are as follows:
1 11010110 1 1;
1 1101 0 1;
1 1 11011011 1;
Then three 2 received detection datas of institute of inlet interface are respectively as follows: " 11010110 ", " 1101 " and " 11011011 ", use The mode that the corresponding communication protocol of output subfunction exports three groups of data is answered are as follows:
1 11010110 0000 1101 0000 11011011 0000 01;
Wherein, in order to increase the safety in data transmission procedure, verification is added in the corresponding communication protocol of output subfunction Position is the customary means of this field, and in the declared range of the present embodiment, details are not described herein.
The mode for using host computer to configure reception subfunction for each inlet interface 2 is as follows:
The reception subfunction for such as needing to call is printf(a), a is the data received by printf subfunction, then interface Reception data mode are as follows:
Int main()
Printf(a);return a;}
The received data of each inlet interface 2 are obtained by " a " value that each inlet interface 2 returns.
Further, data processor is also connected with HART communication module, crosses HART communication module all and realizes communication dress The regional networking set reduces the cost of layout of the device of communication in order to reduce the quantity of on-scene communication line.
Further, read-write interface 5 is additionally provided on shell 1, staff can be realized by read-write interface 5 to data Manage the update of device internal processes.
It is first each by configuration device by the above content it is found that when needing to carry out data acquisition to plurality of devices Outlet interface 3 and inlet interface 2 configure the subfunction for sending and receiving data, enable and pass through the data that inlet interface 2 enters Enough to be received in a manner of correspondingly received subfunction, the appearance data of each outlet interface 3 can be accordingly to export the side of subfunction Formula output data is exported the detection device detection data of various communications protocols by unified communication mode to realize.
Embodiment two:
It is in place of the present embodiment and the difference of embodiment one:
The corresponding communication protocol code of output subfunction successively include a start bit, a flag bit, a stop position and Data bit between flag bit and stop position.Wherein effectively, effectively, flag bit is provided with stop position " 01 " start bit " 1 " Three, and the value of flag bit corresponds to the label of corresponding inlet interface 2.
Embodiment three:
It is in place of the present embodiment and the difference of embodiment one:
As shown in figure 3, communication device includes display screen 6 for showing each interface communications protocol and cooperates with display screen 6 Configuration button 7, display screen 6 is located at communication device upper surface, so that practical personnel can intuitively observe that communication device is each The communication protocol of interface configures.
The embodiment of present embodiment is presently preferred embodiments of the present invention, not limits protection of the invention according to this Range, therefore: the equivalence changes that all structures under this invention, shape, principle are done, should all be covered by protection scope of the present invention it It is interior.

Claims (7)

1. a kind of multi-protocol data integral communication device based on serial communication, it is characterised in that: including multiple inlet interfaces (2) And an outlet interface (3), read-write data processor, institute are connected between the inlet interface (2) and outlet interface (3) It states in data processor and has a variety of reception subfunctions corresponding with communication protocol and output subfunction, the communication device is also set It is equipped with and is connect for single reception subfunction to be configured at single inlet interface (2) and single output subfunction is configured at outlet The configuration device of mouthful (3), the corresponding communication protocol code of the output subfunction successively includes: start bit, at least two Stop position and the data bit between start bit and stop position, the data of each group of data bit correspond to single inlet interface (2) inlet wire data and configured with partition position;Or a start bit, a flag bit, a stop position and be located at flag bit Data bit between stop position.
2. a kind of multi-protocol data integral communication device based on serial communication according to claim 1, it is characterised in that: The configuration device is detachably connected with the data processor.
3. a kind of multi-protocol data integral communication device based on serial communication according to claim 2, it is characterised in that: The configuration device includes setting configuration interface (4) on the communication device and by configuring interface (4) and data processor The host computer of connection.
4. a kind of multi-protocol data integral communication device based on serial communication according to claim 1, it is characterised in that: The communication device is provided with the display screen (6) for showing each interface communication protocol.
5. a kind of multi-protocol data integral communication device based on serial communication according to claim 4, it is characterised in that: The configuration device includes the configuration button (7) of cooperation display screen (6).
6. a kind of multi-protocol data integral communication device based on serial communication according to claim 1, it is characterised in that: The data processor is also connected with HART communication module.
7. a kind of communication means based on communication device described in claim 1-6 any one, it is characterised in that: will be a variety of logical Letter agreement filled into a manner of subfunction in the control program of data processor, by configuration device be each inlet interface (2) and Outlet interface (3) configures subfunction corresponding with corresponding communication protocol.
CN201910685468.1A 2019-07-27 2019-07-27 Multi-protocol data integrated communication device and method based on serial communication Active CN110377554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910685468.1A CN110377554B (en) 2019-07-27 2019-07-27 Multi-protocol data integrated communication device and method based on serial communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910685468.1A CN110377554B (en) 2019-07-27 2019-07-27 Multi-protocol data integrated communication device and method based on serial communication

Publications (2)

Publication Number Publication Date
CN110377554A true CN110377554A (en) 2019-10-25
CN110377554B CN110377554B (en) 2021-02-02

Family

ID=68256489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910685468.1A Active CN110377554B (en) 2019-07-27 2019-07-27 Multi-protocol data integrated communication device and method based on serial communication

Country Status (1)

Country Link
CN (1) CN110377554B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621430A (en) * 2009-07-31 2010-01-06 南京拓为电力科技发展有限公司 Portable electric power communication protocol detector and detection method thereof
CN103368908A (en) * 2012-03-29 2013-10-23 北京北方微电子基地设备工艺研究中心有限责任公司 Gateway protocol, gateway equipment and electrical equipment control system
CN104850527A (en) * 2015-06-12 2015-08-19 中国电子科技集团公司第四十七研究所 Communication protocol processor
US20150317278A1 (en) * 2010-01-14 2015-11-05 Microsoft Technology Licensing, Llc Driver interface functions to interface client function drivers
CN206863938U (en) * 2017-05-03 2018-01-09 泽大科技(深圳)股份有限公司 A kind of data communication machine with breakpoint transmission
CN108650295A (en) * 2018-03-30 2018-10-12 深圳市风云实业有限公司 Protocol massages cross-layer communication method device and electronic equipment
CN109787997A (en) * 2019-02-26 2019-05-21 上海易点时空网络有限公司 TCP method of servicing and server based on PHP
CN109818790A (en) * 2019-01-25 2019-05-28 上海创景信息科技有限公司 Hardware simulates multi-path multiple types communication protocol chip system, method and medium in real time

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621430A (en) * 2009-07-31 2010-01-06 南京拓为电力科技发展有限公司 Portable electric power communication protocol detector and detection method thereof
US20150317278A1 (en) * 2010-01-14 2015-11-05 Microsoft Technology Licensing, Llc Driver interface functions to interface client function drivers
CN103368908A (en) * 2012-03-29 2013-10-23 北京北方微电子基地设备工艺研究中心有限责任公司 Gateway protocol, gateway equipment and electrical equipment control system
CN104850527A (en) * 2015-06-12 2015-08-19 中国电子科技集团公司第四十七研究所 Communication protocol processor
CN206863938U (en) * 2017-05-03 2018-01-09 泽大科技(深圳)股份有限公司 A kind of data communication machine with breakpoint transmission
CN108650295A (en) * 2018-03-30 2018-10-12 深圳市风云实业有限公司 Protocol massages cross-layer communication method device and electronic equipment
CN109818790A (en) * 2019-01-25 2019-05-28 上海创景信息科技有限公司 Hardware simulates multi-path multiple types communication protocol chip system, method and medium in real time
CN109787997A (en) * 2019-02-26 2019-05-21 上海易点时空网络有限公司 TCP method of servicing and server based on PHP

Also Published As

Publication number Publication date
CN110377554B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN100517406C (en) Wireless fire fighting detector network based on ZigBee and control method
JP2788135B2 (en) Automatic pulse reading and recording device
CN106652415A (en) Processing method and device of protocol for concentrated reading of multiple meters
CN110417649A (en) A kind of multiplex roles Intelligent internet of things data gateway
CN201681479U (en) Fishpond dissolved oxygen detection and wireless transmission system based on GSM techonology
CN102006204B (en) Distributed resolution system for monitoring data stream in real time
CN206042045U (en) Control terminal of industrial equipment
CN106059866B (en) A kind of speech control system of wireless intelligent house
CN106226644B (en) Portable ground line use state monitoring alarm
CN110111523A (en) A kind of fire-fighting Internet of Things signal imitation Transmission system
CN110377554A (en) A kind of multi-protocol data integral communication device and method based on serial communication
CN208739109U (en) A kind of digital displaying meter signal receiving/transmission device
CN206906295U (en) A kind of big data information gathering and processing system
CN205656752U (en) Electric wire netting communication device based on wireless sensor
CN107592286A (en) A kind of intelligent communications terminal and its implementation for supporting multi-protocols
CN111445657A (en) Fire alarm detector convenient to encode and maintain
CA2323999A1 (en) Computer network with data or communications end systems
CN110245106A (en) The serial server of SCM Based online acquisition serial interface signal
CN203386353U (en) Remote meter reading system of gas meter
CN107481502A (en) A kind of direct-reading teletransmission photoelectricity water meter system and application method
CN209015271U (en) A kind of payment system of self-service device
CN103533562B (en) Wireless sensor network node protocol conformance testing device and method
CN203414788U (en) Novel off-site integrated wireless monitoring device
CN106373361A (en) Wireless collection and transmission device and method
CN113063471A (en) NB-IoT intelligent gas meter based on OpenCPU technology

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