Supply voltage from ssh

Hello:

Is there anyway from the ssh console on a RUT950/951 to get the supply voltage?

Cheers,
john

Hello,

Thank you for your inquiry. Unfortunately, the RUT950/951 does not have the capability to measure the voltage of the power supply.

Currently, the only device that supports this functionality is the TRB160.

Feel free to reach out if you have any additional questions or need further assistance.

Best regards,

Hello,

The following can be tested, however, the measurement will not be particularly precise.

It is derived from the value read by the modem module‘s ADC pin 0. The voltage is read after the voltage divider. The approximation of the schematic is below:

In order to get the actual voltage, the following calculation must be performed:

  • Uin = ADC0/k,
    • Where ADC0 is the measured value by the modem, k is the voltage division coefficient that depends on the device model used. k may differ for different devices, but it is the same for RUT950/951/956.

Also, the method below works, if your RUT device has Quectel modem module. If you have Meig, let me know.

You can consult the manufacturer of the modem module in your device with the command:

  • gsmctl -w

Here is the process:

  • Log into SSH;
  • Execute the following command:
    • gsmctl -A ‘AT+QADC=0’

      • Here’s the expected output:
        • image
    • Take the second member, which from the output, which is 788 in the screenshot and divide the number by 0.0893 (This is the ratio of voltage divider for RUT951/956 before voltage is read by the device).

      • The result is 8824 milliVolts, or ~8.8 Volts, whereas the actual PSU should supply used is 9V. That’s the imprecision part.

Best regards,

1 Like

This topic was automatically closed after 60 days. New replies are no longer allowed.