CN111885431A - Communication control method and device - Google Patents

Communication control method and device Download PDF

Info

Publication number
CN111885431A
CN111885431A CN202010766852.7A CN202010766852A CN111885431A CN 111885431 A CN111885431 A CN 111885431A CN 202010766852 A CN202010766852 A CN 202010766852A CN 111885431 A CN111885431 A CN 111885431A
Authority
CN
China
Prior art keywords
communication control
command
control board
communication
cache
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.)
Granted
Application number
CN202010766852.7A
Other languages
Chinese (zh)
Other versions
CN111885431B (en
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.)
Beijing Institute of Environmental Features
Original Assignee
Beijing Institute of Environmental Features
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 Beijing Institute of Environmental Features filed Critical Beijing Institute of Environmental Features
Priority to CN202010766852.7A priority Critical patent/CN111885431B/en
Publication of CN111885431A publication Critical patent/CN111885431A/en
Application granted granted Critical
Publication of CN111885431B publication Critical patent/CN111885431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Abstract

The invention discloses a communication control method and device, and relates to the technical field of photoelectricity. The method comprises the following steps: after receiving a command sent by an upper computer, a first communication control board writes data carried by the command into a first cache and sends an interrupt signal to a second communication control board; after receiving the interrupt signal, the second communication control board reads the data carried by the command from the first cache, writes the data carried by the command into the image processing board at the appointed moment when the command is an image processing starting command, and writes first communication state information into the second cache; and the first communication control board reads the first communication state information from the second cache, generates a first response data frame according to the first communication state information and sends the first response data frame to the upper computer. By the method, the problem that the communication fault is mistakenly reported due to time sequence delay caused by communication by adopting the traditional asynchronous control communication chip is solved.

Description

Communication control method and device
Technical Field
The present invention relates to the field of optoelectronic technologies, and in particular, to a communication control method and apparatus.
Background
Existing optoelectronic systems typically consist of two hardware circuit boards: one is a communication control board, and the other is an image processing board. The communication control board and the upper computer adopt an asynchronous communication mode, and the communication control board is mainly used for receiving a control command of the upper computer, analyzing the control command, sending the control command to the image processing board to control image processing, and outputting an image processing result to the upper computer.
In the process of implementing the invention, the inventor of the invention finds that the prior art has at least the following problems: the traditional communication control panel is realized by a communication control chip, when an asynchronous communication mode is adopted between an upper computer and the traditional communication control chip and the information time sequence is strictly required to be returned, the communication control panel possibly returns the upper computer untimely after receiving data, and the communication fault is mistakenly reported.
Therefore, in view of the above disadvantages, it is desirable to provide a new communication control method and apparatus to solve the problem of communication failure due to timing delay caused by communication using a conventional asynchronous control communication chip.
Disclosure of Invention
Technical problem to be solved
The technical problem to be solved by the invention is to solve the problem of communication fault false alarm caused by time sequence delay caused by communication by adopting the traditional asynchronous control communication chip.
(II) technical scheme
In order to solve the above technical problem, in one aspect, the present invention provides a communication control method.
The communication control method of the present invention is applied to a communication control apparatus including a first communication control board and a second communication control board; the method comprises the following steps: after receiving a command sent by an upper computer, a first communication control board writes data carried by the command into a first cache and sends an interrupt signal to a second communication control board; after receiving the interrupt signal, the second communication control board reads the data carried by the command from the first cache; when the command is an image processing starting command, the second communication control board writes data carried by the command into the image processing board at an appointed moment and writes first communication state information into a second cache; the first communication state information is used for indicating that the communication between the communication control device and the upper computer is normal; and the first communication control board reads first communication state information from the second cache, generates a first response data frame according to the first communication state information, and sends the first response data frame to the upper computer.
Optionally, the writing, by the first communication control board, the data carried by the command into the first buffer, and sending the interrupt signal to the second communication control board includes: the first communication control board decodes the command; after detecting a preset frame header identifier from the command, the first communication control board starts to receive serial data positioned behind the frame header identifier and writes the serial data into a first cache until detecting the preset frame tail identifier from the command; and after detecting the preset frame tail identification from the command, the first communication control board sends an interrupt signal to the second communication control board.
Optionally, the method further comprises: after receiving the command sent by the upper computer, the first communication control board performs CRC on the data carried by the command and writes a CRC result into a first cache.
Optionally, the method further comprises: and the second communication control board confirms that the CRC result stored in the first cache corresponding to the data carried by the command indicates that the CRC passes before the second communication control board writes the data carried by the command into the image processing board at the appointed moment.
Optionally, the method further comprises: the second communication control board writes second communication state information into the second cache under the condition that a CRC result stored in the first cache corresponding to the data carried by the command indicates that the CRC fails; the second communication state information is used for indicating that the communication between the communication control device and the upper computer is abnormal; and the first communication control board reads second communication state information from the second cache, generates a second response data frame according to the second communication state information, and sends the second response data frame to the upper computer.
Optionally, the method further comprises: the first communication control board starts timing after receiving a command sent by the upper computer; the first communication control board confirms that the current time has reached the timing end time before reading the first communication state information.
Optionally, the writing, by the second communication control board, the data carried by the command into the image processing board at the appointed time includes: and the second communication control board writes the data carried by the command into the dual-port memory at the appointed moment, and then the image processing board reads the data carried by the command from the dual-port memory.
Optionally, the method further comprises: when the command is an image processing result query command, the second communication control board reads an image processing result from the dual-port memory and writes the image processing result into a second cache; and the first communication control board reads an image processing result from the second cache, generates a third response data frame according to the image processing result, and sends the third response data frame to the upper computer.
Optionally, the first communication control board is an FPGA chip, and the second communication control board is a DSP chip.
In order to solve the above technical problem, in another aspect, the present invention further provides a communication control apparatus.
The communication control device of the present invention includes: the first communication control panel is used for writing data carried by a command into a first cache after receiving the command sent by the upper computer and sending an interrupt signal to the second communication control panel; the second communication control board is used for reading the data carried by the command from the first cache after receiving the interrupt signal; the second communication control board is also used for writing data carried by the command into the image processing board at an appointed moment and writing first communication state information into a second cache when the command is an image processing starting command; the first communication state information is used for indicating that the communication between the communication control device and the upper computer is normal; and the first communication control board is used for reading first communication state information from the second cache, generating a first response data frame according to the first communication state information, and sending the first response data frame to the upper computer.
(III) advantageous effects
The technical scheme of the invention has the following advantages: different from the traditional method that one communication control panel is directly interacted with an upper computer and an image control panel, the invention is provided with a first communication control panel and a second communication control panel, the first communication control panel is responsible for receiving an image processing starting command of the upper computer and storing command data into the first cache, and is responsible for reading first communication state information from the second cache, generating a first response data frame according to the first communication state information and returning the first response data frame to the upper computer, reading command data from the first buffer at a given time through the second communication control board, and writing the command data to the image processing board, and writing the first communication state information into the second cache, the problem of communication fault error due to time sequence delay caused by communication by adopting a traditional asynchronous control communication chip can be solved, and normal communication with an upper computer is ensured.
Drawings
Fig. 1 is a schematic main flow chart of a communication control method according to a first embodiment of the present invention;
fig. 2 is a partial flow chart of a communication control method according to a second embodiment of the present invention;
fig. 3 is a partial flowchart of a communication control method according to a second embodiment of the present invention;
fig. 4 is a partial flowchart of a communication control method according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of main constituent modules of a communication control apparatus according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Example one
The communication control method of the embodiment of the invention is applied to a communication control device, and the communication control device comprises the following steps: the first communication control panel, second communication control panel. As shown in fig. 1, a communication control method provided in an embodiment of the present invention includes the following steps:
step S101: after receiving a command sent by an upper computer, the first communication control board writes data carried by the command into a first cache and sends an interrupt signal to the second communication control board.
In an alternative embodiment, step S101 comprises: the first communication control board decodes the command; after detecting a preset frame header identifier from the command, the first communication control board starts to receive serial data positioned behind the frame header identifier and writes the serial data into a first cache until detecting the preset frame tail identifier from the command; and after detecting the preset frame tail identification from the command, the first communication control board sends an interrupt signal to the second communication control board. The first buffer may also be referred to as a "receiving buffer", which may adopt a FIFO (first in first out) buffer structure or other buffer structures.
For example, assuming that the communication protocol used when the first communication control board and the upper computer perform asynchronous communication is an HDLC (high-level data link control) protocol, after receiving a command of the upper computer, the first communication control board first decodes the command of the upper computer according to the HDLC protocol, and detects a "7E" frame header identifier of the communication interface serial. After detecting the frame head mark, the first communication control board starts to receive serial data behind the frame head and writes the serial data into the first cache until detecting the frame tail mark. After the frame tail identification is detected, the first communication control board considers that the reception of one frame of data is finished, and sends an interrupt signal to the second communication control board.
Further, the first communication control board can adopt an FPGA chip, and the second communication control board can adopt a DSP chip. In specific implementation, the first communication control board and the second communication control board can also adopt other chips. For example, the first communication control board and the second communication control board both use FPGA chips.
Step S102: after receiving the interrupt signal, the second communication control board reads the data carried by the command from the first cache; and when the command is an image processing starting command, the second communication control board writes data carried by the command into the image processing board at an appointed moment and writes first communication state information into the second cache.
The first communication state information is used to indicate that the communication between the communication control device and the upper computer is normal, for example, the first communication state information may be specifically "correct communication".
Exemplarily, step S102 may include: after receiving an interrupt signal sent by the first communication control board, the second communication control board reads the data carried by the command from the first cache and analyzes the data carried by the command according to a communication protocol; when the command is analyzed to be an image processing starting command, the second communication control board writes data carried by the command into a memory between the second communication control board and the image processor at an appointed moment, then the image processor can read the data carried by the command from the memory, and the second communication control board writes first communication state information into the second cache. The memory can be a dual-port memory or other physical memories; the second buffer, which may also be referred to as a "transmit buffer," may optionally employ a FIFO buffer structure or other buffer structure.
Step S103: and the first communication control board reads first communication state information from the second cache, generates a first response data frame according to the first communication state information, and sends the first response data frame to the upper computer.
In this step, the first communication control board reads the data information from the second buffer. And when the read state data is first communication state information, the first communication control board generates a first response data frame according to the first communication state information. Wherein the generating of the first response data frame according to the first communication state information corresponds to a data encoding process, which may include: and adding a frame head identifier, performing CRC (cyclic redundancy check) calculation on the first communication state data, adding a calculated CRC value into the data frame, and adding a frame tail identifier to obtain a first response data frame. And then, the first communication control panel sends the obtained first response data frame to the upper computer.
In the embodiment of the invention, the communication control device is provided with a first communication control panel and a second communication control panel, the first communication control panel is responsible for receiving an image processing starting command of an upper computer and storing command data into a first cache, and is responsible for reading first communication state information from a second cache to generate a first response data frame according to the command data, and returns the first response data frame to the upper computer, the second communication control panel is responsible for reading the command data from the first cache at an appointed time, writing the command data into the image processing panel, and writing the first communication state information into the second cache, so that the problem of communication fault misrepresentation caused by time sequence delay caused by communication by adopting a traditional asynchronous control communication chip can be solved, and normal communication between the communication control device and the upper computer is ensured.
Example two
The communication control method of the embodiment of the invention is applied to a communication control device, and the communication control device comprises the following steps: the first communication control panel, second communication control panel. The communication control method according to the embodiment of the present invention is described in detail below with reference to fig. 2 to 4.
Fig. 2 is a partial flowchart of a communication control method according to a second embodiment of the present invention. As shown in fig. 2, the communication control method in the embodiment of the present invention includes the following steps:
step S201: after receiving a command sent by an upper computer, a first communication control board writes data carried by the command into a first cache.
In an alternative embodiment, step S201 includes: the first communication control board decodes the command; after detecting the preset frame head identification from the command, the first communication control board starts to receive serial data positioned behind the frame head identification and writes the serial data into a first cache until detecting the preset frame tail identification from the command. The first buffer may also be referred to as a "receiving buffer", which may adopt a FIFO (first in first out) buffer structure or other buffer structures.
For example, assuming that the communication protocol used when the first communication control board and the upper computer perform asynchronous communication is an HDLC (high-level data link control) protocol, after receiving a command of the upper computer, the first communication control board first decodes the command of the upper computer according to the HDLC protocol, and detects a "7E" frame header identifier of the communication interface serial. After detecting the frame head mark, the first communication control board starts to receive serial data behind the frame head and writes the serial data into the first cache until detecting the frame tail mark. After detecting the end-of-frame flag, the first communications board considers that reception of one frame of data is finished.
Further, the first communication control board can adopt an FPGA chip, and the second communication control board can adopt a DSP chip. In specific implementation, the first communication control board and the second communication control board can also adopt other chips. For example, the first communication control board and the second communication control board both use FPGA chips.
Step S202: and the first communication control panel performs CRC on the data carried by the command and writes a CRC result into a first cache.
Specifically, the steps include: the first communication control board performs CRC calculation according to the data carried by the command, and compares the calculated CRC value with the CRC value carried by the command; if the two are the same, confirming that the CRC passes, and writing a first CRC result into a first cache; if the two are different, the CRC check is confirmed to be not passed, and the second CRC check result is written into the first cache. Wherein the first CRC result indicates that the CRC check passes, and the second CRC result indicates that the CRC check passes. Illustratively, the first CRC check result may be represented by "1" and the second CRC check result may be represented by "0".
In the embodiment of the invention, the normal communication between the command and the upper computer can be further ensured by performing CRC check on the data carried by the command and writing the CRC check result into the first cache.
Step S203: the first communication control board sends an interrupt signal to the second communication control board.
And after detecting the preset frame tail identification from the command, the first communication control board sends an interrupt signal to the second communication control board. Thereafter, the process flow shown in FIG. 3 may be executed.
Fig. 3 is a partial flowchart of a communication control method according to a second embodiment of the present invention. As shown in fig. 3, the communication control method in the embodiment of the present invention further includes the following steps:
step S301: the second communication control board receives the interrupt signal.
Step S302: and the second communication control board reads the data carried by the command from the first cache.
And after receiving the interrupt signal sent by the first communication control board, the second communication control board reads the data carried by the command from the first cache and analyzes the data carried by the command according to a communication protocol. Executing step S303 if it is analyzed that the command is an image processing start command; in case that it is analyzed that the command is an image processing result query command, step S306 is performed.
Step S303: the second communication control board judges whether the CRC check passes or not.
Specifically, the second communication control board reads the CRC check result in the command data from the first buffer. When the CRC check result is the first CRC check result, confirming that the CRC check is passed, and performing step S304; when the CRC check result is the second CRC check result, it is confirmed that the check is not passed, and step S305 is performed.
Step S304: and the second communication control board writes the data carried by the command into the image processing board at the appointed moment and writes the first communication state information into the second cache.
For example, the writing of the data carried by the command into the image processing board at the appointed time by the second communication control board may include: and the second communication control board writes the data carried by the command into the dual-port memory at the appointed moment, and then the image processing board reads the data carried by the command from the dual-port memory. Meanwhile, the second communication control board writes the first communication state information into the second cache. The first communication state information is used to indicate that the communication between the communication control device and the upper computer is normal, for example, the first communication state information may be specifically "correct communication".
Further, after step S304, step S307 is executed.
Step S305: and the second communication control board writes the second communication state information into the second cache.
The second communication status information is used to indicate that the communication between the communication control device and the upper computer is abnormal, for example, the second communication status information may be specifically "communication failure". Further, after step S305, step S307 is executed.
Step S306: and reading an image processing result from the dual-port memory, and writing the image processing result into a second cache.
And under the condition that the command is an image processing result query command, the second communication control board reads the image processing result from the dual-port memory and writes the image processing result into a second cache.
Step S307: the interrupt is ended.
Fig. 4 is a partial flowchart of a communication control method according to a second embodiment of the present invention. As shown in fig. 4, the communication control method in the embodiment of the present invention further includes the following steps:
step S401: and the first communication control panel performs timing after receiving the command sent by the upper computer.
In this step, the first communication control board starts timing after receiving one frame of command data transmitted from the upper computer. The time period of the timing can be flexibly set, for example, it can be set to 2.5ms or 3ms, etc.
Step S402: the first communication control board judges whether the current time reaches the timing end time.
When the current time has reached the counting end time, step S403 is executed; otherwise, the step S402 is continuously executed.
Step S403: and the first communication control board reads data from the second buffer.
In the step, the first communication control board reads data which needs to be sent to the upper computer from the second cache. Wherein the data is first communication state information, second communication state information or image processing result data.
Step S404: and the first communication control board generates a response data frame according to the read data and sends the response data frame to the upper computer.
In the step, when the read data is first communication state information, the first communication control board generates a first response data frame according to the first communication state information and sends the first response data frame to the upper computer; when the read data is second communication state information, the first communication control board generates a second response data frame according to the second communication state information and sends the second response data frame to the upper computer; and when the read data is image processing result data, the first communication control board generates a third response data frame according to the image processing result data and sends the third response data frame to the upper computer.
In the embodiment of the invention, the problem of communication fault error due to time sequence delay caused by communication by adopting the traditional asynchronous control communication chip can be solved through the steps, and normal communication with an upper computer is ensured.
EXAMPLE III
Fig. 5 is a schematic diagram of main constituent modules of a communication control apparatus according to a third embodiment of the present invention. As shown in fig. 5, the communication control apparatus 500 in the embodiment of the present invention includes: a first communication control board 501 and a second communication control board 502.
The first communication control board 501 is configured to, after receiving a command sent by an upper computer, write data carried by the command into a first cache, and send an interrupt signal to the second communication control board 502.
In an optional embodiment, the writing, by the first communication board, the data carried by the command into the first buffer, and sending the interrupt signal to the second communication board 502 includes: the first communication control board 501 decodes the command; after detecting the preset frame header identifier from the command, the first communication control board 501 starts to receive serial data located behind the frame header identifier and write the serial data into the first cache until detecting the preset frame end identifier from the command; after detecting the preset end-of-frame flag from the command, the first communication board 501 sends an interrupt signal to the second communication board 502. The first buffer may also be referred to as a "receiving buffer", which may adopt a FIFO (first in first out) buffer structure or other buffer structures.
For example, assuming that the communication protocol used when the first communication control board and the upper computer perform asynchronous communication is an HDLC (high-level data link control) protocol, after receiving a command of the upper computer, the first communication control board first decodes the command of the upper computer according to the HDLC protocol, and detects a "7E" frame header identifier of the communication interface serial. After detecting the frame head mark, the first communication control board starts to receive serial data behind the frame head and writes the serial data into the first cache until detecting the frame tail mark. After the frame tail identification is detected, the first communication control board considers that the reception of one frame of data is finished, and sends an interrupt signal to the second communication control board.
Further, the first communication control board 501 may employ an FPGA chip, and the second communication control board 502 may employ a DSP chip. In specific implementation, the first communication control board and the second communication control board can also adopt other chips. For example, the first communication control board and the second communication control board both use FPGA chips.
The second communication control board 502 is configured to read data carried by the command from the first cache after receiving the interrupt signal; the second communication control board 502 is further configured to, when the command is an image processing start command, write data carried by the command into the image processing board at an appointed time, and write first communication state information into the second cache.
Specifically, after receiving an interrupt signal sent by the first communication control board 501, the second communication control board 502 reads the data carried by the command from the first buffer, and analyzes the data carried by the command according to a communication protocol; when the command is analyzed to be an image processing start command, the second communication control board 502 writes the data carried by the command into a memory between the second communication control board and the image processor at an appointed time, then the image processor can read the data carried by the command from the memory, and the second communication control board 502 writes the first communication state information into the second cache.
The first communication state information is used to indicate that the communication between the communication control device and the upper computer is normal, for example, the first communication state information may be specifically "correct communication".
The memory can be a dual-port memory or other physical memories; the second buffer, which may also be referred to as a "transmit buffer," may optionally employ a FIFO buffer structure or other buffer structure.
The first communication control board 501 is further configured to read first communication state information from the second cache, generate a first response data frame according to the first communication state information, and send the first response data frame to the upper computer.
Illustratively, the first communication control board 501 reads data information from the second buffer. When the read status data is the first communication status information, the first communication control board 501 generates a first response data frame according to the first communication status information. Wherein the generating of the first response data frame according to the first communication state information corresponds to a data encoding process, which may include: and adding a frame head identifier, performing CRC (cyclic redundancy check) calculation on the first communication state data, adding a calculated CRC value into the data frame, and adding a frame tail identifier to obtain a first response data frame. Then, the first communication control board 501 sends the obtained first response data frame to the upper computer.
In the embodiment of the invention, the communication control device is provided with a first communication control panel and a second communication control panel, the first communication control panel is responsible for receiving an image processing starting command of an upper computer and storing command data into a first cache, and is responsible for reading first communication state information from a second cache to generate a first response data frame according to the command data, and returns the first response data frame to the upper computer, the second communication control panel is responsible for reading the command data from the first cache at an appointed time, writing the command data into the image processing panel, and writing the first communication state information into the second cache, so that the problem of communication fault misrepresentation caused by time sequence delay caused by communication by adopting a traditional asynchronous control communication chip can be solved, and normal communication between the communication control device and the upper computer is ensured.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A communication control method is applied to a communication control apparatus including a first communication control board and a second communication control board; the method comprises the following steps:
after receiving a command sent by an upper computer, a first communication control board writes data carried by the command into a first cache and sends an interrupt signal to a second communication control board;
after receiving the interrupt signal, the second communication control board reads the data carried by the command from the first cache; when the command is an image processing starting command, the second communication control board writes data carried by the command into the image processing board at an appointed moment and writes first communication state information into a second cache; the first communication state information is used for indicating that the communication between the communication control device and the upper computer is normal;
and the first communication control board reads first communication state information from the second cache, generates a first response data frame according to the first communication state information, and sends the first response data frame to the upper computer.
2. The method of claim 1, wherein the first communication board writing the data carried by the command to a first buffer, and sending an interrupt signal to a second communication board comprises:
the first communication control board decodes the command; after detecting a preset frame header identifier from the command, the first communication control board starts to receive serial data positioned behind the frame header identifier and writes the serial data into a first cache until detecting the preset frame tail identifier from the command; and after detecting the preset frame tail identification from the command, the first communication control board sends an interrupt signal to the second communication control board.
3. The method of claim 2, further comprising:
after receiving the command sent by the upper computer, the first communication control board performs CRC on the data carried by the command and writes a CRC result into a first cache.
4. The method of claim 3, further comprising:
and the second communication control board confirms that the CRC result stored in the first cache corresponding to the data carried by the command indicates that the CRC passes before the second communication control board writes the data carried by the command into the image processing board at the appointed moment.
5. The method of claim 4, further comprising:
the second communication control board writes second communication state information into the second cache under the condition that a CRC result stored in the first cache corresponding to the data carried by the command indicates that the CRC fails; the second communication state information is used for indicating that the communication between the communication control device and the upper computer is abnormal;
and the first communication control board reads second communication state information from the second cache, generates a second response data frame according to the second communication state information, and sends the second response data frame to the upper computer.
6. The method of claim 1, further comprising:
the first communication control board starts timing after receiving a command sent by the upper computer; the first communication control board confirms that the current time has reached the timing end time before reading the first communication state information.
7. The method of claim 1, wherein the second communication control board writing the data carried by the command to the image processing board at the appointed time comprises: and the second communication control board writes the data carried by the command into the dual-port memory at the appointed moment, and then the image processing board reads the data carried by the command from the dual-port memory.
8. The method of claim 7, further comprising:
when the command is an image processing result query command, the second communication control board reads an image processing result from the dual-port memory and writes the image processing result into a second cache;
and the first communication control board reads an image processing result from the second cache, generates a third response data frame according to the image processing result, and sends the third response data frame to the upper computer.
9. The method of claim 1,
the first communication control panel is an FPGA chip, and the second communication control panel is a DSP chip.
10. A communication control apparatus, characterized in that the apparatus comprises:
the first communication control panel is used for writing data carried by a command into a first cache after receiving the command sent by the upper computer and sending an interrupt signal to the second communication control panel;
the second communication control board is used for reading the data carried by the command from the first cache after receiving the interrupt signal; the second communication control board is also used for writing data carried by the command into the image processing board at an appointed moment and writing first communication state information into a second cache when the command is an image processing starting command; the first communication state information is used for indicating that the communication between the communication control device and the upper computer is normal;
the first communication control panel is further used for reading first communication state information from the second cache, generating a first response data frame according to the first communication state information, and sending the first response data frame to the upper computer.
CN202010766852.7A 2020-08-03 2020-08-03 Communication control method and device Active CN111885431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010766852.7A CN111885431B (en) 2020-08-03 2020-08-03 Communication control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010766852.7A CN111885431B (en) 2020-08-03 2020-08-03 Communication control method and device

Publications (2)

Publication Number Publication Date
CN111885431A true CN111885431A (en) 2020-11-03
CN111885431B CN111885431B (en) 2022-06-17

Family

ID=73205244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010766852.7A Active CN111885431B (en) 2020-08-03 2020-08-03 Communication control method and device

Country Status (1)

Country Link
CN (1) CN111885431B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6856615B1 (en) * 2000-08-11 2005-02-15 Occam Networks Stratum traceable clock driver for voice dejittering and control
CN101261129A (en) * 2008-02-22 2008-09-10 北京航空航天大学 Integrated navigation computer based on DSP and FPGA
CN204228884U (en) * 2014-09-11 2015-03-25 国家电网公司 A kind of Distributed power net fault recovery controller
CN106292418A (en) * 2016-07-19 2017-01-04 浙江省大气探测技术保障中心 Radar operational factor and Collection panel
CN106462517A (en) * 2014-04-02 2017-02-22 大陆汽车有限公司 Early logo display in multiprocessor architecture
CN106776402A (en) * 2016-12-19 2017-05-31 中国电子科技集团公司第二十研究所 A kind of SCM Based serial communication controlling system and method
CN107092574A (en) * 2017-03-23 2017-08-25 北京遥测技术研究所 A kind of Multi-serial port suitable for electronic equipment on satellite caches multiplexing method
CN109005070A (en) * 2018-08-31 2018-12-14 北京计算机技术及应用研究所 A kind of hot standby equipment of dual-computer redundancy based on shared drive
CN109918230A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 A kind of business board abnormal restoring method and system
CN110174864A (en) * 2019-05-28 2019-08-27 苏州创鑫激光科技有限公司 Control method, computer readable storage medium and the laser marking machine of laser marking
CN110955107A (en) * 2019-11-18 2020-04-03 长春理工大学 Ultra-high-speed time resolution camera shooting device and method based on reflection imaging technology
CN111143068A (en) * 2019-12-27 2020-05-12 广东博智林机器人有限公司 File operation method and device and embedded controller

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6856615B1 (en) * 2000-08-11 2005-02-15 Occam Networks Stratum traceable clock driver for voice dejittering and control
CN101261129A (en) * 2008-02-22 2008-09-10 北京航空航天大学 Integrated navigation computer based on DSP and FPGA
CN106462517A (en) * 2014-04-02 2017-02-22 大陆汽车有限公司 Early logo display in multiprocessor architecture
CN204228884U (en) * 2014-09-11 2015-03-25 国家电网公司 A kind of Distributed power net fault recovery controller
CN106292418A (en) * 2016-07-19 2017-01-04 浙江省大气探测技术保障中心 Radar operational factor and Collection panel
CN106776402A (en) * 2016-12-19 2017-05-31 中国电子科技集团公司第二十研究所 A kind of SCM Based serial communication controlling system and method
CN107092574A (en) * 2017-03-23 2017-08-25 北京遥测技术研究所 A kind of Multi-serial port suitable for electronic equipment on satellite caches multiplexing method
CN109005070A (en) * 2018-08-31 2018-12-14 北京计算机技术及应用研究所 A kind of hot standby equipment of dual-computer redundancy based on shared drive
CN109918230A (en) * 2019-02-20 2019-06-21 杭州迪普科技股份有限公司 A kind of business board abnormal restoring method and system
CN110174864A (en) * 2019-05-28 2019-08-27 苏州创鑫激光科技有限公司 Control method, computer readable storage medium and the laser marking machine of laser marking
CN110955107A (en) * 2019-11-18 2020-04-03 长春理工大学 Ultra-high-speed time resolution camera shooting device and method based on reflection imaging technology
CN111143068A (en) * 2019-12-27 2020-05-12 广东博智林机器人有限公司 File operation method and device and embedded controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邓月: "基于FPGA+ARM的高速图像数据采集板的设计", 《电子世界》 *

Also Published As

Publication number Publication date
CN111885431B (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN100336331C (en) Methodology for detecting lost packets
US8209594B2 (en) Sending device, receiving device, communication control device, communication system, and communication control method
JP3996928B2 (en) How to handle corrupted data
CN111885431B (en) Communication control method and device
US20030154288A1 (en) Server-client system and data transfer method used in the same system
US8291270B2 (en) Request processing device, request processing system, and access testing method
CN116244255A (en) RSMC chip, chip multi-stage starting method and Beidou communication navigation device
JP4455393B2 (en) Programmable logic controller
US20130067130A1 (en) Bus control apparatus and bus control method
KR101086599B1 (en) Uncertain data arrival time
US8625585B2 (en) Switch apparatus
CN106685584B (en) HDLC transceiver controller based on FPGA
US8910007B2 (en) Apparatus and method for error check of transmission data
WO2008062511A1 (en) Multiprocessor system
CN112346922B (en) Server device and communication protocol method thereof
KR940001702B1 (en) Dual-writing device and method using latches
CN115237702A (en) Error injection test method for 1553B protocol bus chip
CN118034993A (en) Method and device for protecting stored data, electronic equipment and storage medium
CN117376273A (en) Data transmission method, device, equipment and medium
JP2005277552A (en) Bus retry control system and data communication unit
CN116244254A (en) RSMC chip, chip channel self-adaptive loading method and Beidou communication navigation device
JPH0784897A (en) Information processing system suitable for data transfer between equipments
JP3027439B2 (en) Time split bus control circuit
CN115794699A (en) Data writing method based on SPI communication, electronic terminal and storage medium
JP2007201786A (en) Transmission error detection system, and transmitter

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