CN110377554B - Multi-protocol data integrated communication device and method based on serial communication - Google Patents
Multi-protocol data integrated communication device and method based on serial communication Download PDFInfo
- Publication number
- CN110377554B CN110377554B CN201910685468.1A CN201910685468A CN110377554B CN 110377554 B CN110377554 B CN 110377554B CN 201910685468 A CN201910685468 A CN 201910685468A CN 110377554 B CN110377554 B CN 110377554B
- Authority
- CN
- China
- Prior art keywords
- data
- communication
- bit
- communication device
- interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol 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
The utility model provides a multi-protocol data integration communication device based on serial communication, includes a plurality of inlet wire interfaces and an interface of being qualified for the next round of competitions, be connected with readable write data treater between inlet wire interface and the interface of being qualified for the next round of competitions, data treater is internal to have the multiple subfunction and the output subfunction of receiving that corresponds with communication protocol, communication device still is provided with the configuration device, for each outlet wire interface and inlet wire interface configuration receiving and the subfunction of sending data through the configuration device to the realization is exported the check out test set detection data of multiple communication protocol through unified communication mode.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a multi-protocol data integrated communication device and method based on serial communication.
Background
At present, all brand equipment of the domestic fire alarm system adopt the brand communication protocol, information transmission can not be carried out among all brands, however, in some large-scale monitoring alarm systems, various fire-fighting electronic products can be used, the electronic products are various in types, a serial communication mode is mostly adopted in the data output process, because the output data bit number is different, the requirements on safety are different, the communication protocol is various, and a manufacturer can mostly use the brand communication protocol when producing electronic detection products, thereby generating great troubles for receiving and processing information. Like the FAS system of Edward EST3 type, the system capacity of the FAS system is 160000 points, and node machines connected with the FAS system are more 2500 points, so that in the process of arranging the FAS system of EST3 type, firstly, the information transmission and processing problems among different communication protocol products need to be overcome by developers. After the integral monitoring alarm system is determined, a special programmer is needed to research and develop a data processing program of the monitoring alarm system or purchase gateways of different signals to realize data acquisition aiming at different communication protocols, so that the large monitoring alarm system in the market cannot form pipelined production, and a large amount of research and development funds are occupied.
Disclosure of Invention
The invention aims to provide a multi-protocol data integrated communication device based on serial communication, which can be matched with various communication protocols to realize centralized collection of various data.
The above object of the present invention is achieved by the following technical solutions:
the utility model provides a multi-protocol data integration communication device based on serial communication, includes a plurality of inlet wire interfaces and a interface of being qualified for the next round of competitions, be connected with readable write data treater between inlet wire interface and the interface of being qualified for the next round of competitions, data treater internal memory has multiple receipt subfunction and output subfunction that correspond with communication protocol, communication device still is provided with and is used for disposing single receipt subfunction in single inlet wire interface and single output subfunction in the configuration device of the interface of being qualified for the next round of competitions, the communication protocol code that output subfunction corresponds includes in proper order: the system comprises a start bit, at least two stop bits and data bits positioned between the start bit and the stop bits, wherein the data of each group of data bits corresponds to incoming line data of a single incoming line interface and is configured with an interruption bit; or a start bit, a flag bit, a stop bit and a data bit located between the flag bit and the stop bit.
By adopting the technical scheme, when data acquisition is required to be carried out on various devices, firstly, the configuration device configures the subfunction for receiving and sending data for each outlet interface and the inlet interface, so that the data entering through the inlet interface can be received in a corresponding receiving subfunction mode, the data appearing at each outlet interface can be output in a corresponding output subfunction mode, and the detection data of the detection devices with various communication protocols can be output in a unified communication mode. In the receiving process: the communication protocol is provided with a start bit, at least two stop bits and data bits positioned between the start bit and the stop bits, wherein the data of each group of data bits corresponds to incoming line data of a single incoming line interface and is provided with an interruption bit, so that multiple groups of data can be transmitted at a time; the communication protocol of a start bit, a flag bit, a stop bit and data bits between the flag bit and the stop bit can realize that a plurality of groups of data are identified and output in sequence.
As a refinement of the invention, the configuration means are detachably connected to the data processor.
By adopting the technical scheme, the configuration device is detachably connected with the data processor, the circuit structure in the communication device can be simplified, and the configuration device has multiple purposes on the basis of reducing the installation volume of the communication device.
As an improvement of the invention, the configuration device comprises a configuration interface arranged on the communication device and an upper computer connected with the data processor through the configuration interface.
By adopting the technical scheme and the mode of upper computer configuration, the configuration circuit and the configuration device in the communication device can be omitted, the internal structure of the communication device is simplified, and the production cost of the communication device is reduced.
As a refinement of the invention, the communication device is provided with a display screen for displaying each interface communication protocol.
By adopting the technical scheme, the communication protocol of the communication device can be autonomously configured by setting the display screen, so that the application mode of the communication device is more free.
As a refinement of the invention, the configuration means comprise a configuration button cooperating with the display screen.
Through adopting above-mentioned technical scheme, the configuration button is compared in the button on the display screen, and its life is longer, and the structure is more stable, can reduce the requirement to the display screen on the one hand, and on the other hand has also reduced the cost of configuration device.
As an improvement of the invention, the data processor is also connected with a HART communication module.
By adopting the technical scheme, the HART communication module can realize networking among a plurality of communication devices, the arrangement of field communication lines can be simplified in the process of collecting a large amount of data, and the use cost of the communication devices is reduced.
Another objective of the present invention is to provide a communication method based on the above communication device, which can cooperate with multiple communication protocols to realize centralized collection of multiple data.
The above object of the present invention is achieved by the following technical solutions:
as an improvement of the invention, a plurality of communication protocols are added into a control program of the data processor in a subfunction mode, and each incoming line interface and each outgoing line interface are configured with subfunctions corresponding to the corresponding communication protocols through a configuration device.
By adopting the technical scheme, the communication protocol is supplemented into the control program of the data processor in a subfunction mode, so that the data reception of a single data interface in various modes is realized, and the communication device can adapt to the data acquisition of various different communication protocols.
In conclusion, the beneficial technical effects of the invention are as follows:
1. because the communication protocol is added into the control program of the data processor in a subfunction mode, when the receiving mode of the incoming line interface needs to be adjusted, only the calling of the subfunction needs to be replaced, thereby realizing the receiving of data of various communication protocols;
2. because the data processor is a readable and writable data processor, when the type of the communication protocol changes, such as in the process of introducing a new product, the communication device can have the function of receiving corresponding communication protocol data only by updating the internal program of the data processor, so that the replacement probability of the used communication device is reduced, and the application range of the communication device is also increased.
Drawings
FIG. 1 is a schematic structural diagram of a communication device according to a first embodiment;
FIG. 2 is a system diagram of the communication device according to one embodiment;
fig. 3 is a schematic structural diagram of a communication device according to a third embodiment.
In the figure, 1, a housing; 2. an incoming line interface; 3. an outgoing line interface; 4. configuring an interface; 5. a read-write interface; 6. a display screen; 7. the button is configured.
Detailed Description
The first embodiment is as follows:
the present invention will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1 and 2, the multi-protocol data integrated communication device based on serial communication disclosed by the invention comprises a rectangular housing 1, a data processor located in the housing 1, and eight incoming line interfaces 2, one outgoing line interface 3 and one configuration interface 4 which are arranged on the same side of the housing 1. The data processor is a single chip microcomputer with a data integration processing function, and is preferably a single chip microcomputer of STM32F103VCT6 type. The data processor is internally stored with a plurality of receiving subfunctions and output subfunctions corresponding to communication protocols, the communication device is connected with an upper computer through a configuration interface 4, and the upper computer configures the corresponding receiving subfunctions for each incoming line interface 2 and each outgoing line interface 3, thereby realizing that the same interface is suitable for receiving data of a plurality of communication protocols.
For example, the communication protocol a is as follows: 1-bit start bit, 8-bit data bit, 1-bit parity bit and 1-bit stop bit;
the communication protocol B is as follows: 1 bit start bit, 4 are data bit, 1 bit error check bit and 1 bit stop bit;
the communication protocol C is as follows: 1-bit start bit, 1-bit check bit, 8-bit data bit, and 1-bit stop bit.
When receiving the detection data of the detection data output by using the communication protocol A, configuring the mode of receiving the data by the corresponding incoming line interface 2 as a receiving sub-function corresponding to the communication protocol A, extracting the 2 nd-9 th bit data as the detection data, and outputting the detection data in the communication protocol transmission mode corresponding to the output sub-function through the outgoing line interface 3.
In order to enable the outgoing line interface 3 to output the data received by the incoming line interfaces 2, the communication protocol code corresponding to the output subfunction sequentially includes a start bit, two stop bits, and a data bit located between the start bit and the stop bit, and the data of each group of data bits corresponds to the incoming line data of the single incoming line interface 2 and is configured with a blocking bit. Wherein the start bit '1' is valid, the stop bit '01' is valid, the partition bit adopts a four-bit partition bit, and the partition bit '0000' is valid.
If the three incoming line interfaces 2 are respectively configured as receiving subfunctions corresponding to the communication protocol a, the communication protocol B and the communication protocol C, the data codes are as follows:
1 11010110 1 1;
1 1101 0 1;
1 1 11011011 1;
the detection data received by the three incoming line interfaces 2 are respectively: "11010110", "1101" and "11011011", the way of outputting three sets of data by using the communication protocol corresponding to the output sub-function is:
1 11010110 0000 1101 0000 11011011 0000 01;
in order to increase the security during the data transmission process, adding check bits to the communication protocol corresponding to the output subfunction is a conventional means in the field, and is within the scope of the description of the present embodiment, and is not described herein again.
The manner of configuring the receiving subfunction for each incoming line interface 2 by adopting the upper computer is as follows:
if the receiving sub-function to be called is printf (a) and a is data received by the printf sub-function, the data receiving mode of the interface is as follows:
Int main()
{ printf(a);return a;}
the data received by each incoming line interface 2 is obtained by the "a" value returned by each incoming line interface 2.
Furthermore, the data processor is also connected with a HART communication module, and regional networking of the communication device is realized through the HART communication module, so that the number of field communication lines is reduced, and the arrangement cost of the communication device is reduced.
Furthermore, a read-write interface 5 is further arranged on the shell 1, and workers can update programs in the data processor through the read-write interface 5.
As can be seen from the above, when data acquisition needs to be performed on multiple devices, first, a subfunction for receiving and sending data is configured for each of the outgoing line interface 3 and the incoming line interface 2 through the configuration device, so that data entering through the incoming line interface 2 can be received in a manner of correspondingly receiving the subfunction, and data can be output in a manner of correspondingly outputting the subfunction when data appears at each of the outgoing line interfaces 3, thereby realizing that detection data of detection devices with multiple communication protocols is output in a unified communication manner.
Example two:
the present embodiment is different from the first embodiment in that:
the communication protocol code corresponding to the output subfunction comprises a start bit, a flag bit, a stop bit and a data bit positioned between the flag bit and the stop bit in sequence. Wherein the start bit "1" is valid, the stop bit "01" is valid, the flag bit is provided with three bits, and the value of the flag bit corresponds to the label of the corresponding incoming line interface 2.
Example three:
the present embodiment is different from the first embodiment in that:
as shown in fig. 3, the communication device includes a display screen 6 for displaying the communication protocol of each interface and a configuration button 7 cooperating with the display screen 6, and the display screen 6 is located on the upper surface of the communication device so that the communication protocol configuration of each interface of the communication device can be visually observed by a utility person.
The embodiments of the present invention are preferred embodiments of the present invention, and the scope of the present invention is not limited by these embodiments, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.
Claims (7)
1. A multi-protocol data integrated communication device based on serial communication is characterized in that: the communication device comprises a plurality of incoming line interfaces (2) and an outgoing line interface (3), wherein a readable and writable data processor is connected between the incoming line interface (2) and the outgoing line interface (3), a plurality of receiving sub-functions and output sub-functions corresponding to communication protocols are stored in the data processor, the communication device is further provided with a configuration device for configuring a single receiving sub-function to the single incoming line interface (2) and a single output sub-function to the outgoing line interface (3), and communication protocol codes corresponding to the output sub-functions sequentially comprise: the system comprises a start bit, at least two stop bits and data bits positioned between the start bit and the stop bits, wherein the data of each group of data bits corresponds to the incoming line data of a single incoming line interface (2) and is configured with an interruption bit; or a start bit, a flag bit, a stop bit and a data bit located between the flag bit and the stop bit.
2. The multi-protocol data integrated communication device based on serial communication according to claim 1, wherein: the configuration device is detachably connected with the data processor.
3. The multi-protocol data integrated communication device based on serial communication according to claim 2, wherein: the configuration device comprises a configuration interface (4) arranged on the communication device and an upper computer connected with the data processor through the configuration interface (4).
4. The multi-protocol data integrated communication device based on serial communication according to claim 1, wherein: the communication device is provided with a display screen (6) for displaying each interface communication protocol.
5. The multi-protocol data integrated communication device based on serial communication according to claim 4, wherein: the configuration device comprises a configuration button (7) cooperating with the display screen (6).
6. The multi-protocol data integrated communication device based on serial communication according to claim 1, wherein: the data processor is also connected with a HART communication module.
7. A communication method based on the communication apparatus of any one of claims 1 to 6, characterized in that: a plurality of communication protocols are added into a control program of the data processor in a subfunction mode, and each incoming line interface (2) and each outgoing line interface (3) are configured with subfunctions corresponding to the corresponding communication protocols through configuration devices.
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 CN110377554A (en) | 2019-10-25 |
CN110377554B true 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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101621430B (en) * | 2009-07-31 | 2011-11-23 | 南京拓为电力科技发展有限公司 | Portable electric power communication protocol detector and detection method thereof |
US8200853B2 (en) * | 2010-01-14 | 2012-06-12 | Microsoft Corporation | Extensions for USB driver interface functions |
CN103368908B (en) * | 2012-03-29 | 2016-12-14 | 北京北方微电子基地设备工艺研究中心有限责任公司 | Communication means, gateway device and electrical apparatus controlling system |
CN104850527B (en) * | 2015-06-12 | 2017-11-03 | 中国电子科技集团公司第四十七研究所 | Communications protocol processor |
CN206863938U (en) * | 2017-05-03 | 2018-01-09 | 泽大科技(深圳)股份有限公司 | A kind of data communication machine with breakpoint transmission |
CN109787997B (en) * | 2019-02-26 | 2021-06-11 | 上海易点时空网络有限公司 | PHP-based TCP (Transmission control protocol) service method and server |
-
2019
- 2019-07-27 CN CN201910685468.1A patent/CN110377554B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN110377554A (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104345717A (en) | Intelligent remote data acquisition system based on Internet of Things | |
GB1494841A (en) | Data communications system | |
CN105807722B (en) | Possesses the numerical control system of internal register runback bit function | |
CN103677671A (en) | Data reading-writing method and system of electrical port module | |
CN106444468B (en) | Information machine adapter detection system and method | |
CN102866979A (en) | Synchronous serial interface signal sensor data acquisition device | |
CN109388603A (en) | State information acquisition and feedback method, device, medium, terminal and teaching machine | |
CN109634519A (en) | The method and storage medium of electronic device, monitoring data caching | |
CN110377554B (en) | Multi-protocol data integrated communication device and method based on serial communication | |
CN104484260B (en) | Simulation monitoring circuit based on GJB289 bus interface SoC (system on a chip) | |
CN107885691A (en) | Serial data transmission method, distributed apparatus and main frame | |
CN101136756B (en) | Electric self-checking method, system and BMC chip on network long-range control host machine | |
CN107592286A (en) | A kind of intelligent communications terminal and its implementation for supporting multi-protocols | |
CN103259879A (en) | Calibration method and device for equipment nodal point codes | |
CN104155891B (en) | I<2>C-based networked transmitter and communication implementation method thereof | |
CN106453070A (en) | CNC (computer numerical control) intelligent gateway and application method | |
CN110445700A (en) | Slave communication system, method and terminal device | |
CN216057079U (en) | Internet of things terminal and internet of things system | |
JP5418670B2 (en) | Bus control device and bus control method | |
CN116125853A (en) | Integrated circuit security control method and device, storage medium and electronic equipment | |
US6934784B2 (en) | Systems and methods for managing-system-management-event data | |
JP2014096698A (en) | Communication device | |
CN114488871A (en) | Control method, frequency converter and computer readable storage medium | |
CN208271171U (en) | A kind of server debugging apparatus and server | |
JPH0936859A (en) | Monitoring information repeating method and device therefor |
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 |