The monitor command - what replaces monitor -ams at 0.95
-
- Posts: 7
- Joined: Mon May 09, 2016 1:53 pm
The monitor command - what replaces monitor -ams at 0.95
Folks,
I'm a beginner with Red Pitaya. I want to look at Chip temps etc and the wiki gives the example:-
redpitaya> monitor -ams
#ID Desc Raw Val
0 Temp(0C-85C) a4f 51.634
1 AI0(0-3.5V) 1 0.002
2 AI1(0-3.5V) 13 0.033
3 AI2(0-3.5V) 1 0.002
4 AI3(0-3.5V) 2 0.003
5 AI4(5V0) 669 4.898
6 VCCPINT(1V0) 55c 1.005
7 VCCPAUX(1V8) 9a9 1.812
8 VCCBRAM(1V0) 55d 1.006
9 VCCINT(1V0) 55b 1.004
10 VCCAUX(1V8) 9ab 1.813
11 VCCDDR(1V5) 809 1.507
12 AO0(0-1.8V) 2b0000 0.496
13 AO1(0-1.8V) 150000 0.242
14 AO2(0-1.8V) 2b0000 0.496
15 AO3(0-1.8V) 220000 0.392
This seems to be what I need but the monitor command doesn't seem to have an -ams parameter any more!
What am I missing how do I get the chip temperature now?
--
Peter
G4DCP
I'm a beginner with Red Pitaya. I want to look at Chip temps etc and the wiki gives the example:-
redpitaya> monitor -ams
#ID Desc Raw Val
0 Temp(0C-85C) a4f 51.634
1 AI0(0-3.5V) 1 0.002
2 AI1(0-3.5V) 13 0.033
3 AI2(0-3.5V) 1 0.002
4 AI3(0-3.5V) 2 0.003
5 AI4(5V0) 669 4.898
6 VCCPINT(1V0) 55c 1.005
7 VCCPAUX(1V8) 9a9 1.812
8 VCCBRAM(1V0) 55d 1.006
9 VCCINT(1V0) 55b 1.004
10 VCCAUX(1V8) 9ab 1.813
11 VCCDDR(1V5) 809 1.507
12 AO0(0-1.8V) 2b0000 0.496
13 AO1(0-1.8V) 150000 0.242
14 AO2(0-1.8V) 2b0000 0.496
15 AO3(0-1.8V) 220000 0.392
This seems to be what I need but the monitor command doesn't seem to have an -ams parameter any more!
What am I missing how do I get the chip temperature now?
--
Peter
G4DCP
-
- Posts: 7
- Joined: Mon May 09, 2016 1:53 pm
Re: The monitor command - what replaces monitor -ams at 0.95
Here I go realizing I missed an adequate search before I wrote a query!
viewtopic.php?p=3891#p3891
This answers the question but I now have to write some extra code.
Suggestions (/ queries / puzzles),
Why was this changed? Should it not have been kept although modified to get the data the new way? Changing it this way breaks peoples code.
Can someone update the wiki? I suppose the answer to that is I should do it myself. I will if I can.
My apology for the dumb question. My google fu missed the answer under software!
viewtopic.php?p=3891#p3891
This answers the question but I now have to write some extra code.
Suggestions (/ queries / puzzles),
Why was this changed? Should it not have been kept although modified to get the data the new way? Changing it this way breaks peoples code.
Can someone update the wiki? I suppose the answer to that is I should do it myself. I will if I can.
My apology for the dumb question. My google fu missed the answer under software!
-
- Posts: 7
- Joined: Mon May 09, 2016 1:53 pm
Re: The monitor command - what replaces monitor -ams at 0.95
I now have to ask where these are documented I can't make sense of the temperature value:-
redpitaya> monitor -ams
redpitaya> monitor -?
redpitaya> monitor
monitor version 0.95-1-6deb253-6deb253
Usage:
read addr: address
write addr: address value
set slow DAC: -sdac AO0 AO1 AO2 AO3 [V]
redpitaya> cd /sys/devices/so
soc0/ software/
redpitaya> cd /sys/devices/soc0/amba_pl/
83c00000.xadc_wiz/ driver_override modalias power/ subsystem/ uevent
redpitaya> cd /sys/devices/soc0/amba_pl/83c00000.xadc_wiz/iio\:device1/
redpitaya> ls
buffer in_voltage0_vccint_raw in_voltage12_raw in_voltage3_vccpint_raw in_voltage6_vrefp_raw in_voltage9_raw subsystem
dev in_voltage0_vccint_scale in_voltage12_scale in_voltage3_vccpint_scale in_voltage6_vrefp_scale in_voltage9_scale trigger
events in_voltage10_raw in_voltage1_vccaux_raw in_voltage4_vccpaux_raw in_voltage7_vrefn_raw name uevent
in_temp0_offset in_voltage10_scale in_voltage1_vccaux_scale in_voltage4_vccpaux_scale in_voltage7_vrefn_scale power
in_temp0_raw in_voltage11_raw in_voltage2_vccbram_raw in_voltage5_vccoddr_raw in_voltage8_raw sampling_frequency
in_temp0_scale in_voltage11_scale in_voltage2_vccbram_scale in_voltage5_vccoddr_scale in_voltage8_scale scan_elements
redpitaya> cat in_temp0_raw
2778
redpitaya> cat in_temp0_scale
123.040771484
redpitaya> cat in_temp0_offset
-2219
redpitaya>
So what is the temperature in degrees C I was expecting something between 0-85. My guess might be (2778-2219)/123.040771484 but that is 4.54....
Advice please.
--
Peter
redpitaya> monitor -ams
redpitaya> monitor -?
redpitaya> monitor
monitor version 0.95-1-6deb253-6deb253
Usage:
read addr: address
write addr: address value
set slow DAC: -sdac AO0 AO1 AO2 AO3 [V]
redpitaya> cd /sys/devices/so
soc0/ software/
redpitaya> cd /sys/devices/soc0/amba_pl/
83c00000.xadc_wiz/ driver_override modalias power/ subsystem/ uevent
redpitaya> cd /sys/devices/soc0/amba_pl/83c00000.xadc_wiz/iio\:device1/
redpitaya> ls
buffer in_voltage0_vccint_raw in_voltage12_raw in_voltage3_vccpint_raw in_voltage6_vrefp_raw in_voltage9_raw subsystem
dev in_voltage0_vccint_scale in_voltage12_scale in_voltage3_vccpint_scale in_voltage6_vrefp_scale in_voltage9_scale trigger
events in_voltage10_raw in_voltage1_vccaux_raw in_voltage4_vccpaux_raw in_voltage7_vrefn_raw name uevent
in_temp0_offset in_voltage10_scale in_voltage1_vccaux_scale in_voltage4_vccpaux_scale in_voltage7_vrefn_scale power
in_temp0_raw in_voltage11_raw in_voltage2_vccbram_raw in_voltage5_vccoddr_raw in_voltage8_raw sampling_frequency
in_temp0_scale in_voltage11_scale in_voltage2_vccbram_scale in_voltage5_vccoddr_scale in_voltage8_scale scan_elements
redpitaya> cat in_temp0_raw
2778
redpitaya> cat in_temp0_scale
123.040771484
redpitaya> cat in_temp0_offset
-2219
redpitaya>
So what is the temperature in degrees C I was expecting something between 0-85. My guess might be (2778-2219)/123.040771484 but that is 4.54....
Advice please.
--
Peter
-
- Posts: 40
- Joined: Mon Nov 09, 2015 4:07 pm
- Location: East Yorkshire, UK
Re: The monitor command - what replaces monitor -ams at 0.95
Hi Peter,G4DCP wrote:redpitaya> cat in_temp0_raw
2778
redpitaya> cat in_temp0_scale
123.040771484
redpitaya> cat in_temp0_offset
-2219
redpitaya>
So what is the temperature in degrees C I was expecting something between 0-85. My guess might be (2778-2219)/123.040771484 but that is 4.54....
Advice please.
--
Peter
I tried:
(raw - offset)/scale i.e. (2778--2219)/123.040771484
which gives 40.62
Hope that helps (and is correct)
Kind Regards,
Julian (G1AUN)
-
- Posts: 7
- Joined: Mon May 09, 2016 1:53 pm
Re: The monitor command - what replaces monitor -ams at 0.95
Hi Julian,
Yes that helps. I should have thought of trying the offset the other way round!
Hopefully someone will come along and point me to where this is all documented?
At least I can progress now.
Many Thanks
Peter (G4DCP)
Yes that helps. I should have thought of trying the offset the other way round!
Hopefully someone will come along and point me to where this is all documented?
At least I can progress now.
Many Thanks
Peter (G4DCP)
-
- Posts: 4
- Joined: Thu Mar 17, 2016 4:54 pm
Re: The monitor command - what replaces monitor -ams at 0.95
Hi Peter,
did you make any progress regarding this topic by now?
I´m also trying to read the chip temperature of the RP and i´m stuck exactly at this point.
When i use Julian`s equation i always get values around 40°C. I measured directly after powering up the RP and after using it for about an hour. I think the temp should rise at least a few degrees when using it for a bit.
Best regards
Joschi
did you make any progress regarding this topic by now?
I´m also trying to read the chip temperature of the RP and i´m stuck exactly at this point.
When i use Julian`s equation i always get values around 40°C. I measured directly after powering up the RP and after using it for about an hour. I think the temp should rise at least a few degrees when using it for a bit.
Best regards
Joschi
- redpitaya
- Site Admin
- Posts: 912
- Joined: Wed Mar 26, 2014 7:04 pm
Re: The monitor command - what replaces monitor -ams at 0.95
Hi,
We did make some changes on monitor tool.
For -ams function is disabled.
You can use following commands.
https://github.com/RedPitaya/RedPitaya/ ... dc/xadc.sh
Best, RP
We did make some changes on monitor tool.
For -ams function is disabled.
You can use following commands.
https://github.com/RedPitaya/RedPitaya/ ... dc/xadc.sh
Best, RP
-
- Posts: 4
- Joined: Thu Mar 17, 2016 4:54 pm
Re: The monitor command - what replaces monitor -ams at 0.95
Hi RP,
Thanks for the quick reply. The equation in the xadc.sh brings me the correct temp values.
The only little problem now is that i have to calculate manually. The bash on my RP cannot find the "bc" command for some reason. Any ideas?
Best regards
Joschi
Edit: My bad, i forgot to install the bc. Everything works now.
Thanks for the quick reply. The equation in the xadc.sh brings me the correct temp values.
The only little problem now is that i have to calculate manually. The bash on my RP cannot find the "bc" command for some reason. Any ideas?
Best regards
Joschi
Edit: My bad, i forgot to install the bc. Everything works now.
-
- Posts: 7
- Joined: Mon May 09, 2016 1:53 pm
Re: The monitor command - what replaces monitor -ams at 0.95
Many Thanks.
I have tried the new script and have it working.
./xadc.sh
in_temp0 = 49.33 °C
in_voltage0_vccint = 1.01 V
in_voltage1_vccaux = 1.01 V
in_voltage2_vccbram = 1.01 V
in_voltage3_vccpint = 1.01 V
in_voltage4_vccpaux = 1.81 V
in_voltage5_vccoddr = 1.50 V
in_voltage6_vrefp = .41 V
in_voltage7_vrefn = 0 V
in_voltage8 = 4.31 V
in_voltage9 = .67 V
in_voltage10 = .69 V
in_voltage11 = .52 V
in_voltage12 = .93 V
Peter
G4DCP
I have tried the new script and have it working.
./xadc.sh
in_temp0 = 49.33 °C
in_voltage0_vccint = 1.01 V
in_voltage1_vccaux = 1.01 V
in_voltage2_vccbram = 1.01 V
in_voltage3_vccpint = 1.01 V
in_voltage4_vccpaux = 1.81 V
in_voltage5_vccoddr = 1.50 V
in_voltage6_vrefp = .41 V
in_voltage7_vrefn = 0 V
in_voltage8 = 4.31 V
in_voltage9 = .67 V
in_voltage10 = .69 V
in_voltage11 = .52 V
in_voltage12 = .93 V
Peter
G4DCP
-
- Posts: 2
- Joined: Mon Jun 08, 2015 6:01 pm
Re: The monitor command - what replaces monitor -ams at 0.95
Hello Peter,
i wrote the script in /home directory it dosnt work.
redpitaya> ./xadc.sh
-bash: ./xadc.sh: Permission denied
Can you explain please how you did it?
Thank you.
Andre
i wrote the script in /home directory it dosnt work.
redpitaya> ./xadc.sh
-bash: ./xadc.sh: Permission denied
Can you explain please how you did it?
Thank you.
Andre
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 102 guests