Hello,
I'm trying to use UART on E2 connector in my project. It seems to be the easiest way to read and write to it through /dev, but generally it's better to use C code. So what is it's name in /dev and can I use it as usual serial port in linux?
Thanks.
Accessing E2 UART
-
- Posts: 7
- Joined: Wed Jul 30, 2014 12:59 pm
Re: Accessing E2 UART
Maybe I have to rephrase. Is it possible at all to read and write to built-in UART of RedPitaya?
There is the same question about I2C.
Thanks.
_______________
UART is accessible as /dev/ttyPS1 and works fine, just checked it.
There is the same question about I2C.
Thanks.
_______________
UART is accessible as /dev/ttyPS1 and works fine, just checked it.
-
- Posts: 55
- Joined: Tue Jun 24, 2014 3:06 pm
- Location: Dourdan (France)
Re: Accessing E2 UART
Hello !
I'm trying to read some data on the E2 connector but I don't really know how to read these ones.
I saw, you have succeed to read and write some data. But, did you use a part of C code that you create, or did you implement a FPGA code to read this data ? How are they received (RAW, integer, array) when you read it ?
Thanks in advance for your answer.
Regards.
Kev'
I'm trying to read some data on the E2 connector but I don't really know how to read these ones.
I saw, you have succeed to read and write some data. But, did you use a part of C code that you create, or did you implement a FPGA code to read this data ? How are they received (RAW, integer, array) when you read it ?
Thanks in advance for your answer.
Regards.
Kev'
-
- Posts: 7
- Joined: Wed Jul 30, 2014 12:59 pm
Re: Accessing E2 UART
I use C code and standart linux libraries. Here are helpful code snippets: http://stackoverflow.com/questions/6947 ... -port-in-c. My code in attached file can read/write to serial and handle signal on data received for asynchronous reading.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 55
- Joined: Tue Jun 24, 2014 3:06 pm
- Location: Dourdan (France)
Re: Accessing E2 UART
Thank you very much for this code. I'll try to understand it.
Did you use C++ ? Because I don't understand all the syntax. But doesn't matter, I'll learn to read it
Did you use C++ ? Because I don't understand all the syntax. But doesn't matter, I'll learn to read it
-
- Posts: 55
- Joined: Tue Jun 24, 2014 3:06 pm
- Location: Dourdan (France)
Re: Accessing E2 UART
I thank you again for your code, it works great ! I adapted it in C code and I don't have any problem.
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 29 guests