Nadym Salem wrote:
> Hi,
> 
> trying to send data via rtnet without ip on raw socket I have a problem.
> 
> Using the native API it doesn't work at all, using the posix API it works
> exactly once.

If your native example doesn't create a real-time context for the sender
(rt_task_shadow etc.), that would be expected: -ENOSYS. The POSIX skin
does so automatically for the main thread, thus sending works in principle.

> Since I tried everything I tried to rewrite the raw-ethernet example in my
> project (my source code is attached). The first call of that program sends
> the buffer as it should (checking via wireshark). All further calls do not
> send anything. All functions return without any error, send function
> returns with 36, the amount of bytes to be sent.
> I have no more idea where my mistake is.
> 
> the raw-ethernet example works fine.
> 
> sorry for chatoical code, it changed a lot of time for testing purpose.

What is your setup? TDMA or plain RTnet? What happens when you issue
those frames over rtlo? I only have a virtual box at hand right now, but
the loopback path works fine for me with your code (with some additions
to make it compile): on each invocation of the program, RTcap collects
one frame on rtlo.

Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to