Hi experts, We have to design a special device....to implement a special protocol on top of ethernet. Rabbit 4k devices look like a good choice, but it comes with TCP/IP stack built in. How easy it is in Rabbit 4K to get rid of the the TCP/IP stack from OS and take charge of packets arriving over ethernet. I am aware of NE2000 compatibility. Please let me know whether it will be helpful and any other pointers will be of big help. TIA, Krishna
Rabbit 4k and ethernet
Started by ●July 30, 2007
Reply by ●July 30, 20072007-07-30
On Jul 30, 11:51 am, sanjaysalunke1...@yahoo.co.in wrote:> How easy it is in Rabbit 4K to get rid of the the TCP/IP stack from OS > and take charge of packets arriving over ethernet.I don't believe you get sourcecode to this, so the difficulty level is "write a new OS".
Reply by ●July 30, 20072007-07-30
<sanjaysalunke1975@yahoo.co.in> wrote in message news:1185810718.742944.116440@z28g2000prd.googlegroups.com...> Hi experts, > > We have to design a special device....to implement a special protocol > on top of ethernet. Rabbit 4k devices look like a good choice, but it > comes with TCP/IP stack built in. > > How easy it is in Rabbit 4K to get rid of the the TCP/IP stack from OS > and take charge of packets arriving over ethernet. > > I am aware of NE2000 compatibility. Please let me know whether it will > be helpful and any other pointers will be of big help. > > TIA, > > Krishna >The source code for the tcp/ip stuff is included, so it will be a convenient starting point for writing your own drivers. As far as I know if you never do the calls to set up the tcp/ip stack, it's never going to get in the way of whatever driver you write. Talking to the on-board ethernet hardware is pretty simple with or without dma. Monte (yes, the Monte who designed the Rabbit 2000, 3000, 4000 and beyond)
Reply by ●July 30, 20072007-07-30
On Jul 30, 4:32 pm, "Monte Dalrymple" <mon...@systemyde.com> wrote:> The source code for the tcp/ip stuff is included, so it will be[puzzlement] What parts of it are closed-source then? When I was negotiating putting one of the Rabbit parts into a design, I was told that various stuff (e.g. SSL) had been hand-optimized for specific Rabbits, and couldn't be ported to other Rabbit parts.
Reply by ●July 30, 20072007-07-30
"larwe" <zwsdotcom@gmail.com> wrote in message news:1185828601.273164.59500@q75g2000hsh.googlegroups.com...> On Jul 30, 4:32 pm, "Monte Dalrymple" <mon...@systemyde.com> wrote: > > > > The source code for the tcp/ip stuff is included, so it will be > > [puzzlement] What parts of it are closed-source then? When I was > negotiating putting one of the Rabbit parts into a design, I was told > that various stuff (e.g. SSL) had been hand-optimized for specific > Rabbits, and couldn't be ported to other Rabbit parts. >It's not that it's closed-source, it's that some modules (SSL being the one that I am aware of) use features that are not backwards-compatible between generations. In particular, SSL uses the "array multiply" instructions when targeting the R3000A or R4000. These instructions were designed specifically for this application. Duplicating their functionality in an R2000 or R3000 would be non-trivial if starting from the source code targeted at the later parts. Monte
Reply by ●July 30, 20072007-07-30
"Monte Dalrymple" <monted@systemyde.com> wrote in message news:9Vrri.317$IE5.259@newssvr17.news.prodigy.net...> > <sanjaysalunke1975@yahoo.co.in> wrote in message > news:1185810718.742944.116440@z28g2000prd.googlegroups.com... >> Hi experts, >> >> We have to design a special device....to implement a special protocol >> on top of ethernet. Rabbit 4k devices look like a good choice, but it >> comes with TCP/IP stack built in. >> >> How easy it is in Rabbit 4K to get rid of the the TCP/IP stack from >> OS >> and take charge of packets arriving over ethernet. >> >> I am aware of NE2000 compatibility. Please let me know whether it >> will >> be helpful and any other pointers will be of big help. > > The source code for the tcp/ip stuff is included, so it will be > a convenient starting point for writing your own drivers. As > far as I know if you never do the calls to set up the tcp/ip > stack, it's never going to get in the way of whatever driver > you write. Talking to the on-board ethernet hardware is > pretty simple with or without dma. > > Monte > (yes, the Monte who designed the Rabbit 2000, 3000, 4000 and beyond)Hi Monte. Nice job, sir. I've used the Rabbits, and have been very happy with them. (This from someone who has otherwise learned the hard way to be very wary of 3rd-party embedded code ;).) And welcome to the ng. Steve http://www.fivetrees.com http://www.sfdesign.co.uk
Reply by ●July 31, 20072007-07-31
"Steve at fivetrees" <steve@NOSPAMTAfivetrees.com> wrote in message news:RpmdnQBVsqdk-jPbnZ2dnUVZ8qydnZ2d@pipex.net...> "Monte Dalrymple" <monted@systemyde.com> wrote in message > news:9Vrri.317$IE5.259@newssvr17.news.prodigy.net... > > > > <sanjaysalunke1975@yahoo.co.in> wrote in message > > news:1185810718.742944.116440@z28g2000prd.googlegroups.com... > >> Hi experts, > >> > >> We have to design a special device....to implement a special protocol > >> on top of ethernet. Rabbit 4k devices look like a good choice, but it > >> comes with TCP/IP stack built in. > >> > >> How easy it is in Rabbit 4K to get rid of the the TCP/IP stack from > >> OS > >> and take charge of packets arriving over ethernet. > >> > >> I am aware of NE2000 compatibility. Please let me know whether it > >> will > >> be helpful and any other pointers will be of big help. > > > > The source code for the tcp/ip stuff is included, so it will be > > a convenient starting point for writing your own drivers. As > > far as I know if you never do the calls to set up the tcp/ip > > stack, it's never going to get in the way of whatever driver > > you write. Talking to the on-board ethernet hardware is > > pretty simple with or without dma. > > > > Monte > > (yes, the Monte who designed the Rabbit 2000, 3000, 4000 and beyond) > > Hi Monte. Nice job, sir. I've used the Rabbits, and have been very happy > with them. (This from someone who has otherwise learned the hard way to > be very wary of 3rd-party embedded code ;).) > > And welcome to the ng. > > Steve > http://www.fivetrees.com > http://www.sfdesign.co.uk > >Why, thank you. I've been lurking here for years, but seldom have anything to contribute. Monte http://www.systemyde.com
Reply by ●August 2, 20072007-08-02
> The source code for the tcp/ip stuff is included, so it will be > a convenient starting point for writing your own drivers. As > far as I know if you never do the calls to set up the tcp/ip > stack, it's never going to get in the way of whatever driver > you write. Talking to the on-board ethernet hardware is > pretty simple with or without dma. > > Monte > (yes, the Monte who designed the Rabbit 2000, 3000, 4000 and beyond)Thanks Monte for the response. We got hold of a Rabbit 4K and could go through the lib files. Sounds good place to start digging. But we have encountered a strange issue. I tried the sample Ping utility, which works great as long as our network is not connected to Internet. None of the packets appear outside chip, though the traces show that packet has been handed over to ifte->ncd->sendpacket in ip.lib. The packets appear....(which I could confirm using sniffer) as soon as I disconnect the router from Intranet. The configuration... IP Address: 192.168.1.65 and many more...as trial Mask: 255.255.255.0 Tried to see if adding router, static router paths or DNS addresses would help. So far no success. I saw same behaviour with raw packets, and trying to debug what could be the problem. Any hint will be highly helpful.. TIA. Krishna