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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
激情五月五月婷婷| 97精品一区二区视频在线观看 | 久久久999国产| 国产高清在线不卡| 国产高清在线精品一区二区三区| 国产黄色激情视频| 日韩在线视频免费观看| 国产成人无码精品久久久性色| 久草精品在线播放| 色婷婷av一区二区三区在线观看| 日韩视频免费大全中文字幕| 久久综合伊人77777蜜臀| 久久久999成人| 国产精品高潮视频| 中文字幕一区二区三区四区五区 | 中文字幕一区二区三区四区五区人| 九九精品在线视频| 亚洲高清在线观看一区| 成人做爰www免费看视频网站| 亚洲精品乱码久久久久久自慰| 日韩一区二区三区资源| 亚洲欧美日韩综合一区| 视频一区不卡| 日本精品一区在线观看| 欧美精品一区二区三区三州| 黄色三级中文字幕| 国产精品永久免费| 久久久久久久久网| 美日韩精品免费视频| 亚洲一区二区免费| 欧美日韩午夜爽爽| 国产乱肥老妇国产一区二| 成人免费在线网| 久久青草福利网站| 国产精品视频在线观看| 欧美激情精品久久久久| 亚洲国产日韩美| 欧美不卡1区2区3区| 成人a在线观看| 久久久久免费精品| 国产精品高潮呻吟视频| 天天综合五月天| 好吊色欧美一区二区三区视频 | 成人免费毛片播放| 久久免费观看视频| 国产精品成人一区二区三区 | 国产精品日韩在线一区| 美女精品视频一区| 日韩欧美一区二区视频在线播放| 国产在线一区二区三区播放| 国产xxxxx视频| 色偷偷av亚洲男人的天堂| 国产精品传媒毛片三区| 日韩av一级大片| 国产欧美日韩精品丝袜高跟鞋| 久久久99精品视频| 欧美成人一二三| 人人妻人人添人人爽欧美一区| 国产欧美在线一区| www国产91| 亚洲激情一区二区| 国产欧美日韩高清| 国产精品久久一区二区三区| 日韩福利在线| 国产精选一区二区| 久久精品一本久久99精品| 又大又硬又爽免费视频| 久久久久久九九九九| 亚洲综合中文字幕在线| 欧美日韩亚洲综合一区二区三区激情在线| 操人视频欧美| 久久精彩免费视频| 日韩电影天堂视频一区二区| 97精品视频在线| 在线观看日韩羞羞视频| 青青视频免费在线观看| 99热在线播放| 一区二区三区四区五区视频| 国产资源在线视频| 国产精品久久久久久久午夜| 热久久免费视频精品| 美女啪啪无遮挡免费久久网站| 欧美一区观看| www.色综合| 热草久综合在线| www国产精品视频| 欧美日韩国产一二| 久久久精品国产一区二区| 人体精品一二三区| 国产成人欧美在线观看| 日本一区视频在线观看免费| 久久免费国产精品1| 日韩av免费在线播放| 久久riav二区三区| 日韩欧美亚洲日产国| 久久久久久久一| 青青视频在线播放| 国产精品嫩草在线观看| 精品一区日韩成人| 一区二区三区四区久久| 成人精品一二区| 亚洲专区国产精品| 久久久天堂国产精品女人| 日本精品一区二区三区四区| 日韩综合视频在线观看| 日韩色妇久久av| 国产精品久久久久免费a∨| 国产一二三区在线播放| 欧美人与性动交| 91精品国产综合久久香蕉| 日本一区二区在线| 国产精品欧美激情| 国产精品一区二区性色av| 亚洲自拍欧美另类| 久久精品国产精品国产精品污| 日韩欧美在线播放视频| 久久亚洲精品网站| www亚洲国产| 日韩精品无码一区二区三区| 国产精品色视频| 国产美女在线精品免费观看| 久久久久久欧美| 国产深夜精品福利| 午夜精品一区二区三区在线视频| 久久av免费观看| 国产一区精品视频| 日韩久久精品一区二区三区| 国产精品久久久久久久久久三级| 97免费在线视频| 青青草精品毛片| 综合久久国产| 精品国产一区二区三区久久狼5月| 国产欧美日韩综合精品| 午夜伦理精品一区| 国产精品高清一区二区三区| 成人福利网站在线观看| 欧美性资源免费| 亚洲专区国产精品| 国产精品久久久久久av| 91精品视频专区| 狠狠97人人婷婷五月| 午夜精品免费视频| 精品免费国产| 久久大香伊蕉在人线观看热2| 国产乱码精品一区二区三区日韩精品| 日本一区二区不卡高清更新| 欧美精品一区二区免费| 国产成人精品视频ⅴa片软件竹菊| 国产性生交xxxxx免费| 日韩免费高清在线| 中文字幕黄色大片| 国产精品免费一区二区三区都可以| 不卡视频一区二区三区| 欧美精品123| 色阁综合av| 国产成人一区二区| 国产美女无遮挡网站| 欧美精品卡一卡二| 日韩av免费在线| 一女被多男玩喷潮视频| 国产精品极品美女在线观看免费 | 久久久久久一区| 国产精品一区久久| 狠狠97人人婷婷五月| 日本91av在线播放| 亚洲一二三区在线| 国产精品第2页| 久久激情视频免费观看| 久久久久久免费精品| 国产经典久久久| 91精品国自产在线观看| 波多野结衣成人在线| 国产在线视频在线| 精品视频一区二区三区四区| 黄色a级在线观看| 欧美性受xxxx黑人猛交88| 日本10禁啪啪无遮挡免费一区二区| 亚洲一区二区高清视频| 久久91精品国产91久久久| 国产精品免费看一区二区三区 | 久久久久久久久久伊人| 国产传媒一区二区三区| 91免费看片在线| 成人一区二区在线| www日韩视频| av电影一区二区三区| 国产乱子伦农村叉叉叉| 国产免费黄视频| 麻豆精品视频| 精品视频无码一区二区三区| 美乳视频一区二区| 激情图片qvod| 免费观看亚洲视频| 国产一区一区三区| 国产乱人伦精品一区二区三区| 国产日产精品一区二区三区四区| 国产一区 在线播放| 国产精品一区二区三区在线| 成人av男人的天堂| 国产成人av在线播放|