Bitcoin Forum
April 20, 2024, 01:24:19 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Temp PCB or Temp Chips? Btc.com Tools vs Awesome Miner  (Read 316 times)
Guinsanity (OP)
Member
**
Offline Offline

Activity: 71
Merit: 17


View Profile
June 07, 2018, 01:19:56 PM
 #1

Hi Guys

Im looking at a software from mining monitoring, i want something that gives me reports in CSV files so i can compare de temps of my asics from time to time to make a full historic data.
BTC.com tools give me that report for free, but they have the temps of the PCB only and not the chips.

Awesome Miner have this function too, and they show the Chip temps.

The question is, what temperatures really matter and what is the difference? They change in the same way (now on my farm the difference is at 10C between PCB and Chips)?
If PCB temps are ok to monitor, i dont have to pay for awesome.
"Governments are good at cutting off the heads of a centrally controlled networks like Napster, but pure P2P networks like Gnutella and Tor seem to be holding their own." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713576259
Hero Member
*
Offline Offline

Posts: 1713576259

View Profile Personal Message (Offline)

Ignore
1713576259
Reply with quote  #2

1713576259
Report to moderator
1713576259
Hero Member
*
Offline Offline

Posts: 1713576259

View Profile Personal Message (Offline)

Ignore
1713576259
Reply with quote  #2

1713576259
Report to moderator
1713576259
Hero Member
*
Offline Offline

Posts: 1713576259

View Profile Personal Message (Offline)

Ignore
1713576259
Reply with quote  #2

1713576259
Report to moderator
tim-bc
Full Member
***
Offline Offline

Activity: 538
Merit: 175


View Profile
June 07, 2018, 07:51:35 PM
 #2

Monitoring the pcb temps could work if you keep in mind that the chip temps can get considerably higher.

If you write a simple batch / bash script you can check the stats and generate a csv yourself, I have done it with all 6 temps.

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Guinsanity (OP)
Member
**
Offline Offline

Activity: 71
Merit: 17


View Profile
June 08, 2018, 02:50:42 AM
 #3

Monitoring the pcb temps could work if you keep in mind that the chip temps can get considerably higher.

If you write a simple batch / bash script you can check the stats and generate a csv yourself, I have done it with all 6 temps.

Do you mind to share that batch?

I dont have programmer skills
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2941


Block halving is coming.


View Profile WWW
June 08, 2018, 05:41:38 AM
 #4

Monitoring the pcb temps could work if you keep in mind that the chip temps can get considerably higher.

If you write a simple batch / bash script you can check the stats and generate a csv yourself, I have done it with all 6 temps.
I think it couldn't give you a good temp result or estimation how hot you're every chip is.

@OP if you have more than 2 miners I think it is good if you use the awesome miner when you wanted to monitor the temps of every PCB chips it gives you accurate temps.

I think there is a free version of awesome miner but limited to 2 miners.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
tim-bc
Full Member
***
Offline Offline

Activity: 538
Merit: 175


View Profile
June 08, 2018, 06:06:24 PM
Merited by frodocooper (3), The Cryptovator (1), Guinsanity (1)
 #5

Do you mind to share that batch?

I dont have programmer skills
Sure thing. If you want the batch version I would split it up into two scripts, one to get the info and one to compile to csv. Make a new folder, where you will put everything into. First put a list called miners.txt that looks something like this:

Code:
A1 - 192.168.1.3
A2 - 192.168.1.7
A3 - 192.168.1.5
A4 - 192.168.1.6
B1 - 192.168.2.3
B2 - 192.168.2.4

and so on... Location can be anything you want, even just 1 2 3 etc. Just make sure it is like (location) - (IP) on each line, nothing blank or different format.

In this folder you also need a powershell script. Make one and call it clearNull.ps1, with this source:

Code:
Get-ChildItem ".\_\" | ForEach { (Get-Content $($_.fullname)) -replace "`0", "" | Set-Content $($_.fullname) -NoNewline }

Now make a .bat file for multithreading. Make one and call it _T.bat with the below source. You will need ncat on your system or just download ncat.exe from online and drop it in the folder.

Code:
@echo off
echo Antminer S9 Information Gathering Thread
echo.
setlocal enableextensions enabledelayedexpansion
for /f %%a in ('copy /Z "%~dpf0" nul') do set "CR=%%a"
for /F "tokens=*" %%A in (_%1.tim) do (
  for /f "tokens=1,3" %%a in ("%%A") do (
    set "tx=%%a"
    <nul set /p "=Processing miner on %%b ...      !CR!"
    echo {"command":"stats+"} | ncat %%b 4028 -w 1 > .\_\!tx!.txt 2> .\_\!tx!_.txt
  )
)
exit

Now make a batch file (call it whatever) for spawning the threads to collect the info. This is the first script you would run, to gather all the info from your miners.

Code:
@echo off
echo Antminer S9 Information Gatherer
echo tim-bc bitcointalk 2018-06-08
echo.
echo Performing step 1 of 5 (Prepare Filesystem)...
del /f /s /q .\_\ >nul 2>&1
del /f *.tim >nul 2>&1
echo Done
echo.
setlocal enableextensions enabledelayedexpansion
echo Performing step 2 of 5 (Prepare Threads)...
sort miners.txt /o _.tim
set line=-1
for /f %%a in ('copy /Z "%~dpf0" nul') do set "CR=%%a"
for /F "tokens=*" %%A in (_.tim) do (
  set /a "line=1+!line!"
  set /a "_tim=!line!/10"
  echo %%A>>_!_tim!.tim
  for /f "tokens=1" %%a in ("%%A") do (
    <nul set /p "=Processing miner !line! at %%a ...!CR!"
  )
)
echo Done                                               
echo.
echo Performing step 3 of 5 (Run Threads)...
for /f "tokens=*" %%i in ('tasklist /FI "IMAGENAME eq conhost.exe" ^| find /C "conhost"') do set _=%%i
for /l %%i in (0, 1, %_tim%) do (
  start _T %%i
)
echo Waiting for threads to complete...
:bitcointalk
for /f "tokens=*" %%i in ('tasklist /FI "IMAGENAME eq conhost.exe" ^| find /C "conhost"') do set __=%%i
if %__% gtr %_% (
 timeout /t 1 >nul
 goto bitcointalk
)
echo.
echo Performing step 4 of 5 (Clean Filesystem)...
for /r %%F in (.\*) do if %%~zF==0 del "%%F"
del /f *.tim >nul 2>&1
echo Done
echo.
echo Performing step 5 of 5 (Clean Files)...
set ThisScriptsDirectory=%~dp0
set PowerShellScriptPath=%ThisScriptsDirectory%clearNull.ps1
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%'";
echo Done
echo.
echo Press any key to exit...
pause>nul

This will make one thread per 10 miners. If you want to change this number just edit the line _tim=!line!/10" and change to your liking.

After you have done all this, if you run the script you see the results in a folder in a bunch of different text files. Make a batch file (in the main folder) with this source to parse these text files into a csv:

Code:
@echo off
echo Antminer S9 Information Compiler
echo(
echo Location,Elapsed,Realtime Hashrate,Average Hashrate,Left Hashrate,Center Hashrate,Right Hashrate,Boards Detected,Chips Detected (Left),Chips Detected (Center),Chips Detected (Right),Fans Detected,Faster Fan Speed,Slower Fan Speed,Optimal Frequency,Average Frequency,Left Frequency,Center Frequency,Right Frequency,ASIC Temp (Left),ASIC Temp (Center),ASIC Temp (Right),Ambient Temp (Left),Ambient Temp (Center),Ambient Temp (Right),%% Hardware Error,Firmware Version,Miner Version,Miner ID>__.csv
setlocal enableextensions enabledelayedexpansion
for %%f in (.\_\*.txt) do (
 set "_location=%%f"
 if exist .\_\!_location!.txt (
  for /f "delims=" %%a in (.\_\!_location!.txt) do set tx=%%a
  set tx=!tx:"=!
  set tx=!tx::=!
  set tx=!tx:%%=!
  set "_=!tx:*Elapsed=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _elapsed=%%a
  set "_=!tx:*GHS 5s=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _rt=%%a
  set "_=!tx:*GHS av=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _avg=%%a
  set "_=!tx:*chain_rate6=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _rtright=%%a
  set "_=!tx:*chain_rate7=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _rtcentre=%%a
  set "_=!tx:*chain_rate8=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _rtleft=%%a
  set "_=!tx:*Device Hardware=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _hw=%%a
  set "_=!tx:*miner_count=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _chains=%%a
  set "_=!tx:*chain_acn6=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _asicright=%%a
  set "_=!tx:*chain_acn7=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _asiccentre=%%a
  set "_=!tx:*chain_acn8=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _asicleft=%%a
  set "_=!tx:*fan_num=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _f=%%a
  set "_=!tx:*fan3=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _f3=%%a
  set "_=!tx:*fan6=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _f6=%%a
  set "_intake=!_f3!"
  set "_exhaust=!_f6!"
  IF !_f6! GTR !_f3! (
   set "_intake=!_f6!"
   set "_exhaust=!_f3!"
  )
  set "_=!tx:*frequency=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _freq=%%a
  set "_=!tx:*total_freqavg=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _freqavg=%%a
  set "_=!tx:*freq_avg6=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _freqright=%%a
  set "_=!tx:*freq_avg7=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _freqcentre=%%a
  set "_=!tx:*freq_avg8=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _freqleft=%%a
  set "_=!tx:*temp6=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _localright=%%a
  set "_=!tx:*temp7=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _localcentre=%%a
  set "_=!tx:*temp8=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _localleft=%%a
  set "_=!tx:*temp2_6=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _chipright=%%a
  set "_=!tx:*temp2_7=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _chipcentre=%%a
  set "_=!tx:*temp2_8=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _chipleft=%%a
  set "_=!tx:*CompileTime=!"
  for /f "tokens=1 delims=," %%a in ("!_!") do set _fw=%%a
  for /f "tokens=2,3,6" %%a in ("!_fw!") do set "_sfw=%%c %%a %%b"
  set "_=!tx:*miner_version=!"
  for /f "tokens=1 delims=,}" %%a in ("!_!") do set _bv=%%a
  set "_=!tx:*miner_id=!"
  for /f "tokens=1 delims={}" %%a in ("!_!") do set _bid=%%a
  echo !_location!,!_elapsed!,!_rt!,!_avg!,!_rtleft!,!_rtcentre!,!_rtright!,!_chains!,!_asicleft!,!_asiccentre!,!_asicright!,!_f!,!_intake!,!_exhaust!,!_freq!,!_freqavg!,!_freqleft!,!_freqcentre!,!_freqright!,!_chipleft!,!_chipcentre!,!_chipright!,!_localleft!,!_localcentre!,!_localright!,!_hw!,!_sfw!,!_bv!,!_bid!>>__.csv
 )
)
echo Processed miners. Miner data can be found in __.csv
echo Press any key to exit...
pause>nul

Together, these batch scripts will produce you a csv with your miner's location (whatever format you use), time elapsed hashing to pool, realtime hashrate (5s average), average hashrate, realtime on each board, how many boards are plugged in, how many chips detected on each board, number of fans detected, faster fan speed, slower fan speed, optimal frequency, average freq, freq on each board, chip temperature for each board, local/pcb temp for each board, hw errors for each board, firmware compile date, miner version, miner internal ID

Enjoy!

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Guinsanity (OP)
Member
**
Offline Offline

Activity: 71
Merit: 17


View Profile
June 10, 2018, 07:14:33 PM
Last edit: June 12, 2018, 01:38:44 AM by frodocooper
 #6

Nice man, but im having some issues to run

I download the netcat from this link https://eternallybored.org/misc/netcat/ and put in the same folder

The "exe" file on the rar have the name of nc.exe, so I edited the _T from "netcat" to "nc"

When i run, on step 3 the CMD opens another window with "the system cannot find the path especified", i think theres a problem with netcat (already give permissions on my antivirus).

On step 5 im having this bug

Code:
Get-ChildItem : Cannot find path 'G:\Mining Control\_\' because it does not exist.
At G:\Mining Control\clearNull.ps1:1 char:1
+ Get-ChildItem ".\_\" | ForEach { (Get-Content $($_.fullname)) -replac ...
+ ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (G:\Mining Control\_\:String) [Get-ChildItem], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
tim-bc
Full Member
***
Offline Offline

Activity: 538
Merit: 175


View Profile
June 11, 2018, 04:26:08 AM
Last edit: June 12, 2018, 01:38:07 AM by frodocooper
 #7

The problem is probably with netcat like you mentioned. The step 5 issue is just a result of not having any text files in the folder.

The version of netcat that you downloaded relies on external library files. I would use one that is statically compiled specifically for Windows. e.g. http://nmap.org/dist/ncat-portable-5.59BETA1.zip Sorry for the confusion, I should have linked to this one specifically. If you still have issues with this ncat.exe let me know.

Also you should copy and paste what you have in miners.txt so I can see if you are using the proper format.

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Guinsanity (OP)
Member
**
Offline Offline

Activity: 71
Merit: 17


View Profile
June 11, 2018, 06:46:54 PM
Last edit: June 12, 2018, 01:39:32 AM by frodocooper
 #8

Ok, downloaded ncat and put in the same folder

My miners.txt is like this

Code:
A1 - 192.168.1.178
A2 - 192.168.1.138
A3 - 192.168.1.10
A4 - 192.168.1.30

When i run the search.bat the system stops on step 3, open a new cmd window with this

Code:
Antminer S9 Information Gathering Thread

The system cannot find the path specified.

G:\Mining Control\Teste>

And have the same error on step 5 that i said before

Then I tried to execute the search bat on admin priviledges, the error is in the img above with the name of the folders

https://imgur.com/a/nMgwxXe
tim-bc
Full Member
***
Offline Offline

Activity: 538
Merit: 175


View Profile
June 12, 2018, 11:40:07 AM
 #9

The miners.txt format is good, you can make the "location" any unique text you want by the way.

I sat here staring at it for like 10 minutes until I realized it might be because your folder has a space in it. You should try removing the space from the folder. Also in the folder you have you should make another folder called _ (just one underscore) to hold all the text file results. I didn't mention that before because I thought the program made that folder automatically but I guess not.

Let me know if it works and if not idk, I will reduce it to a non-multithreaded version which probably is simpler but just a little slower.

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Guinsanity (OP)
Member
**
Offline Offline

Activity: 71
Merit: 17


View Profile
June 12, 2018, 05:52:51 PM
 #10

The miners.txt format is good, you can make the "location" any unique text you want by the way.

I sat here staring at it for like 10 minutes until I realized it might be because your folder has a space in it. You should try removing the space from the folder. Also in the folder you have you should make another folder called _ (just one underscore) to hold all the text file results. I didn't mention that before because I thought the program made that folder automatically but I guess not.

Let me know if it works and if not idk, I will reduce it to a non-multithreaded version which probably is simpler but just a little slower.

No, same problem,
i changed the files to desktop with a folder with no space, and created a _.txt file (it disappear after running the search bat, still having the same bug on step 3. Try to run in admin and the same problem as before

tim-bc
Full Member
***
Offline Offline

Activity: 538
Merit: 175


View Profile
June 16, 2018, 06:57:14 PM
Merited by Guinsanity (1)
 #11

Hey, sorry for taking some days. I slightly modified the scripts to remove the multithreading and I put everything in a .zip file. Just download and extract it, change what is in miners.txt and you should be good to go.

Here is the link: https://www.dropbox.com/s/1rz8vds7fuje3hx/Guinsanity.zip?dl=0

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Guinsanity (OP)
Member
**
Offline Offline

Activity: 71
Merit: 17


View Profile
June 17, 2018, 02:28:30 PM
 #12

Hey, sorry for taking some days. I slightly modified the scripts to remove the multithreading and I put everything in a .zip file. Just download and extract it, change what is in miners.txt and you should be good to go.

Here is the link: https://www.dropbox.com/s/1rz8vds7fuje3hx/Guinsanity.zip?dl=0

Works Flawessly
And they show everything, much more than others monitor softwares!!
Now im gonna start my temp studies.
Please send your btc wallet for a tip.
tim-bc
Full Member
***
Offline Offline

Activity: 538
Merit: 175


View Profile
June 18, 2018, 02:34:49 AM
 #13

Works Flawessly
And they show everything, much more than others monitor softwares!!
Now im gonna start my temp studies.
Please send your btc wallet for a tip.
So glad that I could help you out! You can tip me at 1Gnp5Gr3oUNFaPJKXCKNKkjgZWFEUHoXNg (thank you!)
Perhaps I should expand these scripts instead of just making a csv so that it could actually rival other monitoring softwares.

Ignore scammers on Skype, Telegram, etc. I will only ever contact you via forum PMs. See profile for fingerprint.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!