Yeoh Chun Yeow wrote:
> Dear Jan Kiszka,
> 
> Sorry for not understand properly the RTnet design.
> 
> My original idea is try to modify a network device driver to make it as
> real-time driver. So that if there is an incoming packets, it always treats
> with priority higher than other devices. Correct me if I am wrong? Actually,

It is correct. The point is that the processing of _every_ incoming
packet gets higher priority, and this can subvert what you want to
achieve if you cannot control the incoming traffic.

> I would like to develop web-based application to monitor and control devices
> in real-time manner. Could you please advice on how RTnet can help on this?

I assume you are not planning to close a time-critical control loop over
that web-application, are you? So this is a classical job for a Linux
program that interacts with (or embeds) the real-time control tasks. You
may boost the _Linux_ priority of this program and enable things like
CONFIG_PREEMPT to achieve better latencies of the web-application, but
you shouldn't expect (and generally don't need) more than soft real-time
behaviour here.

> 
> Anyway, I have setup an RTnet environment with cross over cable. I have
> observed that in the slave or client side that the tdmacfg rteth0 slot
> 0 200cause the system to be hang. What is the possible cause of the
> problem?

Hang means the whole system locks up or just the tdmacfg application
doesn't return? Is there anything on the kernel console?

> 
> [Master]
> Turning on verbose mode
> 
> *** RTnet 0.9.9 - built on Aug 28 2007 14:18:03 ***
> 
> RTnet: initialising real-time networking
> rt_at91_ether: no version for "kfree_rtskb" found: kernel tainted.
> RTnet: registered rteth0
> rteth0: Link now 100-FullDuplex
> rteth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex
> (14:09:07:05:05:02)
> rteth0: Intel LXT971A PHY
> initializing loopback...
> RTnet: registered rtlo
> /usr/rtnet/sbin/rtifconfig rtlo up 127.0.0.1
> RTcfg: init real-time configuration distribution protocol
> RTmac: init realtime media access control
> RTmac/TDMA: init time division multiple access control mechanism
> /usr/rtnet/sbin/rtcfg rteth0 server
> RTcfg: rtcfg_do_main_event() rtdev=1, event=RTCFG_CMD_SERVER,
> state=RTCFG_MAIN_OFF
> RTcfg: next main state=RTCFG_MAIN_SERVER_RUNNING
> /usr/rtnet/sbin/rtifconfig rteth0 up 172.16.6.203 netmask 255.255.255.0
> rteth0: Link now 100-FullDuplex
> /usr/rtnet/sbin/tdmacfg rteth0 master 5000
> /usr/rtnet/sbin/tdmacfg rteth0 slot 0 0
> /usr/rtnet/sbin/rtcfg rteth0 add 172.16.6.174 -stage1 -
> RTcfg: rtcfg_do_main_event() rtdev=1, event=RTCFG_CMD_ADD,
> state=RTCFG_MAIN_SERVER_RUNNING
> Waiting for all slaves.../usr/rtnet/sbin/rtcfg rteth0 wait
> RTcfg: rtcfg_do_main_event() rtdev=1, event=RTCFG_CMD_WAIT,
> state=RTCFG_MAIN_SERVER_RUNNING
> 
> [Slave]
> Turning on verbose mode
> /usr/local/rtnet/sbin/rtifconfig rtlo up 127.0.0.1
> /usr/local/rtnet/sbin/tdmacfg rteth0 slave
> /usr/local/rtnet/sbin/rtifconfig rteth0 up 172.16.6.174 netmask
> 255.255.255.0
> Stage 1: searching for master...$TDMACFG rteth0 slot 0 200;ifconfig vnic0 up
> $IPADDR $NETMASK_OPT
> /usr/local/rtnet/sbin/tdmacfg rteth0 slot 0 200
> 
> AT91 (as a master) and Intel M Processor (as a slave). After receiving the
> TDMA sync frame, the slave hangs when executing the tdmacfg function.

Keep in mind, without your driver code, it's also hard to tell if some
remaining issue there may be the reason.

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