CN106504512A - II type harvesters, collecting method and system - Google Patents
II type harvesters, collecting method and system Download PDFInfo
- Publication number
- CN106504512A CN106504512A CN201611159053.3A CN201611159053A CN106504512A CN 106504512 A CN106504512 A CN 106504512A CN 201611159053 A CN201611159053 A CN 201611159053A CN 106504512 A CN106504512 A CN 106504512A
- Authority
- CN
- China
- Prior art keywords
- communication module
- micro
- control unit
- data
- pin
- 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.)
- Pending
Links
- 241001124569 Lycaenidae Species 0.000 title claims abstract description 24
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000004891 communication Methods 0.000 claims abstract description 267
- 230000005540 biological transmission Effects 0.000 claims abstract description 13
- 230000008859 change Effects 0.000 claims description 6
- 230000004044 response Effects 0.000 claims description 2
- 230000008569 process Effects 0.000 description 3
- 241001269238 Data Species 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C23/00—Non-electrical signal transmission systems, e.g. optical systems
- G08C23/04—Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
Abstract
A kind of II types harvester, collecting method and system is embodiments provided, technical field of electric power is applied to, wherein the II type harvesters include:Communication module chip, micro-control unit, the micro-control unit has multiple serial ports, respectively by each serial ports and first communication module, second communication module, the communication module chip is connected, the micro-control unit is provided with I/O pin, it is connected with the data module of the communication module chip by the I/O pin, the communication module chip is switched over to the conducting state of the I/O pin by controlling the micro-control unit, to switch the data transmission channel of the data module and the micro-control unit, the data transmission channel is used for transmission from the first communication module or the data of the second communication module, the embodiment of the present invention additionally provides a kind of collecting method and system, realize on the premise of the physical serial interface quantity of communication module chip of current II types harvester is not changed, realize data Quick Acquisition, cost-effective.
Description
Technical field
The present invention relates to technical field of electric power, more particularly to a kind of II types harvester, collecting method and system.
Background technology
The improvement stage is led as State Grid Corporation of China's power information acquisition system construction is entered, in intelligent grid framework
It is that II types harvester is connected with 485 interfaces of ammeter by 485 lines to have a kind of meter reading method in power information acquisition system, concentrates
Device is by being built using carrier wave or wireless communication mode with II types harvester.Meanwhile, for convenience of safeguarding, also add
Infrared communication function.
In prior art, the physical serial interface only one of which of the communication module chip of II type harvesters can only pass through the physics
Serial ports connects a data communication module, it is impossible to adapt to currently to require that data acquisition is quick, easily needs.If by increasing thing
Reason serial ports is connected to meet data acquisition needs with data communication module, then need to increase cost, and data pass through physics string
Mouth is forwarded can increase time delay.
Content of the invention
The present invention provides a kind of II types harvester, collecting method and system, it is intended to if solution meets II types and adopts
Storage is connected with multiple data communication modules, increases the problem of the cost increase that serial ports is caused.
First aspect present invention provides a kind of II types harvester, and the II types harvester includes:
Communication module chip, micro-control unit;
The micro-control unit has multiple serial ports, is connected with first communication module by first serial, by second
Serial ports is connected with second communication module, is connected with the communication module chip by the 3rd serial ports;
The micro-control unit is provided with I/O pin, is connected with the communication module chip by the I/O pin;
The communication module chip is switched over to the conducting state of the I/O pin by controlling the micro-control unit,
To switch the data transmission channel between the communication module chip and the micro-control unit, the data transmission channel is used for
Transmission is from the first communication module and/or the data of the second communication module.
Second aspect present invention provides a kind of collecting method, is applied to II type harvesters, the II types harvester bag
Communication module chip and micro-control unit is included, the micro-control unit has multiple serial ports, logical by first serial and first
Letter module is connected, and is connected with second communication module by second serial, by the 3rd serial ports and the communication module chip
It is connected, the micro-control unit is provided with I/O pin, is connected with the communication module chip by the I/O pin, wraps
Include:
The micro-control unit receiving data, wherein, the communication module of the micro-control unit and the II types harvester
Data of the default transport from the first communication module between chip;
If the data for receiving come from the first communication module, the communication module is forwarded the data to
Chip is processed;
If the data for receiving come from the second communication module, the communication module chip is notified;
Micro-control unit described in the communication module chip controls switches the conducting shape of the I/O pin of the micro-control unit
State so that transmit the data from the second communication module between the micro-control unit and the communication module chip.
Third aspect present invention provides a kind of data collecting system, including:
II type harvesters, first communication module and second communication module;
The II types harvester includes communication module chip and micro-control unit;
The micro-control unit has multiple serial ports, is connected with first communication module by first serial, by second
Serial ports is connected with second communication module, is connected with the communication module chip by the 3rd serial ports, the micro-control unit
I/O pin is provided with, is connected with the communication module chip by the I/O pin;
The micro-control unit, for receiving data, wherein, between the micro-control unit and the communication module chip
Data of the default transport from the first communication module, if the data for receiving come from the first communication module,
Forward the data to the communication module chip to be processed, if the data for receiving come from the second communication mould
Block, then notify the communication module chip;
The communication module chip, for controlling leading for the I/O pin of the micro-control unit switching micro-control unit
Logical state so that transmit the number from the second communication module between the micro-control unit and the communication module chip
According to.
II type harvesters, collecting method and system that the embodiments of the present invention are provided, by communication module chip
Serial ports connection one micro-control unit with Multi-serial port of extension, the micro-control unit is logical with multiple respectively by multiple serial ports
Letter module is connected, and the communication module chip is provided with I/O pin, and I/O pin is connected with the data module of the micro-control unit, at this
Under the control of communication module chip, switch the conducting state of I/O pin switching the data of the data module and the micro-control unit
Transceiver channel so that the communication module chip receives and dispatches the data from different pieces of information module by the data module, so as to not
On the premise of changing the original serial ports quantity of communication module chip of II type harvesters, by simple extension connect one have many
The micro-control unit of individual interface, carries out data exchange by the micro-control unit from multiple different communication modules, saved into
This, also, by controlling the conducting state switch data transceiver channel of I/O pin, the instantaneity of data forwarding is improved, minimizing is prolonged
When.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those skilled in the art, without having to pay creative labor, can be with root
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the II type harvesters that first embodiment of the invention is provided;
Fig. 2 is that the collecting method that second embodiment of the invention is provided realizes schematic flow sheet;
Fig. 3 is the structural representation of the data collecting system that third embodiment of the invention is provided.
Specific embodiment
For enabling the goal of the invention of the present invention, feature, advantage more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, to the embodiment of the present invention in technical scheme be clearly and completely described, it is clear that described reality
It is only a part of embodiment of the invention to apply example, and not all embodiments.Embodiment in based on the present invention, people in the art
The every other embodiment obtained under the premise of creative work is not made by member, belongs to the scope of protection of the invention.
The technical scheme that various embodiments of the present invention are provided, it is adaptable to the serial ports expansion scene of II type harvesters, i.e. when II types
When harvester connects equipment by physical serial interface, when causing the inconvenience of connection equipment due to physical serial interface lazy weight, by even
An extension connecting equipment with multiple serial ports is connect, realizes being connected with more equipment.Following embodiment, the extension connection
As a example by equipment is with micro-control unit (MCU, Microcontroller Unit), the MCU can enter at row data communication and data
Reason, as long as the extension connecting equipment for possessing data communication and data processing function is regarded as within the scope of the present invention.
Fig. 1, the structural representation of the II type harvesters that Fig. 1 is provided is referred to for first embodiment of the invention.The present embodiment
The II type harvesters of offer mainly include:
Communication module chip 11, micro-control unit (MCU, Microcontroller Unit) 12;
Communication module chip 11 is specifically as follows carrier communication module chip, such cake core, existing carrier communication function,
There are data processing function and data communication function again.II type harvesters 11 only one of which physical serial interface of communication module chip (with
Lower by physical serial interface abbreviation serial ports) physical connection can be carried out with external equipment.In the present embodiment, the serial ports is used for and communication module
Chip 11 connects.
Micro-control unit 12 has multiple physical serial interfaces, and specifically, micro-control unit 12 is logical by first serial and first
Letter module 13 is connected, and is connected with second communication module 14 by second serial, by the 3rd serial ports and communication module chip
11 are connected.
IO (input/output, input/output) pin is provided with micro-control unit 12, by I/O pin and the mould that communicates
The data module of chip block 11 is connected, I/O pin input (TX, transport) and outfan respectively with data module
(RX, receive) is connected.Specifically, 2 I/O pin S are provided with micro-control unit 121And S2, wherein, I/O pin S1With
The input of data module is connected, I/O pin S2It is connected with the outfan of data module.Control in communication module chip 11
Under system, conducting state of the micro-control unit 12 by two I/O pins of switching switches communication module chip 11 and microcontroller list
The data transmission channel of unit 12, the data transmission channel are used for transmission from first communication module 13 or second communication module 14
Data.
Data of the default transport from first communication module 13 between micro-control unit 12 and communication module chip 11.If micro-
The data that control unit 12 is received come from first communication module 13, then data are directly forwarded to communication module chip 11 is carried out
Process, if the data for receiving come from second communication module 14, notify communication module chip to receive and come from the second communication mould
The data of block 14, the conducting state of the I/O pin of the control switching micro-control unit 12 of micro-control unit 12 of communication module chip 11,
So that transmitting the data from second communication module 14 between micro-control unit 12 and communication module chip 11.
Wherein, first communication module 13 can be infrared module, and second communication module 14 can be 485 communication modules.
Specifically, communication module chip 11 sends switching control order to micro-control unit 12, controls micro-control unit 12
The conducting state of switching I/O pin, micro-control unit 12 can switch two by providing different low and high levels for I/O pin
The conducting state of I/O pin.
The first conducting state:The micro-control unit for the I/O pin provide when being low level (0), the communication module
Chip receives the data that the infrared module and 485 communication module send by the micro-control unit, and, 485 lead to this
Letter module sends data;
Or,
Second conducting state:The micro-control unit provides low level (0) for the first I/O pin in the I/O pin, is this
When the first I/O pin in I/O pin provides high level (1), it is infrared that the communication module chip receives this by the micro-control unit
The data that module and 485 communication module send, and, data are sent to the infrared module;
Or,
The third conducting state:The micro-control unit provides high level (1) for the first I/O pin in the I/O pin, is this
When the first I/O pin in I/O pin provides low level (0), the communication module chip receives 485 mould by the micro-control unit
The data that block sends, and, data are sent to 485 module;
Or,
4th kind of conducting state:The micro-control unit for the I/O pin provide when being high level (1), the communication module
Chip receives the data that the infrared module sends by the micro-control unit, and, data are sent to the infrared module.
As a example by following table:
Table 1
S1 | S2 | Conducting state |
0 | 0 | 485 communications and infrared receiver are enabled, and send 485 communication datas |
0 | 1 | 485 communications and infrared receiver are enabled, and send infrared data |
1 | 0 | Transmitting-receiving 485 communication datas are only allowed |
1 | 1 | Transmitting-receiving infrared data is only allowed |
By upper table, to S1And S2Two I/O pins provide different level logic combinations, can reach different conductings
State, for example, works as S1And S2When being low level (0), 485 data and infrared data can be received simultaneously, but can only be logical to 485
Letter module sends data, and does not send data to infrared module;And for example, work as S1And S2When being high level, only connect from infrared module
Receive data and data are sent to infrared module, and neither receive the data of 485 communication modules, also to 485 communication module data.With
Reason, works as S1For low level and S2For high level (1) when, and, work as S1For high level and S2For low level (0) when, conducting state
As shown above.
It should be noted that upper table example is for convenience of description, S1And S2Level logic combination right with conducting state
Should be related to and can change according to upper table, as long as by the control of the level logic combination to I/O pin, reach switching
The purpose of data is sent and received with infrared module, 485 communication modules, within technical solution of the present invention protection domain, this
Place repeats no more.
II types harvester provided in an embodiment of the present invention, has by the serial ports connection extension one of communication module chip many
The micro-control unit of serial ports, the micro-control unit are connected with multiple communication modules respectively by multiple serial ports, the communication module core
Piece is provided with I/O pin, and I/O pin is connected with the data module of the micro-control unit, under the control of the communication module chip, is cut
Change the conducting state of I/O pin to switch the data transmit-receive passage of the data module and the micro-control unit so that the communication module
Chip receives and dispatches the data from different pieces of information module by the data module, so as in the communication module for not changing II type harvesters
On the premise of the original serial ports quantity of chip, by simply one micro-control unit with multiple interfaces of extension connection, pass through
The micro-control unit carries out data exchange from multiple different communication modules, has saved cost, also, by controlling I/O pin
Conducting state switch data transceiver channel, improves the instantaneity of data forwarding, reduces time delay.
Fig. 2 is referred to, the schematic flow sheet of the collecting method that Fig. 2 is provided for second embodiment of the invention can be applied
II type harvesters shown in Fig. 1, the method comprise the steps:
S201, micro-control unit receiving data;
II type harvesters include communication module chip, and, micro-control unit (MCU).The microcontroller list of II type harvesters
Unit has multiple serial ports, is connected with first communication module by first serial, by second serial and second communication module phase
Connection, is connected with the communication module chip by the 3rd serial ports, and the micro-control unit is provided with I/O pin, by the I/O pin
It is connected with the communication module chip.
Wherein, data of the default transport from first communication module between the micro-control unit and the communication module chip.
That is, a communication port is formed between the first communication module, the micro-control unit and the communication module chip now, for connecing
Receive and send data.
The first communication module is infrared module, produces infrared data, and general, infrared module is set for outside infrared maintenance
Standby, infrared data importance is higher, and therefore, between the micro-control unit and the communication module chip, default transport is from infrared mould
The data of block, it is ensured that receive important data.
If the data that S202 is received come from the first communication module, the communication module chip is given by the data forwarding
Processed;
If the data that the micro-control unit is received come from the infrared module, the data are directly forwarded to the communication mould
Chip block is processed, because currently between the micro-control unit and the communication module chip, default transport communicates mould from first
The data of block.
If the data that S203 is received come from second communication module, the communication module chip is notified;
The data of the micro-control unit come from 485 communication module, then notify the communication module chip currently have from
Data in 485 communication module.
S204, the communication module chip controls micro-control units switch the conducting shape of the I/O pin of the micro-control unit
State so that transmit the data from the second communication module between the micro-control unit and the communication module chip.
After the communication module chip receives the notice of the micro-control unit, switching control life is sent to the micro-control unit
Order, control switch the conducting state of the I/O pin of the micro-control unit so that the micro-control unit and the communication module chip it
Between transmit data from 485 communication module, i.e. by switching the conducting state of I/O pin so that in the 485 communication mould
Communication port conducting between block, the micro-control unit and the communication module chip, for receiving and sending data.
Specifically, according to the switching control instruction, the micro-control unit provides preset level logic group for the I/O pin
Close, to switch the conducting state of the I/O pin.More specifically, refer to the table 1 in aforementioned embodiment illustrated in fig. 1.Need to illustrate
As long as, by the control of the level logic combination to I/O pin, reach switching and infrared module, 485 communication modules
The purpose of data is sent and received, within technical solution of the present invention protection domain, here is omitted.
Further, the infrared communication module or 485 communication module are come from when the communication module chip is received
During data, judge that whether effectively received data, if effectively, process the data, if invalid, the data are not carried out
Process.The efficiency of data processing is further improved.
Further, when the communication module chip has processed the data from 485 communication module, and it is micro- to be sent to this
After control unit, the conducting state that the micro-control unit switches the I/O pin of the micro-control unit is controlled so that the microcontroller
The data from the infrared module are transmitted between unit and the communication module chip.
It should be noted that the micro-control unit is by the data of the communication module chip for receiving, 485 communication is transmitted to
Module, if the 485 module response timeout, will switch the conducting state of the I/O pin of the micro-control unit so that the microcontroller
The data from the infrared module are transmitted between unit and the communication module chip.
Collecting method provided in an embodiment of the present invention, is applied to II type harvesters, the communication module of II type harvesters
Chip serial ports connection extension one have Multi-serial port micro-control unit, the micro-control unit by multiple serial ports respectively with many
Individual communication module is connected, and the communication module chip is provided with I/O pin, and I/O pin is connected with the data module of the micro-control unit,
Under the control of the communication module chip, switch the conducting state of I/O pin to switch the data module and the micro-control unit
Data transmit-receive passage, data of the default transport from first communication module between the micro-control unit and the communication module chip,
After the micro-control unit receives data, the Data Source is judged, lead to if being directly forwarded to this if first communication module
Letter module chip is processed, if data come from second communication module, notifies the communication module chip, the communication module core
Piece controls the conducting state that the micro-control unit switches the I/O pin of the micro-control unit so that the micro-control unit and the communication
The data from the second communication module are transmitted between module chip, realize that the communication module chip passes through the data module with this
The data from different pieces of information module are received and dispatched, so as in the original serial ports quantity of the communication module chip that do not change II type harvesters
Under the premise of, by simply extension connection one have multiple interfaces micro-control unit, by the micro-control unit with multiple
Different communication modules carries out data exchange, has saved cost, also, is received by controlling the conducting state switch data of I/O pin
Passage is sent out, the instantaneity of data forwarding is improved, time delay is reduced.
Refer to Fig. 3, Fig. 3 is the structural representation of the data collecting system that third embodiment of the invention is provided, the system
Mainly include:II types harvester 31, first communication module 32 and second communication module 33;
II types harvester 31 includes communication module chip and micro-control unit;
The micro-control unit has multiple serial ports, is connected with first communication module by first serial, goes here and there by second
Mouth is connected with second communication module, is connected with the communication module chip by the 3rd serial ports, and the micro-control unit is provided with
I/O pin, is connected with the communication module chip by the I/O pin;
The micro-control unit, for receiving data, wherein, between the micro-control unit and the communication module chip, acquiescence is passed
The defeated data from the first communication module, if the data for receiving come from the first communication module, by the data forwarding
Processed to the communication module chip, if the data for receiving come from the second communication module, notified the communication module
Chip;
The communication module chip, for controlling the conducting shape that the micro-control unit switches the I/O pin of the micro-control unit
State so that transmit the data from the second communication module between the micro-control unit and the communication module chip.
II types harvester in the present embodiment is the II type harvesters in aforementioned embodiment illustrated in fig. 1, including the mould that communicates
The flow chart of data processing of chip block and micro-control unit, the communication module chip and the micro-control unit is aforementioned Fig. 2 institutes
Show the data handling procedure in embodiment, here is omitted, refer to the description of aforementioned Fig. 1, embodiment illustrated in fig. 2.
Data collecting system provided in an embodiment of the present invention, including communication module chip and micro-control unit, II types are adopted
Serial ports connection one micro-control unit with Multi-serial port of extension of the communication module chip of storage, the micro-control unit is by more
Individual serial ports is connected with multiple communication modules respectively, and the communication module chip is provided with I/O pin, I/O pin and the micro-control unit
Data module be connected, under the control of the communication module chip, switch the conducting state of I/O pin switching the data module
With the data transmit-receive passage of the micro-control unit, between the micro-control unit and the communication module chip, default transport is from first
The data of communication module, after the micro-control unit receives data, judge the Data Source, if general if first communication module
It is directly forwarded to the communication module chip to be processed, if data come from second communication module, notifies the communication module core
Piece, the communication module chip controls micro-control units switch the conducting state of the I/O pin of the micro-control unit so that this is micro-
The data from the second communication module are transmitted between control unit and the communication module chip, and the communication module core is realized with this
Piece receives and dispatches the data from different pieces of information module by the data module, so as in the communication module core for not changing II type harvesters
On the premise of the original serial ports quantity of piece, by simply one micro-control unit with multiple interfaces of extension connection, by this
Micro-control unit carries out data exchange from multiple different communication modules, has saved cost, also, by controlling leading for I/O pin
Logical state switch data transceiver channel, improves the instantaneity of data forwarding, reduces time delay.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the portion that describes in detail
Point, may refer to the associated description of other embodiments.
It is more than the description to II types harvester provided by the present invention, collecting method and system, for this area
Technical staff, according to the embodiment of the present invention thought, will change in specific embodiments and applications, comprehensive
On, this specification content should not be construed as limiting the invention.
Claims (10)
1. a kind of II types harvester, it is characterised in that the II types harvester includes:
Communication module chip, micro-control unit;
The micro-control unit has multiple serial ports, is connected with first communication module by first serial, by second serial
It is connected with second communication module, is connected with the communication module chip by the 3rd serial ports;
The micro-control unit is provided with I/O pin, is connected with the communication module chip by the I/O pin;
The communication module chip is switched over to the conducting state of the I/O pin by controlling the micro-control unit, to cut
The data transmission channel changed between the communication module chip and the micro-control unit, the data transmission channel are used for transmitting
From the first communication module and/or the data of the second communication module.
2. II types harvester according to claim 1, it is characterised in that the I/O pin respectively with the communication module core
The input of piece is connected with outfan.
3. II types harvester according to claim 1 and 2, it is characterised in that the first communication module is infrared module,
The second communication module is 485 communication modules.
4. II types harvester according to claim 3, it is characterised in that the communication module chip is described micro- by controlling
Control unit is switched over to the conducting state of the I/O pin, to switch the communication module chip and the micro-control unit
Between data transmission channel include:
Switching control according to the communication module chip is instructed, and the micro-control unit is low for being of providing of the I/O pin
During level, the communication module chip receives the infrared module and 485 communication module by the micro-control unit
The data of transmission, and, data are sent to 485 communication module;
Or,
The micro-control unit provides low level for the first I/O pin in the I/O pin, is the IO in the I/O pin
When pin provides high level, the communication module chip receives the infrared module and described by the micro-control unit
The data that 485 communication modules send, and, data are sent to the infrared module;
Or,
The micro-control unit provides high level for the first I/O pin in the I/O pin, is the IO in the I/O pin
When pin provides low level, the communication module chip receives the data that 485 module sends by the micro-control unit,
And, data are sent to 485 module;
Or,
The micro-control unit for the I/O pin provide when being high level, the communication module chip pass through the micro-control
Unit processed receives the data that the infrared module sends, and, data are sent to the infrared module.
5. a kind of collecting method, is applied to II type harvesters, it is characterised in that the II types harvester includes communication module
Chip, micro-control unit, the micro-control unit have multiple serial ports, are connected with first communication module by first serial,
It is connected with second communication module by second serial, is connected with the communication module chip by the 3rd serial ports, described micro-
Control unit is provided with I/O pin, is connected with the communication module chip by the I/O pin, and methods described includes:
The micro-control unit receiving data, wherein, default transport between the micro-control unit and the communication module chip
Data from the first communication module;
If the data for receiving come from the first communication module, the communication module chip is forwarded the data to
Processed;
If the data for receiving come from the second communication module, the communication module chip is notified;
Micro-control unit described in the communication module chip controls switches the conducting state of the I/O pin of the micro-control unit, makes
Obtain the data that transmits between the micro-control unit and the communication module chip from the second communication module.
6. method according to claim 5, it is characterised in that the first communication module is infrared module, described second
Communication module is 485 communication modules.
7. the method according to claim 5 or 6, it is characterised in that microcontroller list described in the communication module chip controls
The conducting state of the I/O pin of unit's switching micro-control unit includes:
The communication module chip sends switching control instruction to the micro-control unit;
Instructed according to the switching control, the micro-control unit provides preset level logic combination for the I/O pin, with
Switch the conducting state of the I/O pin.
8. method according to claim 7, it is characterised in that micro-control unit described in the communication module chip controls is cut
Change the conducting state of the I/O pin of the micro-control unit so that pass between the micro-control unit and the communication module chip
The defeated data from the second communication module, include afterwards:
When the communication module chip has processed the data from 485 communication module, and it is sent to the micro-control unit
Afterwards, the conducting state that the micro-control unit switches the I/O pin of the micro-control unit is controlled so that the microcontroller list
The data from the infrared module are transmitted between the first and communication module chip.
9. method according to claim 8, it is characterised in that micro-control unit described in the communication module chip controls is cut
Change the conducting state of the I/O pin of the micro-control unit so that pass between the micro-control unit and the communication module chip
The defeated data from the second communication module, also include afterwards:
The data of the communication module chip for receiving are transmitted to 485 communication module by the micro-control unit;
If the 485 module response timeout, the conducting state of the I/O pin of the micro-control unit will be switched so that described micro-
The data from the infrared module are transmitted between control unit and the communication module chip.
10. a kind of data collecting system, it is characterised in that the system includes:
II type harvesters, first communication module and second communication module;
The II types harvester includes communication module chip and micro-control unit;
The micro-control unit has multiple serial ports, is connected with first communication module by first serial, by second serial
It is connected with second communication module, is connected with the communication module chip by the 3rd serial ports, the micro-control unit is arranged
There is I/O pin, be connected with the communication module chip by the I/O pin;
The micro-control unit, for receiving data, wherein, gives tacit consent between the micro-control unit and the communication module chip
The data from the first communication module are transmitted, if the data for receiving come from the first communication module, by institute
State data forwarding to be processed to the communication module chip, if the data for receiving come from the second communication module,
The communication module chip is then notified;
The communication module chip, for controlling the conducting shape that the micro-control unit switches the I/O pin of the micro-control unit
State so that transmit the data from the second communication module between the micro-control unit and the communication module chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611159053.3A CN106504512A (en) | 2016-12-15 | 2016-12-15 | II type harvesters, collecting method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611159053.3A CN106504512A (en) | 2016-12-15 | 2016-12-15 | II type harvesters, collecting method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106504512A true CN106504512A (en) | 2017-03-15 |
Family
ID=58331075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611159053.3A Pending CN106504512A (en) | 2016-12-15 | 2016-12-15 | II type harvesters, collecting method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106504512A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113064842A (en) * | 2021-04-09 | 2021-07-02 | 艾体威尔电子技术(北京)有限公司 | Self-adaptive switching system and method for physical serial port and virtual serial port |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080030368A1 (en) * | 2002-04-01 | 2008-02-07 | Erran Kagan | Meter with IrDA port |
CN201302760Y (en) * | 2008-11-28 | 2009-09-02 | 安徽中天电力电子有限责任公司 | Collector infrared and carrier communication automatic switch device |
CN102158382A (en) * | 2011-03-15 | 2011-08-17 | 国家无线电监测中心检测中心 | RS485 star-shaped bus system |
CN104820644A (en) * | 2015-04-30 | 2015-08-05 | 武汉大学 | Non-time-sharing port multiplexing method and device |
CN105469572A (en) * | 2015-12-15 | 2016-04-06 | 国家电网公司 | 230M wireless collector |
CN106023575A (en) * | 2016-06-15 | 2016-10-12 | 长沙瑞斯康通信技术有限公司 | Communication method and system of II type collector |
-
2016
- 2016-12-15 CN CN201611159053.3A patent/CN106504512A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080030368A1 (en) * | 2002-04-01 | 2008-02-07 | Erran Kagan | Meter with IrDA port |
CN201302760Y (en) * | 2008-11-28 | 2009-09-02 | 安徽中天电力电子有限责任公司 | Collector infrared and carrier communication automatic switch device |
CN102158382A (en) * | 2011-03-15 | 2011-08-17 | 国家无线电监测中心检测中心 | RS485 star-shaped bus system |
CN104820644A (en) * | 2015-04-30 | 2015-08-05 | 武汉大学 | Non-time-sharing port multiplexing method and device |
CN105469572A (en) * | 2015-12-15 | 2016-04-06 | 国家电网公司 | 230M wireless collector |
CN106023575A (en) * | 2016-06-15 | 2016-10-12 | 长沙瑞斯康通信技术有限公司 | Communication method and system of II type collector |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113064842A (en) * | 2021-04-09 | 2021-07-02 | 艾体威尔电子技术(北京)有限公司 | Self-adaptive switching system and method for physical serial port and virtual serial port |
CN113064842B (en) * | 2021-04-09 | 2024-06-07 | 艾体威尔电子技术(北京)有限公司 | Physical serial port and virtual serial port self-adaptive switching system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106504512A (en) | II type harvesters, collecting method and system | |
CN209472629U (en) | RS422 communication and CAN communication equipment based on PCIE bus | |
CN104850520B (en) | A kind of USB multifunction converters and its conversion method | |
CN104936197A (en) | Mobile communication micropower digital multipoint indoor coverage system | |
CN105139627B (en) | A kind of power information ADAPTIVE MIXED carrier acquisition system and method | |
CN207677744U (en) | A kind of data transmission device based on NBIoT networks | |
CN205336276U (en) | Based on many windings coupling inductance power line carrier communication system | |
CN204470150U (en) | A kind of color selector wireless data interconnection device | |
CN203840350U (en) | Optical node local-side device | |
CN202906930U (en) | POE power supply system based on multi-network distribution of cat5 cables | |
CN203537397U (en) | A transmission unit which is based on an optical network to realize chain type cascade (ONU) | |
CN202009518U (en) | Stage control system for DMX512 intelligent distribution isolation amplifier | |
CN207603633U (en) | Electric safety system Internet of Things data wireless transport module | |
CN207441001U (en) | A kind of Internet of Things Transmission system based on Lora technologies | |
CN105206898B (en) | Microwave telecommunication devices and microwave telecommunication system | |
CN204332049U (en) | A kind of color selector wireless data transmission device | |
CN204731774U (en) | A kind of novel USB multifunction converter | |
CN204795015U (en) | Many interfaces serial data RF transmission device | |
CN205451747U (en) | LED display screen system based on power line carrier | |
CN202077022U (en) | 485-bus Bluetooth conversion device | |
CN208905029U (en) | Multichannel single-direction and dual-direction data transmission set | |
CN109830096A (en) | A kind of single-phase double-channel communication module based on HPLC and MBUS | |
CN203416278U (en) | An all-in-one digital household gateway | |
CN202916677U (en) | Remote electrical appliance monitoring system | |
CN102843279A (en) | Smart mine lamp charging rack communication system adopting computer local area network structure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170315 |