Hello, I was wondering how exactly do you access the GPIO pins on the 80 pin I/O Expansion through software. I understand that you can access the expansion port via SPI 1 but I was wondering how do I access a specific pin. I would like to read the data the GPS is providing through the TX and RX pins which correspond to FPGA_GPIO 15 and 16. I could not find an example on how to access the FPGA pins on the wiki, only access to the processor and LED pins through simple commands. Is this possible?
Thank you for your interest in the Intel Aero Compute Board.
We are currently researching your query and will get back to you as soon as possible.
Thank you very much in advance for your patience.
Take a look at the sources for the spi_xfer tool :
You should be able to pull the relevant parts out. SPI, in the for the most part is just another serial port .
On the Wikki , it shows you how the Register Map is laid out:
https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA 95 (References) FPGA · intel-aero/meta-intel-aero Wiki · GitHub https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA https://github.com/intel-aero/meta-intel-aero/wiki/95-(References)-FPGA
Take a look at what the user above, irieblue, has recommended, which is a good option.
What I would like to ask is if you are trying to get the data being sent to the flight controller by the GPS module on the Aero RTF or if you are trying to connect a GPS module to the compute board?
If so, which one?
To access the GPS data, you would need to use an API like dronekit or mavlink to get GPS information:
You might also find these helpful:
Thank you for the information. I have used these APIs before. Dronekit does not give the raw data. It can give latitude and longitude but not the actual raw bytes from the GPS which is what I would like.
Currently, the FPGA is configured to route the GPS information to the Flight controller via UART3. You can re-program the FPGA to access the raw data. This may not make the GPS data available to the flight controller as this is something we have not tested on our side.
You can however, give it a try and share your results with the community.
Additional information can be found here:
I hope this information proves useful.
Hello @JGome26 , I was attempting the same thing that you are. I am trying to access the gps data stream. I am simply trying via Ubuntu command line but am not sure which port the GPS is outputting to. I was wondering if you were able to find a solution for this? If so, Could you please post it here. Much appreciated.