5243 questions

6398 answers

10283 comments

6368 members

0 votes
101 views 2 comments
by

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
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
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

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.