-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hello,
I am using the Clarius Cast SDK (C++) to acquire buffered RF/IQ data from a Clarius L15 probe. The connection and raw data download work correctly when no parameters are modified.
However, when I try to enable and change the transmit frequency (txFreq) parameter, the probe connection fails and the raw data request stops working.
What works
My workflow normally is:
- Connect to the probe using castConnect
- Acquire images
- Freeze the probe
- Request raw buffered data using castRawDataAvailability
- Download raw data using castRequestRawData and castReadRawData
This works correctly and I can successfully retrieve RF/IQ data.
What fails
When I try to enable and modify the transmit frequency parameter, the connection becomes unstable.
Example code:
castEnableParameter("txFreq", 1, onReturn);
castSetParameter("txFreq", 15.0, onReturn);
After running this, the following happens:
- The SDK reports an error when changing the parameter
- The Cast port appears to close
- Subsequent raw data requests fail
Console output:
[cast] return retCode=0
[cast][ERROR] change parameter error: Exception ocurred (Invalid message response for command change parameter (9); contains 0 sub-packets rather than 2))
[cast] return retCode=-1
[cast][ERROR] raw data request failure: Port is closed (Write of 100 bytes failed with error: Bad file descriptor)
[cast] raw availability res=-1 n_iqrf=0
After this error, I cannot retrieve raw data anymore until I restart the connection.
Additional observations
- If I do not attempt to enable txFreq, the connection and raw data download work normally.
- The problem appears specifically when trying to enable or change the transmit frequency parameter.
- Other parts of the Cast pipeline (connect, freeze detection, raw download) appear to function correctly.
Questions
- Is txFreq supported through castSetParameter for the L15 probe?
- Does the parameter need to be set in a specific imaging state (e.g., while streaming vs frozen)?
- Are there additional parameters (e.g., preset, aperture, focus) that must be configured before modifying txFreq?
- Any guidance would be greatly appreciated.
Thank you.