Hi,

we are working to have something "usable" of a port of soem[1] to rtnet. Soem 
uses an standard network stack to send ethercat packets (raw ethernet 
packets).

The version we're working just have changed the "standards" calls:

#define SOCKET rt_dev_socket
#define SEND rt_dev_send
#define RECV rt_dev_recv
#define BIND rt_dev_bind
#define CLOSE rt_dev_close
#define SETSOCKOPT rt_dev_setsockopt
#define IOCTL rt_dev_ioctl

by the rtnet calls and also, the pthread calls

pthread_*

by   rt_* calls.


First of all, I would like to ask which compiler options should we put. We 
have tested xeno-config with --skin=native and --skin=posix (and both).

One thing that I don't understand is that the project compiles and link with 
both options (native and posix), the examples too. But the behavior are 
different. For example, with both, we can create a socket, and send packets but 
the program example fails with cpu exceded limit. With native options only, we 
cannot create a socket.

But sometimes, we cannot create a socket. However, the rtnet examples worked. 
I'm a bit confused. To sue it, we first load the rtnet modules:

insmod /usr/local/rtnet/modules/rtnet.ko;
insmod /usr/local/rtnet/modules/rtpacket.ko;
insmod /usr/local/rtnet/modules/rtipv4.ko;
insmod /usr/local/rtnet/modules/rtudp.ko;
#no linux standard modules loaded
insmod /usr/local/rtnet/modules/rt_e1000e.ko;
(our driver)

and up the interface;
/usr/local/rtnet/sbin/rtifconfig rteth0 up;

and after run the examples we have compiled, with the rtnet version.

Any idea what's happening here?

Regards,

Leopold


[1] http://soem.berlios.de/



-- 
--
Linux User 152692     PGP: 0xF944807E
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to