Re: [RTnet-developers] Ethernet IP
Brought to you by:
bet-frogger,
kiszka
|
From: Glen W. <gl...@je...> - 2011-02-08 12:18:32
|
I used select with a timeout. Select seems to work. It returns a positive number and a fdset. It is accept which does not seem to work in taking off the top packets and send or write oopses the machine. Accept does seem to work if I run it before select. We can try the example but then I have to set up another machine. Could any of thus be e1000 driver? -- Glen Wernersbach President & CTO Jetsoft Development Co 629 Old St. Rt. 74 - Suite 210 Cincinnati Ohio 45244 Custom Programming Web Site: www.JetsoftDev.com Retail Product Web Site: www.ScanHelp.com Phone: 513-528-6660 Fax: 513-528-3470 On Feb 8, 2011, at 6:47 AM, Jan Kiszka <jan...@we...> wrote: > On 2011-02-08 05:24, Glen Wernersbach wrote: >> Well, I installed Xenomai and RTNET on a different distribution and >> basically got the same issues as in the email below. >> >> If I run accept() after select(), I get a -1 Invalid Argument error. > > Do you use select() to wait on a connection request? This is obviously > not yet supported by RTnet. > >> >> The rest is exactly alike. >> >> I get these errors, even when I get the code as close as I can to the >> RTTCP_SERVER example. > > Does the original example work for you? > > However, I think we better discuss your issues based on a self-contained > test that exposed them for you. > > Jan > > >> >> So there is either some problem with my insmods, some obscure program >> setting or I have just found problems with TCP on RTNET. >> >> At least the errors are in the same place both on RTAI and XENO_POSIX >> >> Glen >> >> >> On 1/28/11 4:32 PM, "Glen Wernersbach" <gl...@je...> wrote: >> >>> Thanks. >>> >>> I will check. >>> >>> Verdict is still out if I can used RTAI , RTNET and TCP >>> Here are my current troubles: >>> >>> 1. rt_dev_Accept() seems to return ether -9,-22,-38 with the errorn specifying >>> funciton not implemented. >>> 2. If I skip accept and just use the original FD, I get data but when I try to >>> rt_dev_send() back to this FD, I get a crash and a "Ooops" output >>> 3. If I issue a rt_dev_shutdown() on a UDP socket, I get an "Ooops' output. >>> Works on the TCP socket. >>> >>> The program works with standard linux commands. >>> >>> Glen >>> >>> >>> On 1/28/11 4:13 PM, "Jan Kiszka" <jan...@we...> wrote: >>> >>>> On 2011-01-28 21:40, Glen Wernersbach wrote: >>>>> Jan, >>>>> >>>>> On you last comment below about pre allocating buffers, I am trying to find >>>>> where in the RTAI examples it show that? >>>> >>>> It's lacking in those few RTAI examples. Check xenomai/posix and watch >>>> out for RTNET_RTIOC_EXTPOOL. I think that should be trivially transferable. >>>> >>>> Jan >>>> >> > > |