91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫

CAN-bus interconnects Gateway Design and Implementation

Abstract: This paper systematically studies the CAN bus and Ethernet interconnection technical points, the first analysis of interconnect technology in the realization of the difficulties encountered in the process - protocol conversion. Then a CAN bus and Ethernet system interconnect design and detail of its system software and hardware realization. In order to improve system performance, high-speed micro Kong Zhiqi SX52 to design embedded transparent gateway, detailed description Leyong SX52 in the TCP / IP protocol stack implementation approach to the Wangluo SX52 strong agreement Chulinengli ensure 了 overall system performance upgrade.

1 Introduction

Technology and social development, to the late 20th century globalization, competition became intense. Competition have gradually implemented computer integrated manufacturing system, with system integration, information integration perspective to organize industrial production. In this system, intelligent field devices for the realization of multi-point digital communications, computer and control technology and computer networks closer together, resulting in a live environment in industrial operation, reliable performance, low cost field bus (FieldBus) technology.

Fieldbus is a manufacturing site for the lowest communication network, which implements a computer-based on-site survey control equipment or equipment, two-way serial multi-node digital communications. Fieldbus technology is the key to automatic control systems and field devices with communication capabilities, to connect them into a network system, on-site communication network and control system integration. As the network system, which is open unified communications protocol. CAN bus, field bus technology is formed in the industrial application of a mature technical standards. It's an agreement based on ISO / OSI model basis, but only the bottom of the model using the physical layer, data link layer and the top of the application layer. Automation systems in large enterprises, the upper layer of corporate management and production monitoring are commonly used Ethernet and PC, while the lower plant site are based on field bus and SCM monitoring equipment. Upper and lower levels of communication, usually in industrial control machine plus Ethernet card, plus slots on the PC-interface card or EPP parallel port printer interface card to achieve. This connection the high cost, long development cycle. In view of this situation, we design a separate CAN Ethernet gateway interconnection system, successfully Ethernet and CAN bus network of existing direct data association.

2 System Design

CAN bus is a bus-based control network interconnect devices. In the CAN bus devices can be mounted up to 110 nodes, the devices will be free to communicate with each other to achieve complex network control system. But the device information layer can not directly reach the information management, in order to enter the information management device information through a data gateway should.

Here we designed a SX52 gateway for CAN and Ethernet interconnect. Overall system is divided into three parts: on-site monitoring network (CAN network), embedded transparent SX52 gateway, Ethernet information management terminal (such as monitoring platform and network databases, etc.). Ethernet information management terminal and the CAN bus CAN node through the ETHERNET, SX52 gateway, CANBUS communicate with each other, which played a central SX52 gateway interconnection of heterogeneous network effects.

Heterogeneous network interconnection protocol conversion is the key technical and difficult conversion layer protocol conversion method can be used generally, since the low-up step by step. Mostly currently interconnect layer or network layer in the Internet started to be made to the following layers on the interconnect layer up layer by layer protocol conversion, this conversion method is based on the basic principles of layered protocol: the low-level support for high-level, high-level call low-rise, low-level disconnect after the high-level connections also will disconnect, but it will not affect the high-level low-level disconnect. From the network's hierarchical structure, we design the interconnection system has a hierarchical structure as shown in Figure 1. Ethernet running TCP / IP protocol, it has the application layer, transport layer, network layer, Ethernet data link layer and physical layer; CAN bus with the application layer, data link layer and physical layer, including the application layer by the user own definition, data link layer and physical layer defined by the CAN protocol; SX52 Data Gateway has the physical layer, data link layer and application layer, the application layer is the information ETHERNET and CAN data exchange layer, SX52 microcontroller In this layer with each other to explain and transmit data from the two different protocols.

CAN-bus interconnects Gateway Design and Implementation

Figure 1 CAN bus and Ethernet interconnection network hierarchy

In this design, SX52 Gateway is designed to become a transparent data gateway, that is, build and resolve the Ethernet application layer protocol data packet complete CAN, CAN protocol data packets as TCP / IP network application layer data transmission, its practical significance of specific data communication without any explanation. Gateway designed the reason why the transparent type, is based on three considerations: 1) Transparent Gateway for relatively simple non-transparent gateway, the hardware need not expand the large capacity of data cache memory for communication data; software need not consider the data aggregation and distribution of processing, reduced programming complexity, improve speed and real-time communication. 2) Transparent Gateway adaptability, it can be applied to different project requirements, and non-transparent gateway to the gateway according to different requirements will have to make different changes to procedures. 3) because the protocol converter designed to be simple, not more complex processing, thus enhancing the reliability of communication.
CAN-bus network, the maximum transmission rate for the 1Mpbs, while Ethernet is now generally 10Mbps. Here to consider the issue of speed matching between the two, where you can solve this problem from two aspects: First, the gateway to use larger RAM, used as a communication data buffer, to improve the efficiency of network transmission. Second, limited to the CAN bus, Ethernet data transmission, it is less than CAN bus communication speed.

3 CAN protocol analysis

CAN is to comply with OSI model, in accordance with the OSI reference model, CAN structure is divided into two layers: data link layer and physical layer. In accordance with standard IEEE802.2 and 802.3, the data link layer in turn divided into:

- Logical Link Control (LLC)

- Media Access Control (MAC)

Also the physical layer is divided into:

- Physical Signaling (PLS)

- The physical media attachment (PMA)

- Media related interface (MDI)

MAC sub-layer run with called "failure to define entity (FCE)" to monitor the management entity. Failure to define is to determine short-term disturbances and a possible permanent fault self-test mechanism. With the physical layer fault detection and management entity to monitor the physical media (such as short circuit or interruption of the bus, the bus fault management). LLC and MAC agreement the two entities through the exchange of the same frame or protocol data unit (PDU-Protocol Data Unit) communicate with each other.

LLC sub-layer provides features include: frame reception filtering, overload notice and recovery management. Among them, circular function overloading is that if the internal conditions of the receiver to delay the next LLC frame or remote frame LLC, the LLC sublayer by overloading the frame starts to send up to produce two overload frames to delay the next data frame or remote frame.

The OSI seven layer network model in accordance with terms, CAN bus network to complete the bottom two layers of protocol of Gong Zuo, namely the physical layer and data link layer, Ta Men You CAN Kong Zhiqi the hardware implementation level shifting frame of the package. In practice, also need to build their own upper layer protocol. Here a simple and practical design of the "command key + data item" Structure


CAN-bus interconnects Gateway Design and Implementation

Application layer frame structure of Figure 2

Taking into account the general features of industrial control small, so the length of the command key is set to 1BYTE (256 can be described by an order). Set of data in the data item in the light of the length of CAN bus is a short frame transmission (data frames, each frame of data only 8BYTE), some data parameters required by the orders may be greater than 7BYTE, while the data is likely to have greater returns So, here set the length of one byte of data items to user-defined data frame length can reach 256 bytes.

4 SX52's TCP / IP protocol stack design

ARP protocol can achieve the logical addresses to physical addresses of the dynamic mapping. Ethernet interfaces support a unique 48-bit physical address. In the SX52, ARP protocol is through a "IP address of the Ethernet address corresponding to" single-core to achieve registration. When the remote host needs to know its physical address, the remote host will send the ARP request to it, then it will respond to the remote host's request, to tell each other their physical address. When the application layer need to transfer IP packets, SX52 ARP protocol can also request the physical address of the remote purposes.

Internet data packets to transfer data packets in the Ethernet controller to send buffer is built, it uses the recently received packet to send the purpose of the Ethernet address as the packet destination address. Of course, this may not be correct Ethernet address, therefore, before the actual sending data packets, ARP protocol to send data packet will check the IP address is present in the nuclear ARP, if sending data packets in the IP address in the nuclear , in the send buffer in the Ethernet packet will use the Ethernet address of nuclear ARP update, if not, then the ARP protocol to send an ARP request packet, then wait for a response. Once the ARP response is received, the ARP will use just received nuclear target Ethernet address update, then wait to send the packet will also be updated to use the Ethernet address, and then be sent. If the ARP request packets sent without response, leading to ARP timer time-out, which is waiting to send the packet will be discarded, the normal protocol stack to run.

IP protocol is TCP / IP protocol suite lies at the core of the agreement. All of the TCP, UDP, ICMP and IGMP for IP packet data format for transmission. IP provides unreliable, connectionless datagram delivery service, can not guarantee success of IP packets arrive at their destinations. If some error occurs, such as a router temporarily run out of buffer, IP has a simple error handling algorithm: discard the datagram and then send ICMP messages reported to the source side. The reliability of any request must be provided from the top. Connectionless IP does not maintain any mean follow-up data reported on the status information, the processing of each packet is independent of each other. This also shows that, IP datagrams may not be received by sending the order. In this design, IP protocol is for the specific application environment of a reasonable simplification. CAN bus control network is a short frame, real-time network, so, IP data packet without fragmentation (MF = DF = 0), at the same time, set the IP type of service for the general type, the head length of 20 bytes, the first minister of degree field is 5, the life TTL set to 64.

TCP application layer to provide a connection-oriented, reliable byte stream service. In the face of industrial control applications, the TCP protocol can be complex to do a reasonable simplification, because the CAN network transmission speed, data volume is small and l0Mpbs Ethernet transmission does not occur normally blocked, Ethernet host will have sufficient capacity to timely processing of communications data. So can a fixed time-out and retransmission time for 5s, RTL8019AS also has two 1500-byte receive buffer, and the CAN network to control the network, the amount of information is small, it can be fixed to accept the window to 1400 bytes. Design services used to meet general TCP applications, it can be ignored and the options and fill urgent pointer field value. Simplified by the above three points, in fact greatly simplifies the implementation of TCP protocol, because TCP retransmission timeout and the time to identify and control the window size has a more complex algorithms and implementation mechanism.

5 Innovations Summary

This innovation is the traditional industrial control automation field bus connection costs are high, development of a long cycle of inadequate offices, design a separate CAN-Ethernet gateway interconnect systems, has successfully achieved the existing Ethernet and CAN the direct data bus interconnection network. Fieldbus via the Internet, corporate intranet connected to automatic control systems and field devices into enterprise integrated automation and information systems as an integral part. System in the open, interoperable, intelligent field devices, system structure, on-site environmental adaptability performance are greatly improved, the successful realization of the two heterogeneous network data communications.

Declined comment

91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
久久久久久久久久久久久久久久久久av| 性色av一区二区三区| 国产精品加勒比| 日本精品一区二区 | 久久99精品国产99久久6尤物| av一区二区三区四区电影| 欧美日韩在线成人| 亚洲啪啪av| 国产成人极品视频| 超碰在线观看97| 虎白女粉嫩尤物福利视频| 久久亚洲免费| 国产精品一区二区你懂得| 国产一级大片免费看| 人妻少妇精品久久| 少妇人妻无码专区视频| 亚洲一区二区不卡视频| 精品国产一区二区三区日日嗨 | 天堂精品一区二区三区| 成人精品一区二区三区| 日本少妇高潮喷水视频| 成人av在线亚洲| 日本一二三区视频在线| 在线免费观看一区二区三区| 国产成人精品网站| 日韩中文字幕在线| 国产精品第3页| 亚洲日本欧美在线| 人人澡人人澡人人看欧美| 欧美日韩免费观看一区| 精品一卡二卡三卡四卡日本乱码| 国产免费亚洲高清| 国产精品99久久久久久久久 | 国产一区二区片| 91精品一区二区三区四区| 99久re热视频精品98| 国产精品com| 国产精品三级久久久久久电影| 久久国产精品久久久| 欧美一区二区视频97| 欧美性受xxxx黑人猛交88| 国产免费色视频| 久久久久一区二区| 精品乱色一区二区中文字幕| 天堂一区二区三区| 国产这里只有精品| 国产不卡视频在线| 中国人体摄影一区二区三区| 全黄性性激高免费视频| 成人免费毛片播放| 国产精品视频最多的网站| 欧美精品久久久久久久免费观看| 日韩精品久久一区二区三区| 国产欧美一区二区白浆黑人| 精品国产一区二区三区久久| 亚洲国产精品女人| 黄色高清视频网站| 久久久久久这里只有精品| 亚洲图片都市激情| 免费h精品视频在线播放| 国产成人精品免高潮在线观看| 久久99精品久久久久久噜噜| 欧美亚洲一级二级| 91久热免费在线视频| 国产精品成人久久久久| 欧美尤物巨大精品爽| av观看免费在线| 欧美精品aaa| 国产日韩欧美在线看| 国产精品久久久久久久久| 人偷久久久久久久偷女厕| 久久久亚洲综合网站| 亚洲欧美日韩在线综合| 国产女人水真多18毛片18精品| 久艹视频在线免费观看| 午夜精品区一区二区三| 97精品视频在线| 综合操久久久| 99热成人精品热久久66| 亚洲一区二区三区四区中文| 国产精品一区二区三区久久久 | 欧美国产一区二区在线| 久久国产乱子伦免费精品| 日本一区二区在线播放| 国产成人精品日本亚洲| 日韩在线观看a| 国产成人精品免高潮在线观看| 天天干天天色天天爽| 91福利视频网| 色狠狠久久av五月综合|| 久久精品午夜一区二区福利| 日本高清+成人网在线观看| 久久人妻无码一区二区| 欧美一级片免费观看| 国产成人精品日本亚洲11| 日本成人黄色免费看| 国产成人免费电影| 黄色www网站| 美女av一区二区三区| 国产精品揄拍500视频| 亚洲欧洲日韩综合二区| 91免费福利视频| 天堂精品视频| 日韩有码在线播放| 国内精品视频免费| 欧美激情中文字幕在线| 91久久精品美女高潮| 日本在线播放一区| 久久久久免费精品| 美日韩精品免费| 欧美激情一二三| 91精品国产99| 欧美自拍视频在线| 国产aaa精品| 国产成人一区二区三区免费看| 欧美一级成年大片在线观看| 国产精品二区三区| 97公开免费视频| 欧美一区二区在线| 欧美日韩爱爱视频| 久久美女福利视频| 免费拍拍拍网站| 亚洲精品欧美精品| 久久久久久久9| 国产视频观看一区| 色综合电影网| 国产精品对白一区二区三区| www.中文字幕在线| 欧美乱偷一区二区三区在线| 欧美激情国产高清| 色吧影院999| 99精品视频在线看| 黄色片一级视频| 亚洲第一页在线视频| 国产精品男人的天堂| 97人人模人人爽人人喊中文字| 欧美在线观看黄| 亚洲综合在线播放| 日韩亚洲成人av在线| 成人av资源网| 激情五月开心婷婷| 色噜噜狠狠一区二区三区| 国产精品二区在线| 久久久久久美女| 91美女福利视频高清| 国产综合中文字幕| 日av在线播放中文不卡| 亚洲在线免费视频| 麻豆国产精品va在线观看不卡| 国产h视频在线播放| av动漫在线观看| 国产一区二区三区播放| 人人妻人人澡人人爽欧美一区双| 色综合久久久888| 国产精品视频xxxx| 久久黄色免费看| 69久久夜色精品国产69乱青草| 麻豆成人av| 欧美性天天影院| 日韩免费av片在线观看| 亚洲欧洲一二三| 久久99亚洲热视| 国产精品久久视频| 久久精品国产免费观看| 久久国产精品网| 久久综合九色综合网站| 成人免费午夜电影| 国产欧美精品va在线观看| 欧美欧美一区二区| 日韩免费中文专区| 日韩欧美亚洲天堂| 日韩欧美一级在线| 日韩一二三区不卡在线视频| 午夜精品免费视频| 亚洲精品久久久久久一区二区 | 91精品在线播放| 国产一区精品在线| 欧美高清一区二区| 国产精品日韩专区| 国产精品你懂得| 国产精品美女主播在线观看纯欲 | 国产男女在线观看| 国产日韩中文在线| 蜜桃日韩视频| 国产在线一区二| 国产一区视频在线| 国产小视频免费| 国产伦精品一区二区| 国产欧美一区二区白浆黑人| 国产女精品视频网站免费| 国产伦精品一区二区三区视频孕妇| 国产欧美一区二区三区另类精品| 国产又大又硬又粗| 国产乱码精品一区二区三区日韩精品| 国产视频一区二区三区在线播放| 国产麻花豆剧传媒精品mv在线| 99中文字幕| 久久综合九九| 久久久久久久久久av| 久久精品国产96久久久香蕉|