CN107844449B - Method and system for processing communication protocol by Feiteng platform - Google Patents
Method and system for processing communication protocol by Feiteng platform Download PDFInfo
- Publication number
- CN107844449B CN107844449B CN201610834623.8A CN201610834623A CN107844449B CN 107844449 B CN107844449 B CN 107844449B CN 201610834623 A CN201610834623 A CN 201610834623A CN 107844449 B CN107844449 B CN 107844449B
- Authority
- CN
- China
- Prior art keywords
- cpu
- protocol port
- start bit
- lpc protocol
- lpc
- 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.)
- Active
Links
Images
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/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
-
- 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/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The invention provides a method and a system for processing a communication protocol by a Feiteng platform, and relates to the technical field of the communication protocol of the Feiteng platform. The method comprises the following steps: monitoring whether a detection signal output by an LPC protocol port of the CPU is in a low level or not through a CPLD connected between the CPU and the TCM equipment; if the detection signal output by the LPC protocol port is low level, the data signal in the LPC protocol port is forced to be set as a preset start bit signal; and sending the start bit signal to the TCM equipment to enable the CPU to establish normal communication connection with the TCM equipment. The invention adds CPLD between CPU and TCM equipment to make the start bit of CPU and TCM equipment compatible, and can effectively communicate with each other.
Description
Technical Field
The invention belongs to the technical field of Feiteng platform communication protocols, and particularly relates to a method and a system for processing a communication protocol by a Feiteng platform.
Background
At present, communication protocols (LPC, I2C, UART, etc.) have been developed, but some internal communication protocol messages are defined by negotiation of device manufacturers, such as start bit 0100 + 1100(Reserved bit) of LPC (Low Pin Count, Low Pin interface, a new interface specification for replacing traditional ISA BUS published by Intel in 1997, 9/29, and used in the industry in a free open authorization manner), some device manufacturers can also define start bits themselves, such as TCM (Tightly Coupled memory) manufacturers, only the start bit is 0101 to enable normal communication, and a CPU (Central Processing Unit) end generally retains the Reserved bit when Processing LPC modules, i.e. the CPU end of the platform can not send the binary code 0101 as the start bit. Therefore, the problem that the CPU of the TCM device and the Feiteng platform cannot communicate due to the start bit occurs.
The above problems are urgently needed to be solved.
Disclosure of Invention
The invention provides a method and a system for remotely controlling a router through a browser, aiming at the problem that the CPU of the traditional TCM equipment and the Feiteng platform cannot communicate due to a start bit.
The invention provides a method for processing a communication protocol by a Feiteng platform, which comprises the following steps:
monitoring whether a detection signal output by an LPC protocol port of the CPU is in a low level or not through a CPLD connected between the CPU and TCM equipment;
if the detection signal output by the LPC protocol port is low level, the data signal in the LPC protocol port is forced to be set as a preset start bit signal;
and sending the start bit signal to the TCM equipment to enable the CPU to establish normal communication connection with the TCM equipment.
Preferably, the LPC protocol port specifically outputs three signals including:
a clock signal for timing, a detection signal for outputting a level, and a data signal for outputting a signal with a start bit.
Preferably, if the detection signal output by the LPC protocol port is at a low level, the method further includes, after forcibly setting the LAD in the detection signal to the preset start bit signal:
and if the detection signal output by the LPC protocol port is high level, continuing to monitor.
Preferably, if the detection signal output by the LPC protocol port is at a low level, the step of forcibly setting the data signal in the LPC protocol port to the preset start bit signal specifically includes:
and monitoring an LPC protocol port of the CPU, and if the LPC protocol port is in a low level, forcibly setting a start bit signal carried by a start bit signal line of the CPLD to 0101.
Preferably, after the sending the TCM start bit signal to the TCM device and starting the normal communication between the CPU and the TCM device, the method further includes:
and after the CPU finishes the data transmission with the TCM equipment, the LPC protocol port is set to be a high level, and the CPLD continues to monitor the LPC protocol port.
The invention also provides a system for processing the communication protocol by the Feiteng platform, which comprises the following steps:
the monitoring module is used for monitoring whether a detection signal output by an LPC protocol port of the CPU is in a low level or not through a CPLD connected between the CPU and the TCM equipment;
a setting module, configured to force a data signal in the LPC protocol port to be a preset start bit signal if a detection signal output by the LPC protocol port is a low level;
and the connection establishing module is used for sending the start bit signal to the TCM equipment so as to enable the CPU to establish normal communication connection with the TCM equipment.
Preferably, the LPC protocol port specifically outputs three signals including:
a clock signal for timing, a detection signal for outputting a level, and a data signal for outputting a signal with a start bit.
Preferably, the system further comprises:
and the high level monitoring module is used for continuing monitoring if the detection signal output by the LPC protocol port is high level.
Preferably, the setting module is specifically configured to:
and monitoring an LPC protocol port of the CPU, and if the LPC protocol port is in a low level, forcibly setting a start bit signal carried by a start bit signal line of the CPLD to 0101.
Preferably, the system further comprises:
and the high level setting module is used for setting the LPC protocol port to be a high level after the CPU completes data transmission with the TCM equipment, and then the CPLD continuously monitors the LPC protocol port.
Has the advantages that: the invention adds CPLD between CPU and TCM equipment to make the start bit of CPU and TCM equipment compatible, and can effectively communicate with each other.
Drawings
Fig. 1 is a flowchart of a specific implementation of a method for handling a communication protocol by a soar platform according to an embodiment of the present invention;
FIG. 2 is a port connection diagram of the method of handling communication protocols by the Feiteng platform provided in FIG. 1;
fig. 3 is a flowchart illustrating an implementation of a method for handling a communication protocol by a platform in the soaring environment according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a specific implementation of a method for handling a communication protocol by a soar platform according to another embodiment of the present invention;
fig. 5 is a schematic block diagram of a system for handling communication protocols for a soar platform provided by an embodiment of the present invention;
fig. 6 is a schematic block diagram of a system for handling a communication protocol by a soar platform according to an embodiment 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 are not intended to limit the invention.
Fig. 1 is a flowchart of a specific implementation of a method for processing a communication protocol by a soar platform according to an embodiment of the present invention. Referring to fig. 1, the method for processing a communication protocol by a soar platform provided in this embodiment may include the following steps:
s100, monitoring whether a detection signal output by an LPC protocol port of a CPU is in a low level or not through a CPLD connected between the CPU and TCM equipment;
specifically, the CPU and the TCM device are difficult to directly perform communication connection due to different preset start bits. The CPLD is added between the two to unify the communication start bits of the two.
FIG. 2 is a port connection diagram of the method of handling communication protocols by the Feiteng platform provided in FIG. 1; as shown in fig. 2, preferably, the LPC protocol port specifically outputs three signals, including:
a clock signal for timing, a detection signal for outputting a level, and a data signal for outputting a signal with a start bit. Specifically, three signals needing communication between the CPU and the TCM device are connected through the CPLD, so that the state information sent by the CPU can be effectively acquired, and the communication between the CPU and the TCM device can be realized.
S200, if the detection signal output by the LPC protocol port is in a low level, forcibly setting a data signal in the LPC protocol port as a preset start bit signal;
specifically, the CPLD may monitor that the specific detection signal of the LPC protocol port is LFRAME # bit, and when LFRAME # is found to be low, force the data signal, that is, the LAD signal [ 3: 0 is set to 0101 and this information is issued to the TCM device. The starting bit signal carried by the starting bit signal line of the CPLD is forcibly set to 0101 to adapt to the starting bit 0101 defined by the TCM device.
S300, sending the start bit signal to the TCM equipment to enable the CPU and the TCM equipment to establish normal communication connection.
Specifically, when the TCM device receives the updated start bit signal line information from the CPLD, it considers that it is the start bit signal sent by the CPU, so that it can perform normal communication with the CPU.
It can be seen from the above embodiments that, in the method provided by the embodiment of the present invention, the CPLD is added between the CPU and the TCM device, so that the start bits of the CPU and the TCM device are compatible, the effective communication connection can be performed, the setting is simple and fast, the cost is low, and the method is beneficial to expanding the use range of the communication connection between the CPU and the existing device.
Fig. 3 is a flowchart illustrating an implementation of a method for handling a communication protocol by a platform in the soaring environment according to another embodiment of the present invention; as shown in fig. 3, if the probing signal output by the LPC protocol port is at a low level, the step of forcing the LAD in the probing signal to be set as the preset start bit signal may further include:
s400, if the detection signal output by the LPC protocol port is high level, the monitoring is continued.
Compared with the previous embodiment, in this embodiment, when the LPC protocol port outputs the detection signal at a high level, the CPU outputs the detection signal at a high level, which means that the CPU and the TCM do not need to perform data transmission for communication connection at the moment, and the CPU and the TCM are ready to start communication connection at the moment.
Fig. 4 is a flowchart illustrating a specific implementation of a method for handling a communication protocol by a soar platform according to another embodiment of the present invention; as shown in fig. 4, the sending the TCM start bit signal to the TCM device according to this embodiment may further include, after starting the normal communication between the CPU and the TCM device:
s500, after the CPU completes data transmission with the TCM equipment, the LPC protocol port is set to be a high level, and then the CPLD continues to monitor the LPC protocol port.
Compared with the previous embodiment, if the CPU and the TCM device are communicating, but the next command of the CPU does not need to communicate with the TCM device, the CPU sets the LPC protocol port to a high level, and at this time, the CPLD can determine to stop data transmission according to the potential condition of the LPC protocol port, and prepare for continuing communication connection, which is fast and efficient.
Fig. 5 is a schematic block diagram of a system for handling communication protocols for a soar platform provided by an embodiment of the present invention; for convenience of explanation, only portions relevant to the present invention are shown.
As shown in fig. 5, a system for processing a communication protocol by a soar platform according to an embodiment of the present invention may include:
the monitoring module 100 is configured to monitor whether a detection signal output by an LPC protocol port of the CPU is at a low level through a CPLD connected between the CPU and the TCM device;
preferably, the LPC protocol port specifically outputs three signals including:
a clock signal for timing, a detection signal for outputting a level, and a data signal for outputting a signal with a start bit.
A setting module 200, configured to force a data signal in the LPC protocol port to be a preset start bit signal if the detection signal output by the LPC protocol port is a low level;
preferably, the setting module is specifically configured to:
and monitoring an LPC protocol port of the CPU, and if the LPC protocol port is in a low level, forcibly setting a start bit signal carried by a start bit signal line of the CPLD to 0101.
A connection establishing module 300, configured to send the start bit signal to the TCM device, so that the CPU and the TCM device establish a normal communication connection.
Fig. 6 is a schematic block diagram of a system for handling communication protocols for a soar platform provided by an embodiment of the present invention; as shown in fig. 6, with respect to the above embodiment, the system for processing a communication protocol by a soar platform according to another embodiment of the present invention may further include:
a high level monitoring module 400, configured to continue monitoring if the detection signal output by the LPC protocol port is a high level.
With respect to the above embodiment, the present invention provides another embodiment, in which the system may further include:
and the high level setting module is used for setting the LPC protocol port to be a high level after the CPU completes data transmission with the TCM equipment, and then the CPLD continuously monitors the LPC protocol port.
It should be noted that, since each module in the system provided in the embodiment of the present invention is based on the same concept as that of the embodiment of the method of the present invention, the technical effect brought by the embodiment of the method of the present invention is the same as that of the embodiment of the method of the present invention, and specific contents may be referred to the description in the embodiment of the method of the present invention, and are not described herein again.
Therefore, it can be seen that the system provided by the embodiment of the present invention can also make the start bits of the CPU and the TCM device compatible by adding the CPLD between the CPU and the TCM device, can perform effective communication connection, is simple and fast to set, has low cost, and is beneficial to expanding the range of use of the CPU and the existing device for communication connection.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (9)
1. A method for handling a communication protocol by a soar platform, comprising:
monitoring whether a detection signal output by an LPC protocol port of the CPU is in a low level or not through a CPLD connected between the CPU and a tightly coupled memory TCM device;
if the detection signal output by the LPC protocol port is low level, the CPLD forcibly sets the data signal in the LPC protocol port as a preset start bit signal;
and sending the start bit signal to the TCM equipment to enable the CPU to establish normal communication connection with the TCM equipment.
2. The method of claim 1, wherein the LPC protocol port specifically outputs three signals comprising:
a clock signal for timing, a detection signal for outputting a level, and a data signal for outputting a signal with a start bit.
3. The method of claim 1, wherein forcing the data signal in the LPC protocol port to be the predetermined start bit signal if the probing signal output by the LPC protocol port is low comprises:
and monitoring an LPC protocol port of the CPU, and if the LPC protocol port is in a low level, forcibly setting a start bit signal carried by a start bit signal line of the CPLD to 0101.
4. The method as claimed in claim 1, wherein said signaling the start bit to the TCM device, after the CPU establishing a normal communication connection with the TCM device, further comprises:
and after the CPU finishes the data transmission with the TCM equipment, the LPC protocol port is set to be a high level, and the CPLD continues to monitor the LPC protocol port.
5. A system for handling communication protocols by a soar platform, comprising:
the monitoring module is used for monitoring whether a detection signal output by an LPC protocol port of the CPU is in a low level or not through a CPLD connected between the CPU and the tightly coupled memory TCM equipment;
a setting module, configured to force, by the CPLD, to set a data signal in the LPC protocol port as a preset start bit signal if a detection signal output by the LPC protocol port is a low level;
and the connection establishing module is used for sending the start bit signal to the TCM equipment so as to enable the CPU to establish normal communication connection with the TCM equipment.
6. The system of claim 5, wherein the LPC protocol port is configured to output three signals comprising:
a clock signal for timing, a detection signal for outputting a level, and a data signal for outputting a signal with a start bit.
7. The system of claim 5, wherein the system further comprises:
and the high level monitoring module is used for continuing monitoring if the detection signal output by the LPC protocol port is high level.
8. The system of claim 5, wherein the setup module is specifically configured to:
and monitoring an LPC protocol port of the CPU, and if the LPC protocol port is in a low level, forcibly setting a start bit signal carried by a start bit signal line of the CPLD to 0101.
9. The system of claim 5, wherein the system further comprises:
and the high level setting module is used for setting the LPC protocol port to be a high level after the CPU completes data transmission with the TCM equipment, and then the CPLD continuously monitors the LPC protocol port.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610834623.8A CN107844449B (en) | 2016-09-20 | 2016-09-20 | Method and system for processing communication protocol by Feiteng platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610834623.8A CN107844449B (en) | 2016-09-20 | 2016-09-20 | Method and system for processing communication protocol by Feiteng platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107844449A CN107844449A (en) | 2018-03-27 |
CN107844449B true CN107844449B (en) | 2021-02-09 |
Family
ID=61657451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610834623.8A Active CN107844449B (en) | 2016-09-20 | 2016-09-20 | Method and system for processing communication protocol by Feiteng platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107844449B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888836A (en) * | 2019-11-29 | 2020-03-17 | 山东超越数控电子股份有限公司 | Method for realizing interrupt response by using BMC on Feiteng platform |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6326322B1 (en) * | 1999-10-29 | 2001-12-04 | Samsung Electronics Co., Ltd. | Method for depositing a silicon nitride layer |
CN102708028A (en) * | 2012-05-18 | 2012-10-03 | 中国人民解放军第二炮兵装备研究院第四研究所 | Trusted redundant fault-tolerant computer system |
CN104572226A (en) * | 2015-02-04 | 2015-04-29 | 浪潮(北京)电子信息产业有限公司 | Method and device for detecting mainboard starting abnormity |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5991841A (en) * | 1997-09-24 | 1999-11-23 | Intel Corporation | Memory transactions on a low pin count bus |
TW409204B (en) * | 1998-08-15 | 2000-10-21 | Winbond Electronics Corp | Expansion interface conversion device and conversion method therefor |
JP4682485B2 (en) * | 2001-09-06 | 2011-05-11 | 株式会社デンソー | Memory control device and serial memory |
CN100452004C (en) * | 2002-01-28 | 2009-01-14 | 威盛电子股份有限公司 | Circuit system and transmission method for PLC units to transmit mutually |
CN100373361C (en) * | 2006-03-14 | 2008-03-05 | 杭州华三通信技术有限公司 | LPC bus interface sequential conversion and converter of peripheral apparatus |
CN101989244B (en) * | 2009-08-05 | 2013-01-23 | 华为技术有限公司 | Signal conversion device and method as well as communication equipment |
JP6212396B2 (en) * | 2014-01-08 | 2017-10-11 | ルネサスエレクトロニクス株式会社 | Data processing device |
CN104318142A (en) * | 2014-10-31 | 2015-01-28 | 山东超越数控电子有限公司 | Trusted booting method of computer |
-
2016
- 2016-09-20 CN CN201610834623.8A patent/CN107844449B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6326322B1 (en) * | 1999-10-29 | 2001-12-04 | Samsung Electronics Co., Ltd. | Method for depositing a silicon nitride layer |
CN102708028A (en) * | 2012-05-18 | 2012-10-03 | 中国人民解放军第二炮兵装备研究院第四研究所 | Trusted redundant fault-tolerant computer system |
CN104572226A (en) * | 2015-02-04 | 2015-04-29 | 浪潮(北京)电子信息产业有限公司 | Method and device for detecting mainboard starting abnormity |
Also Published As
Publication number | Publication date |
---|---|
CN107844449A (en) | 2018-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20050165997A1 (en) | Data communication system | |
CN107111588A (en) | The data transfer of PCIe protocol is used via USB port | |
CN104321757A (en) | Device connect detection | |
WO2017063192A1 (en) | Charging method, mobile terminal, and charging device | |
WO2018001168A1 (en) | Method and apparatus for managing main board card and backup board card | |
JP2021531569A (en) | DisplayPort Alternate Mode Communication Detection | |
CN112579492A (en) | Connection method of universal serial bus hub device with different types of connection ports | |
CN108255776A (en) | A kind of I3C main equipments, master-slave system and the communication means of compatible APB buses | |
CN108920401B (en) | Multi-master multi-slave I2C communication method, system and node equipment | |
CN107844449B (en) | Method and system for processing communication protocol by Feiteng platform | |
CN110809002A (en) | Method for protocol conversion between robot and welding equipment and protocol conversion module | |
US20030229738A1 (en) | Controller interface | |
CN106169955B (en) | The safety certifying method and system of distribution network terminal wireless maintenance | |
CN110740085B (en) | Communication method, communication device and terminal based on parallel operation system | |
CN104360973A (en) | Communicating system, communicating method and relevant communicating devices | |
CN103885910A (en) | Method and system for multiple devices for IIC communication in main mode | |
US8341310B2 (en) | Method for adjusting the transmission speed of the electronic aid | |
CN109981394B (en) | Communication method and device based on enhanced CAN bus protocol analyzer | |
WO2018094868A1 (en) | Method and device for monitoring condition of charging link in real time | |
CN103793345B (en) | data terminal equipment and interface clock control method | |
CN104252430A (en) | State indicating method and electronic equipment | |
CN117834750B (en) | Device, method, system, equipment, medium and server for acquiring protocol data | |
CN115203098A (en) | Serial data transmission method and device, intelligent electronic equipment and storage medium | |
CN105991221B (en) | Data transmitting/receiving means and method and data receiving-transmitting system | |
CN101547103A (en) | Network device and method thereof for detecting adapter card type |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |