FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
422 views 2 comments
by anonymous

Hi,

how can I configure the analog input to measure Voltage or Current using the CLI or Modbus?

The documentation only refers to Voltage.

Thanks

1 Answer

0 votes
by anonymous
Hi,

Could you explain in more detail what do you want to achieve why the documentation is not okay for you when it, as you said, refers to Voltage?

Isn't that what you need?

EB.
by anonymous
Currently, the analog input is configured to measure Voltage. In the Ui, you can change this to measure mA.

I would like to reconfigure the Analog input to measure mA using the CLI.
by anonymous

There are ways to do it:

1. changing values in /etc/config/ioman

Execute vi /etc/config/ioman

Press on your keyboard

Find either:

config acl 'acl0'

    option state ' '

or either:

config adc 'adc0'

   option state ' '

Once you've change values between ' ' , press ESC and write :wq to save and quit editing.

Restart service with /etc/init.d/ioman restart

And change states accordingly to active or inactive to change between current and voltage.

2. Through uci commands:

uci set ioman.adc0.state='active' (or inactive)

and

uci set ioman.acl0.state='inactive' (or active).

(Have in mind that one should always be disabled, you can't have both of them on at the same time.)

After uci set commands use:

uci commit ioman

luci-reload

To save and restart your services.

EB.