Skip to content

XML File and UART connection #25

@DanViolette

Description

@DanViolette

The GECCO/CMOD .xml files have a value named port which is a hardcoded port value. Unfortunately this value is going to change system to system and on different OS.

There are two functions that look for UART ports depending on the hardware in open_fpga:

  1. self.boardDriver = drivers.boards.getCMODUartDriver(self.config.find("port").attrib["value"])

This first one relies on the hard-coded XML value

  1. self.boardDriver = drivers.boards.getGeccoUARTDriver(drivers.astep.serial.getFirstCOMPort())

This function returns the first COM Port, which isn't always the FPGA if other peripherals are used.

This also only works for Windows OS. We should think about how to strengthen this port selection so it works across platforms.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions