Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Ethernet communication method and device based on serial port

A communication method and communication device technology, applied in the network field, can solve the problems of lack of versatility, lack of scalability, and low efficiency, and achieve the effects of low cost, short development cycle, and cost reduction.

Active Publication Date: 2014-08-27
ZTE CORP
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1) The information carried by the data message is fixed without any scalability. Any change in the management content will lead to the redefinition of the protocol, and the software must be redeveloped from the driver to the upper-layer application;
[0005] 2) Each protocol layer of the embedded microcontroller is customized by each manufacturer and is not universal
[0006] In addition, the SLIP protocol layer has no checksum. If an error occurs in the packet transmitted by the SLIP line, it can only be found through the upper layer protocol, such as the header checksum of the IP (Internet Protocol, Internet Protocol) datagram, and the TCP (Transmission Control Protocol, transmission control protocol). control protocol) datagram header and data verification, etc., the efficiency is very low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Ethernet communication method and device based on serial port
  • Ethernet communication method and device based on serial port
  • Ethernet communication method and device based on serial port

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0045] In the first embodiment of the present invention, a serial port-based Ethernet communication method, such as figure 1 shown, including the following specific steps:

[0046] Step S101, after the sending end encapsulates the IP datagram and its verification data together into a SLIP datagram, and sends it to the receiving end through a serial line;

[0047] Specifically, step S101 includes the following process:

[0048] Adding a first protocol interface between the first IP protocol processing layer and the first SLIP protocol processing layer at the sending end;

[0049] The first protocol interface calculates verification data for the IP datagram, and encapsulates the verification data together with the IP datagram into an IP-like datagram;

[0050] The first SLIP protocol processing layer encapsulates the IP-like datagram into a SLIP datagram.

[0051] Further, the calculation process of the verification data of the IP datagram includes:

[0052] On the basis of ...

no. 2 example

[0065] In the second embodiment of the present invention, a serial port-based Ethernet communication device, such as figure 2 mentioned, including:

[0066] The sending end module 100 is used for encapsulating the IP datagram and its verification data together into a SLIP datagram and sending it to the receiving end through a serial line;

[0067] Specifically, the sending end module 100 specifically includes:

[0068] The first IP protocol processing layer 11 is used to generate IP datagrams;

[0069] The first protocol interface 12 is located between the first IP protocol processing layer 11 and the first SLIP protocol processing layer 13, and is used to calculate check data for the IP datagram, and encapsulate the check data together with the IP datagram into IP-like datagram;

[0070] The first SLIP protocol processing layer 13 is configured to encapsulate IP-like datagrams into SLIP datagrams.

[0071] Further, the calculation process of the verification data of the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an Ethernet communication method and device based on a serial port. The method includes the following steps: a sending end packages an IP datagram and check data thereof into an SLIP datagram and then sends the SLIP datagram to a receiving end through a serial line; the receiving end receives the SLIP datagram through the serial line and carries out check on the IP datagram based on the check data in the SLIP datagram and when the check is passed, analysis processing is carried out on the IP datagram; and then an improved SLIP protocol is operated on the serial line of sending end and receiving end devices so as to realize operation of a TCP / IP protocol. In the serial line, the data is received and sent through a URAT interface and during transmission, the data is loaded through an RS485 differential serial bus so that the Ethernet communication device has the advantages of being high in anti-interference capability and at the same time, through modification of the SLIP protocol, the Ethernet communication device is enabled to have a link layer data check function.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a serial port-based Ethernet communication method and device. Background technique [0002] Most of the current embedded MCU (Micro Controller Unit, microcontroller) communication interface uses UART (Universal Asynchronous Receiver / Transmitter, Universal Asynchronous Receiver / Transmitter) interface (usually called serial port), if its network layer protocol uses PPP (Point to Point Protocol, point-to-point protocol), it is necessary to implement the link control protocol, network control protocol and authentication protocol, which has high requirements for embedded microcontrollers, which is not conducive to reducing costs; and when the network layer protocol of the MCU consists of the IP protocol layer and When the underlying SLIP (Serial Line Internet Protocol, serial line interface protocol) layer is implemented, the SLIP protocol was originally designed to be used on the RS...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/06H04L1/00
Inventor 王勇邹鹏
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products