Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-25 Thread Minh GIANG
hello, Thank you for helping me solve my problem. You recommend me to update to a more recent version. But I think the xenomai version 2.6.0 is the lastest version over http://www.xenomai.org site. By the way, i have a short question. When i make run cross-link program, i don't understand why

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-25 Thread Wolfgang Grandegger
On 04/25/2012 11:11 AM, Minh GIANG wrote: hello, Thank you for helping me solve my problem. You recommend me to update to a more recent version. But I think the xenomai version 2.6.0 is the lastest version over http://www.xenomai.org site. You are right. The latest fixes are in the git

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-12 Thread Wolfgang Grandegger
On 04/11/2012 10:51 PM, Minh GIANG wrote: ok for CC, i was afraid of spam everyone by my mail. I answer your questions. - non, i didn't modify cross-link program (even if i used to modify this program to make it run, but it worked the same way) - Xenomai 2.6 What version (cat

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-12 Thread Minh GIANG
Hello sir, Here is the message after doing your command: giang@debianrt:~/Documents/xenomai-2.6.0/examples/rtdm/profiles/serial$ make XENO=/usr/xenomai/bin --xeno-cflags is deprecated, use --skin=name --cflags instead --xeno-ldflags is deprecated, use --skin=name --ldflags instead gcc

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-12 Thread Wolfgang Grandegger
On 04/12/2012 10:51 AM, Minh GIANG wrote: Hello sir, Here is the message after doing your command: giang@debianrt:~/Documents/xenomai-2.6.0/examples/rtdm/profiles/serial$ make XENO=/usr/xenomai/bin --xeno-cflags is deprecated, use --skin=name --cflags instead --xeno-ldflags is

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Wolfgang Grandegger
Hi, On 04/05/2012 02:46 PM, Minh GIANG wrote: i'm sorry sir, what i displayed just in the last mail, isn't good, because i removed rt_dev_ioctl(...) in cross-link program And then, with rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ). [93076.465077] base=0x2f8 iir=0x4 [93076.465082] base=0x2f8

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Gilles Chanteperdrix
On 04/11/2012 04:19 PM, Wolfgang Grandegger wrote: Hi, On 04/05/2012 02:46 PM, Minh GIANG wrote: i'm sorry sir, what i displayed just in the last mail, isn't good, because i removed rt_dev_ioctl(...) in cross-link program And then, with rt_dev_ioctl( RTSER_RTIOC_WAIT_EVENT ).

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Gilles Chanteperdrix
On 04/11/2012 06:56 PM, Gilles Chanteperdrix wrote: On 04/11/2012 04:19 PM, Wolfgang Grandegger wrote: Hi, On 04/05/2012 02:46 PM, Minh GIANG wrote: i'm sorry sir, what i displayed just in the last mail, isn't good, because i removed rt_dev_ioctl(...) in cross-link program And then, with

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Wolfgang Grandegger
On 04/11/2012 06:59 PM, Gilles Chanteperdrix wrote: On 04/11/2012 06:56 PM, Gilles Chanteperdrix wrote: On 04/11/2012 04:19 PM, Wolfgang Grandegger wrote: Hi, On 04/05/2012 02:46 PM, Minh GIANG wrote: i'm sorry sir, what i displayed just in the last mail, isn't good, because i removed

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-11 Thread Minh GIANG
ok for CC, i was afraid of spam everyone by my mail. I answer your questions. - non, i didn't modify cross-link program (even if i used to modify this program to make it run, but it worked the same way) - Xenomai 2.6 - Linux 2.6.38 and patch Adeos 2.6.38 of course - i build the program in

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-05 Thread Wolfgang Grandegger
On 04/04/2012 11:18 AM, Minh GIANG wrote: hello, i did what you told me, i compiled the kernet with patch which you send me, and the result of dmesg [ 1636.156641] base=0x2f8 iir=0x1 [ 1636.157672] base=0x2f8 iir=0x4 [ 1636.157675] base=0x2f8 status=0x100 [ 1636.157677] base=0x2f8

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-05 Thread Minh GIANG
hello, my configuration : linux 2.6.38, patch adeos 2.6.38 and xenomai 2.6 compiled with linux Debian 6.0(Squezze) architecture amd64-Athlon in any case, i saw the list displays the same thing. Maybe im wrong in display what you want to see? [92367.750709] base=0x2f8 iir=0x4 [92367.750711]

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-04 Thread Minh GIANG
hello, i did what you told me, i compiled the kernet with patch which you send me, and the result of dmesg [ 1636.156641] base=0x2f8 iir=0x1 [ 1636.157672] base=0x2f8 iir=0x4 [ 1636.157675] base=0x2f8 status=0x100 [ 1636.157677] base=0x2f8 iir=0x1 [ 1636.158713] base=0x2f8 iir=0x4 [ 1636.158715]

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-02 Thread Minh GIANG
hello, i don't know how call the function rt_dev_ioctl() after the timeout happened, this function is called in the begining of while loop (cross-link program). I get the value of struct rtser_status, line status = 96 modem status = 176 to be honest, i don't know why cross-line program works

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-04-02 Thread Wolfgang Grandegger
On 04/02/2012 10:25 AM, Minh GIANG wrote: hello, i don't know how call the function rt_dev_ioctl() after the timeout happened, this function is called in the begining of while loop (cross-link program). I get the value of struct rtser_status, line status = 96 modem status = 176 to be

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-03-30 Thread Wolfgang Grandegger
On 03/29/2012 05:26 PM, Minh GIANG wrote: i want to revive the topic over the problem RTSER_RTIOC_WAIT_EVENT while compiling cross-link.c program. I cann't resolve my problem after doing some solution given by the others Loading module: insmod ./xeno_16550A.ko io=0x3f8,0x2f8 irq=4,3

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-03-30 Thread Wolfgang Grandegger
On 03/30/2012 01:15 PM, Minh GIANG wrote: hello, after testing a lot of time, i have one port which doesn't work well in writing (material problem i think). Now it works in writing and reading with one condtion that i have to remove the function err=rt_dev_ioctl(...) because it returns

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-03-30 Thread Minh GIANG
hi, with option RTSER_RTIOC_WAIT_EVENT in rt_dev_ioctl(), this function returns un number -110 (Connection timed out) with option RTSER_RTIOC_GET_STATUS in rt_dev_ioctl(), this function returns un number 0 (not message) Anyway, currently it works without rt_dev_ioctl(), i can see rt_dev_read()

Re: [Xenomai-help] Cross-link.c ---RTSER_RTIOC_WAIT_EVENT

2012-03-30 Thread Wolfgang Grandegger
On 03/30/2012 04:34 PM, Minh GIANG wrote: hi, with option RTSER_RTIOC_WAIT_EVENT in rt_dev_ioctl(), this function returns un number -110 (Connection timed out) with option RTSER_RTIOC_GET_STATUS in rt_dev_ioctl(), this function returns un number 0 (not message) You should call this