I have flashed the latest firmware to the unit (FX30_WP77xx_full_R15.1.0.004-att-SWI9X06Y_02.36.06.00), added a SIM, and have the unit online.
I am trying to read a 0-10Volt input on IO2.
I have connected a 5V source to IO2 and can read β902β when I issue the cm adc read EXT_ADC1 using putty.
So based on what I have read on the forums and what I am seeing it appears cm adc read only gives you a number 0-1700 and not a true 15 bit number (0-32767).
Additionally, not sure if it my hardware FX30 (WP7702) or the newer firmware, but it does not appear that you can query the status from linux using these commands.
/sys/devices/qpnp-vadc-8/mpp4_div1 { ADC with 15 bits of resolution (FX30 Cat-1/Cat-M) }
qpnp-vadc-8 directory does NOT exist.
/sys/class/hwmon/hwmon0/device/mpp_05 { ADC with 15 bits of resolution (FX30 3G) }
mpp_05 does NOT exist either. I donβt have the 3G version of the modem, but I thought maybe it had been moved there.
Does anyone know how to query the current firmware from Linux ? (without using the cm command, which is not supposed to be used in code)
Does anyone know how to get the 15 bit reading that is supposed to be available?
0-1700 is more like a 11bit number and really limits accuracy if used for data collection.
root@fx30:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage17_input
226864
root@fx30:~# cm adc read EXT_ADC0
EXT_ADC0:222
root@fx30:~# cat /sys/bus/iio/devices/iio\:device0/in_voltage19_input
286369
root@fx30:~# cm adc read EXT_ADC1
EXT_ADC1:285
Not sure where you found this code, but this works.
in_voltage19_input is where the 6 digit voltage reading is stored for IO2.
Do you know the top end of the range?
5V = around 905000
I would assume the top end would be 1700000, but 5 volts doesnβt seem linear.
I will need to test with a variable power supply to determine the linearity of the signal if using with a 0-10 Volt Transducer.