⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 RTEMS (Real-Time Executive for Multiprocessor Systems) is a free open source real-time operating sys
💻
字号:
Networking with HDLC====================Author: Andy Dachs <a.dachs@sstl.co.uk>Date:	31st August 2001Surrey Satellite Technology LimitedThe network support in this BSP is not Ethernet support. The"network" referred to here is a point to point HDLC communication link.The ADS board does have a 10/100 ethernet port and it would be nice toget support for that added.My requirement is for a WAN so I need the ability to send IP frames overHDLC.  Ultimately this will end up as frame relay support but in the meantimeI'm simply wrapping up the IP packet inside an HDLC frame.  There is noaddressing mechanism or mac address attached to the start of the frame.This is what is physically transmitted:<FLAG><IP Frame><CRC><FLAG>The physical link consists of four lines,TX DATA	:	Data transmittedTX CLOCK:	Clock for transmitted data.  Data source provides clock.RX DATA : 	Received dataRX CLOCK:	Clock for received data.  Data sink accepts clock.To connect two entities you require a NULL modem arrangement, i.e. TX dataand Tx clock from one end go into RX data and Rx clock on the other end.The MPC8260ADS side of the link is implemented using SCC3 in HDLC mode. TheTX clock is generated by BRG4.  The RX clock in input to the board on the CLK5input.  I built a LVTTL to RS422 converter.The other end of the link is a Windows NT PC with WANic400 synchronouscommunication card.  We bought the card from ImageStream(http://www.imagestream.com/WANic400.html).  You also need the NTdrivers and a cable.  There are other distributors but I found theseguys helpful - and they also do Linux drivers.The NT WANic driver has a number of modes, one of which is ethernet emulation.This mode is what is needed to transport IP packets in HDLC frames.In libnetworking/net you will find a file called if_hdlcsubr.c containingthe hdlc_input and hdlc_output routines required by network.c.  This file wascreated by taking out the addressing mechanisms from if_ethersubr.c in thesame directory.  There are probably neater ways to do this <anycontributions welcome here>.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -