CN114064544A - Multi-serial port extension design method applied to converged terminal - Google Patents

Multi-serial port extension design method applied to converged terminal Download PDF

Info

Publication number
CN114064544A
CN114064544A CN202111180937.8A CN202111180937A CN114064544A CN 114064544 A CN114064544 A CN 114064544A CN 202111180937 A CN202111180937 A CN 202111180937A CN 114064544 A CN114064544 A CN 114064544A
Authority
CN
China
Prior art keywords
data
com1
mux
recv
serial port
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.)
Withdrawn
Application number
CN202111180937.8A
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.)
Qingdao Topscomm Communication Co Ltd
Original Assignee
Qingdao Topscomm Communication 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 Qingdao Topscomm Communication Co Ltd filed Critical Qingdao Topscomm Communication Co Ltd
Priority to CN202111180937.8A priority Critical patent/CN114064544A/en
Publication of CN114064544A publication Critical patent/CN114064544A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling

Abstract

The invention discloses a multi-serial port extension design method applied to a convergence terminal. The whole method comprises the implementation of an application layer, a drive layer, an extended MCU, a physical layer and the like, and the multi-serial port address allocation and multi-serial port virtualization are realized by establishing a MUX communication protocol between the drive layer and the extended MCU, so that the independence and concurrency of the application layer accessing the physical layer are realized.

Description

Multi-serial port extension design method applied to converged terminal
Technical Field
The invention relates to the technical field of intelligent terminals of power internet of things, in particular to a multi-serial-port expansion design method applied to a convergence terminal.
Background
The intelligent integration terminal is used as a side in a cloud management side end framework of a smart power grid Internet of things system and has the functions of information acquisition, edge calculation, equipment perception and the like, so that the power Internet of things terminal plays a very important role, and the integration terminal is provided with a multi-channel communication interface which is a necessary condition for realizing multi-equipment access. According to the requirements of the related technical specifications of the intelligent convergence terminal in the transformer area, the terminal is provided with 2 paths of RS232 communication interfaces and 4 paths of RS485 communication interfaces; therefore, the multi-serial port expansion design method can meet the requirement of a multi-serial port communication interface on limited resources.
The platform zone intelligent convergence terminal hardware design adopts an industrial CPU, and has the advantages of high running dominant frequency, large memory and the like, but the corresponding serial ports are not many, and the platform zone intelligent convergence terminal takes an i.MX 6 series of NXP as an example and only has 4 serial port communication interfaces, so how to realize multi-serial port expansion under the condition of limited hardware resources is very important.
Disclosure of Invention
Aiming at the defects and shortcomings of the prior art, the invention provides a multi-serial port expansion design method applied to a convergence terminal, solves the problem of insufficient peripheral interfaces of the main control CPU serial port of the convergence terminal, meets the requirement of a multi-path serial port application interface of the convergence terminal, and expands the application scene of the convergence terminal.
In order to realize the purpose, the invention adopts the following technical scheme:
a multi-serial port extension design method applied to a convergence terminal is characterized in that an extension MCU is added on the basis of a main control CPU of the convergence terminal, the extension MCU and the main control CPU are connected through a high-speed serial port, a MUX extension protocol is adopted to realize multi-serial port extension application, and the MUX extension protocol is defined as follows:
Figure BDA0003297255510000011
Figure BDA0003297255510000021
the method comprises the following steps:
1. the application layer APP1 opens the serial port 1 and sends data com1_ send _ data;
2. the driver layer conducts MUX encapsulation on the com1_ send _ data, the encapsulation domain is a data domain, a MUX [ com1_ send _ data ] is formed, and the MUX [ com1_ send _ data ] is output to the expansion MCU;
3. the expansion MCU decapsulates the mux [ com1_ send _ data ], extracts the com1_ send _ data and sends the data out through a physical layer interface;
4. the physical layer interface receives the data com1_ recv _ data;
5. the extended MCU conducts MUX (multiplexer) packaging on the com1_ recv _ data, the packaged domain is a data domain, and MUX [ com1_ recv _ data ] is output to the driving layer;
6. the driver layer unpacks the mux [ com1_ recv _ data ], extracts the com1_ recv _ data, and sends the com1_ recv _ data to the application layer APP 1;
7. the application layer APP1 receives the data com1_ recv _ data;
through the process, the virtual MUX channel of the drive layer and the extension MCU is realized, one-to-one access from the application layer APP to the physical serial port is established, and the requirement of multi-serial port extension is met.
Drawings
FIG. 1 is a data flow control diagram of the present invention
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
For example, a data flow diagram of a multi-serial port extension design method applied to a converged terminal includes an application layer, a driver layer, an extension MCU, a physical layer and the like.
The MUX communication protocol is established between the driver layer and the expansion MCU, so that multi-serial port address allocation and multi-serial port virtualization are realized, and independence and concurrency of an application layer accessing a physical layer are realized.
The specific data stream transmission comprises the following steps:
step 1: the application layer APP1 needs to send data through COM1, firstly calls a write interface to transfer sending data COM1_ send _ data to a drive layer, the drive layer conducts MUX protocol encapsulation on the COM1_ send _ data, MUX [ COM1_ send _ data ] is sent to an expansion MCU through a high-speed serial port, the expansion MCU unpacks the data to extract COM1_ send _ data, and the data are sent out through COM 1;
step 2: the application layer APP2 needs to send data through COM2, firstly calls a write interface to transfer sending data COM2_ send _ data to a drive layer, the drive layer conducts MUX protocol encapsulation on the COM2_ send _ data, MUX [ COM2_ send _ data ] is sent to an expansion MCU through a high-speed serial port, the expansion MCU unpacks the data to extract COM2_ send _ data, and the data are sent out through COM 2;
and step 3: the application layer APP3 needs to send data through COM3, firstly calls a write interface to transfer sending data COM3_ send _ data to a drive layer, the drive layer conducts MUX protocol encapsulation on the COM3_ send _ data, MUX [ COM3_ send _ data ] is sent to an expansion MCU through a high-speed serial port, the expansion MCU unpacks the data to extract COM3_ send _ data, and the data are sent out through COM 3;
and 4, step 4: the application layer APP4 needs to send data through COM4, firstly calls a write interface to transfer sending data COM4_ send _ data to a drive layer, the drive layer conducts MUX protocol encapsulation on the COM4_ send _ data, MUX [ COM4_ send _ data ] is sent to an expansion MCU through a high-speed serial port, the expansion MCU unpacks the data to extract COM4_ send _ data, and the data are sent out through COM 4;
and 5: the application layer APP1 reads data received by the COM1, firstly, the COM1 receives data COM1_ recv _ data, the data are transmitted to the expansion MCU, the expansion MCU conducts MUX protocol encapsulation and adjustment on the COM1_ recv _ data, MUX [ COM1_ recv _ data ] is sent to the drive layer through the high-speed serial port, the drive layer conducts MUX protocol unpacking on the MUX [ COM1_ recv _ data ] data to extract COM1_ recv _ data, the COM1_ recv _ data is sent to the application layer APP1, and the application layer APP1 completes COM 52 received data reading through the read interface 636363 1;
step 6: the application layer APP2 reads data received by the COM2, firstly, the COM2 receives data COM2_ recv _ data, the data are transmitted to the expansion MCU, the expansion MCU conducts MUX protocol encapsulation and adjustment on the COM2_ recv _ data, MUX [ COM2_ recv _ data ] is sent to the drive layer through the high-speed serial port, the drive layer conducts MUX protocol unpacking on the MUX [ COM2_ recv _ data ] data to extract COM2_ recv _ data, the COM2_ recv _ data is sent to the application layer APP2, and the application layer APP2 completes COM 52 received data reading through the read interface 636363 2;
and 7: the application layer APP3 reads data received by the COM3, firstly, the COM3 receives data COM3_ recv _ data, the data are transmitted to the expansion MCU, the expansion MCU conducts MUX protocol encapsulation and adjustment on the COM3_ recv _ data, MUX [ COM3_ recv _ data ] is sent to the drive layer through the high-speed serial port, the drive layer conducts MUX protocol unpacking on the MUX [ COM3_ recv _ data ] data to extract COM3_ recv _ data, the COM1_ recv _ data is sent to the application layer APP3, and the application layer APP3 completes COM 52 received data reading through the read interface 636363 3;
and 8: the application layer APP4 reads data received by the COM4, firstly, the COM4 receives data COM4_ recv _ data, the data are transmitted to the expansion MCU, the expansion MCU conducts MUX protocol encapsulation and adjustment on the COM4_ recv _ data, MUX [ COM4_ recv _ data ] is sent to the drive layer through the high-speed serial port, the drive layer conducts MUX protocol unpacking on the MUX [ COM4_ recv _ data ] data to extract COM4_ recv _ data, the COM4_ recv _ data is sent to the application layer APP4, and the application layer APP4 completes COM 52 received data reading through the read interface 636363 4;
the above-mentioned embodiments are illustrative of the specific embodiments of the present invention, and are not restrictive, and those skilled in the relevant art can make various changes and modifications to obtain corresponding equivalent technical solutions without departing from the spirit and scope of the present invention, so that all equivalent technical solutions should be included in the scope of the present invention.

Claims (1)

1. A design method of multi-serial port extension applied to a convergence terminal is characterized in that an extension MCU is added on the basis of a main control CPU of the convergence terminal, the extension MCU and the main control CPU are connected through a high-speed serial port, a MUX extension protocol is adopted to realize multi-serial port extension application,
the method comprises the following steps:
the method comprises the following steps: the application layer APP1 opens the serial port 1 and sends data com1_ send _ data;
step two: the driver layer conducts MUX encapsulation on the com1_ send _ data, the encapsulation domain is a data domain, a MUX [ com1_ send _ data ] is formed, and the MUX [ com1_ send _ data ] is output to the expansion MCU;
step three: the expansion MCU decapsulates the mux [ com1_ send _ data ], extracts the com1_ send _ data and sends the data out through a physical layer interface;
step four: the physical layer interface receives the data com1_ recv _ data;
step five: the extended MCU conducts MUX (multiplexer) packaging on the com1_ recv _ data, the packaged domain is a data domain, and MUX [ com1_ recv _ data ] is output to the driving layer;
step six: the driver layer unpacks the mux [ com1_ recv _ data ], extracts the com1_ recv _ data, and sends the com1_ recv _ data to the application layer APP 1;
step seven: the application layer APP1 receives the data com1_ recv _ data.
CN202111180937.8A 2021-10-11 2021-10-11 Multi-serial port extension design method applied to converged terminal Withdrawn CN114064544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111180937.8A CN114064544A (en) 2021-10-11 2021-10-11 Multi-serial port extension design method applied to converged terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111180937.8A CN114064544A (en) 2021-10-11 2021-10-11 Multi-serial port extension design method applied to converged terminal

Publications (1)

Publication Number Publication Date
CN114064544A true CN114064544A (en) 2022-02-18

Family

ID=80234212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111180937.8A Withdrawn CN114064544A (en) 2021-10-11 2021-10-11 Multi-serial port extension design method applied to converged terminal

Country Status (1)

Country Link
CN (1) CN114064544A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010037218A (en) * 1999-10-14 2001-05-07 구자홍 apparatus and method for extending interface in digital broadcasting receiver
CN201374722Y (en) * 2009-01-06 2009-12-30 无锡威泰迅电力科技有限公司 Multi-serial port dual-Ethernet networked server
CN101650703A (en) * 2009-08-27 2010-02-17 中兴通讯股份有限公司 Data transmission method, system and device
CN102394806A (en) * 2011-08-05 2012-03-28 杭州海康威视数字技术股份有限公司 Network code allocator and method for controlling front-end equipment by using network code allocator
CN103106169A (en) * 2013-01-28 2013-05-15 无锡众志和达存储技术股份有限公司 High speed bus interface expansion structure based on aurora protocol
CN105550138A (en) * 2015-12-18 2016-05-04 华立科技股份有限公司 Serial port expansion method
CN211669635U (en) * 2020-02-19 2020-10-13 西安超网信息科技有限公司 Multi-communication interface embedded control processing mainboard

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010037218A (en) * 1999-10-14 2001-05-07 구자홍 apparatus and method for extending interface in digital broadcasting receiver
CN201374722Y (en) * 2009-01-06 2009-12-30 无锡威泰迅电力科技有限公司 Multi-serial port dual-Ethernet networked server
CN101650703A (en) * 2009-08-27 2010-02-17 中兴通讯股份有限公司 Data transmission method, system and device
CN102394806A (en) * 2011-08-05 2012-03-28 杭州海康威视数字技术股份有限公司 Network code allocator and method for controlling front-end equipment by using network code allocator
CN103106169A (en) * 2013-01-28 2013-05-15 无锡众志和达存储技术股份有限公司 High speed bus interface expansion structure based on aurora protocol
CN105550138A (en) * 2015-12-18 2016-05-04 华立科技股份有限公司 Serial port expansion method
CN211669635U (en) * 2020-02-19 2020-10-13 西安超网信息科技有限公司 Multi-communication interface embedded control processing mainboard

Similar Documents

Publication Publication Date Title
CN105516191B (en) System based on the FPGA 10,000,000,000 net Transmission Control Protocol unloading engine TOE realized
US8948199B2 (en) Fibre channel processing by a host channel adapter
CN103714024A (en) Multi-serial port parallel processing framework based on SoC (System on a Chip) FPGA (Field Programmable Gata Array)
CN202084028U (en) Modularized multi-serial port expanding device
CN203705861U (en) Multi-serial port parallel processing framework based on FPGA
CN110297797B (en) Heterogeneous protocol conversion device and method
WO2021143135A1 (en) Far-end data migration device and method based on fpga cloud platform
CN103415062B (en) A kind of network connection device, wireless router and method for connecting network
CN112666905B (en) Multichannel communication control system and channel control method
CN114064544A (en) Multi-serial port extension design method applied to converged terminal
CN108667706B (en) Ethernet serial server with dynamically adjustable serial number and data transmission method thereof
CN111935196B (en) Protocol conversion method of Modbus and dnp3 based on EdgeX Foundation
CN108614797A (en) A kind of high low-frequency serial bus integrated interface of polymorphic type
JPH077955B2 (en) Data communication controller
CN106844263B (en) Configurable multiprocessor-based computer system and implementation method
CN207976991U (en) A kind of high speed 4G concentrators communication module and power information acquisition system
CN103034543A (en) Communication method among multiple software operating environments and method for enabling multiple software operating environments to communicate
CN202696609U (en) Optical fiber concentrator
CN115967589A (en) ARM and FPGA-based high-speed buffer type CAN bus communication system and method
CN215986940U (en) Industrial wireless gateway device compatible with multi-field bus protocol
CN112433966B (en) Multi-interface architecture based on Windows platform and implementation method
CN213399265U (en) FPGA-based field bus control circuit device
CN212696013U (en) 5G gateway integrating Wi-Fi6 function
CN206741479U (en) A kind of serial communication protocol converter
CN218782610U (en) Localization high-speed CAN circuit based on PCIe bus

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220218