Bitcoin Forum
December 10, 2016, 03:32:26 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: FPGA/Asic Plug n Play Utility for CGMiner / BFGMiner  (Read 2257 times)
infamousdutch
Member
**
Offline Offline

Activity: 105



View Profile WWW
July 07, 2012, 08:51:17 PM
 #1

FPGA/ASIC Port Scanner Mining Utility v. 0.39 by infamousDutch

This software is for miners mining on Windows that would like to use CGMiner or BFGMiner and enable it to scan for idle devices.
I know eventually they will add this functionality to already great software packages for Windows users, but if you do not want to wait until then (like me), use this.

This code is provided entirely free of charge by the programmer in his spare
time so donations would be greatly appreciated. Please consider donating to the
address below.

1M8VMoxLoDXJMAR1xM189Amo7UtofuE5Ff

Scans for idle devices(currently only BFL's Bitforce, but I will add more upon request) every 2 minutes and fires up a miner to start mining.
Currently supports cgminer and bfgminers.
Takes one parameter, the miner and mining parameters you wish to start up when a port is found to be open.

Example: fpgaScanner cgminer -c cgminer.conf --disable-gpu

Just copy fpgascanner.exe to the same folder as cgminer or bfgminer and start it with your miners configuration.

Software Requirements
Windows XP or newer
.NET Framework 4.0 Runtime  


Source code available here
https://github.com/infamousdutch/FPGAScanner

All feedback is appreciated, and I expect there to be a bug or two.
Post bugs and feedback here.

1481340746
Hero Member
*
Offline Offline

Posts: 1481340746

View Profile Personal Message (Offline)

Ignore
1481340746
Reply with quote  #2

1481340746
Report to moderator
1481340746
Hero Member
*
Offline Offline

Posts: 1481340746

View Profile Personal Message (Offline)

Ignore
1481340746
Reply with quote  #2

1481340746
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481340746
Hero Member
*
Offline Offline

Posts: 1481340746

View Profile Personal Message (Offline)

Ignore
1481340746
Reply with quote  #2

1481340746
Report to moderator
1481340746
Hero Member
*
Offline Offline

Posts: 1481340746

View Profile Personal Message (Offline)

Ignore
1481340746
Reply with quote  #2

1481340746
Report to moderator
Turbor
Legendary
*
Offline Offline

Activity: 1008


BitMinter


View Profile WWW
July 08, 2012, 08:34:12 AM
 #2

Does this scan my wallet.dat too ? Roll Eyes

rjk
Sr. Member
****
Offline Offline

Activity: 420


1ngldh


View Profile
July 08, 2012, 11:50:01 AM
 #3

Sauce pls

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
danieldaniel
Hero Member
*****
Offline Offline

Activity: 854


View Profile
July 08, 2012, 12:07:10 PM
 #4

Does this scan my wallet.dat too ? Roll Eyes
LOL.  Probably.

infamousdutch
Member
**
Offline Offline

Activity: 105



View Profile WWW
July 08, 2012, 05:19:18 PM
 #5

Does this scan my wallet.dat too ? Roll Eyes

No man, this is just a super simple .net app that has a timer that scans all available com ports, if it finds one idle, it queries it and if the device returns "bitforce" then it fires up the parameter you specified.  I've been using the last week and thought I'd share.  I'll be throwing the source up on github later today and you guys can pull/compile that.

infamousdutch
Member
**
Offline Offline

Activity: 105



View Profile WWW
July 08, 2012, 05:56:46 PM
 #6

Git repo now available at https://github.com/infamousdutch/FPGAScanner

rjk
Sr. Member
****
Offline Offline

Activity: 420


1ngldh


View Profile
July 08, 2012, 09:40:41 PM
 #7

I took a quick peek through the source, and it looks good. I'll compile it and give it a shot; looks like a useful tool.

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
P_Shep
Legendary
*
Offline Offline

Activity: 924


View Profile WWW
July 09, 2012, 08:42:00 PM
 #8

Why don't you add it to cgminer? Smiley
infamousdutch
Member
**
Offline Offline

Activity: 105



View Profile WWW
July 09, 2012, 11:44:22 PM
 #9

Why don't you add it to cgminer? Smiley

I never really thought about it.  Smiley

This was a quick utility to see if I could identify an idle mining device.  CGMiner already has a port scanner, but the code has not be adapted to run in Win32 land.  I'm willing to give you a hand with this, but my C++ is a little (meaning VERY) rough.   I could probably hack out the code needed to iterate through the ports and feed them to the existing code.  I think I would need help with the timer thread.

rjk
Sr. Member
****
Offline Offline

Activity: 420


1ngldh


View Profile
July 10, 2012, 12:05:42 AM
 #10

Yeah C# is a bitch to port over to a multiplatform C/C++ codebase unless you feel like rewriting all the associated libraries too.

Mining Rig Extraordinaire - the Trenton BPX6806 18-slot PCIe backplane [PICS] Dead project is dead, all hail the coming of the mighty ASIC!
infamousdutch
Member
**
Offline Offline

Activity: 105



View Profile WWW
July 11, 2012, 04:02:29 AM
 #11

Yeah C# is a bitch to port over to a multiplatform C/C++ codebase unless you feel like rewriting all the associated libraries too.

It's really just identifying the win32 library to retrieve all active serial ports and iterate through them, calling CreateFile to identify which devices are idle, and then sending a message to the device and reading it's response to see what type of device....  I'll hack it if someone else doesn't step up.

P_Shep
Legendary
*
Offline Offline

Activity: 924


View Profile WWW
July 11, 2012, 06:50:19 AM
 #12

Look at the cgminer code, there's a lot already there.
infamousdutch
Member
**
Offline Offline

Activity: 105



View Profile WWW
July 06, 2013, 08:08:52 AM
 #13

I updated the utility to be compatible with BFL's new asic line, as the return string has changed with their new product line.  Please let me know if anyone wants me to add support for any other hardware.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!