RTDM Serial port Gumstix PXA270
Hi.
I am using open/read/write for a serial port. But the read function delays 8 ms from the last bit received untill it returns the chars.
Obviously you would say open/read/write functions are not realtime functions.
I changed open/read/write to rt_dev_open/rt_dev_read/rt_dev_write but the open function returns -19.
I am using /dev/ttyS2.
Looking the proc directory I found that there is an interrupt on the serial port I want to use: FFUART
[email protected]:~$ cat /proc/interrupts CPU0 3: 2 SC ohci_hcd:usb1 6: 0 SC pxa_i2c-i2c.1 18: 0 SC pxa_i2c-i2c.0 22: 76 SC FFUART 23: 204 SC pxa2xx-mci 25: 0 SC DMA 26: 198061 SC ost0 163: 4720 GPIO eth0 Err: 0 [email protected]:~$
Thanks.
Signature · 3 lines
Linus Casassa Estudiante Ingeniería Civil Electrónica Fono: 56-9-97776941
I had the same issue - however, instead of writing a RTDM driver, I manipulated the memory registers directly, taking advantage of the ARM architeture way of manipulating drivers. I do have the code available, if you are interested, and plan on publishing a few technical documents on getting Xenomai to work with the PXA270 (the Gumstix platform), including a section on accessing all of the peripherals in real-time.
I would like to know if there is a "cleaner" solution, other than porting the current driver to RTDM.
Hope this helps,
Signature · 5 lines
-Felipe Brandão Cavalcanti
LARA - Robotics and Automation Laboratory
Department of Electrical Engineering
UnB - University of Brasília, Brazil
http://www.lara.unb.br/~fbcavalcanti/Quoted 41 lines · Linus Casassa
Hi.
I am using open/read/write for a serial port. But the read function delays 8 ms from the last bit received untill it returns the chars.
Obviously you would say open/read/write functions are not realtime functions.
I changed open/read/write to rt_dev_open/rt_dev_read/rt_dev_write but the open function returns -19.
I am using
/dev/ttyS2.
Looking the proc directory I found that there is an interrupt on the serial port I want to use: FFUART[email protected]:~$ cat /proc/interrupts CPU0 3: 2 SC ohci_hcd:usb1 6: 0 SC pxa_i2c-i2c.1 18: 0 SC pxa_i2c-i2c.0 22: 76 SC FFUART 23: 204 SC pxa2xx-mci 25: 0 SC DMA 26: 198061 SC ost0 163: 4720 GPIO eth0 Err: 0 [email protected]:~$Thanks.
--
Linus Casassa
Estudiante Ingeniería Civil Electrónica
Fono: 56-9-97776941_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
I finaly made it work with a parallel 8 bit comunication with GPIO registers on the 24 pin connector. I am making a webpage to publish all I am doing. :)
2009/11/14 Felipe Brandão Cavalcanti <[email protected]>
Quoted 61 lines
I had the same issue - however, instead of writing a RTDM driver, I manipulated the memory registers directly, taking advantage of the ARM architeture way of manipulating drivers. I do have the code available, if you are interested, and plan on publishing a few technical documents on getting Xenomai to work with the PXA270 (the Gumstix platform), including a section on accessing all of the peripherals in real-time.
I would like to know if there is a "cleaner" solution, other than porting the current driver to RTDM.
Hope this helps,
--
-Felipe Brandão Cavalcanti
LARA - Robotics and Automation Laboratory
Department of Electrical Engineering
UnB - University of Brasília, Brazil
http://www.lara.unb.br/~fbcavalcanti/<http://www.lara.unb.br/%7Efbcavalcanti/>Quoted 41 lines · Linus Casassa
Hi.
I am using open/read/write for a serial port. But the read function delays 8 ms from the last bit received untill it returns the chars.
Obviously you would say open/read/write functions are not realtime functions.
I changed open/read/write to rt_dev_open/rt_dev_read/rt_dev_write but the open function returns -19.
I am using
/dev/ttyS2.
Looking the proc directory I found that there is an interrupt on the serial port I want to use: FFUART[email protected]:~$ cat /proc/interrupts CPU0 3: 2 SC ohci_hcd:usb1 6: 0 SC pxa_i2c-i2c.1 18: 0 SC pxa_i2c-i2c.0 22: 76 SC FFUART 23: 204 SC pxa2xx-mci 25: 0 SC DMA 26: 198061 SC ost0 163: 4720 GPIO eth0 Err: 0 [email protected]:~$Thanks.
--
Linus Casassa
Estudiante Ingeniería Civil Electrónica
Fono: 56-9-97776941_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help
Signature · 3 lines
Linus Casassa Estudiante Ingeniería Civil Electrónica Fono: 56-9-97776941