Skip to content

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

@TalKlinger

Description

@TalKlinger

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)

Metadata

Metadata

Assignees

No one assigned

    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