DST1200_0 is stuck in sonar quiet mode
Posted: Thu Oct 22, 2020 7:31 pm
I am attempting to find out if a DST1200_0 sonar distance device can be used as a snow depth gauge. Step 1 of this is that I have mounted it about 4 meters off the ground facing down. It appears that this is too far for a reliable return in the default quiet mode, so I am attempting to turn off quiet mode. However, I can't do this.
1. In python, when the device is attached, calling getSonarQuietMode() always returns 1. setSonarQuietMode(0) does not appear to either produce an error or do anything -- if I setSonarQuietMode(0) and then getSonarQuietMode(), it still returns 1. The device is definitely attached and I can change other parameters.
Putting setSonarQuietMode(0) in an attach handler results in the device failing to attach -- openWaitForAttachment times out. An error handler doesn't throw any particular error.
2. Using the Phidgets control panel on a Mac (10.15), the window for the sonar Phidget shows a checkbox marked 'Quiet Mode', which is checked. However, clicking the checkbox causes the window to disappear and reappear with the box still checked, which I take to mean something bad is happening and the software has to reattach. The point being that I can't turn quiet mode on and off with the control panel either.
The device appeared to work fine at short distances, but at no time was I able to turn off quiet mode.
So, what am I doing wrong? There is another forum posting about this, but that focused on whether or not the device was attached when sending the set command. That's not what's happening here -- the device is clearly attached, I can set other parameters (dataInterval, etc.).
Other stuff:
The device is plugged into a wireless VINT hub.
The VINT cable is pretty long -- probably like 25 meters.
1. In python, when the device is attached, calling getSonarQuietMode() always returns 1. setSonarQuietMode(0) does not appear to either produce an error or do anything -- if I setSonarQuietMode(0) and then getSonarQuietMode(), it still returns 1. The device is definitely attached and I can change other parameters.
Putting setSonarQuietMode(0) in an attach handler results in the device failing to attach -- openWaitForAttachment times out. An error handler doesn't throw any particular error.
2. Using the Phidgets control panel on a Mac (10.15), the window for the sonar Phidget shows a checkbox marked 'Quiet Mode', which is checked. However, clicking the checkbox causes the window to disappear and reappear with the box still checked, which I take to mean something bad is happening and the software has to reattach. The point being that I can't turn quiet mode on and off with the control panel either.
The device appeared to work fine at short distances, but at no time was I able to turn off quiet mode.
So, what am I doing wrong? There is another forum posting about this, but that focused on whether or not the device was attached when sending the set command. That's not what's happening here -- the device is clearly attached, I can set other parameters (dataInterval, etc.).
Other stuff:
The device is plugged into a wireless VINT hub.
The VINT cable is pretty long -- probably like 25 meters.