Forum Discussion
Altera_Forum
Honored Contributor
16 years agoRS232 with uCLinux
Hi, I am trying to set up communication between a PC and a DE2-70 board running uCLinux via the serial port. When booting uCLinux it detects the UART component alright. I naively assumed that i...
Altera_Forum
Honored Contributor
16 years agoHi,
I am trying to set up communication between a PC and an X10 for smart home controller using DE2 board running uCLinux via the serial port. I am looking when booting uCLinux it detects the UART component alright and if I have Linux running on my laptop and the host computer, I can use the open(), read() and write() system calls in order to communicate, which will allow me to communicagte b/w Altera NiosII and X10 device. I checked that the baud rate as 4800bps, I am not able to create the right C-code so far to run the communication b/w the Laptop frist with the board through RS232 (UART) and then with the X10 device. Any ideas what the the right c code could be? It would be very helpful if someone could let me know if you have a tested code used beforer. Even if you don't know what the code is, it'll help me narrow down any suggestions from your side... Thanks in advance, Nidal...