CN107273320A - A kind of adaptive multiplexer of communication interface hardware and method - Google Patents
A kind of adaptive multiplexer of communication interface hardware and method Download PDFInfo
- Publication number
- CN107273320A CN107273320A CN201610216239.1A CN201610216239A CN107273320A CN 107273320 A CN107273320 A CN 107273320A CN 201610216239 A CN201610216239 A CN 201610216239A CN 107273320 A CN107273320 A CN 107273320A
- Authority
- CN
- China
- Prior art keywords
- signal
- communication
- module
- amplitude
- input
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
Abstract
The present invention provides a kind of adaptive multiplexer of communication interface hardware and method.The device includes:Input interface module, for one kind in the communication signal for the multi-signal type for receiving outside input;Judge module, the amplitude for detecting communication signal are detected, and according to the amplitude detected, determines corresponding first signal type of Current communications signal, the switch-over control signal corresponding to the first signal type is produced;Handover module is inputted, for communication signal to be inputted into multichannel signal conversion unit corresponding to the first signal type all the way;Signal conversion module, for carrying out exporting after signal conversion to the communication signal received;Serial input module, for by from arbitrarily all the way signal conversion unit output signal output.The present invention solves the adaptive multiplexer of existing communication interface, needs software to participate in, portable poor, the problem of complicated and low reliability.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of adaptive multiplexer of communication interface hardware and side
Method.
Background technology
With the continuous extension of information exchange, it is various that serial communication technology is widely used to communication, industry control etc.
Field.At present, several interface standards such as RS232, RS485 are due to the advantage of its own, in serial communication
Use in occupy leading position.Wherein, RS485, CAN etc. use differential signal, are compared with RS232
Have the advantages that communication distance length, speed are fast, interference rejection ability is strong and can realize equipment networking.Therefore, exist
In practical application, beginning or debugging are typically just carried out using RS232, long-term idle more waste of resource,
And communication apparatus increasingly levels off to miniaturization, provisioned interface quantity is restricted again.Therefore, having must
The multiplexing switching of communication interface is realized by a kind of mode;So as to neither waste of resource, it can realize again
The convenience of application and flexibility.
For the problem, the solution mainly used in current industry has:Using hybrid interface, by jumping
Line or toggle switch carry out the selection of communication modes, which need scene open device housings carry out it is artificial
Operation, it is both dumb, and easily error.By the way of directly cascading, by devices such as diodes mixed
Close interface by receiving terminal enter line with.Each communication link of which influences each other, poor signal quality, in height
Loss of data is serious in the case of baud rate.Realized using the dedicated processes such as such as UART Universal Asynchronous Receiver Transmitter chip, should
Mode cost is too high, and also relates to the problem of two sets of needs access protection circuit.Using software detection, control
System coordinates special circuit to realize, the portable difference of which is, it is necessary to take cpu resource and development of manpower cost.
Judged using circuits such as comparator, combo logic circuitries, realized and switched with relay.Which
Circuit is complicated, generally stills need two sets of access circuits, cost of idleness.
The content of the invention
The embodiment of the present invention provides a kind of adaptive multiplexer of communication interface hardware and method, existing to solve
The adaptive multiplexer of communication interface, needs software to participate in, and portable poor, complicated and reliability is low
The problem of.
In a first aspect, the embodiments of the invention provide a kind of adaptive multiplexer of communication interface hardware, the dress
Put including:Input interface module, for multiple pins by itself, receives the multi-signal of outside input
One kind in the communication signal of type;Detection judge module, the amplitude for detecting communication signal, and according to
The amplitude detected, determines corresponding first signal type of the currently received communication signal of input interface module,
Produce the switch-over control signal corresponding to the first signal type;Handover module is inputted, for receiving switching control
Signal, and according to switch-over control signal, communication signal is inputted into multichannel signal conversion unit corresponding to the
One signal type is all the way;Signal conversion module, signal conversion module includes multiple signals converting unit, often
Road signal conversion unit corresponds to a kind of communication signal of signal type, per road signal conversion unit, for pair
The communication signal received exported after signal conversion;Serial input module, with each road signal conversion unit
Connection, for by from arbitrarily all the way signal conversion unit output signal output.
Alternatively, the device also includes input protection module, for the communication received to input interface module
Signal carries out EMC protection processing;Judge module is detected, is further used for after inputting protection module processing
The amplitude of communication signal detected, and switch-over control signal is produced according to testing result;Input switching mould
Block, is further used for according to switch-over control signal, and the communication signal after inputting protection module processing is inputted
Into multichannel signal conversion unit all the way.
Alternatively, detection judge module includes:Take absolute value unit, the amplitude for detecting communication signal,
And obtain the absolute value of the amplitude;Control unit, for the absolute value according to amplitude, determines input interface
Corresponding first signal type of the currently received communication signal of module, produces cutting corresponding to the first signal type
Change control signal.
Alternatively, the communication signal of multi-signal type includes RS232 signals, there is electricity with RS232 signals
Other communication signals of adjustment, other communication signals at least include RS485 signals.
Alternatively, input interface module includes being used to receive the communication signal of the multi-signal type of outside input
In the first a kind of pin, the second pin and three-prong.
Second aspect, the embodiments of the invention provide a kind of adaptive multiplexing method of communication interface hardware, the party
Method includes:From multiple pins of an input interface module, receive outside input multi-signal type it is logical
Interrogate one kind in signal;The amplitude of communication signal is detected, and according to the amplitude detected, determines input interface
Corresponding first signal type of the currently received communication signal of module, produces cutting corresponding to the first signal type
Change control signal;According to switch-over control signal, communication signal is inputted into multichannel signal conversion unit correspondence
In the first signal type all the way;At signal conversion module, input signal is carried out after signal conversion, it is defeated
Go out to a serial input module;By serial input module, the signal of each road signal conversion unit output is received,
And export.
Alternatively, before the step of amplitude of detection communication signal, this method also includes:To input interface mould
The communication signal that block is received carries out EMC protection processing;The amplitude of communication signal is detected, further to be right
The amplitude of the communication signal after being handled through EMC protections is detected;, will be logical according to switch-over control signal
News signal is inputted into multichannel signal conversion unit corresponding to the first signal type all the way, is further root
According to switch-over control signal, the signal after being handled through EMC protections is inputted into multichannel signal conversion unit
All the way.
Alternatively, the amplitude of communication signal is detected, and according to the amplitude detected, determines input interface module
Corresponding first signal type of currently received communication signal, produces the switching control corresponding to the first signal type
Signal processed, including:The amplitude of communication signal is detected, and obtains the absolute value of amplitude;According to the width detected
The absolute value of value, determines corresponding first signal type of the currently received communication signal of input interface module, production
The raw switch-over control signal corresponding to the first signal type.
Alternatively, the communication signal of multi-signal type includes RS232 signals, there is electricity with RS232 signals
Other communication signals of adjustment, other communication signals at least include RS485 signals.
The present invention, by detecting the amplitude of communication signal, and according to the amplitude detected, determines input interface
Corresponding first signal type of the currently received communication signal of module, produces cutting corresponding to the first signal type
Change control signal;According to switch-over control signal, communication signal is inputted into multichannel signal conversion unit correspondence
In the first signal type all the way.Realize and the hardware self-adapting of communication signal is automatically performed, without artificial
Operation, is not related to software programming, saves the trouble of exploitation related software, improves portability, reduce
Operational error;And using same input interface module, a set of input protection module, only take up a pair of CPU different
Serial line interface is walked, the compatibility of two kinds of communication modes is thoroughly realized, improves the integrated level of circuit, is saved
Resource.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to embodiment or prior art
The accompanying drawing used required in description is briefly described, it should be apparent that, drawings in the following description are only
It is some embodiments of the present invention, for those of ordinary skill in the art, is not paying creative work
Property on the premise of, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the structure chart of the adaptive multiplexer of communication interface hardware of the first embodiment of the present invention;
Fig. 2 connects for the input in the adaptive multiplexer of communication interface hardware of the first embodiment of the present invention
The structure chart of mouth mold block;
Fig. 3 is taking definitely in the adaptive multiplexer of communication interface hardware of the first embodiment of the present invention
The circuit diagram of value cell;
Fig. 4 is the control list in the adaptive multiplexer of communication interface hardware of the first embodiment of the present invention
The circuit diagram of member;
Fig. 5 cuts for the input in the adaptive multiplexer of communication interface hardware of the first embodiment of the present invention
Change the mold the structure chart of block;
Fig. 6 is the flow chart of the adaptive multiplexing method of communication interface hardware of the second embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear
Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than
Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation
Property work under the premise of the every other embodiment that is obtained belong to the scope of protection of the invention.
First embodiment
Fig. 1, Fig. 2, Fig. 3, Fig. 4 and Fig. 5 are referred to, it is adaptive that the present invention provides a kind of communication interface hardware
Multiplexer is answered, the device includes:
Input interface module 101, for multiple pins by itself, receives the multi-signal of outside input
One kind in the communication signal of type;Specifically, in the present embodiment, the communication signal of multi-signal type
There are other communication signals of level difference including RS232 signals, with RS232 signals, other communication signals are extremely
Include RS485 signals less.
In the present embodiment, the structure of input interface module 101 as shown in Fig. 2 including the first pin 1011,
The read signal RS232-R and RS485 of second pin 1012 and the 3rd pin 1013, wherein RS232 signals
The A end signals RS485-A of signal can be multiplexed the first pin 1011, the write signal RS232-T of RS232 signals
The second pin 1012 can be multiplexed with the B end signals RS485-B of RS485 signals, the 3rd pin 1013 is used
In ground connection.
And in order to reduce influence of the external interference to circuit system, the device also includes input protection module
106, the communication signal for being received to input interface module 101 carries out EMC protection processing, output warp
The communication signal RXD and TXD crossed after processing.
Judge module 102 is detected, the width for detecting the communication signal handled by input protection module 106
Value, and according to the amplitude detected, determine that the currently received communication signal of input interface module 101 is corresponding
First signal type, produces the switch-over control signal corresponding to the first signal type;Specifically, in this implementation
In example, detection judge module 102 includes take absolute value unit 1021 and control unit 1022, wherein taking absolutely
It is used for the amplitude for detecting communication signal to value cell 1021, and obtains the absolute value of the amplitude;Control is single
Member 1022, for the absolute value according to the amplitude detected, determines the currently reception of input interface module 101
Corresponding first signal type of communication signal, produce corresponding to the first signal type switch-over control signal.
The unit 1021 that takes absolute value is handled mainly for the negative level of communication signal, is led to after processing
Interrogate the absolute value of the amplitude of signal.Specifically, in the present embodiment, the circuit for the unit 1021 that takes absolute value is such as
Shown in Fig. 3, including:4th resistance R4, its 1 pin is used to receive what is handled through inputting protection module 106
Communication signal RXD, 2 pin and the 5th resistance R5 1 pin, the 6th resistance R6 1 pin and amplifier U1 it is negative
The pin of input 2 is connected.The U1 pin of positive input terminal 3 ground connection, the pin of power positive end 7 connects+15V power supply signals,
The pin of power supply negative terminal 4 connects -15V power supply signals.U1 output ends 6 pin meets diode VD3 negative terminal, VD4
Anode.5th resistance R5 2 pin and VD3 anode, the 7th resistance R7 2 pin and semi-fixed resistance
RV1 1 pin is connected;6th resistance R6 2 pin and VD4 negative terminal, the 8th resistance R8 1 pin and
Ten resistance R10 1 pin is connected.R7 1 pin and R8 2 pin are grounded.RV1 2 pin and the 9th resistance
R9 1 pin is connected.R9 2 pin and C4 1 pin, the 11st resistance R11 1 pin and amplifier U2
The pin of positive input terminal 3 is connected, R10 2 pin and C5 1 pin, the 12nd resistance R12 1 pin and U2
The pin of negative input end 2 is connected.Likewise, the U2 pin of positive-negative power end 7 and 4 pin are coupled with+15V, -15V
On power supply signal.C4 2 pin, R11 2 pin ground connection;R12 2 pin, C5 2 pin and U2 it is defeated
Go out 6 pin of end to be connected, the absolute value signal ROUT of the amplitude of the communication signal obtained after output processing.
The circuit of the unit 1021 that takes absolute value is by the positive and negative rectification circuit by core devices of U1 and with U2
Constituted for the differential proportion operational amplifier of core devices.To ensure that output and input ratio are 1:1, R4,
R5, R6 resistance are equal, and R9, R10, R11, R12 resistance are equal.Put to solve differential scale operation
Output imbalance problem, adds shunt resistance R7, R8 caused by big device input resistance is limited in design,
And the additional semi-fixed resistance RV1 for balanced waveform.In order to ensure the high speed of output signal, here two
Pole pipe VD3, VD4 need to be using the small diode of Schottky type parasitic junction capacitance.C4, C5 are phase compensation electricity
Hold.
And control unit 1022 can be made up of the device of the types such as triode, metal-oxide-semiconductor, in the present embodiment
Control unit 1022 constituted with triode, as shown in figure 4, the circuit of control unit 1022 includes:The
13 resistance R13, its 1 pin is connected with the circuit output signal ROUT for the unit 1021 that takes absolute value, 2 pin
It is connected with voltage-regulator diode VD5 negative pole.VD5 positive pole and triode Q1 base stage, the 2 of electric capacity C6
Pin is connected.C6 1 pin ground connection.Q1 colelctor electrode connection+15V power supplys, the control of its emitter stage output switching
Signal control, and be grounded by the 14th resistance R14.
Here VD5 voltage stabilizing value is taken between 6V~8V.C6 be used for filter, R14 as feedback resistance,
Its resistance is taken in 10K or so.When input signal is RS232 signals, ROUT is one higher than 10V
Level, Q1 conductings, exports the first switch-over control signal;When input signal is RS485 signals, ROUT
For a 0V~6V or so level, Q1 can not be turned on, and export the second switch-over control signal.
Handover module 103 is inputted, will be defeated for receiving switch-over control signal, and according to switch-over control signal
Enter signal to input into multichannel signal conversion unit corresponding to the first multilevel type all the way;Specifically, this reality
Apply in example, input handover module 103 is made up of high speed COMS bus exchange switch device, as shown in figure 5, its power end
VDD, VSS are connected respectively on positive-negative power+15V and -15V, and S1A, S2A are with being used for for its output channel
The input for changing the RS232 signal conversion units of RS232 signals is connected;S1B, S2B passage are with being used for
The input for changing the RS485 signal conversion units of RS485 signals is connected.
The control signals of IN1 and IN2 passages are that the high speed COMS bus exchange switch is received from control unit 1022
Switch-over control signal.When control signals are above-mentioned second switch-over control signal, high speed COMS bus exchange switch
S1B, S2B passage are switched to, the RXD handled by input protection module 106 that will be inputted by D1, D2
And TXD signals feeding RS485 signal conversion unit inputs, wherein a-signal and B signal is input
The signal of RS485 signal conversion units;It is high when control signals are above-mentioned first switch-over control signal
Speed switching switch switches to S1A, S2A passage, passes through input protection module 106 by what is inputted by D1, D2
Processing RXD and TXD signals feeding RS232 signal conversion unit inputs, wherein R-232 signals and
T-232 signals are the signal of input RS232 signal conversion units.When selecting high speed COMS bus exchange switch, note is needed
Anticipating, it need to power for positive-negative power, and power range need to be more than the level range of RS232 signals.The present embodiment
The high speed COMS bus exchange switch of selection is ADG5436.
Signal conversion module 104, signal conversion module 104 includes multiple signals converting unit, per road signal
Converting unit corresponds to a kind of communication signal of signal type, per road signal conversion unit, for receiving
Input signal carry out signal conversion after export, specifically, in the present embodiment, signal conversion module 104
Including by RS485 signal conversion chips, the RS485 signal conversion units that such as MAX1487 chips are constituted, with
And the RS232 signal conversion units being made up of RS232 signal conversion chips, such as MAX202E.Need simultaneously
It is noted that the automatic turning control that the control of conversion chip here is negated using common hardware, so that real
The hardware self-adapting of existing whole process (as being other serial differential signals, needs to be replaced by corresponding signal herein
Conversion chip).After the conversion of signal conversion module 104, the corresponding Transistor-Transistor Logic level letter of input signal is obtained
Number.
Serial input module 105, is connected with each road signal conversion unit, for will from arbitrarily all the way signal turn
Change the signal output of unit output., can be corresponding turn by RS485 signals in serial input module 105
Change signal RXD-485 conversion signal RXD-232 cascades corresponding with RS232 signals, RS485 signals correspondence
Conversion signal TXD-485 conversion signal TXD-232s corresponding with RS232 signals cascades, then directly
Send into the corresponding asynchronous serial ports of CPU.For feelings of many use -48V in communication field as reference ground
Condition, or CPU and conversion chip are powered inconsistent situation, also can access high speed photo coupling device, will be at a high speed
The source side of optocoupler connects with CPU a pair of asynchronous serial ports, and secondary connects with serial input module 105,
The conversion of high speed photo coupling device both sides level and reference ground can be achieved.
The embodiment of the present invention, by detecting the amplitude of communication signal, and according to the amplitude detected, is determined defeated
Corresponding first signal type of the currently received communication signal of incoming interface module, produces and corresponds to the first class signal
The switch-over control signal of type;According to switch-over control signal, communication signal is inputted to multichannel signal conversion unit
In correspond to the first signal type all the way.Realize and the hardware self-adapting of communication signal is automatically performed, nothing
It need to manually operate, not be related to software programming, save the trouble of exploitation related software, improve portability,
Reduce operational error;And using same input interface module, a set of input processing module, only take up CPU
A pair of Asynchronous Serial Interfaces, thoroughly realize the compatibility of two kinds of communication modes, improve the integrated level of circuit,
Resource is saved.
Second embodiment
Referring to Fig. 2, Fig. 2 shows that the communication interface hardware of the second embodiment of the present invention is adaptively multiplexed
The flow chart of method, is comprised the following steps that:
Step 201, from multiple pins of an input interface module, the multi-signal class of outside input is received
One kind in the communication signal of type.
It should be noted that the communication signal of multi-signal type includes RS232 signals and RS232 signals
There are other communication signals of level difference, other communication signals at least include RS485 signals.And in order to subtract
Few influence of the external interference to circuit system, the communication signal that can also be received to input interface module is carried out
EMC protections are handled.
Step 202, the amplitude of communication signal is detected, and according to the amplitude detected, determines input interface mould
Corresponding first signal type of the currently received communication signal of block, produces the switching corresponding to the first signal type
Control signal.
It should be noted that step 202 is cut specifically by the absolute value of the amplitude of communication signal to produce
Control signal is changed, detailed process includes:The amplitude of communication signal is detected, and obtains the absolute value of amplitude;Root
According to the absolute value of the amplitude detected, the currently received communication signal of input interface module corresponding first is determined
Signal type, produces the switch-over control signal corresponding to the first signal type.
Step 203, according to switch-over control signal, it is right into multichannel signal conversion unit that communication signal is inputted
Should be in the first signal type all the way.
It should be noted that corresponding to a kind of communication signal of signal type, step per road signal conversion unit
203 be that communication signal is input into corresponding signal conversion unit according to switch-over control signal, so as to communication
Signal is correctly changed.
Step 204, at signal conversion module, communication signal is carried out after signal conversion, exported to a string
Row input module.
It should be noted that step 204 is by signal conversion unit corresponding with communication signal, it will communicate
Signal changes into corresponding Transistor-Transistor Logic level signal.
Step 205, by serial input module, the signal of each road signal conversion unit output is received, and it is defeated
Go out.
The embodiment of the present invention, by detecting the amplitude of communication signal, and according to the amplitude detected, is determined defeated
Corresponding first signal type of the currently received communication signal of incoming interface module, produces and corresponds to the first class signal
The switch-over control signal of type;According to switch-over control signal, communication signal is inputted to multichannel signal conversion unit
In correspond to the first signal type all the way.Realize and the hardware self-adapting of communication signal is automatically performed, nothing
It need to manually operate, not be related to software programming, save the trouble of exploitation related software, improve portability,
Reduce operational error;And using same input interface module, a set of input processing module, only take up CPU
A pair of Asynchronous Serial Interfaces, thoroughly realize the compatibility of two kinds of communication modes, improve the integrated level of circuit,
Resource is saved.
Those of ordinary skill in the art are disclosed it is to be appreciated that in embodiment provided herein
System and method, can be realized by another way.For example, system embodiment described above is only
It is schematical, for example, the division of module, only a kind of division of logic function can be with when actually realizing
There is other dividing mode, such as multiple units or component can combine or be desirably integrated into another and be
System, or some features can be ignored, or not perform.Another, shown or discussed coupling each other
Close or direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication of device or unit
Connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be physically separate, be used as unit
The part of display can be or may not be physical location, you can with positioned at a place, or also may be used
To be distributed on multiple NEs.Some or all of unit therein can be selected according to the actual needs
To realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit,
Can also be that unit is individually physically present, can also two or more units be integrated in a unit
In.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited to
This, any one skilled in the art the invention discloses technical scope in, can readily occur in
Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should
It is defined by scope of the claims.
Claims (9)
1. a kind of adaptive multiplexer of communication interface hardware, it is characterised in that including:
Input interface module, for multiple pins by itself, receives the multi-signal type of outside input
Communication signal in one kind;
Detect judge module, the amplitude for detecting the communication signal, and according to the amplitude detected, really
Determine corresponding first signal type of the currently received communication signal of input interface module, produce and correspond to institute
State the switch-over control signal of the first signal type;
Handover module is inputted, for receiving the switch-over control signal, and according to the switch-over control signal,
The communication signal is inputted into multichannel signal conversion unit to one corresponding to first signal type
Road;
Signal conversion module, the signal conversion module includes multiple signals converting unit, per the conversion of road signal
Unit corresponds to a kind of communication signal of signal type, per road signal conversion unit, for logical to what is received
Signal is interrogated export after signal conversion;
Serial input module, is connected with each road signal conversion unit, for will be from arbitrarily signal conversion is single all the way
The signal output of member output.
2. device as claimed in claim 1, it is characterised in that described device also includes input protection mould
Block, the communication signal for being received to input interface module carries out EMC protection processing;
The detection judge module, is further used for the communication after the input protection module processing
The amplitude of signal is detected, and produces the switch-over control signal according to testing result;
The input handover module, is further used for according to the switch-over control signal, will be anti-through the input
The communication signal after shield resume module is inputted into multichannel signal conversion unit all the way.
3. device as claimed in claim 1, it is characterised in that the detection judge module includes:
Take absolute value unit, for detecting the amplitude of the communication signal, and obtains the absolute value of the amplitude;
Control unit, for the absolute value according to the amplitude, determines that the input interface module is currently received
Corresponding first signal type of communication signal, produce corresponding to first signal type switching control believe
Number.
4. device as claimed in claim 1, it is characterised in that the communication letter of the multi-signal type
Number include RS232 signals, there are other communication signals of level difference with RS232 signals, other described communications
Signal at least includes RS485 signals.
5. device as claimed in claim 1, it is characterised in that the input interface module includes being used for
Receive outside input multi-signal type communication signal in the first a kind of pin, the second pin and
Three-prong.
6. a kind of device using as described in claim any one of 1-5, realizes that communication interface hardware is adaptive
The method that should be multiplexed, it is characterised in that including:
From multiple pins of an input interface module, the communication letter of the multi-signal type of outside input is received
One kind in number;
The amplitude of the input signal is detected, and according to the amplitude detected, determines the input interface module
Corresponding first signal type of currently received communication signal, produces cutting corresponding to first signal type
Change control signal;
According to the switch-over control signal, the communication signal is inputted into multichannel signal conversion unit correspondence
In first signal type all the way;
At signal conversion module, the communication signal is carried out after signal conversion, output a to serial input
Module;
By the serial input module, the signal of each road signal conversion unit output is received, and is exported.
7. method as claimed in claim 6, it is characterised in that the width of the detection communication signal
Before the step of value, methods described also includes:
The communication signal received to input interface module carries out EMC protection processing;
The amplitude of the detection communication signal, further for described logical after EMC protections processing
The amplitude of news signal is detected;
It is described according to the switch-over control signal, the communication signal is inputted into multichannel signal conversion unit
Corresponding to first signal type all the way, further for, will be through according to the switch-over control signal
The communication signal after EMC protections processing is inputted into multichannel signal conversion unit all the way.
8. method as claimed in claim 6, it is characterised in that the width of the detection communication signal
Value, and according to the amplitude detected, determine that the currently received communication signal of the input interface module is corresponding
First signal type, produces the switch-over control signal corresponding to first signal type, including:
The amplitude of the communication signal is detected, and obtains the absolute value of the amplitude;
According to the absolute value of the amplitude, the currently received communication signal correspondence of the input interface module is determined
The first signal type, produce corresponding to first signal type switch-over control signal.
9. method as claimed in claim 6, it is characterised in that the communication letter of the multi-signal type
Number include RS232 signals, there are other communication signals of level difference with RS232 signals, other described communications
Signal at least includes RS485 signals.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610216239.1A CN107273320A (en) | 2016-04-08 | 2016-04-08 | A kind of adaptive multiplexer of communication interface hardware and method |
PCT/CN2017/074081 WO2017173889A1 (en) | 2016-04-08 | 2017-02-20 | Communication interface hardware self-adaptive multiplexing device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610216239.1A CN107273320A (en) | 2016-04-08 | 2016-04-08 | A kind of adaptive multiplexer of communication interface hardware and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107273320A true CN107273320A (en) | 2017-10-20 |
Family
ID=60000232
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610216239.1A Pending CN107273320A (en) | 2016-04-08 | 2016-04-08 | A kind of adaptive multiplexer of communication interface hardware and method |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107273320A (en) |
WO (1) | WO2017173889A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117400A (en) * | 2018-08-09 | 2019-01-01 | 深圳市宏电技术股份有限公司 | A kind of interface automatic switching control equipment and method |
CN109462395A (en) * | 2018-12-28 | 2019-03-12 | 常州朗奇威电器有限公司 | Interface multiplexes conversion circuit and multiplexing conversion method |
CN111835378A (en) * | 2020-06-08 | 2020-10-27 | 珠海格力电器股份有限公司 | Communication type switching circuit and method and air conditioning equipment |
CN114564426A (en) * | 2020-11-27 | 2022-05-31 | 中国科学院声学研究所 | Embedded multi-interface data conversion device |
CN116074155A (en) * | 2023-02-17 | 2023-05-05 | 广州市保伦电子有限公司 | Transmission control method, device and system based on composite bus communication equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107896152A (en) * | 2017-12-28 | 2018-04-10 | 黑龙江龙电电气有限公司 | A kind of multiple channel communication sharing means and method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6601124B1 (en) * | 2000-02-14 | 2003-07-29 | International Business Machines Corporation | Universal interface for selectively coupling to a computer port type and method therefor |
CN101140557A (en) * | 2007-10-23 | 2008-03-12 | 中兴通讯股份有限公司 | System and method of RS232/RS48 compatibility interface |
CN201638145U (en) * | 2010-01-12 | 2010-11-17 | 北京四方继保自动化股份有限公司 | RS232/RS485 (Recommend Standard 232/Recommend Standard 485) integrated interface circuit |
CN102722465A (en) * | 2012-05-28 | 2012-10-10 | 华为技术有限公司 | Interface multiplexing device and electronic equipment |
CN202600690U (en) * | 2012-05-09 | 2012-12-12 | 北京立华莱康平台科技有限公司 | Circuit for RS232 and RS485 communication modes |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7337245B2 (en) * | 1999-03-26 | 2008-02-26 | Dearborn Group, Inc. | Protocol adapter for passing diagnostic messages between vehicle networks and a host computer |
CN201927859U (en) * | 2011-01-10 | 2011-08-10 | 华为终端有限公司 | Reusable interface |
CN103116567B (en) * | 2013-01-24 | 2015-11-04 | 富通集团有限公司 | The selection circuit of Multi-serial port |
-
2016
- 2016-04-08 CN CN201610216239.1A patent/CN107273320A/en active Pending
-
2017
- 2017-02-20 WO PCT/CN2017/074081 patent/WO2017173889A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6601124B1 (en) * | 2000-02-14 | 2003-07-29 | International Business Machines Corporation | Universal interface for selectively coupling to a computer port type and method therefor |
CN101140557A (en) * | 2007-10-23 | 2008-03-12 | 中兴通讯股份有限公司 | System and method of RS232/RS48 compatibility interface |
CN201638145U (en) * | 2010-01-12 | 2010-11-17 | 北京四方继保自动化股份有限公司 | RS232/RS485 (Recommend Standard 232/Recommend Standard 485) integrated interface circuit |
CN202600690U (en) * | 2012-05-09 | 2012-12-12 | 北京立华莱康平台科技有限公司 | Circuit for RS232 and RS485 communication modes |
CN102722465A (en) * | 2012-05-28 | 2012-10-10 | 华为技术有限公司 | Interface multiplexing device and electronic equipment |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117400A (en) * | 2018-08-09 | 2019-01-01 | 深圳市宏电技术股份有限公司 | A kind of interface automatic switching control equipment and method |
CN109117400B (en) * | 2018-08-09 | 2021-01-05 | 深圳市宏电技术股份有限公司 | Automatic interface switching device and method |
CN109462395A (en) * | 2018-12-28 | 2019-03-12 | 常州朗奇威电器有限公司 | Interface multiplexes conversion circuit and multiplexing conversion method |
CN109462395B (en) * | 2018-12-28 | 2023-08-15 | 常州朗奇威电器有限公司 | Interface multiplexing conversion circuit and multiplexing conversion method |
CN111835378A (en) * | 2020-06-08 | 2020-10-27 | 珠海格力电器股份有限公司 | Communication type switching circuit and method and air conditioning equipment |
CN111835378B (en) * | 2020-06-08 | 2024-03-08 | 珠海格力电器股份有限公司 | Communication type switching circuit and method and air conditioning equipment |
CN114564426A (en) * | 2020-11-27 | 2022-05-31 | 中国科学院声学研究所 | Embedded multi-interface data conversion device |
CN116074155A (en) * | 2023-02-17 | 2023-05-05 | 广州市保伦电子有限公司 | Transmission control method, device and system based on composite bus communication equipment |
CN116074155B (en) * | 2023-02-17 | 2024-02-13 | 广东保伦电子股份有限公司 | Transmission control method, device and system based on composite bus communication equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2017173889A1 (en) | 2017-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107273320A (en) | A kind of adaptive multiplexer of communication interface hardware and method | |
CN102545875B (en) | Level identification switching circuit | |
CN201758417U (en) | Earphone compatible device and mobile terminal | |
CN104035357A (en) | Headset, charging and OTG equipment circuit design based on USB socket | |
CN109257045A (en) | A kind of networking type multi-channel synchronous buffer data acquisition instrument | |
CN103684407A (en) | Otg device | |
CN204166372U (en) | A kind of intelligent home control system | |
CN104125173B (en) | data communication path switching circuit, vehicle-mounted router and automobile | |
CN109743240B (en) | Interface switching device and method for communication equipment | |
CN205644528U (en) | Connect interface converting circuit and be connected interface connector | |
CN204031208U (en) | data communication path switching circuit, vehicle-mounted router and automobile | |
CN214540463U (en) | Relay board for switching and detecting multiple paths of signals | |
CN103490829B (en) | A kind of method and apparatus preventing radiofrequency signal from disturbing | |
CN203537553U (en) | An Interface circuit realizing serial port and infrared multiplex functions | |
CN103414574A (en) | PoE equipment and output power control method thereof | |
CN210038004U (en) | 450MHz electrical performance index automatic test unit | |
CN209526732U (en) | The interface change-over device of communication equipment | |
CN103914014A (en) | System for self-adaptively recognizing and collecting automobile switch signals | |
CN203811700U (en) | Integrated production test device | |
CN203149564U (en) | Serial-port automatic switching device | |
CN207039564U (en) | A kind of half-duplex is anti-to disturb infrared serial interface circuit certainly | |
CN111400220A (en) | Cable and method of use thereof | |
CN208299778U (en) | A kind of two-way isolation Digital I/O Circuit | |
CN217116067U (en) | Isolated discrete quantity interface capable of configuring input and output directions through software | |
CN204272064U (en) | Isolated form switching circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171020 |