Hi Joe, The easiest way to hijack the MPM session is to use a static token, e.g. "foo". To use this token, you need to adapt the length of the token in `TOKEN_LEN` to what fits your static token here: https://github.com/EttusResearch/uhd/blob/master/mpm/python/usrp_mpm/rpc_server.py#L35
Then some lines later in the same file the token is generated: https://github.com/EttusResearch/uhd/blob/master/mpm/python/usrp_mpm/rpc_server.py#L305-L307 Comment this out/remove it and replace it with self._state.claim_token.value = bytes('foo', 'ascii') Now after restarting MPM, you can use the static token to hijack the session. On the other hand, if it's just about printing the cal coefficients, you could of course just log them with the MPM log when they are created. Hope that helps, Martin INTERNAL - NI CONFIDENTIAL From: jmalo...@umass.edu <jmalo...@umass.edu> Sent: Wednesday, October 11, 2023 7:45 PM To: usrp-users@lists.ettus.com Subject: [USRP-users] Hijacking MPM and calling function from MPM Hello, I am currently working on trying to print the calibration coefficients of the RFDC after calibration of the x410. Similar to calling get_cal_coefs from the mpm_shell. My plan is to hijack the MPM shell within my current acquisition script, then execute the get_cal_coefs function. However, I am unable to locate where the token is. How do I retrieve the token after initializing the x410. Thanks, Joe National Instruments Dresden GmbH; Gesch?ftsf?hrer (Managing Director): Jerome Meyer; Sitz (Registered Office): Dresden; HRB (Commercial Register No.): 22081; Registergericht (Registration Court): Dresden This email and any attachments are intended only for the person to whom this email is addressed and may contain confidential and/or privileged information. If you received this email in error, please do not disclose the contents to anyone, but notify the sender by return email and delete this email (and any attachments) from your system.
_______________________________________________ USRP-users mailing list -- usrp-users@lists.ettus.com To unsubscribe send an email to usrp-users-le...@lists.ettus.com