diff --git a/sentio_prober_control/Sentio/ProberSentio.py b/sentio_prober_control/Sentio/ProberSentio.py index 3c208d0..81ab87e 100644 --- a/sentio_prober_control/Sentio/ProberSentio.py +++ b/sentio_prober_control/Sentio/ProberSentio.py @@ -850,9 +850,7 @@ def send_cmd(self, cmd: str) -> Response: are not yet included in the python wrapper. It will send the command and parse the respone from SENTIO. - Do NOT send low level commands that do not have a response (i.e. "*LOCAL"). - This will lock the communication pipeline as it is waiting for a - response that never arrives. + Support low level remote command. It will then return a Response object with the extracted data from SENTIO's response. @@ -860,9 +858,17 @@ def send_cmd(self, cmd: str) -> Response: Returns: A response object with the result of the command. """ + self.comm.send(cmd) - return Response.check_resp(self.comm.read_line()) + + if '*' in cmd and '?' in cmd: + return Response(0,0,0,self.comm.read_line()) + elif '*' in cmd: + return Response(0,0,0,"") + + else: + return Response.check_resp(self.comm.read_line()) def set_chuck_site_height( self,