CN101315615A - Multichannel communication system and duplex selection distribution method of communication serial port in system - Google Patents

Multichannel communication system and duplex selection distribution method of communication serial port in system Download PDF

Info

Publication number
CN101315615A
CN101315615A CNA2008100684354A CN200810068435A CN101315615A CN 101315615 A CN101315615 A CN 101315615A CN A2008100684354 A CNA2008100684354 A CN A2008100684354A CN 200810068435 A CN200810068435 A CN 200810068435A CN 101315615 A CN101315615 A CN 101315615A
Authority
CN
China
Prior art keywords
communication
main control
serial port
serial ports
controlled end
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
CNA2008100684354A
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.)
Shenzhen Clou Electronics Co Ltd
Original Assignee
Shenzhen Clou 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 Shenzhen Clou Electronics Co Ltd filed Critical Shenzhen Clou Electronics Co Ltd
Priority to CNA2008100684354A priority Critical patent/CN101315615A/en
Publication of CN101315615A publication Critical patent/CN101315615A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention relates to a multichannel communication system and a multiple choice distribution method of communication serial ports in the system. The multichannel communication system comprises a main control terminal, a controlled terminal and a multiple choice serial port coding distribution module, wherein, the main control terminal is connected with the controlled terminal by the multiple choice serial port coding distribution module. The multiple choice distribution method of the communication serial ports in the multichannel communication system comprises the steps that: firstly, the communication serial ports of the controlled terminal, which need to carry out communication, are determined; secondly, coding signals corresponding to all the communication serial ports of the controlled terminal are arranged, and distribution is carried out to all the communication serial ports of the controlled terminal according to the coding signals; finally, the communication is carried out between the main control terminal and the controlled terminal. The technology of the invention saves redundant devices in the system, reduces the cost of the whole system, and simultaneously guarantees the reliability and the stability of the communication, thus having extremely high utility value.

Description

The duplex selection distribution method of communication serial port in multiplex communication and the system
Technical field
The present invention relates to the terminal communication technology, be specifically related in terminal communication the duplex selection distribution method of communication serial port in a kind of multiplex communication and system.
Background technology
In the existing terminal communication technology, run into the situation that needs many serial ports to communicate through regular meeting.For example: a controlled end equipment has four RS232 interfaces, when this controlled end equipment and main control end (PC) when communicating, usually require described main control end (PC) to provide corresponding four RS232 communication ports to dock with four RS232 interfaces of described controlled end equipment, this is difficult for present PC, because existing P C machine generally has only a RS232 communication serial port, and the main control end that has is not established the RS232 communication serial port especially, needs the circumscribed USB RS 232 or by finishing at the external multi-serial-port card of described main control end and the docking of described controlled end serial ports.Though technical scheme of the prior art also can realize described main control end and described controlled communicating to connect, existing technical scheme has really improved the cost of a whole set of communication system, has improved the complexity of a whole set of communication system again.
Summary of the invention
In order to solve communicating when main control end and controlled end of existing in the prior art, when serial ports is not enough, need the invention provides a kind of multiplex communication by transfer serial ports or can improve the cost of a whole set of communication system and the technical matters of complexity when finishing at the external multi-serial-port card of described main control end of circumscribed USB with the docking of described controlled end serial ports.
In order to solve communicating when main control end and controlled end of existing in the prior art, when serial ports is not enough, need be by transfer serial ports or can improve the cost of a whole set of communication system and the technical matters of complexity when finishing at the external multi-serial-port card of described main control end of circumscribed USB with the docking of described controlled end serial ports, the present invention also provides the duplex selection distribution method of communication serial port in a kind of multiplex communication.
The present invention solves technical scheme that the prior art problem adopted for a kind of multiplex communication is provided, described communication system comprises main control end and controlled end, described multiplex communication also comprises multichannel selection serial ports coding assignment module, and described main control end selects serial ports coding assignment module to be connected with described controlled end by described multichannel.
According to an optimal technical scheme of the present invention: described multichannel selects serial ports coding assignment module to be connected by the main control end serial ports with described main control end.
According to an optimal technical scheme of the present invention: described multichannel selects serial ports coding assignment module to be integrated in described main control end.
According to an optimal technical scheme of the present invention: described main control end is computing machine or controller.
In order to solve the technical matters that exists in the prior art, the present invention also provides the duplex selection distribution method of communication serial port in a kind of multiplex communication, and the duplex selection distribution method of communication serial port comprises step in the described multiplex communication: the first, determine the described controlled end communication serial port that will communicate; The second, each communication serial port corresponding codes signal of described controlled end is set, and described each communication serial port of controlled end is distributed according to described coded signal; Three, described main control end and described controlled end communicate.
According to an optimal technical scheme of the present invention: the described first step is specially by described main control end determines the described controlled end communication serial port quantity that will communicate.
According to an optimal technical scheme of the present invention: described second step is specially by described multichannel selects serial ports coding assignment module that described each communication serial port of controlled end is encoded, and according to described coding described each communication serial port of controlled end is distributed.
According to an optimal technical scheme of the present invention: coding method is for to carry out assembled arrangement to single encoded signal described in described second step.
According to an optimal technical scheme of the present invention: described the 3rd step is specially communicating with corresponding coded signal of its serial ports and described controlled end that described main control end is assigned to according to each described controlled end communication serial port.
When being connected with a plurality of communication serial ports of single controlled end with a plurality of controlled ends or main control end, main control end obtained good effect by the duplex selection distribution method technology that adopts communication serial port in multiplex communication of the present invention and the system, saved device unnecessary in the system, reduced the cost of whole system, ensured simultaneously the reliability and stability of communication again, the technology of the present invention has very high practical value.
Description of drawings
Fig. 1. multiplex communication first structural representation in the duplex selection distribution method of communication serial port in multiplex communication of the present invention and the system;
Fig. 2. multiplex communication second structural representation in the duplex selection distribution method of communication serial port in multiplex communication of the present invention and the system;
Fig. 3. multiplex communication the 3rd structural representation in the duplex selection distribution method of communication serial port in multiplex communication of the present invention and the system;
Fig. 4. the duplex selection distribution method process flow diagram of multiplex communication communication serial port in the duplex selection distribution method of communication serial port in multiplex communication of the present invention and the system.
Embodiment
The present invention will be described below in conjunction with accompanying drawing:
See also multiplex communication second structural representation in the duplex selection distribution method of communication serial port in multiplex communication first structural representation in the duplex selection distribution method of communication serial port in Fig. 1 multiplex communication of the present invention and the system or Fig. 2 multiplex communication of the present invention and the system.As shown in FIG., described communication system comprises main control end 101 and controlled end 103, described multiplex communication also comprises multichannel selection serial ports coding assignment module 102, and described main control end 101 selects serial ports coding assignment module 102 to be connected with described controlled end 103 by described multichannel.Described multichannel selects serial ports coding assignment module 102 to be connected by main control end 101 serial ports with described main control end 101.
Controlled end 103 is a station terminal equipment described in Fig. 1, is provided with four communication serial ports on described terminal device.
Controlled end 103 is four station terminal equipment described in Fig. 2, is provided with a communication serial port on each described terminal device.
Among the figure, the serial ports that main control end 101 realizes main control end 101 by " serial ports coded signal 1 ", " serial ports coded signal 2 " two control lines at times with 4 serial communications of controlled end 103.Controlled end 103 is generally built-in terminal in our practice, and main control end 101 is generally PC.Because it is cumbersome that PC goes to expand control line again, at this, we utilize the control line of relevant MODEM in the DB9 interface of RS232 as " serial ports coded signal 1 ", " serial ports coded signal 2 ", both consistent with general RS232 interface, not needing again increases extra hardware device, is the method that a kind of very economical is suitable for.
The selection of multichannel described in the present invention serial ports coding assignment module 102 can be integrated in described main control end 101 and also can be provided with separately.Described main control end 101 is computing machine or controller.
See also the duplex selection distribution method process flow diagram of multiplex communication communication serial port in the duplex selection distribution method of communication serial port in Fig. 4 multiplex communication of the present invention and the system.As shown in Figure 4, the present invention also provides the duplex selection distribution method of communication serial port in a kind of multiplex communication, and the duplex selection distribution method of communication serial port comprises step in the described multiplex communication: the first, determine described controlled end 103 communication serial ports that will communicate; The second, described controlled end 103 each communication serial port corresponding codes signal are set, and described controlled end 103 each communication serial port are distributed according to described coded signal; Three, described main control end 101 communicates with described controlled end 103.
Wherein, the described first step is specially by described main control end 101 definite described controlled end 103 communication serial port quantity that will communicate.Described second step is specially by described multichannel selects 102 pairs of described controlled end 103 each communication serial ports of serial ports coding assignment module to encode, and according to described coding described controlled end 103 each communication serial port is distributed.Coding method is for to carry out assembled arrangement to single encoded signal described in described second step.Described the 3rd step is specially described main control end 101 according to communicating with corresponding coded signal of its serial ports and described controlled end 103 that each described controlled end 103 communication serial port is assigned to.
See also multiplex communication the 3rd structural representation in the duplex selection distribution method of communication serial port in Fig. 3 multiplex communication of the present invention and the system, the embodiment when withstand voltage for CL3505 has good luck of Fig. 3 utilizes technical solution of the present invention.
Main control end 101 (PC) has only a RS232 communication port in the present embodiment, communicate by letter with electric energy meter, CL188G error plate, stage body controller, standard source respectively by the stage body controller, because PC has only a serial ports, adopt the described method of the technology of the present invention, just have extraordinary effect.PC uses the DB9 interface, 2,3,5 sending and receiving of doing serial communication wherein, with selecteed serial communication, select the object that two control lines conducts will be communicated by letter.DB9 is defined as follows shown in the table one:
Table one:
9 cores Sense from Abbreviation Name is described
3 PC TXD Send data
2 Modulator-demodular unit RXD Receive data
7 PC RTS Request sends
8 Modulator-demodular unit CTS Allow to send
6 Modulator-demodular unit DSR Communication apparatus is ready to
5 GND Signal ground
1 Modulator-demodular unit CD Carrier wave detects
4 PC DTR DTR
9 Modulator-demodular unit RI The jingle bell indicator
In Table 1 in the interface standard of described DB9, the DTR of 4 pin, the RTS of 7 pin is output signals of PC control, utilize the combinations of states of DTR, RTS, communicate by letter for one among TXD, the RXD that can select the DB on the PC respectively and TXD, the RXD of stage body controller, electric energy meter, CL188G error plate, standard source.
Communication port 1, communication port 2, communication port 3, communication port 4 are communicated by letter with serial ports 1, serial ports 2, serial ports 3, the serial ports 4 of MCU respectively, also require simultaneously to communicate by letter with PC, select by " serial ports is selected coding 1 ", " serial ports is selected coding 2 ".
Provide a kind of concrete coding establishing method in the present embodiment, this establishing method of encoding is a kind of in the multiple encoding setting method.The coding establishing method as shown in Table 2:
Table two:
Coding 1 Coding 2 PC is connected with communication port XX The connection status of MCU communication port
0 0 PC is connected with communication port 1 MCU serial ports 2, serial ports 3, serial ports 4 are connected with communication port 2, communication port 3, communication port 4 respectively
0 1 PC is connected with communication port 2 MCU serial ports 1, serial ports 3, serial ports 4 are connected with communication port 1, communication port 3, communication port 4 respectively
1 0 PC is connected with communication port 3 MCU serial ports 1, serial ports 2, serial ports 4 are connected with communication port 1, communication port 2, communication port 4 respectively
1 1 PC is connected with communication port 4 MCU serial ports 1, serial ports 2, serial ports 3 are connected with communication port 1, communication port 2, communication port 3 respectively
Technical scheme of the present invention has also obtained good effect by the application on the withstand voltage platform of having good luck at CL3503.
Be connected with a plurality of communication serial ports of single controlled end with a plurality of controlled ends or main control end in main control end by the duplex selection distribution method technology that adopts communication serial port in multiplex communication of the present invention and the system, saved device unnecessary in the system, reduced the cost of whole system, ensured simultaneously the reliability and stability of communication again, the technology of the present invention has very high practical value.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (9)

1. multiplex communication, described communication system comprises main control end (101) and controlled end (103), it is characterized in that: described multiplex communication also comprises multichannel selection serial ports coding assignment module (102), and described main control end (101) selects serial ports coding assignment module (102) to be connected with described controlled end (103) by described multichannel.
2. according to the described multiplex communication of claim 1, it is characterized in that: described multichannel selects serial ports coding assignment module (102) to be connected by main control end (101) serial ports with described main control end (101).
3. according to the described multiplex communication of claim 1, it is characterized in that: described multichannel selects serial ports coding assignment module (102) to be integrated in described main control end (101).
4. according to claim 1 or 2 or 3 described multiplex communication, it is characterized in that: described main control end (101) is computing machine or controller.
5. the duplex selection distribution method of communication serial port in the multiplex communication, it is characterized in that: the duplex selection distribution method of communication serial port comprises step in the described multiplex communication:
A: definite described controlled end (103) communication serial port that will communicate;
B: each communication serial port corresponding codes signal of described controlled end (103) is set, and each communication serial port of described controlled end (103) is distributed according to described coded signal;
C: described main control end (101) communicates with described controlled end (103).
6.: the duplex selection distribution method according to communication serial port in the described multiplex communication of claim 5 is characterized in that: described steps A is specially by definite described controlled end (103) the communication serial port quantity that will communicate of described main control end (101).
7. according to the duplex selection distribution method of communication serial port in the described multiplex communication of claim 5, it is characterized in that: described step B is specially by described multichannel and selects serial ports coding assignment module (102) that each communication serial port of described controlled end (103) is encoded, and according to described coding each communication serial port of described controlled end (103) is distributed.
8. according to the duplex selection distribution method of communication serial port in claim 5 or the 7 described multiplex communication, it is characterized in that: described coding method is for to carry out assembled arrangement to single encoded signal.
9. according to the duplex selection distribution method of communication serial port in the described multiplex communication of claim 5, it is characterized in that: described step C is specially communicating with corresponding coded signal of its serial ports and described controlled end (103) that described main control end (101) is assigned to according to each described controlled end (103) communication serial port.
CNA2008100684354A 2008-07-08 2008-07-08 Multichannel communication system and duplex selection distribution method of communication serial port in system Pending CN101315615A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100684354A CN101315615A (en) 2008-07-08 2008-07-08 Multichannel communication system and duplex selection distribution method of communication serial port in system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100684354A CN101315615A (en) 2008-07-08 2008-07-08 Multichannel communication system and duplex selection distribution method of communication serial port in system

Publications (1)

Publication Number Publication Date
CN101315615A true CN101315615A (en) 2008-12-03

Family

ID=40106629

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100684354A Pending CN101315615A (en) 2008-07-08 2008-07-08 Multichannel communication system and duplex selection distribution method of communication serial port in system

Country Status (1)

Country Link
CN (1) CN101315615A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353862A (en) * 2013-06-13 2013-10-16 广东岭南通股份有限公司 USB and serial port merging device and application system thereof
CN112306915A (en) * 2020-10-26 2021-02-02 英业达科技有限公司 Communication interface control system and method thereof
WO2021082417A1 (en) * 2019-10-30 2021-05-06 苏州浪潮智能科技有限公司 Method and system for controlling internal serial port access of multi-node device
CN114116566A (en) * 2021-11-29 2022-03-01 厦门市思芯微科技有限公司 Serial port expansion system based on multi-path grouping scheduling algorithm

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103353862A (en) * 2013-06-13 2013-10-16 广东岭南通股份有限公司 USB and serial port merging device and application system thereof
CN103353862B (en) * 2013-06-13 2017-03-15 广东岭南通股份有限公司 USB merges device and its application system with serial ports
WO2021082417A1 (en) * 2019-10-30 2021-05-06 苏州浪潮智能科技有限公司 Method and system for controlling internal serial port access of multi-node device
CN112306915A (en) * 2020-10-26 2021-02-02 英业达科技有限公司 Communication interface control system and method thereof
CN114116566A (en) * 2021-11-29 2022-03-01 厦门市思芯微科技有限公司 Serial port expansion system based on multi-path grouping scheduling algorithm
CN114116566B (en) * 2021-11-29 2024-04-19 厦门市思芯微科技有限公司 Serial port expansion system based on multipath packet scheduling algorithm

Similar Documents

Publication Publication Date Title
CN100468378C (en) SPI apparatus telecommunication circuit
CN101315615A (en) Multichannel communication system and duplex selection distribution method of communication serial port in system
CN101272405B (en) Receiving equipment, MMIS interface and data interaction method
CN204946336U (en) The metering communication module of intelligent electric energy meter
CN207182023U (en) The network control board and modular instrument for being controlled and being communicated based on network
CN108808398B (en) A kind of Type-C type usb hub and on-vehicle host
CN105653498A (en) VPX computer processing board based on VITA series standard
CN205320103U (en) Many interface communication networking system
CN201163783Y (en) Multi-serial port card based on CAN bus
CN203631893U (en) Usb connector
CN213582152U (en) PCIE signal bit width automatic switching device of desktop and server system
CN201820120U (en) Self-adapting multibus execution mechanism controller
CN205318374U (en) Redundant circuit of RS -232 serial ports
CN201638205U (en) Data transmission circuit of USB interface and RS-232 interface
CN202615169U (en) Bus compatible interface circuit used for keyless entry system
CN108111380A (en) N roads CAN communication device, implementation method and charging equipment based on A5 platforms
CN209168084U (en) A kind of pinboard and adapting system of multiplex roles
CN202405587U (en) Device for converting universal serial bus (USB) interface into RJ-45 interface with serial port function
CN206312133U (en) A kind of Pci Express multiport paradigmatic systems
CN207474878U (en) A kind of novel RJ45 interfaces and USB interface pinboard
CN102256193B (en) Audio signal receiving device and audio signal transmission system
CN206892854U (en) A kind of mainboard of raising PCIE data channel utilization rates
CN216437355U (en) Camera with mixed transmission function
CN112685339B (en) Data transmission system and method applied to HID (high intensity discharge) equipment
CN105471752A (en) Device, method and system for realizing rack stacking based on exchange network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20081203