[go: up one dir, main page]

CN108809788A - A kind of communication automatic switching control equipment and method - Google Patents

A kind of communication automatic switching control equipment and method Download PDF

Info

Publication number
CN108809788A
CN108809788A CN201810718149.1A CN201810718149A CN108809788A CN 108809788 A CN108809788 A CN 108809788A CN 201810718149 A CN201810718149 A CN 201810718149A CN 108809788 A CN108809788 A CN 108809788A
Authority
CN
China
Prior art keywords
communication
module
communication module
transceiver
interface modules
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
Application number
CN201810718149.1A
Other languages
Chinese (zh)
Inventor
李炳光
蒋才科
张晓龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN201810718149.1A priority Critical patent/CN108809788A/en
Publication of CN108809788A publication Critical patent/CN108809788A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • H04L12/40032Details regarding a bus interface enhancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides communication automatic switching control equipment and method, by by CAN interface and UART interface multiplexing functions, and judge network type by reading the predetermined information of communication module, to realize that communication is automatically switched, CAN communication can be connected or connect UART interface by realizing an interface both, CAN interface is communicated with UART interface is not necessarily to intermediate conversion circuit, has saved cost, has improved product competitiveness.

Description

A kind of communication automatic switching control equipment and method
Technical field
The present invention relates to field of communication technology more particularly to a kind of communication automatic switching control equipment and methods.
Background technology
CAN and UART is standard communication protocol, and corresponding CAN interface, UART interface are widely used to all kinds of electricity Sub- product.And each manufacturer is in deisgn product, some products configurations CAN communication interface, some are configured with UART communications and connect Mouthful, or two kinds of communication interfaces of CAN and UART are configured simultaneously.
If A products configuration CAN interfaces, B products configuration UART interfaces will realize that A products are communicated with B products, then necessary The A CAN signals exported are converted into UART signal, then are transferred to B products, increase CAN and UART signal converter between A and B, Vice versa.
If fruit product is with configuration CAN interface and UART interface, then needs to increase cost, increase the volume of product, it is unfavorable In the miniaturization of product.
Therefore, the prior art is further improved.
Invention content
A kind of communication automatic switching control equipment of present invention offer and method, it is intended to solve defect in the prior art, realize one A interface can both connect CAN communication or connect UART interface, and CAN interface is communicated with UART interface is not necessarily to intermediate conversion circuit.
In order to achieve the above objectives, the technical solution used in the present invention is:
Another aspect of the present invention provides a kind of communication automatic switching control equipment, including communication interface modules, communication handover module, First communication module, second communication module, the first transceiver communication module, the second transceiver communication module, communication type judgment module;
The communication interface modules, compatible first letter type, the second communication type, and at least one pin is by the first communication Signal of communication multiplexing in type, the second communication type;
The communication handover module, communication type for being identified according to communication type judgment module is by communication interface modules Signal be connected to first communication module or second communication module, default connection is to the first communication module when starting;
The first communication module, for being parsed to the first signal of communication;
The second communication module, for being parsed to the second signal of communication;
The first transceiver communication module, the signal for receiving and dispatching first communication module;
The second transceiver communication module, the signal for receiving and dispatching second communication module;
The communication type judgment module, for being identified to communication type and controlling communication handover module;
Wherein, the communication handover module is communicated with the communication interface modules, the first communication module, described second Module, communication type judgment module connection, the communication type judgment module and the first transceiver communication module, second Transceiver communication module connects, and the first transceiver communication module is connect with the first communication module, second transceiver communication Module is connect with the second communication module.
Specifically, the communication handover module is made of at least one switching switch, and the switching switch is dynamic comprising first End, the second moved end and public fixing end, the public fixing end are connect with the communication interface modules, first moved end It is connect with the first communication module, first moved end is connect with the second communication module, the public fixing end unicom Moved end controlled by the communication type judgment module.
Further, the communication type judgment module is also connect with human-computer interaction module, and the human-computer interaction module is used In display communication interface modules is not connected or fault message.
One aspect of the present invention provides a kind of communication automatic switching method, including:
Step 1, communication type judgment module control the communication handover module and connect the signal of the communication interface modules It is connected to first communication module.
Step 2, the first transceiver communication module read first communication module information, judge whether to read the first default letter Breath, is the connection status for notifying communication type judgment module to maintain the communication interface modules and the first communication module, Otherwise enter in next step.
Step 3, the first transceiver communication module send the second presupposed information to the first communication module, judge whether to receive First response message is that communication type judgment module is notified to maintain the communication interface modules and the first communication module Otherwise connection status enters in next step.
Step 4, communication type judgment module control the communication handover module and connect the signal of the communication interface modules It is connected to second communication module.
Step 5, the second transceiver communication module read second communication module information, judge whether to read the default letter of third Breath, is the connection status for notifying communication type judgment module to maintain the communication interface modules and the second communication module, Otherwise enter in next step.
Step 6, the second transceiver communication module send the 4th presupposed information to the second communication module, judge whether to receive Second response message is that communication type judgment module is notified to maintain the communication interface modules and the second communication module Otherwise connection status enters step 1.
Further, further include after step 6:
Step 7, human-computer interaction module display communication interface modules is not connected with or fault message.
Specifically, the first communication module is CAN module, and first predetermined information is that CAN I D arbitrate segment information, Second presupposed information is CAN message.
Specifically, the second communication module be UART modules, the third presupposed information include UART start bits or/and Check code, the 4th presupposed information are UART handshaking informations.
The beneficial effects of the present invention are:The present invention passes through reading by by CAN interface and UART interface multiplexing functions The predetermined information of communication module judges network type, and to realize that communication is automatically switched, to realize an interface can both connect CAN communication can also connect UART interface, and CAN interface is communicated with UART interface is not necessarily to intermediate conversion circuit, has saved cost, has improved Product competitiveness.
Description of the drawings
Fig. 1 is the structural schematic diagram of the communication automatic switching control equipment of the present invention;
Fig. 2 is the structural schematic diagram of the communication handover module of the present invention;
Fig. 3 is another structural schematic diagram of the communication automatic switching control equipment of the present invention;
Fig. 4 is the flow diagram of the communication automatic switching method of the present invention.
Specific implementation mode
Specifically illustrate embodiments of the present invention below in conjunction with the accompanying drawings, attached drawing is only for reference and illustrates to use, and does not constitute pair The limitation of scope of patent protection of the present invention.
As shown in Figure 1, the present invention provides a kind of communication automatic switching control equipment, including communication interface modules, communication switching mould Block, first communication module, second communication module, the first transceiver communication module, the second transceiver communication module, communication type judge mould Block;
The communication interface modules, compatible first letter type, the second communication type, and at least one pin is by the first communication Signal of communication multiplexing in type, the second communication type;
The communication handover module, communication type for being identified according to communication type judgment module is by communication interface modules Signal be connected to first communication module or second communication module, default connection is to the first communication module when starting;
The first communication module, for being parsed to the first signal of communication;
The second communication module, for being parsed to the second signal of communication;
The first transceiver communication module, the signal for receiving and dispatching first communication module;
The second transceiver communication module, the signal for receiving and dispatching second communication module;
The communication type judgment module, for being identified to communication type and controlling communication handover module;
Wherein, the communication handover module is communicated with the communication interface modules, the first communication module, described second Module, communication type judgment module connection, the communication type judgment module and the first transceiver communication module, second Transceiver communication module connects, and the first transceiver communication module is connect with the first communication module, second transceiver communication Module is connect with the second communication module.
As shown in Fig. 2, in one embodiment of the invention, the communication handover module is by least one switching switching group At the switching switch includes the first moved end 1, the second moved end 2 and public fixing end 3, further includes sentencing with the communication type The communication terminal (not shown) of disconnected module communication.
The public fixing end 3 is connect with the communication interface modules, first moved end 1 and the first communication module Connection, first moved end 2 are connect with the second communication module, and the moved end of 3 unicom of public fixing end is by the communication Type judging module controls.When starting, 3 default connection of public fixing end to first moved end 1.
As shown in figure 3, in one embodiment of the invention, the communication type judgment module also with human-computer interaction module Connection, the human-computer interaction module is for showing that communication interface modules is not connected or fault message.
As shown in figure 4, the control method of the communication automatic switching control equipment is as follows:
Step 1, communication type judgment module control the communication handover module and connect the signal of the communication interface modules It is connected to first communication module.
Step 2, the first transceiver communication module read first communication module information, judge whether to read the first default letter Breath, is the connection status for notifying communication type judgment module to maintain the communication interface modules and the first communication module, Otherwise enter in next step.
Step 3, the first transceiver communication module send the second presupposed information to the first communication module, judge whether to receive First response message is that communication type judgment module is notified to maintain the communication interface modules and the first communication module Otherwise connection status enters in next step.
Step 4, communication type judgment module control the communication handover module and connect the signal of the communication interface modules It is connected to second communication module.
Step 5, the second transceiver communication module read second communication module information, judge whether to read the default letter of third Breath, is the connection status for notifying communication type judgment module to maintain the communication interface modules and the second communication module, Otherwise enter in next step.
Step 6, the second transceiver communication module send the 4th presupposed information to the second communication module, judge whether to receive Second response message is that communication type judgment module is notified to maintain the communication interface modules and the second communication module Otherwise connection status enters step 1.
In one embodiment of the invention, further include after step 6:
Step 7, human-computer interaction module display communication interface modules is not connected with or fault message.
In one embodiment of the invention, the first communication module is CAN module, and first predetermined information is CAN I D arbitrate segment information, and second presupposed information is CAN message.
In one embodiment of the invention, the second communication module is UART modules, the third presupposed information packet UART start bits or/and check code are included, the 4th presupposed information is UART handshaking informations.
Above disclosed is only presently preferred embodiments of the present invention, and the rights protection model of the present invention cannot be limited with this It encloses, therefore according to equivalent variations made by scope of the present invention patent, is still within the scope of the present invention.

Claims (7)

1. a kind of communication automatic switching control equipment, which is characterized in that including:Communication interface modules, communication handover module, the first communication Module, second communication module, the first transceiver communication module, the second transceiver communication module, communication type judgment module;
The communication interface modules, compatible first letter type, the second communication type, and at least one pin is by the first communication class Signal of communication multiplexing in type, the second communication type;
The communication handover module, communication type for being identified according to communication type judgment module is by the letter of communication interface modules Number it is connected to first communication module or second communication module, default connection is to the first communication module when starting;
The first communication module, for being parsed to the first signal of communication;
The second communication module, for being parsed to the second signal of communication;
The first transceiver communication module, the signal for receiving and dispatching first communication module;
The second transceiver communication module, the signal for receiving and dispatching second communication module;
The communication type judgment module, for being identified to communication type and controlling communication handover module;
Wherein, the communication handover module communicates mould with the communication interface modules, the first communication module, described second Block, communication type judgment module connection, the communication type judgment module lead to the first transceiver communication module, second Believe that transceiver module connection, the first transceiver communication module are connect with the first communication module, the second transceiver communication mould Block is connect with the second communication module.
2. communication automatic switching control equipment according to claim 1, which is characterized in that the communication handover module is by least one A switching switch composition, the switching switch includes the first moved end, the second moved end and public fixing end, the public fixation End is connect with the communication interface modules, and first moved end is connect with the first communication module, first moved end and institute Second communication module connection is stated, the moved end of the public fixing end unicom is controlled by the communication type judgment module.
3. communication automatic switching control equipment according to claim 1, which is characterized in that the communication type judgment module also with Human-computer interaction module connects, and the human-computer interaction module is for showing that communication interface modules is not connected or fault message.
4. a kind of communication automatic switching method, which is characterized in that including:
Step 1, communication type judgment module control the communication handover module and are connected to the signal of the communication interface modules First communication module.
Step 2, the first transceiver communication module read first communication module information, judge whether to read the first presupposed information, are Then notify communication type judgment module to maintain the connection status of the communication interface modules and the first communication module, otherwise into Enter in next step.
Step 3, the first transceiver communication module send the second presupposed information to the first communication module, judge whether to receive first Response message is the connection for notifying communication type judgment module to maintain the communication interface modules and the first communication module Otherwise state enters in next step.
Step 4, communication type judgment module control the communication handover module and are connected to the signal of the communication interface modules Second communication module.
Step 5, the second transceiver communication module read second communication module information, judge whether to read third presupposed information, are Then notify communication type judgment module to maintain the connection status of the communication interface modules and the second communication module, otherwise into Enter in next step.
Step 6, the second transceiver communication module send the 4th presupposed information to the second communication module, judge whether to receive second Response message is the connection for notifying communication type judgment module to maintain the communication interface modules and the second communication module Otherwise state enters step 1.
5. communication automatic switching method according to claim 4, which is characterized in that further include after step 6:
Step 7, human-computer interaction module display communication interface modules is not connected with or fault message.
6. communication automatic switching method according to claim 4, which is characterized in that the first communication module is CAN moulds Block, first predetermined information are that CAN ID arbitrate segment information, and second presupposed information is CAN message.
7. communication automatic switching method according to claim 4, which is characterized in that
The second communication module is UART modules, and the third presupposed information includes UART start bits or/and check code, described 4th presupposed information is UART handshaking informations.
CN201810718149.1A 2018-06-30 2018-06-30 A kind of communication automatic switching control equipment and method Pending CN108809788A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810718149.1A CN108809788A (en) 2018-06-30 2018-06-30 A kind of communication automatic switching control equipment and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810718149.1A CN108809788A (en) 2018-06-30 2018-06-30 A kind of communication automatic switching control equipment and method

Publications (1)

Publication Number Publication Date
CN108809788A true CN108809788A (en) 2018-11-13

Family

ID=64073274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810718149.1A Pending CN108809788A (en) 2018-06-30 2018-06-30 A kind of communication automatic switching control equipment and method

Country Status (1)

Country Link
CN (1) CN108809788A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580037A (en) * 2019-09-27 2019-12-17 华勤通讯技术有限公司 UART communication system and vehicle-mounted equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007053619A (en) * 2005-08-18 2007-03-01 Sony Corp Electronic apparatus, control method thereof, and program
US20080183940A1 (en) * 2007-01-26 2008-07-31 Tony Lou Computer Switch Having Integrated Direct Connection And Scan Interface Structures
CN101581795A (en) * 2009-06-30 2009-11-18 东华理工大学 Data-collecting sub-station device of three-dimensional resistivity imaging system
CN101895450A (en) * 2009-05-20 2010-11-24 株式会社瑞萨科技 Conductor integrated circuit device
CN201945879U (en) * 2011-01-21 2011-08-24 河南力安测控科技有限公司 Electrical fire monitor for automatic switching of CAN (controller area network) communication and RS485 communication
CN104699066A (en) * 2013-12-04 2015-06-10 大陆汽车系统(天津)有限公司 Electronic control module
CN204480238U (en) * 2015-01-15 2015-07-15 北京奥普维尔科技有限公司 A kind of universal serial bus switching device shifter
CN106383479A (en) * 2016-11-18 2017-02-08 广州极飞科技有限公司 Smart cell communication interface compatible circuit, smart cell and unmanned aerial vehicle
CN106645914A (en) * 2017-01-03 2017-05-10 哈尔滨工业大学 Ground test device of satellite information processing platform and control method of ground test device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007053619A (en) * 2005-08-18 2007-03-01 Sony Corp Electronic apparatus, control method thereof, and program
US20080183940A1 (en) * 2007-01-26 2008-07-31 Tony Lou Computer Switch Having Integrated Direct Connection And Scan Interface Structures
CN101895450A (en) * 2009-05-20 2010-11-24 株式会社瑞萨科技 Conductor integrated circuit device
CN101581795A (en) * 2009-06-30 2009-11-18 东华理工大学 Data-collecting sub-station device of three-dimensional resistivity imaging system
CN201945879U (en) * 2011-01-21 2011-08-24 河南力安测控科技有限公司 Electrical fire monitor for automatic switching of CAN (controller area network) communication and RS485 communication
CN104699066A (en) * 2013-12-04 2015-06-10 大陆汽车系统(天津)有限公司 Electronic control module
CN204480238U (en) * 2015-01-15 2015-07-15 北京奥普维尔科技有限公司 A kind of universal serial bus switching device shifter
CN106383479A (en) * 2016-11-18 2017-02-08 广州极飞科技有限公司 Smart cell communication interface compatible circuit, smart cell and unmanned aerial vehicle
CN106645914A (en) * 2017-01-03 2017-05-10 哈尔滨工业大学 Ground test device of satellite information processing platform and control method of ground test device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110580037A (en) * 2019-09-27 2019-12-17 华勤通讯技术有限公司 UART communication system and vehicle-mounted equipment
CN110580037B (en) * 2019-09-27 2020-07-31 华勤通讯技术有限公司 UART communication system and vehicle-mounted equipment

Similar Documents

Publication Publication Date Title
CN101287217B (en) SIM card switching device and method for mobile phone with double cards
CN103287932A (en) Elevator system
CN112333797B (en) System and method for intelligently switching terminal communication card operators based on eSIM technology
HU208204B (en) Master and slave data transmission device, system and portable radiox telephone
CN101986227A (en) Long-distance control system
CN211184261U (en) A multi-link emergency communication terminal
CN101217436B (en) Ethernet port and its rate setting method
CN102760110A (en) Multiple subscriber identity module controller
CN108123862A (en) Communication system, communication means and the household electrical appliance of household electrical appliance
CN102290862B (en) Peer to peer communication method and system of power distribution terminals
CN107426830A (en) Two-channel wireless public network communication module for power information acquisition system
CN108809788A (en) A kind of communication automatic switching control equipment and method
CN204028696U (en) Testing device and system for air conditioner wire controller
CN107911273A (en) Communication system, communication means and the household electrical appliance of household electrical appliance
CN205792601U (en) A kind of fiber optical transceiver of optical port self-adaptive
CN208112977U (en) A kind of mobile SIM card pond and mobile SIM card cell system
CN102026243B (en) Method and system for processing user equipment
CN109117192B (en) Switching device capable of waking up standby machine and waking device
CN105471752B (en) Equipment, the method and system of rack stacking are realized based on switching network
CN203277916U (en) A junction box
CN102457427A (en) Hundred million data coaxial switch and data switching method thereof
CN218041417U (en) An interface board device for a vehicle safety monitoring system
CN215499394U (en) Distributed deployment scheduling communication equipment circuit
CN207968510U (en) A kind of PoE interchangers with USB interface
CN2819596Y (en) Switching device of telecontrol main telecommunication apparatus

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: 20181113