Data link protocol conversion system
A protocol conversion and data link technology, which is applied in the field of data link protocol conversion system, can solve the problems of low transmission rate and transmission efficiency, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] This embodiment provides a data link protocol conversion system, combined with figure 1 , figure 2 , the host computer requires the system to work in the internal clock mode, with a clock frequency of 115.2kHz, and the processing is performed in order of steps 1, 2, and 3:
[0061] 1. The system monitors the port communicating with the upper computer in real time. The upper computer sends the byte 0x49 to the system as agreed, and the system receives the control command and enters step 2.
[0062] 2. The system analyzes the received byte and makes a judgment. If the received byte is wrong and it is not the agreed byte, it will send a 0xEE failure signal to the host computer, indicating that the setting is wrong; if the 0x49 byte is received correctly, the system will That is to say, the clock mode of the DDCMP sending module in the UART to DDCMP module and the DDCMP data frame acquisition and analysis module in the DDCMP to UART module is set to the internal clock mo...
Embodiment 2
[0065] This embodiment provides a data link protocol conversion system, combined with figure 1 , image 3 , the processing of converting UART signal to DDCMP signal is processed in parallel by UART data acquisition module, DDCMP data frame analysis processing module and DDCMP sending module, and each module is executed in sequence according to the corresponding steps:
[0066] UART data data frame acquisition module:
[0067] 1. The module receives bytes according to the UART format, and looks for 0xC0 as the beginning of a message. After receiving 0xC0, go to step 2; otherwise, go to step 1.
[0068] 2. Continue to receive the next byte, if it is still 0xC0, then execute this step again; otherwise, put 0xC0 and the newly received byte into the receiving buffer queue FIFO1, and enter step 3.
[0069] 3. Receive a new byte, and determine whether it is 0xC0, if not, store the received byte in FIFO1, and re-enter step 3; otherwise, put the received 0xC0 into FIFO1, and enter s...
Embodiment 3
[0083] This embodiment provides a data link protocol conversion system, combined with figure 1 , Figure 4 , the DDCMP signal is converted into a UART signal by using the DDCMP data frame acquisition and analysis module and the UART sending module for parallel processing, and each module is executed in sequence according to the corresponding steps:
[0084] DDCMP data frame acquisition and analysis module:
[0085] 1. Build an 8-bit register; sample the DDCMP signal according to the synchronous clock signal, shift the middle value of the register to the lower bit by 1 bit, and place the latest sampled bit at the highest bit of the register; compare the byte formed by the middle value of the register with the synchronization code SYN , if they are different, go to step 1 again; if they are the same, go to step 2.
[0086] 2. Sampling the DDCMP signal according to the synchronous clock signal, and receiving it by byte (that is, a binary number composed of 8 samples). Accordin...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


