Hi, 

I have downloaded rt_com module from 
   http://www-public.rz.uni-duesseldorf.de/~jochen/computer/software/rt_com/

   , and I have compiled it, without any modifications, with:

   gcc -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
       -fomit-frame-pointer -fno-strength-reduce -D__RT__ -D__KERNEL__ 
           -DMODULE -c -o $1.o $1.c

The compilation seems to be correct.

Later I use:

setserial /dev/ttyS1 port none

I run the module, insmod rt_com.

To test the correct functioning, I use a Linux system computer with a 
null modem cable, in com2, on the other side there is a MsDos system
computer, the cable is in com1, this computer uses a simple serial 
comunication program, it is configured with 9600 baud, 1 start bit, 
8 data bits, 1 stop bit, and no parity. 
To comunicate with, I run the following module:

#define MODULE
#include <linux/module.h>
#include <linux/cons.h>
#include <stdio.h>
#include "rt_com.h"

int init_module(void) {
char c1 [11] = "Hello world\0";
rt_com_setup( 1, 9600, RT_COM_PARITY_NONE, 1, 8);  /* 1 = com2, */
         rt_com_write( 1, c1, strlen(c1));
return 0;
} 
void cleanup_module(void){   
    printk("Adi¢s, By, Chao, Ovuar, \n");
}


I wait, but the typical "Hello world" don't arrive to the Msdos computer.

                    I need a lot of examples of rt_com.

                    Help me, please.



------------------------------------- - - -  -  -  -  -   -   -   -         
Vicente Palazon Gonzalez
e-mail: [EMAIL PROTECTED]
www: http://www4.uji.es/~al004136
------------------------------------- - - -  -  -  -  -   -   -   -
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to