CN106210040A - A kind of data acquisition port expansion device, system and method - Google Patents
A kind of data acquisition port expansion device, system and method Download PDFInfo
- Publication number
- CN106210040A CN106210040A CN201610539671.4A CN201610539671A CN106210040A CN 106210040 A CN106210040 A CN 106210040A CN 201610539671 A CN201610539671 A CN 201610539671A CN 106210040 A CN106210040 A CN 106210040A
- Authority
- CN
- China
- Prior art keywords
- communication module
- state
- data
- communication
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/2871—Implementation details of single intermediate entities
-
- 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
Abstract
The invention discloses a kind of data acquisition port expansion device, system and method, data acquisition port expansion device includes: first communication module, at least two second communication module and control module, control module is for will be currently at the first state and receive the second communication module of request of data and be set to the second state, and other each second communication modules are set to the third state;At the second communication module being currently at described second state, data to be collected are transmitted after connected collecting device, each second communication module is set to described first state;First communication module is for the described request transmission extremely collected equipment that will receive;Receive the collected equipment data to be collected according to the described request of data feedback received;Data to be collected are transmitted to the second communication module being currently at described second state.The data acquisition port number that technical problem is that existing collected equipment that present invention mainly solves is limited not enough.
Description
Technical field
The present invention relates to electronic technology field, particularly relate to a kind of data acquisition port expansion device, system and method.
Background technology
On the control equipment of factory, such as PLC (programmable logic controller (PLC)), the data acquisition port externally provided is to have
Limit, and the most taken by local collecting device, as being touched, screen takies.If controlling the data acquisition end of equipment
Mouth is serial ports, and such as RS-232, RS-422, RS-485 etc., this kind of COM1 is exclusive formula, if by other hold facility
, miscellaneous equipment just cannot use.If the data acquisition port controlling equipment is network interface, support is Transmission Control Protocol, most
Control equipment only support 1 TCP link, such as the Modbus TCP equipment of common support standard.
Along with the development of industry internet, need control equipment to be carried out remote data acquisition, at data acquisition port quilt
In the case of taking, if not changing software and hardware, just cannot meet the demand of local and remote data acquisition simultaneously.And producing
Field, due to equipment stable operation, usual user is unwilling to change the software and hardware of control equipment, in order to avoid affecting system stability
Property.
Summary of the invention
The data acquisition port expansion device of embodiment of the present invention offer, system and method, mainly solve the technical problem that
The data acquisition port number being existing collected equipment is limited not enough.
In order to solve above technical problem, the data acquisition port expansion device that the embodiment of the present invention provides includes:
A kind of data acquisition port expansion device, including: first communication module, at least two second communication module, and
The control module communicated with described first communication module, each second communication module, wherein,
Described control module is for will be currently at the first state and receive the second communication module of request of data and be set to
Second state, and other each second communication modules are set to the third state;It is being currently at the second communication of described second state
Each second communication module, by after data to be collected transmission to connected collecting device, is set to described first shape by module
State;
Described second communication module, for being set to described first state, the second state or the 3rd shape by described control module
State;When being in described first state and receiving request of data, it is set to described second state;When being in described second state
Time, for the described request of data transmission extremely described first communication module that will receive;And described first communication module is passed
Defeated next data described to be collected transmission is to connected collecting device;Treat described in the transmission of described first communication module is come
After gathering data transmission extremely connected collecting device, it is set to described first state;At other second communication module quilts
When being set to described second state, it is set to the third state;
Described first communication module is for described request of data the transmission extremely collected and equipment that will receive;Receive described
Collected equipment is according to the data to be collected of the described request of data feedback received;Described data to be collected are transmitted to currently
It is in the second communication module of described second state.
In certain embodiments, described second communication module receives request of data when being additionally operable to be in the described third state,
The request of data that caching receives;
Described control module is additionally operable to be currently at the first state and be cached with the second communication module of request of data and put
It is the second state, and other each second communication modules are set to the third state.
In certain embodiments, described control module is additionally operable to each second communication module configuration preference level;When two
Or plural second communication module is simultaneously in described first state, and when all receiving request of data, described control mould
Block is additionally operable to the order according to described priority to each second communication module configuration status.
In certain embodiments, described first communication module, the communication protocol of each second communication module support include: string
Mouth link protocol;Or, described first communication module, the communication protocol of each second communication module support include: network interface communication protocols
View.
In certain embodiments, described serial ports link protocol includes: RS232 serial ports link protocol, RS422 serial ports link are assisted
At least one in view, RS485 serial ports link protocol;Described network interface communication protocol includes: TCP communication agreement, modbus communicate
At least one in agreement, IP communication protocol.
In certain embodiments, the communication protocol that each second communication module is supported is different.
In certain embodiments, at least one second communication module is for the com port communication with remote collection equipment.
A kind of data collecting system, including: collected equipment, at least two collecting device, and described in any of the above-described item
Data acquisition port expansion device, the first communication module of described data acquisition port expansion device and described collected equipment
Communication, each second communication module communicates with at least one collecting device respectively.
A kind of collecting method, including:
If the data that the second communication module being currently at the first state receives the transmission of connected collecting device please
Ask, then enter following steps A,
Step A, control module will be currently at described first state and receive the second communication module of request of data and put
It is the second state, and other each second communication modules are set to the third state, enter following steps B;
Step B, it is currently at the second communication module of described second state the described request of data received is transmitted extremely
First communication module, enters following steps C;
The described request of data transmission that step C, described first communication module will receive to collected and equipment, enter with
Lower step D;
Step D, described first communication module receive described collected equipment according to the described request of data feedback received
Data to be collected, enter following steps E;
Step E, described first communication module by the transmission of described data to be collected to being currently at the of described second state
Two communication modules, enter following steps F;
Step F, it is currently at the second communication module of described second state by the transmission of described data to be collected to it even
The collecting device connect, enters following steps G;
Each second communication module is set to described first state by step G, described control module.
In certain embodiments, above-mentioned collecting method, also include:
If the second communication module being currently at the described third state receives request of data, then cache the data received
Request, until after its state is set to the first state, entering step A.
In certain embodiments, above-mentioned collecting method, also include:
Described control module gives each second communication module configuration preference level;
When two or more second communication modules are simultaneously in described first state, and all receive request of data
Time, described control module gives each second communication module configuration status according to the order of described priority.
The embodiment of the present invention also provides for a kind of computer-readable storage medium, and in described computer-readable storage medium, storage has computer
Executable instruction, described computer executable instructions is for performing the data acquisition port expansion device of aforesaid any one.
Data acquisition port expansion device that the embodiment of the present invention provides, system and method, at collected equipment and multiple
Increase a data collection terminal mouth expanding unit between collecting device, by this device and collected equipment communication, and provide many
Individual PORT COM (second communication module), these COM1s can support multiple different communication protocol, such as RS232 serial chain
Road agreement, RS422 serial link protocol, RS485 serial link protocol, TCP communication agreement, modbus communication protocol, IP communicate
Agreements etc., by these PORT COM and collecting device communication, transmit data to be collected to collecting device.So, to collected
Equipment does not has extra requirement, meets again the demand accessing multiple collecting devices, can also take into account multiple different communication simultaneously
The collecting device of agreement.
Accompanying drawing explanation
The schematic diagram of the data acquisition port expansion device that Fig. 1 provides for first embodiment of the invention;
The flow chart of the collecting method of the data acquisition port expansion device that Fig. 2 provides for Fig. 1;
The schematic diagram of the data acquisition port expansion device that Fig. 3 provides for second embodiment of the invention;
The flow chart of the collecting method of the data acquisition port expansion device that Fig. 4 provides for Fig. 3;
The schematic diagram of the data acquisition port expansion device that Fig. 5 provides for third embodiment of the invention;
The flow chart of the collecting method of the data acquisition port expansion device that Fig. 6 provides for Fig. 5.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Below by specific embodiment, the present invention is described in more detail.
First embodiment
With reference to the schematic diagram of the data acquisition port expansion device that Fig. 1, Fig. 1 provide for first embodiment of the invention, this number
Being connected between collected equipment and at least two collecting device according to gathering port expansion device, this data acquisition ports-Extending fills
Put and specifically include that first communication module 11, at least two second communication module (121 to 12n), and the mould that communicates with described first
The control module 13 that block 11, each second communication module (121 to 12n) communicate, wherein,
First communication module 11 connect the data acquisition port of outside collected equipment, each second communication module (121 to
12n), control module 13 (can be connected by the way of cabling with between each second communication module, control module 13).Collected
The communication protocol of the data acquisition port of equipment can be serial ports link protocol or network interface communication protocol, serial ports link protocol bag
Include: at least one in RS232 serial ports link protocol, RS422 serial ports link protocol, RS485 serial ports link protocol;Network interface communicates
Agreement includes: at least one in TCP communication agreement, modbus communication protocol, IP communication protocol, therefore, and first communication module
11 support above serial ports link protocol and/or network interface communication protocol.
Each second communication module (121 to 12n) connects the outside COM1 of at least one collecting device, the first communication mould
Block 11, control module 13 (can be connected by the way of cabling with between first communication module 11, control module 13), one
Two communication modules communicate with at least one collecting device, and the communication protocol of the COM1 of collecting device can be serial ports link association
View or network interface communication protocol, serial ports link protocol includes: RS232 serial ports link protocol, RS422 serial ports link protocol, RS485 go here and there
At least one in mouth link protocol;Network interface communication protocol includes: TCP communication agreement, modbus communication protocol, IP communication protocol
In at least one, therefore, each second communication module (121 to 12n) supports above serial ports link protocol and/or network interface communication protocols
View.The communication protocol that each second communication module (121 to 12n) is supported can be different.
Control module 13 is mainly used in being configured the state of each second communication module (121 to 12n), and to each
Two communication modules (121 to 12n), first communication module 11 are scheduling.
In certain embodiments, at least one second communication module connects the COM1 of remote collection equipment, and other are the years old
Two communication modules connect the COM1 of local collecting device, and such data acquisition port expansion device has been taken into account this locality and adopted
Collection equipment and remote collection equipment, be all connected this two classes collecting device with collected equipment, can be to collected equipment
On data be acquired.
The operation principle of above-mentioned data acquisition port expansion device, i.e. collecting method see Fig. 2, main flow bag
Include:
Preparatory stage: by the data of the first communication module 11 of above-mentioned data acquisition port expansion device with collected equipment
Collection port connects, and sets up communication, and collected equipment can be local;By each of above-mentioned data acquisition port expansion device
The COM1 of second communication module (121 to 12n) and corresponding collecting device connects, and sets up communication, and part second communicates mould
Block can be set up with remote collection equipment and communicate, and other part second communication modules can be set up with local collecting device and communicate.
Communication between first communication module 11 and collected equipment, selects according to the communication protocols justice that collected equipment is supported.Second leads to
Communication between letter module (121 to 12n) and collecting device, selects according to the communication protocols justice that this collecting device is supported.
During original state, each second communication module (121 to 12n) is set to the first state by control module 13, appoints when having
One second communication module (present embodiment assumes that it is second communication module 121) being in the first state receives connected adopting
The request of data that collection equipment sends, then enter following acquisition phase.
Acquisition phase:
S201, control module 13 will be currently at described first state and receive the second communication module of request of data
121 are set to the second state, and other each second communication modules (122 to 12n) are set to the third state, enter following S202;
S202, be currently at described second state second communication module 121 will receive described request of data transmission
To first communication module 11, enter following steps S203;
The described request of data transmission extremely collected equipment that S203, first communication module 11 will receive, enters following step
Rapid S204;
S204, first communication module 11 receive described collected equipment treating according to the described request of data feedback received
Gather data, enter following steps S205;
The transmission of described data to be collected is led to by S205, first communication module 11 to be currently at described second state second
Letter module 121, enters following steps S206;
S206, be currently at the second communication module 121 of described second state by the transmission of described data to be collected to and its
The collecting device connected, enters following steps S207;
Each second communication module (121 to 12n) is set to described first state by S207, control module 13.
If the above-mentioned second communication module being in the described third state receives request of data, then this second communication module can
The request of data received with caching, until after its state is set to the first state, with reference to above-mentioned steps S201 to step S207
Perform.
Control module 13 can also give each second communication module (121 to 12n) configuration preference level;When two or two
Above second communication module is simultaneously in described first state, and when all receiving request of data, and control module 13 can be by
According to the order of described priority, preferential be set to the second state to the second communication module that priority is the highest, and by other each second
Communication module is set to the third state, enters above-mentioned steps S202.
Control module 13 can be also used for controlling between first communication module 11, each second communication module (121 to 12n)
Logic is dispatched.
Each second communication module (121 to 12n) has three states: the first state, the second state, the third state, by controlling
Molding block 13 configures, and when there being a second communication module to be in the second state, other second communication modules are set to the 3rd
State, is in the second state without arbitrary second communication module, and the most all second communication modules are all set to the first state.The
One state-visibility is original state, and the second state-visibility is state of activation, and the second state-visibility is illegal state.
Second embodiment
With reference to the schematic diagram of the data acquisition port expansion device that Fig. 3, Fig. 3 provide for second embodiment of the invention, this is real
Executing in example, data acquisition port expansion device includes: 31, two second communication modules (32,33) of first communication module and control
Molding block 34, wherein,
First communication module 31 leads to as main node proxy module, the data acquisition port communication of equipment collected with outside
Cross serial ports (serial ports link protocol e.g.: RS232 serial ports link protocol, RS422 serial ports link protocol, RS485 serial ports link are assisted
View etc.) connect;Also it is connected (not shown) with internal control module 34, is also connected with two second communication modules (32,33);
Second communication module 32, as a sub-node-agent module, passes through with the COM1 of outer remote collecting device
Serial ports is (serial ports link protocol e.g.: RS232 serial ports link protocol, RS422 serial ports link protocol, RS485 serial ports link protocol
Deng) connect;Also it is connected with internal control module 34, is also connected with first communication module 31;
Second communication module 33, as another child node proxy module, leads to the COM1 of outside local collecting device
Cross serial ports (serial ports link protocol e.g.: RS232 serial ports link protocol, RS422 serial ports link protocol, RS485 serial ports link are assisted
View etc.) connect;Also it is connected with internal control module 34, is also connected with first communication module 31;
From the point of view of collected equipment side, only it is connected to a host node, meets master-slave communication protocol model (Modbus etc.);
From the point of view of remote collection equipment or local remote collection equipment side, it is connected on data acquisition port and (is actually connected to
On child node proxy module), meet the master-slave model of Modbus serial port protocol, be then scheduling by control module 34
Reason, i.e. collecting method sees Fig. 4, and main flow includes:
Preparatory stage: by the data of the first communication module 31 of above-mentioned data acquisition port expansion device with collected equipment
Collection port connects, and sets up communication, and collected equipment is local;By the second communication of above-mentioned data acquisition port expansion device
Module 32 is connected with the COM1 of a remote collection equipment, sets up communication, second communication module 33 and a local collecting device
COM1 connect, set up communication;
After above preparation completes, entering original state, control module 34 is by second communication module the 32, second communication mould
Block 33 is all set to the first state, if remote collection equipment sends request of data, second communication module to second communication module 32
After 32 receive request of data, then enter following acquisition phase (if the request of data that local collecting device is initiated, reference
Procedure below).
Acquisition phase:
S401, control module 34 will be currently at described first state and receive the second communication module 33 of request of data
It is set to the second state, and other second communication modules 32 are set to the third state, enter following S402;
S402, it is currently at the second communication module 33 of described second state the described request of data received is transmitted extremely
First communication module 31, enters following steps S403;
The described request of data transmission extremely collected equipment that S403, first communication module 31 will receive, enters following step
Rapid S404;
S404, first communication module 31 receive described collected equipment treating according to the described request of data feedback received
Gather data, enter following steps S405;
S405, first communication module 31 are ask and are under the second state to second communication module 33, just by described number to be collected
According to transmitting to the second communication module 33 being currently at described second state, enter following steps S406;
S406, it is currently at the second communication module 33 of described second state by the transmission of described data to be collected to it even
The remote collection equipment connect, enters following steps S407;
The second communication module 33 being currently at described second state is set to described first shape by S407, control module 34
State, and the second communication module 32 being currently at the described third state is set to described first state.
In above process, if the above-mentioned second communication module 32 being in the described third state receives connected
The request of data that ground collecting device sends, then this second communication module 32 caches the request of data received, directly this second communication
After the state of module 32 is set to the first state (i.e. after step S407), entrance step S408:
S408, control module 34 will be currently at described first state and are cached with the second communication module 32 of request of data
It is set to described second state, second communication module 33 is set to the described third state, enter following steps S409;
S409, it is currently at the second communication module 32 of described second state and the request of data of caching is transmitted to first and lead to
Letter module 31, enters following steps S410;
The request of data transmission extremely collected equipment that S410, first communication module 31 will receive, enters following steps
S411;
S411, first communication module 31 receive described collected equipment according to receive this request of data feedback wait adopt
Collection data, enter following steps S412;
S412, first communication module 31 are ask and are under the second state to second communication module 32, just by described number to be collected
According to transmitting to the second communication module 32 being currently at described second state, enter following steps S413;
S413, it is currently at the second communication module 32 of described second state by the transmission of described data to be collected to it even
The local collecting device connect, enters following steps S414;
The second communication module 32 being currently at described second state is set to described first shape by S414, control module 34
State, and the second communication module 33 being currently at the described third state is set to described first state.
Control module 34 can also give each second communication module (32,33) configuration preference level;When two second moulds that communicate
Block is simultaneously in described first state, and when all receiving request of data, and control module 34 can suitable according to described priority
Sequence, the preferential second communication module the highest to priority is set to the second state, and another second communication module is set to the 3rd shape
State, enters above-mentioned steps S402, it is ensured that the communication of some collecting device is ageing.
If application layer protocol is not modbus agreement, being other agreements or proprietary protocol, such scheme is equally applicable.
Above-mentioned data acquisition port expansion device can be used for all communication port extensions with exclusive formula communication modes.
3rd embodiment
With reference to the schematic diagram of the data acquisition port expansion device that Fig. 5, Fig. 5 provide for third embodiment of the invention, this is real
Executing in example, data acquisition port expansion device includes: 51, two second communication modules (52,53) of first communication module and control
Molding block 54, wherein,
The present embodiment, as a example by application protocol is as modbus, has refined the internal structure of first communication module 51 further,
First communication module 51 includes the first processing module 512, and be connected with the first processing module 512 the first COM1 511,
Oneth modbus protocol stack 513 and the first tcp protocol stack 514, the data of also collected with the outside equipment of the first COM1 511
Gathering port to be connected by TCP, the first processing module 512 is also connected with control module 54, also with two second communication modules even
Connect;
Having refined the internal structure of two second communication modules (52,53) in the present embodiment further, one of them is second years old
Communication module 52 includes the second processing module 522, and be connected with the second processing module 522 the second COM1 521,
Two modbus protocol stack 523 and the second tcp protocol stacks 524, the second COM1 521 also with the communication of outside local collecting device
Port is connected by TCP, and the second processing module 522 is also connected with control module 54, is also connected with the first processing module 512;
Another second communication module 53 includes the second processing module 532, and be connected with the second processing module 532
Two COM1 the 531, the 2nd modbus protocol stack 533 and the second tcp protocol stacks 534, the second COM1 531 is also remote with outside
The COM1 of journey collecting device is connected by TCP, and the second processing module 532 is also connected with control module 54, also with first at
Reason module 512 connects;
Data interaction between first communication module, second communication module, control module 54, can be internal message bus
Or function call.
The operation principle of above-mentioned data acquisition port expansion device, i.e. collecting method see Fig. 6, main flow bag
Include:
Preparatory stage: by the number of the first COM1 511 of above-mentioned data acquisition port expansion device with collected equipment
Setting up TCP connection according to gathering port, collected equipment is local;By the second communication of above-mentioned data acquisition port expansion device
Port 521 is set up TCP with the COM1 of a local collecting device and is connected, the second COM1 531 and remote collection equipment
COM1 set up TCP connect;
After above preparation completes, enter original state, control module 54 by two second communication modules (52,53),
First communication module 51 is all set to the first state and (contains the configuration of the state to first communication module 51 in the present embodiment, at it
In his embodiment, it is also possible to acquiescence first communication module 51 is constantly in the second state or ignores the shape to first communication module 51
State configures), if remote collection equipment sends request of data to the second COM1 531, the second COM1 531 receives number
After request, then enter following acquisition phase (if the request of data that local collecting device is initiated, reference procedure below).
Acquisition phase:
S601, control module 54 will be currently at described first state and receive the second communication module 53 of request of data
It is set to the second state with first communication module 51, and second communication module 52 is set to the third state, enter following S602;
The request of data that S602, the second COM1 531 will receive, is transferred to the second processing module 532, and second processes
Module 532 parses the content of described request of data by the 2nd modbus protocol stack 533 from Modbus agreement, by this content
Being transferred to the first processing module 512, this content is encapsulated into by the first processing module 512 by a modbus protocol stack 513
In Modbus agreement, by the first COM1 511, connect, based on TCP, the collected equipment that is sent to, enter following steps
S603;
In certain embodiments, after request of data is issued collected equipment, start an intervalometer protection the most simultaneously,
If timer expiry, then control module 54 is put first communication module 51 and sent the TCP hyphen of request of data is invalid connection,
And by second communication module 53 to the response message of remote collection equipment feedback reading data failure, if follow-up at this TCP
Receiving response message on hyphen, then abandon this message, control module 54 puts first communication module 51, second communication module simultaneously
52, third communication module 53 is the first state.
S603, the first COM1 511 receive described collected equipment according to the described request of data feedback received
Data to be collected, are transferred to the first processing module 512, and the first processing module 512 is parsed by a modbus protocol stack 513
The content of these collection data, enters following steps S604;
S604, the first processing module 512 are ask and are under the second state to second communication module 53, just by described number to be collected
According to content transmission to being currently at the second communication module 53 of described second state, enter following steps S605;
After S605, the second processing module 532 receive, by the 2nd modbus protocol stack 533 by described data to be collected
Content is encapsulated in modbus agreement, by the second COM1 531, connects based on TCP and is sent to remote collection equipment, enter
Following steps S606;
S606, control module 54 will be currently at the second communication module 53 of described second state, first communication module 51
It is set to described first state, and the second communication module 52 being currently at the described third state is set to described first state.
In above process, if the above-mentioned second communication module 52 being in the described third state receives connected
The request of data that ground collecting device sends, then the request of data received is transferred to the second process mould by the second COM1 521
Block 522, the second processing module 522 carries out caching this request of data, and directly the state of this second communication module 52 is set to the first shape
After state (i.e. after step S606), entrance step S607:
S607, control module 54 will be currently at described first state and are cached with the second communication module 52 of request of data
It is set to described second state, first communication module 51 is set to described second state, second communication module 53 is set to described
Three condition, enters following steps S608;
S608, the second processing module 522 parse caching by the 2nd modbus protocol stack 523 from Modbus agreement
The content of request of data, is transferred to the first processing module 512 by this content, and the first processing module 512 is assisted by a modbus
This content is encapsulated in Modbus agreement by view stack 513, by the first COM1 511, is sent to collected based on TCP connection
Equipment, enters following steps S609;
In certain embodiments, after request of data is issued collected equipment, start an intervalometer protection the most simultaneously,
If timer expiry, then control module 54 is put first communication module 51 and sent the TCP hyphen of request of data is invalid connection,
And by second communication module 52 to the response message of remote collection equipment feedback reading data failure, if follow-up at this TCP
Receiving response message on hyphen, then abandon this message, control module 54 puts first communication module 51, second communication module simultaneously
52, third communication module 53 is the first state.
S609, the first COM1 511 receive described collected equipment according to the described request of data feedback received
Data to be collected, are transferred to the first processing module 512, and the first processing module 512 is parsed by a modbus protocol stack 513
The content of these collection data, enters following steps S610;
S610, the first processing module 512 are ask and are under the second state to second communication module 52, just by described number to be collected
According to content transmission to being currently at the second communication module 52 of described second state, enter following steps S611;
After S611, the second processing module 522 receive, by the 2nd modbus protocol stack 523 by described data to be collected
Content is encapsulated in modbus agreement, by the second COM1 521, connects based on TCP and is sent to local collecting device, enter
Following steps S612;
S612, control module 54 will be currently at the second communication module 52 of described second state, first communication module 51
It is set to described first state, and the second communication module 53 being currently at the described third state is set to described first state.
Control module 54 can also give each second communication module (52,53) configuration preference level;When two second moulds that communicate
Block is simultaneously in described first state, and when all receiving request of data, and control module 54 can suitable according to described priority
Sequence, the preferential second communication module the highest to priority is set to the second state, and another second communication module is set to the 3rd shape
State, enters above-mentioned steps S502, it is ensured that the communication of some collecting device is ageing.
If application layer protocol is not modbus agreement, being other agreements or proprietary protocol, such scheme is equally applicable.
In certain embodiments, two second communication modules (52,53) can also share tcp protocol stack and Modbus agreement
Stack, if the mode shared, during control module 54 configuration status, can be only to first processing module the 512, second processing module
522, the second processing module 532 configures.
The present invention also provides for a kind of data collecting system, including: collected equipment, at least two collecting device, Yi Jishang
State the data acquisition port expansion device described in any embodiment, the first communication module of this data acquisition port expansion device with
Described collected equipment communication, each second communication module communicates with at least one collecting device respectively.Specific implementation is joined
See the above-described embodiment description to data collection terminal mouth expanding unit.Described collected equipment is including, but not limited to PLC, described
In at least two collecting device, at least one is local collecting device, and other are remote collection equipment, and this remote collection equipment can
To be the data backup device of local collecting device.
The present invention increases a data collection terminal mouth expanding unit between collected equipment and multiple collecting device, to quilt
Collecting device does not has extra requirement, meets again the demand accessing multiple collecting devices, can also take into account multiple difference simultaneously
The collecting device of communication protocol.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.By above embodiment party
The description of formula, those skilled in the art it can be understood that can add required general to above-described embodiment method by software
The mode of hardware platform realizes, naturally it is also possible to by hardware, but a lot of in the case of the former is more preferably embodiment.Based on
Such understanding, the part that prior art is contributed by technical scheme the most in other words can be with software product
Form embody, this computer software product is stored in a storage medium (such as ROM/RAM, magnetic disc, CD), including
Some instructions are with so that a station terminal equipment (can be mobile phone, computer, server, air-conditioner, or the network equipment etc.)
Perform the method described in each embodiment of the present invention.
Above in conjunction with accompanying drawing, embodiments of the invention are described, but the invention is not limited in above-mentioned concrete
Embodiment, above-mentioned detailed description of the invention is only schematic rather than restrictive, those of ordinary skill in the art
Under the enlightenment of the present invention, in the case of without departing from present inventive concept and scope of the claimed protection, it may also be made that a lot
Form, within these belong to the protection of the present invention.
Claims (12)
1. a data acquisition port expansion device, it is characterised in that including: first communication module, at least two second communicates
Module, and the control module communicated with described first communication module, each second communication module, wherein,
Described control module is for will be currently at the first state and receive the second communication module of request of data and be set to second
State, and other each second communication modules are set to the third state;At the second communication module being currently at described second state
After data to be collected transmission to connected collecting device, each second communication module is set to described first state;
Described second communication module, for being set to described first state, the second state or the third state by described control module;When
When being in described first state and receive request of data, it is set to described second state;When being in described second state, use
In the described request of data transmission that will receive to described first communication module;And by the transmission of described first communication module
The transmission of described data to be collected is to connected collecting device;The number described to be collected that the transmission of described first communication module is come
After transmission to connected collecting device, it is set to described first state;It is set to institute at other second communication modules
When stating the second state, it is set to the third state;
Described first communication module is for the described request of data transmission extremely collected equipment that will receive;Receive described collected
Equipment is according to the data to be collected of the described request of data feedback received;Described data to be collected are transmitted to being currently at
State the second communication module of the second state.
2. data acquisition port expansion device as claimed in claim 1, it is characterised in that described second communication module is additionally operable to
Request of data, the request of data that caching receives is received when being in the described third state;
Described control module is additionally operable to be currently at the first state and be cached with the second communication module of request of data and be set to
Two-state, and other each second communication modules are set to the third state.
3. data acquisition port expansion device as claimed in claim 1, it is characterised in that
Described control module is additionally operable to each second communication module configuration preference level;When two or more second communicates
Module is simultaneously in described first state, and when all receiving request of data, described control module be additionally operable to according to described preferentially
The order of level gives each second communication module configuration status.
4. the data acquisition port expansion device as described in any one of claims 1 to 3, it is characterised in that described first communication
Module, the communication protocol of each second communication module support include: serial ports link protocol;Or, described first communication module, each
The communication protocol of two communication module supports includes: network interface communication protocol.
5. data acquisition port expansion device as claimed in claim 4, it is characterised in that described serial ports link protocol includes:
At least one in RS232 serial ports link protocol, RS422 serial ports link protocol, RS485 serial ports link protocol;Described network interface leads to
Letter agreement includes: at least one in TCP communication agreement, modbus communication protocol, IP communication protocol.
6. data acquisition port expansion device as claimed in claim 4, it is characterised in that it is logical that each second communication module is supported
Letter agreement is different.
7. the data acquisition port expansion device as described in any one of claims 1 to 3, it is characterised in that at least one is second years old
Communication module is for the com port communication with remote collection equipment.
8. a data collecting system, it is characterised in that including: collected equipment, at least two collecting device, and such as right
Require the data acquisition port expansion device described in 1 to 7 any one, the first communication mould of described data acquisition port expansion device
Block and described collected equipment communication, each second communication module communicates with at least one collecting device respectively.
9. a collecting method, it is characterised in that including:
If the second communication module being currently at the first state receives the request of data that connected collecting device sends, then
Enter following steps A,
Step A, control module will be currently at described first state and receive the second communication module of request of data and be set to
Two-state, and other each second communication modules are set to the third state, enter following steps B;
Step B, it is currently at the second communication module of described second state the described request of data received is transmitted to first
Communication module, enters following steps C;
Described request of data the transmission extremely collected and equipment that step C, described first communication module will receive, enters following step
Rapid D;
Step D, described first communication module receive described collected equipment treating according to the described request of data feedback received
Gather data, enter following steps E;
The transmission of described data to be collected is led to by step E, described first communication module to be currently at described second state second
Letter module, enters following steps F;
Step F, it is currently at the second communication module of described second state by the transmission of described data to be collected to the most connected
Collecting device, enters following steps G;
Each second communication module is set to described first state by step G, described control module.
10. collecting method as claimed in claim 9, it is characterised in that also include:
If the second communication module being currently at the described third state receives request of data, then caching the data received please
Ask, until after its state is set to the first state, entering step A.
11. collecting methods as claimed in claim 9, it is characterised in that also include:
Described control module gives each second communication module configuration preference level;
When two or more second communication modules are simultaneously in described first state, and when all receiving request of data,
Described control module gives each second communication module configuration status according to the order of described priority.
12. collecting methods as described in any one of claim 9 to 11, it is characterised in that described first communication module with
Between described collected equipment, between each second communication module and corresponding collecting device, pass through serial communication;Or, described
Led to by network interface between one communication module with described collected equipment, between each second communication module and corresponding collecting device
Letter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610539671.4A CN106210040B (en) | 2016-07-08 | 2016-07-08 | A kind of data collection terminal mouth expanding unit, system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610539671.4A CN106210040B (en) | 2016-07-08 | 2016-07-08 | A kind of data collection terminal mouth expanding unit, system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106210040A true CN106210040A (en) | 2016-12-07 |
CN106210040B CN106210040B (en) | 2019-07-19 |
Family
ID=57473682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610539671.4A Active CN106210040B (en) | 2016-07-08 | 2016-07-08 | A kind of data collection terminal mouth expanding unit, system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106210040B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109413180A (en) * | 2018-10-26 | 2019-03-01 | 厦门科灿信息技术有限公司 | A kind of collecting method, system and equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070001868A1 (en) * | 2003-02-14 | 2007-01-04 | Boaz Jon A | Automated meter reading system, communication and control network for automated meter reading, meter data collector, and associated methods |
US20090059728A1 (en) * | 2007-08-27 | 2009-03-05 | Lathem Time Corporation | Expandable usb data terminal for time & attendance and data collection applications |
CN102170712A (en) * | 2011-04-08 | 2011-08-31 | 华中科技大学 | Wireless sensor network node developing platform |
CN102591244A (en) * | 2012-03-26 | 2012-07-18 | 中国科学院自动化研究所 | Bus-based input/output (IO) acquisition and control extending device |
CN204650226U (en) * | 2015-06-14 | 2015-09-16 | 上海北工光翔电气科技有限公司 | A kind of data collector and data acquisition system (DAS) |
CN204926075U (en) * | 2015-08-19 | 2015-12-30 | 深圳市励研科技有限公司 | Serial communication control board |
CN105516285A (en) * | 2015-12-01 | 2016-04-20 | 北京无线电计量测试研究所 | Data acquisition equipment, system and method |
CN205375078U (en) * | 2015-12-28 | 2016-07-06 | 无锡市迪卡瑞控制技术有限公司 | Remote data monitoring module with expansion interface |
-
2016
- 2016-07-08 CN CN201610539671.4A patent/CN106210040B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070001868A1 (en) * | 2003-02-14 | 2007-01-04 | Boaz Jon A | Automated meter reading system, communication and control network for automated meter reading, meter data collector, and associated methods |
US20090059728A1 (en) * | 2007-08-27 | 2009-03-05 | Lathem Time Corporation | Expandable usb data terminal for time & attendance and data collection applications |
CN102170712A (en) * | 2011-04-08 | 2011-08-31 | 华中科技大学 | Wireless sensor network node developing platform |
CN102591244A (en) * | 2012-03-26 | 2012-07-18 | 中国科学院自动化研究所 | Bus-based input/output (IO) acquisition and control extending device |
CN204650226U (en) * | 2015-06-14 | 2015-09-16 | 上海北工光翔电气科技有限公司 | A kind of data collector and data acquisition system (DAS) |
CN204926075U (en) * | 2015-08-19 | 2015-12-30 | 深圳市励研科技有限公司 | Serial communication control board |
CN105516285A (en) * | 2015-12-01 | 2016-04-20 | 北京无线电计量测试研究所 | Data acquisition equipment, system and method |
CN205375078U (en) * | 2015-12-28 | 2016-07-06 | 无锡市迪卡瑞控制技术有限公司 | Remote data monitoring module with expansion interface |
Non-Patent Citations (1)
Title |
---|
彭超: ""基于DSP的高速数据采集系统的研究"", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109413180A (en) * | 2018-10-26 | 2019-03-01 | 厦门科灿信息技术有限公司 | A kind of collecting method, system and equipment and storage medium |
CN109413180B (en) * | 2018-10-26 | 2021-08-06 | 厦门科灿信息技术有限公司 | Data acquisition method, system and equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106210040B (en) | 2019-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106374439B (en) | Software definition implementation method based on intelligent substation Protection control system | |
CN104471896B (en) | Configuration management device, configuration interface arrangement and method for the unrelated network equipment configuration of manufacturer | |
CN103828305B (en) | For parametrization automated system or the system and method for the field apparatus of control system | |
CN111865736B (en) | Equipment control method and device | |
CN105723658B (en) | Network system, coupling unit and the method for operational network system | |
EP2683203B1 (en) | Wireless communication system and information providing method | |
CN107079057A (en) | Data transmission method, device, system, electronic equipment and computer program product | |
CN105282003B (en) | Establish the method and system and tunnel control device and virtual switch in tunnel | |
CN104580029B (en) | Address distribution method and device | |
CN105389278A (en) | CAN bus based serial communication method for master and slave machines | |
WO2013185713A2 (en) | Industrial control system and management device | |
CN105323330A (en) | Internet protocol addressing of industrial control devices employing the network ring topology | |
CN103595712B (en) | A kind of Web authentication method, apparatus and system | |
CN105281941B (en) | A kind of data transmission method, the first CSE, centre CSE and the 2nd CSE | |
EP3871377B1 (en) | Distributor node, automation network and method for transmitting telegrams | |
CN101945026A (en) | Data transmission method of application layer in control area network and control area network system | |
CN106210040A (en) | A kind of data acquisition port expansion device, system and method | |
CN104821948B (en) | OpenSAFETY functional safety implementation methods based on POWERLINK | |
CN109884971A (en) | Long-range control method, apparatus and system | |
CN107976691B (en) | Communication method and system between vehicle-mounted terminal, monitoring platform and supervision platform | |
CN106131009A (en) | A kind of data acquisition port expansion device, system and method | |
CN104683209B (en) | Coupling device and EtherCAT network coupled system between a kind of EtherCAT network main website | |
CN100337170C (en) | Network separated industrial controller on spot and realizing method thereof | |
CN103986692B (en) | Data forwarding method and system based on wireless access point | |
CN113848834B (en) | Workshop equipment access system and method based on edge cloud cooperation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190409 Address after: 518000 Huiheng Building Phase II 311, Keyuan Road, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province Applicant after: Shenzhen Yuanlian Technology Co., Ltd. Address before: 518057 Junhuang Jiayuan 15E, Nine Streets, Xinzhou, Futian District, Shenzhen City, Guangdong Province Applicant before: Guo Jianfeng |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |