0

I wanted to transmit the data coming to PCIE over to UART.And I have linux os.

Is there anyway that I can redirect the UART data over PCIE slot.

Thanks in advance.

Ax Cool
  • 115
  • 1
  • 6

1 Answers1

1

You will need a Linux driver for your PCIe device. If you don't have a Linux driver for it you can access to your PCIe memory space via mmap() in userland like with pci_debug.

Once you have PCIe access you will have to write a Linux application that read/write the serial port tty (/dev/ttyXX) and read/write on your PCIe device.

There is lot's of way to write a Linux application.

[edit]

Here you can see how read write on Linux serial port in C. Reading the C source code of pci_debug available here, you can see how to read/write on PCIe BAR memory with mmap.

Community
  • 1
  • 1
FabienM
  • 3,421
  • 23
  • 45
  • :-Thanks for Replay. I got pci device driver. That I have installed also. And Can you point me to any example application to start with. – Ax Cool Oct 28 '16 at 12:37
  • What is the name of your pci device driver ? – FabienM Oct 28 '16 at 14:01
  • hi @FabienM :- I got linux running on board. and over PCI I have wireless transmitter. So It's generic and IP address also I can set on my own. – Ax Cool Nov 02 '16 at 04:59
  • If you want to use mmap() like with pci_debug program, you must not mount your pci wireless driver. – FabienM Nov 02 '16 at 08:48
  • @FebienM : ok I got it. There is another ethernet port is there with IpV4 address assigned. If I can redirect that also, work is done for me. is it possible? – Ax Cool Nov 02 '16 at 08:57