Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
119 user(s) are online (89 user(s) are browsing Forums)

Members: 0
Guests: 119

more...

Support us!

Headlines

 
  Register To Post  

(1) 2 3 »
x5000 temperature scrtips and dockies (update2 minimum)
Home away from home
Home away from home


See User information
@All

Reading os4welt.de a few days ago, find out that Cyborg made an ARexx script, which just read the temperature data of the x5000 (see page5):

https://os4welt.de/viewtopic.php?f=28&t=2364

He also shows an example of how he put it all on the workbench title bar.

So I modified it a bit:

1). updated it a bit so it will check if rexxsupport.library was loaded or not, and if not addlib it (as can cause issues with some ARexx commands if not).

2). put "forever loop" with delay(50) so it will run every few seconds without CPU loading. So you can put it to prefs:wbstartup

3). made it set necessary env variables, so you can use them for the title bar of a workbench in the prefs:workbench/screen_title_format settings.

4). translate german comments to English so you know what it does :)

Now, there is a modified script:

/* Read and output temperature sensors of the X5000 */

IF ~show('L','rexxsupport.library'THEN CALL addlib('rexxsupport.library'0, -30)

/* Open the port handler with parameters according to TRM */
IF OPEN('Ser1''SER:38400/UNIT=1/FLOW=NONE/8N1') ~= 1 THEN DO
    
SAY 'Could not open port handler'
    
EXIT 10
    END
ELSE DO FOREVER
    
/* a bit of wait to avoid cpu loading */
    
CALL delay(50)

    
/* Send temperature command to MCU              */
    /* No line feed! WRITELN () does that itself */
    
WRITELN('Ser1''#t')

    
/* And read what the MCU returned to us, max. 11 bytes of data + 1 ln */
    
temps READCH('Ser1'12)
    
/* SAY 'Raw data read: ' temps */

    /* A couple of checks according to TRM */
    
IF LENGTH(temps) ~= 12 THEN DO
        
SAY 'Implausible length of the answer!'
        
EXIT 10
        END
    
ELSE DO
        IF 
INDEX(temps"$t") ~= 1 THEN DO
            
SAY 'Format of the answer incorrect!'
            
EXIT 10
            END
    END

    
/* Split apart according to TRM and convert from hex to decimal */
    
pcbSign SUBSTR(temps31)
    
pcbTemp X2D(SUBSTR(temps42))
    
cpuSign SUBSTR(temps61)
    
cpuTemp X2D(SUBSTR(temps72))
    
pciSign SUBSTR(temps91)
    
pciTemp X2D(SUBSTR(temps102))

    
    
/* Set necessary environment variables */
    
myCmd 'SetEnv temp_pcb 'pcbTemp '°C'
    
address command myCmd
    myCmd 
'SetEnv temp_cpu 'cpuTemp '°C'
    
address command myCmd
    myCmd 
'SetEnv temp_pcie 'pciTemp '°C'
    
address command myCmd

/*
    SAY 'Temperatures:'
    SAY '   Motherboard: 'pcbSign''pcbTemp '°C'
    SAY '   CPU........: 'cpuSign''cpuTemp '°C'
    SAY '   PCIe-Switch: 'pciSign''pciTemp '°C'
*/

END


WARNING ! Be sure you run prefs:serial and click "Save" at least , or script will not works! (dunno details, probabaly create something somewhere which isn't by default).

WARNING 2: it will make your system slug when script will query temp, so fixed C version (see at end) will be surely better

All the changes which need to do for the script itself, for the prefs:workbench, for the prefs:wbstartup, and how it all looks like after in title bar of workbench shown on the screenshot below (click open in new tab for full size). See at the title bar

Resized Image


BTW, see with Noctua cooler which is 3000 RPM giving 19.3dBA only (very silent) CPU temp is about 65-66C. Not that much and IMHO OK, but with the one I got with a motherboard (DC BRUSHLESS model AFB0612EHD) which got 6600 RPM, but also 45 (!) dBA (very noise), I got just about 56C


Anyway, if any of you need it, and doesn't want to bother with tinkering, there a ready script + icon to download:

http://kas1e.mikendezign.com/aos4/tempx5k/tempx5k.arexx
http://kas1e.mikendezign.com/aos4/tempx5k/tempx5k.arexx.info

Also, in the same thread on os4welt (page8), Zerohero tried to make a C analog so it will be not a script, but simply and small tiny good binary which we can easily use in WBStartup as well without messing with ARexx, but... I can't make it to works, there probably some little bug in. Maybe anyone can spot it? There is a code:

http://kas1e.mikendezign.com/aos4/tempx5k/x5ktemp_zeroG.c

This one from ZeroG for sure will be of better use, and it will waste much less cpu than this "forever" loop with delays.


Edited by kas1e on 2020/12/25 9:13:16
Edited by kas1e on 2020/12/25 12:16:15
Edited by kas1e on 2020/12/25 12:17:16
Edited by kas1e on 2020/12/25 13:43:47
Edited by kas1e on 2021/3/9 7:25:14
Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Just popping in
Just popping in


See User information
I use a Noctua NF-R8 17.1dBA 1800RPM fan and get's about 60C.
The fan size is 80x80mm so i used my $99 3d-printer to print out a 60->80mm fan adaptor.

Btw, Nice script!

Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@smf

I noted the details fully now, and tested with system power on and waiting 10-15 minutes doing nothing with RadeonHD in (but with Radeon RX values the same btw). Also different tests with all fans from tower disabled/enabled (i have 3, one back 2 at the top), so:

With the default "DC BRUSHLESS model AFB0612EHD" (60x60, 6600 RPM and 45 dBA noise).

All fans from the tower disabled:

MainBoard: 39
CPU: 56
PCIe: 74


With all fans from the tower enabled:

MainBoard: 37
CPU: 54
PCIe: 74


With Noctua-nf-a6x25-flx (60x60, 3000 RPM, 19.3 dBA):

All tower fans enabled:

MainBoard: 43
CPU: 60
PCIe: 75

All tower fans disabled:

MainBoard: 44
CPU: 62
PCIe: 76

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@All

Btw, I made a small video showing how to replace CPU Fan on X5K. Not that it something about learns you how to do so, just tried to make a nice vid with comments and stuff (turn the volume up)

https://youtu.be/r7Px4c5RcP8

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Did your X5K come with that loud AFB0612EH 6600 rmp Delta fan by default?

My X5K is fit with the Silent 6 by Gelid.

Fan Speed (RPM): 3200
Noise Level (dBA): 24
Link to the fan: https://gelidsolutions.com/thermal-solutions/case-fan-silent-6/

I will test my X5K as well and check the Temp.


AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 550 / ATI X1950 / M-Audio 5.1 -> AmigaOS 4.1 FE / Linux / MorphOS
Amiga 1200 -> Recapped / PiStorm CM4 / SD HDD / WifiPi connected to the NET
Vampire V4SE TrioBoot
RPI4 AmiKit XE
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@Skateman
Probably at some point and for a full system they put Silent6, but as I was the first one who got just the first motherboards for beta-testing, I got one with such a crappy noisy cooler. imagine 45dBA! Maybe they put 6600 RPM ones for beta-test just to be sure it did not die because of overhot issues or something :)

I think something like a "modern graphics card" make such a noise, but no, it was this crappy CPU fan! Now I have that Noctua 3000 RPM / 19.3 dBA, and sometimes I even think is my x5000 up and running at all? And yeah, it is, just very silent now.

ps. Checked now while x5000 was up and running for 5 hours:

MotherBoard: 45C
CPU: 63C
PCIe: 77C

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Here my temp.

I was playing MACE, WinAMP playing online stream, Odyssey running with few tabs open. ..

Temperatures:
Motherboard: +35 °C
CPU........: +51 °C
PCIe-Switch: +61 °C

AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 550 / ATI X1950 / M-Audio 5.1 -> AmigaOS 4.1 FE / Linux / MorphOS
Amiga 1200 -> Recapped / PiStorm CM4 / SD HDD / WifiPi connected to the NET
Vampire V4SE TrioBoot
RPI4 AmiKit XE
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@Stakeman

And that just with Silent6 and nothing else? 51C for CPU quite better than 65 :) Can you make a photo of your heatsink under the cooler as well (maybe they change it too for the full system releases)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Not too shy to talk
Not too shy to talk


See User information
@kas1e

One hour+ later and running shaderjoy with the kissing donuts..

Temperatures:
Motherboard: +39 °C
CPU........: +54 °C
PCIe-Switch: +66 °C


AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 550 / ATI X1950 / M-Audio 5.1 -> AmigaOS 4.1 FE / Linux / MorphOS
Amiga 1200 -> Recapped / PiStorm CM4 / SD HDD / WifiPi connected to the NET
Vampire V4SE TrioBoot
RPI4 AmiKit XE
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@All

Ok, I find out what wrong with the C version. There is a long story if one interested (and who not, can scroll down to download ready binary + fixed source).

For first I checked TRM (technical reference manual) for Cyrus. It says that you can send 4 commands to the MCU :

1). #s for power-off (yeah, just power off the machine)
2). #t for temperature (motherboard, CPU, and PCIe-switch)
3). #v for voltages (lots of them for CPLD, Xena, Ethernet, etc, etc).
4). #f for CPU Fan (to get values when Fan connected on the CPU Fan connector).

Firstly I start playing with ARexx by sending this kind of data to the serial port and read the answer-back, to see if all ok.

A shutdown was ok. The temperature was ok. FAN info was ok. But volts wasn't ok!

For volts there seems to be a bug: If you read more than 51 bytes - then it just stuck. Like buffer ends.

Seeing TRM there written that VOLT data is 13 pairs per 4, so 13*4 = 52 + 2 for $v (returns at beginning of buffer so you sure its correct data) + 1 for termination, so it should read fine at least 54 or 55 with a carriage return. But I only can read 51 bytes without being "stuck", and have such an output:

$v0322031B010100630323023101150103010A010A01320152

While in their example its a bit bigger:

$v031E031E01000100031E023201140100010A010A013201500041

So it seems that instead, they have 12 pairs per 4 bytes, not 13. so 48, +2 for $t return, +1 for "null termination" and then it explains while for 52 it stuck, as it can maximum 51.

In other words, I have a wild idea that for VOLT "Serdes" (this is the last field in returned structure) can't be read. Buggy, or not implemented, dunno. That can explain why Zerohero's version didn't work and stuck the same as it stuck when I tried to read in ARexx more than 51 bytes.


So fixed C version of ZeroG code which read temperatures, volts and fan data (RPM, PWM, etc), source, binary, 2 ARexx scripts are there:

Source: http://kas1e.mikendezign.com/aos4/tem ... _temp_no_serdes_working.c
Binary: http://kas1e.mikendezign.com/aos4/tem ... 5k_temp_no_serdes_working

Arexx script to just return back unparsed data of Fan CPU: http://kas1e.mikendezign.com/aos4/tempx5k/temp_FANCPU.arexx

Arexx script to just return back unparsed data of Voltages: http://kas1e.mikendezign.com/aos4/tempx5k/temp_VOLT.arexx

Probably from this C code can be done pretty good nice dockie! Or at minimum, it can be used to set return values of temperatures to the environment, and the same used in the screen title bar (which is better than ARexx scripts, IMHO).


Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@all

And there is a version which only read the temperatures and set the same necessary environment values as previous ARexx scripts in the first post (so you can use it in WBStartup instead of ARexx scripts):

source:http://kas1e.mikendezign.com/aos4/tempx5k/x5k_temp_reader.c
binary:http://kas1e.mikendezign.com/aos4/tempx5k/x5k_temp_reader

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Just popping in
Just popping in


See User information
@kas1e

I got the A-EON X5000/40 with Silent 6 by Gelid.

Example photo:
https://amigaone.files.wordpress.com/2015/08/cyrus2-2_large.jpg

Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@All
Can some of you run this : http://kas1e.mikendezign.com/aos4/tem ... 5k_temp_no_serdes_working

And put their full outputs? Interesting to see about voltages (for me they a bit different compare with TRM ones)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Temperaturen
************
PCB 41ÐÑC CPU 56ÐÑC PCIe 62ÐÑC

Spannungen
**********
CPLD 3320mV
XenaXorroA 3300mV
XenaXorroB 1000mV
PCIe 1000mV
Xena 3360mV
3,3V Schiene 2490mV
2,5V Schiene 1210mV
Ethernet 1030mV
Platform 1090mV
CoreA 1090mV
CoreB 1490mV
DDR3 1820mV
LÐÑfter
******
PWM-Signal 80
Drehzahl/min 2760

1989-> A500, A600, A3000, A4000, A1200, CD32, µA1, PegII, A1XE, CDTV, Amy/416D79, A1X5000, Vampire 500 V2+, Vampire 600 V2, Amy-ITX, Denise ITX <-2024
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@khayoz

Right, same as for me:


3.3V Schiene give 2.5V instead, and 2.5V Schiene give 1.2V: shouldn't it be 3.3 and 2.5 instead there?

Xena 1.0V: shows 3.3V instead (in TRM written 1.0v should be)

Also,, Core1 is 1.1V as expected but Core2: 1.5v. While in TRM written, that Core2 also should be 1.1 for 5020.

And DDR3 in TRM written should be 1.5V, while i also have 1.8V too.

But at least you have almost same values as me, meaning my board is not broken :)

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Not too shy to talk
Not too shy to talk


See User information
And here you have my output!

Temperaturen
************
PCB 29ÐÑC CPU 44ÐÑC PCIe 55ÐÑC

Spannungen
**********
CPLD 3330mV
XenaXorroA 3360mV
XenaXorroB 1000mV
PCIe 990mV
Xena 3350mV
3,3V Schiene 2490mV
2,5V Schiene 1200mV
Ethernet 1030mV
Platform 1090mV
CoreA 1090mV
CoreB 1490mV
DDR3 1800mV
LÐÑfter
******
PWM-Signal 50
Drehzahl/min 2160


AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon RX 550 / ATI X1950 / M-Audio 5.1 -> AmigaOS 4.1 FE / Linux / MorphOS
Amiga 1200 -> Recapped / PiStorm CM4 / SD HDD / WifiPi connected to the NET
Vampire V4SE TrioBoot
RPI4 AmiKit XE
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Home away from home
Home away from home


See User information
@Skateman
Yeah, so we all have the same values. Just some of them strangely different from those ones written in TRM for Cyrus.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Quite a regular
Quite a regular


See User information
@kas1e

got this on my X-5000 :

Temperaturen
************
PCB 45ÐÑC CPU 63ÐÑC PCIe 66ÐÑC

Spannungen
**********
CPLD 3360mV
XenaXorroA 3380mV
XenaXorroB 1000mV
PCIe 990mV
Xena 3340mV
3,3V Schiene 2500mV
2,5V Schiene 1210mV
Ethernet 1030mV
Platform 1100mV
CoreA 1090mV
CoreB 1490mV
DDR3 1820mV
LÐÑfter
******
PWM-Signal 192
Drehzahl/min 3120

Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Not too shy to talk
Not too shy to talk


See User information
X5000/20

Temperaturen
************
PCB 41ÐÑC CPU 58ÐÑC PCIe 58ÐÑC

Spannungen
**********
CPLD 3340mV
XenaXorroA 3390mV
XenaXorroB 1010mV
PCIe 1010mV
Xena 3360mV
3,3V Schiene 2500mV
2,5V Schiene 1210mV
Ethernet 1030mV
Platform 1100mV
CoreA 1090mV
CoreB 1490mV
DDR3 1810mV
LÐÑfter
******
PWM-Signal 80
Drehzahl/min 2820

Go to top
Re: x5000 temperature ARexx script mod from Cyborg (update2 must)
Not too shy to talk
Not too shy to talk


See User information
@derfs

looks like the values are out of alignment e.g.

CPLD 3340mV should be XenaXorro A3340mV

@Kas1e - maybe the missing bits are from the other end than what you originally thought?

*edit*

Actually I believe it may just be a simple case of the TRM being wrong.

After looking through the rest of the document for details on the xorro slot I have found references to it being 3.3V and not 1.0V, so it could be a simple case of copy and paste gone mad and the order is actually

1. CPLD3.3V
2. Xena
/Xorro 3.3V
3. PCIe 
switch, 1.0V
4. Xena 1.0V
5. 3.3V
6. 2.5V
7. Ethernet 1.2V
8. Platform
1.0V
9. Core A
1.0V for P3041 1.1V for P50201.1V-1.2V for P5040
10. Core B
1.0V for P3041 1.1V for P50201.1V-1.2V for P5040
11. DDR3 IO
1.5V
12. Serdes
1.8V


What do you think?


Edited by derfs on 2020/12/28 16:23:39
Go to top

  Register To Post
(1) 2 3 »

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project