[rtl] Benchmarking RTLinux
Hi all, I have a few last dificulties that I need to solve hopefully in a short length of time. Would anyone know of code already written to conduct a frequency/time period measurement test and interrupt response time in RT Linux using a parallel port. I know some code exists from Zentropix (but it may not be complete??). Also, I'm trying to get real time networking performance while the processes may not neccesarily be real time (but it would be beneficial). I know that TCP/IP (ipv4) is not real time but is there a way around it? Has anyone tried the RTnet code fom Lineo and are there alternatives for use on RTLinux? Finally, how valid are the tests using lmbench and netperf on RT Linux since they are not run in real time? Thanks everyone Koda _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] fifo access problem (more linux than RT)
> Hi. > > I am able to "control" (rather set) a servo with a primitive > RTLinux-module. > > It is primitive and a user is still not able to actually "control" the > motor, because I have had no success in deploying fifos at all, > but this had been the original idea. > > It looks as if the fifo /dev/rtf[n] does not accept any input. > > Fifo creation is done by mknod /dev/rtf[n] c 63 [n] rtf are major 150 not 63, thats the old number for rtl2.0 > and the rtf_create()-function is working alright. This is not a > Problem of RTLinux; ordinary ofstreams and ifstreams also fail to > access the device (no error). > > The RTL-module reports successful creation of the RT-fifo but the > fifo-handler, as expected, never notices new data. > > To the more experienced (newby-hardened) among you my mistake > should be obvious.., please enlighten me. And thanks anyway, this > list has already been a great help. > pleas run the example programs examples/frank/frank_module.o (kernel module) examples/frank/frank_app (user space app) and examples/measurements/rt_process.o (kernel module) examples/measurements/monitor (user space app) both of these examples use RT-FIFO's for writing from user space to a RT-Thread and from a RT-thread to user space. hofrat -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] fifo access problem (more linux than RT)
Hi. I am able to "control" (rather set) a servo with a primitive RTLinux-module. It is primitive and a user is still not able to actually "control" the motor, because I have had no success in deploying fifos at all, but this had been the original idea. It looks as if the fifo /dev/rtf[n] does not accept any input. Fifo creation is done bymknod /dev/rtf[n] c 63 [n] and the rtf_create()-function is working alright. This is not a Problem of RTLinux; ordinary ofstreams and ifstreams also fail to access the device (no error). The RTL-module reports successful creation of the RT-fifo but the fifo-handler, as expected, never notices new data. To the more experienced (newby-hardened) among you my mistake should be obvious.., please enlighten me. And thanks anyway, this list has already been a great help. Michael. -- Michael Uplawski <[EMAIL PROTECTED]> / <[EMAIL PROTECTED]> PGP: RSA/IDEA 2048 Bits 0x19847a51 Fingerprint: AC C1 2F 8F 59 9C FF 3C 6D A8 67 4A 45 3E 4C F2 (GnuPG d/e on request) Es lebe H[a,e]cker! -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re:[rtl]running the rt_com.o module.
Hi Emeel, After reading your post it seems like you have no problem running rt_com for both write and read. Congratulations! But I have a lot of problems running it. First it could not be loaded. It could be loaded only after I disabled COM2 in BIOS. But nothing happens when I run my program. (I am trying to call rt_com_write to write a string to the serial port and display on Tera Term on a Windows machine). Could you tell me how you used rt_com? Thanks a lot! Sincerely, Cosmo Tian -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
RE: [rtl] "realtime" rtfifo plotting tool
If you can afford the price, you could look at Labview for Linux at www.ni.com It is a graphical language that has many built in graphing capabilities. It is not just a graphing package it is a full programming language with built in libraries for many different kinds of activity. Graphical data presentation is just one aspect. It has many different graph types: stripchart, xy, polar, surface etc. Hope this helps your search, Rich > -- > From: Ivan Martinez[SMTP:[EMAIL PROTECTED]] > Sent: Thursday, January 25, 2001 9:36 AM > To: RTLinux mailing list > Subject: [rtl] "realtime" rtfifo plotting tool > > Hello all: > I'm looking for a tool to plot a realtime fifo, something like > rtic_scope (which seems to too buggy). I already asked about it in this > list and somebody recommended me rtp. It is very close to what I need, > but not enough. The problem is that I want to display the variable names > in the axis, set the scales at the begining, set the initial dimensions > of the graph... Is there other tool that I can use?. What about Matlab?. > I don't mind if I have to pay for the soft. > Thank you. > -- > Ivan Martinez (Rodriguez) > Bch in Software Engineering - MSc student > "Got fabes?" > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl " | mail [EMAIL PROTECTED] > --- > For more information on Real-Time Linux see: > http://www.rtlinux.org/rtlinux/ > -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
RE: [rtl] Linux stepper motor control
You can buy PC cards to specifically drive stepper motors from many sources. I would recommend that you check out: www.computerboards.com www.ni.com There are others but I don't have them handy. You can probably get the desired hardware from complete system providers as well. I would point out that the more difficult part of using stepper motor PC cards is finding drivers. I would check out places like the linux lab project and the linuxcnc that was mentioned earlier. It is easier if you find out what hardware has linux driver support and then buying that hardware. However, if you want to get into the nitty gritty of developing your own trajectory profiles (pulse trains) for each axis then you could use a digital I/O card and a stepper motor amplifier. There are many companies that supply general purpose amplifiers with a range of sizes to work with different motors. Do a search on industrial controls, stepper motors etc. A big brand name in motors/controllers is Baldor. Allan Bradley is another big brand name to look at. I hope this helps. Rich > -- > From: Ralph Seguin[SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, January 24, 2001 12:05 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: [rtl] Linux stepper motor control > > Hi. > I just purchased a 3 axis stage (hopefully all axes are orthogonal...) > Anyhow, each of the screws is controlled via a stepper motor and I have very > limited hardware knowledge. None of the stepper motors have amplifiers, only > bare wires. > > I'd like to drive this baby under Linux (Mandrake 7.2) and I would greatly > appreciate some help. > > Any suggestions on where to get hardware and software to get this thing > functioning? > > I've looked at: > http://www.cs.uiowa.edu/~jones/step/index.html > > Thanks. > -Ralph > > Motors: > Z-axis (vertical) > > Superior Electric > Bristol, CT > Slo syn synchronous stepper motor > Type M061-FD-30 > 200 steps/revolution > 11.8V DC > Spec BM101025 > > X and Y axes: > == > Dana Rapidsyn (Dana/Rapidsyn Industrial?) > Santa Fe Springs, CA > 5.1V 1.0A > Model 23D-6102A > > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl " | mail [EMAIL PROTECTED] > --- > For more information on Real-Time Linux see: > http://www.rtlinux.org/rtlinux/ > -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] "realtime" rtfifo plotting tool
Hi Ivan, You might be able to get Scilab working for this sort of thing. It has a nice interface to the outside world an you might be able to get some utility out of that. Also, Bill Crumm has some nice (Tk?) plotting utilties for RTLinux that you might be able to use. I can't quite remember the links, but you might be able to contact him at: [EMAIL PROTECTED] In terms of RTiC-Scope, I have finally finished pulling my last hair with the gtk-drawing-area bug and am looking for alternatives. So you might be happy to know that I am revamping a good chunk of RTiC-Scope and getting rid of the gtk-drawing-area. I hope to have something out soon. Good luck! -Edgar Ivan Martinez wrote: > Hello all: > I'm looking for a tool to plot a realtime fifo, something like > rtic_scope (which seems to too buggy). I already asked about it in this > list and somebody recommended me rtp. It is very close to what I need, > but not enough. The problem is that I want to display the variable names > in the axis, set the scales at the begining, set the initial dimensions > of the graph... Is there other tool that I can use?. What about Matlab?. > I don't mind if I have to pay for the soft. > Thank you. > -- > Ivan Martinez (Rodriguez) > Bch in Software Engineering - MSc student > "Got fabes?" > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl " | mail [EMAIL PROTECTED] > --- > For more information on Real-Time Linux see: > http://www.rtlinux.org/rtlinux/ -- Edgar F. Hilton FSMLabs, Inc. voice: 850.893.0300 www.fsmlabs.com fax: 206.350.4EFH www.rtlinux.com -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] Stuck
Nicholas Mc Guire wrote: > what modules are loaded when you get this message, it looks like you don't have > the rtlinux core modules (rtl.o rtl_time.o rtl_sched.o and rt_com.o) loaded . > > hofrat ok, the modules are already loaded, except for rt_com.o, this are the modules that appear when i call lsmod : Module Size Used by rtl_fifo6876 0 (unused) rtl_posixio 6588 0 [rtl_fifo] rtl_sched 5192 0 (unused) rtl_time8860 0 [rtl_posixio rtl_sched] i noticed that instead of rtl.o, it is loaded another module called rt_posixio.o, can that be part of the problem? and when i try to insert module rt_com i get this : /lib/modules/2.2.14-rtl2.2/misc/rt_com.o: unresolved symbol rtl_compat_irq_handler /lib/modules/2.2.14-rtl2.2/misc/rt_com.o: unresolved symbol rtl_v1_irq well, as you can see, i'm running rtlinux version 2.2 on a 2.2.14 kernel, with Slackware 7.0, so does any have any idea of where did i go wrong? Sergio -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] "realtime" rtfifo plotting tool
Hello all: I'm looking for a tool to plot a realtime fifo, something like rtic_scope (which seems to too buggy). I already asked about it in this list and somebody recommended me rtp. It is very close to what I need, but not enough. The problem is that I want to display the variable names in the axis, set the scales at the begining, set the initial dimensions of the graph... Is there other tool that I can use?. What about Matlab?. I don't mind if I have to pay for the soft. Thank you. -- Ivan Martinez (Rodriguez) Bch in Software Engineering - MSc student "Got fabes?" -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] unresolved symbol
> hi out there > > I have just started programming in RT linux and i have a an error. > I want some sync in my threads, and i am doing this with semaphore. > (is this the right way to it ?) > > I have a line in my program > > #include > I think for rtlinux-2.2 you must include rt_ipc.h from rtlinux-2.2/semaphors/ and you must insmod rtlinux-2.2/semaphors/rt_ipc.o to have the primitives available in rt-threads. but I'm not shure about that... 2.2 is a littl out of date. hofrat -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] unresolved symbol
hi out there I have just started programming in RT linux and i have a an error. I want some sync in my threads, and i am doing this with semaphore. (is this the right way to it ?) I have a line in my program #include and I am the using my sem_init and etc. I compile my program and there is no error. then i check for modules. [root@localhost simulation]# lsmod Module Size Used by rtl_fifo7568 0 rtl_posixio 6916 0 [rtl_fifo] rtl_sched 36956 0 (unused) rtl_time 14248 0 [rtl_posixio rtl_sched] [root@localhost simulation]# insmod simu_mod.o simu_mod.o: unresolved symbol sem_init simu_mod.o: unresolved symbol sem_post simu_mod.o: unresolved symbol sem_destroy simu_mod.o: unresolved symbol sem_wait I can see that the problem is . but what is wrong? should i do a linking. My compile lock like this gcc -I/usr/src/rtlinux-2.2/linux/include -I/usr/src/rtlinux-2.2/include -I/usr/src/rtlinux-2.2 -O2 -Wall simu_app.c -o simu_app gcc -I/usr/src/rtlinux-2.2/linux/include -I/usr/src/rtlinux-2.2/include -I/usr/src/rtlinux-2.2 -I/usr/src/rtlinux-2.2/linux/include -I/usr/src/rtlinux-2.2/include -I/usr/src/rtlinux-2.2 -I/usr/src/rtlinux-2.2/include/posix -Wall -Wstrict-prototypes -O2 -D__SMP__ -D__RTL__ -D__KERNEL__ -DMODULE -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -fomit-frame-pointer -c simu_mod.c -o simu_mod.o mvh Anders -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] Stuck
try with 'modprobe rtl_sched' and 'modprobe rtl_fifo' this will load on the kernel the rtl modules. To check whether they have been loaded try lsmod --- Sergio Arregui <[EMAIL PROTECTED]> wrote: > Hello, i'm developing a system for data aquisition > through the serial > port, and the programs in the examples > work just right, but at the time that i try to > insmod them it comes out > a series of errors like this > testcom.o: unresolved symbol rtl_printf > testcom.o: unresolved symbol gethrtime > testcom.o: unresolved symbol rt_com_read > and more like this, i hope that you guys can give > some advice with this, > or at least, a clue of what's happening > i would appreciate very much you're help, as far as > i can tell, someone > told me that if the programs in the examples > run, then i'll be ready to start programming for > RTLinux, but i have > encountered this troubles so can some one hepl me > please? >thanxs >Sergio > > > > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] > OR > echo "unsubscribe rtl " | mail > [EMAIL PROTECTED] > --- > For more information on Real-Time Linux see: > http://www.rtlinux.org/rtlinux/ > Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] shared memory
Hi, > Any hints is highly appreciated. I suggest to use mbuff resp. rtai_shm which is based on mbuff. You don't need to reserve memory at boot time for shm. This is done by a technique used in the bttv driver. You need to load the module and have a syntax like malloc - additional is a name, so you have a named shm region. If you read the Faq of mbuff you will find more additional tips & hints (like volatile, ptr etc.) Regards Olaf -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] Linux stepper motor control
HI ! I use a amplifier card connected to the parallel port , you probably can get cards like that from many places, the one I use is from conrad electronic (www.conrad.at) . The card is absolutly 0-inteligence, so you write a coil-1 on/off, coil-2 on/off and curent high/medium/low/off bit pattern to the parallel port and then toggle a control bit . via parallel port I run three rt-threads at 2.5kHz each (its only a 486SX/33 doing the job...) the card itselfe need an external power supply with 12-28V max 2.5A Card type: "schritmotor-steuerkarte SMC800" maximum 800mA motor coil curent "schritmotor-steuerkarte SMC1500" maximum 1500mA motor coild curen I'm not claiming that these are in any way special or high quality, but they work for me without any problems, and controling them with rtlinux is trivial. hofrat -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/