Add function that scans the downlinks and returns the downlink number where the pixel module(s) is connected
Add function that scans the downlinks and returns the downlink number where the pixel module(s) is connected. Use the API of the felix container with the requests library to extract the alignment status and turn off one downlink at the time and check when alignment is lost.
aligned_link = "DECODING_LINK_ALIGNED_" + optical_link
aligned = requests.get(url + "/flxconfigget/" + aligned_link, headers={"content-type": "application/json"}).json()["result"].strip().split("=")[1]
Return: "Module in rx {rx_value} is connected to tx {tx_value}"
Edited by Daniele Dal Santo