Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Arcs' UART can be recorded via automation toolbox #6

Open
TalKlinger opened this issue Jul 5, 2021 · 2 comments
Open

Only Arcs' UART can be recorded via automation toolbox #6

TalKlinger opened this issue Jul 5, 2021 · 2 comments

Comments

@TalKlinger
Copy link

if device["type"] == "Arc":

When using automation toolbox, the returned devices using "get_devices" returns only arcs that are connected, not allowing to record other UARTs that are connected.
From the documentation, UART (external to the Arc) devices should be supported as well
https://www.qoitech.com/help/tcpserver/#otii_get_devices

image

Reproduction steps:

  • Connect a USB to UART device
  • Verify in the Otii project settings it can be enabled
  • Run something that searches for devices such as :
    def initialize_arc(self): self.connection = otii_connection.OtiiConnection(self.ip, self.port) self.connect_response = self.connection.connect_to_server() if self.connect_response["type"] == "error": print("Exit! Error code: " + self.connect_response["errorcode"] + ", Description: " + self.connect_response["data"][ "message"]) sys.exit() try: self.otii_object = otii.Otii(self.connection) self.devices = self.otii_object.get_devices() if len(self.devices) == 0: print("No Arc connected!") sys.exit() self.my_arc = self.devices[0] self.proj = self.check_create_project() print("Calibrating Arc") self.my_arc.calibrate() self.initialzied = True except otii_exception.Otii_Exception as e: print("Error message: " + e.message)
@TalKlinger
Copy link
Author

#7 should fix this bug

@xnk
Copy link
Member

xnk commented Oct 12, 2022

We had to solve the get_devices issue in a slightly different way due to the new Otii 3 software handling more device types, so there's now an optional device_filter that can be passed to get_devices, see 591838c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants