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精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
久久精品国产精品| 欧美日韩亚洲第一| 久久精品视频网站| 国产超碰91| 日韩午夜在线视频| 日韩亚洲第一页| 精品国模在线视频| 色狠狠久久aa北条麻妃| 日韩网站免费观看| 久久精品人人做人人爽| 国产精品入口免费视| 国产精品旅馆在线| 精品国产免费一区二区三区| 一区二区高清视频| 日本一区二区三区四区五区六区 | 国产精品久久久久久五月尺| 国产精品久久网| 久久综合免费视频| 欧美激情在线一区| 亚洲乱码一区二区三区| 日韩精品另类天天更新| 国内精品小视频在线观看| 国产又爽又黄的激情精品视频| 国产又大又长又粗又黄| av资源一区二区| 国产成人在线亚洲欧美| zzijzzij亚洲日本成熟少妇| 国产精品成av人在线视午夜片| 一区二区三区一级片| 亚洲va久久久噜噜噜| 欧美中文字幕在线观看| 国产美女永久无遮挡| 国产精品1区2区在线观看| 色噜噜久久综合伊人一本| 国产精品久久精品国产| 亚洲一区二三| 欧美h视频在线观看| 国产精品一区二区免费看| 国产成人综合精品| 久久亚洲精品视频| 亚洲精蜜桃久在线| 欧美精品久久| 91精品国产91久久久久久| 日韩视频永久免费观看| 亚洲一区二区三区乱码| 免费拍拍拍网站| 久久综合婷婷综合| 国产精品久久一区| 日本一区二区在线视频| 国产乱人伦真实精品视频| 久久99精品久久久久久青青日本| 精品中文字幕乱| 色综合久久av| 国产三区精品| 国产激情999| 九九精品在线观看| 日韩免费在线观看av| 操人视频欧美| 欧美成人亚洲成人| 欧美一级黑人aaaaaaa做受| 成人在线观看a| 精品国模在线视频| 九九九热精品免费视频观看网站| 日本三级韩国三级久久| 成人免费午夜电影| 国产精品久久99久久| 日本a级片电影一区二区| 国产精品午夜av在线| 久久99久久99精品| 亚洲精品一区二区三区蜜桃久 | 毛葺葺老太做受视频| 国产福利久久| 亚洲综合色激情五月| 国产欧美日韩视频一区二区三区 | 久久九九有精品国产23| 日本不卡在线观看视频| 91精品国产高清久久久久久91| 欧美日本中文字幕| 蜜臀精品一区二区| 国产成人拍精品视频午夜网站| 天堂资源在线亚洲视频| 91九色国产ts另类人妖| 亚洲一区二区三区免费观看| 99久久免费观看| 一区二区三区三区在线| 国产一区在线播放| 国产精品久久久久久久久| 欧美性大战久久久久xxx| 久久精品国产综合精品| 亚洲精品日韩成人| 91国产精品电影| 亚洲熟妇av日韩熟妇在线| 国产欧美亚洲日本| 欧美日韩福利电影| 国产美女精彩久久| 精品国产一区三区| 国产精品一区二区3区| 欧美激情一级欧美精品| 粉嫩av一区二区三区天美传媒| 欧美日韩国产91| 国产精品一区二区三区免费视频| 欧美激情一区二区三区在线视频观看| 国产欧亚日韩视频| 中文字幕一区二区三区有限公司 | 国产v亚洲v天堂无码| 日韩在线电影一区| 69av在线播放| 日本黄网站色大片免费观看| 久久久久久久久一区| 欧美日韩亚洲在线| 欧美猛少妇色xxxxx| 国产欧美高清在线| 亚洲图片在线观看| 久久琪琪电影院| 加勒比成人在线| 一区二区三区日韩视频| 久久久久久高清| 欧美精品色婷婷五月综合| 久久91亚洲精品中文字幕| 91精品在线观| 欧美一区二区综合| 久久五月情影视| 99国产在线| 日韩高清国产精品| 国产精品观看在线亚洲人成网| 国产精品影院在线观看| 日本不卡视频在线播放| 精品国产一区二区三| 久久免费视频网站| 蜜桃久久影院| 亚洲精品一区二区三区av| 国产成人精品视频免费看| 国产精品永久免费视频| 日本国产在线播放| 美女扒开尿口让男人操亚洲视频网站| 91免费黄视频| 欧美久久久久久一卡四| 一本一道久久久a久久久精品91| 日韩中文字幕免费看| 国产专区一区二区| 日本少妇高潮喷水视频| 久久99热精品这里久久精品| 国产不卡一区二区在线播放| 国产天堂在线播放| 日本一区二区三区视频在线观看 | 国产成人精品电影| 热久久这里只有精品| 欧美激情亚洲综合一区| 久久精品国产亚洲一区二区| 91精品久久久久久久久久久久久| 欧美福利精品| 日韩avxxx| 亚洲在线播放电影| 久久夜色精品国产亚洲aⅴ| 国产传媒久久久| 成人欧美一区二区| 欧美 日韩 激情| 日日碰狠狠丁香久燥| 久久91精品国产91久久久| 久久精品国产视频| 久久国产主播精品| 99久久无色码| 国产深夜精品福利| 欧美日韩dvd| 日产精品久久久一区二区福利| 久久91亚洲精品中文字幕奶水| 久久精品视频网站| 国产成人免费高清视频| 久久精品国产精品亚洲精品色| 99久久99久久| 国产伦精品一区| 国产在线98福利播放视频| 欧美激情精品久久久久久小说| 日本成人中文字幕在线| 日韩一区二区高清视频| 在线观看免费黄色片| 国产精品久久久久久av福利软件| 久久久久久久久91| 久久久久国产精品熟女影院| 超碰网在线观看| 国产精品一区二区久久精品| 国产又大又硬又粗| 免费国产成人看片在线| 欧美亚洲另类在线| 欧美精品卡一卡二| 欧美区高清在线| 欧美日韩高清在线一区| 精品www久久久久奶水| 激情深爱综合网| 国内精品国产三级国产在线专| 国内精品视频久久| 麻豆精品视频| 国产一区二区三区小说| 国产综合久久久久| 国产视频不卡| 高清视频欧美一级| 99www免费人成精品| 国产精欧美一区二区三区| 久久香蕉综合色| 色婷婷综合成人|