Bitcoin Forum
September 21, 2017, 12:07:03 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: BFGMiner Source Help  (Read 2520 times)
msmith78037
Newbie
*
Offline Offline

Activity: 1


View Profile
March 01, 2015, 02:38:19 AM
 #1

I want to write a program that can use my Saphire asic miner to generate a hash. I just need to pass in a value and get the value returned. I need some help with my class project (C#), the idea is to write a C# program that connects to a hardware device. My questions below are listed starting at the minimum and moving to more helpful.

1) Anyone what/where command codes are for a Saphire miner? By sapphire I mean the USB device that generates 333 Mh/s.
2) Anyone know which source file this correlates to? I see no sapphire driver.
3) Any guidance on which source file / function that actually does the work of passing in a parameter and handling the return value?

I did try on my own but the main function is in Sample and doesn't seem to do what I expected (possibly misunderstood  Smiley). I couldn't find the work function. And I couldn't tell which driver I needed to look at.

Thanks for any answer.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1505952423
Hero Member
*
Offline Offline

Posts: 1505952423

View Profile Personal Message (Offline)

Ignore
1505952423
Reply with quote  #2

1505952423
Report to moderator
1505952423
Hero Member
*
Offline Offline

Posts: 1505952423

View Profile Personal Message (Offline)

Ignore
1505952423
Reply with quote  #2

1505952423
Report to moderator
1505952423
Hero Member
*
Offline Offline

Posts: 1505952423

View Profile Personal Message (Offline)

Ignore
1505952423
Reply with quote  #2

1505952423
Report to moderator
nwoolls
Hero Member
*****
Offline Offline

Activity: 798


View Profile WWW
March 04, 2015, 11:54:34 PM
 #2

I want to write a program that can use my Saphire asic miner to generate a hash. I just need to pass in a value and get the value returned. I need some help with my class project (C#), the idea is to write a C# program that connects to a hardware device. My questions below are listed starting at the minimum and moving to more helpful.

1) Anyone what/where command codes are for a Saphire miner? By sapphire I mean the USB device that generates 333 Mh/s.
2) Anyone know which source file this correlates to? I see no sapphire driver.
3) Any guidance on which source file / function that actually does the work of passing in a parameter and handling the return value?

I did try on my own but the main function is in Sample and doesn't seem to do what I expected (possibly misunderstood  Smiley). I couldn't find the work function. And I couldn't tell which driver I needed to look at.

Thanks for any answer.

The relevant files are here:

https://github.com/luke-jr/bfgminer/blob/bfgminer/driver-erupter.c
https://github.com/luke-jr/bfgminer/blob/bfgminer/driver-icarus.c
https://github.com/luke-jr/bfgminer/blob/bfgminer/driver-icarus.h

That being said, ASICs including the Erupter are not made to provide hashes of random data. They take a very specific input describing work to be done and generally return a nonce that satisfies that piece of work.

It's all very specific to blockchain mining. See the following for more info:

http://bitcoin.stackexchange.com/a/1291

MultiMiner: Any Miner, Any Where, on Any Device |  MobileMiner: Monitor and manage your rigs from your browser or phone  |  Xgminer: Mine with popular miners on Mac OS X
btc: 1BmXY4ZZQh1iHSVre658gM1gPAEtDnq8rv  |  ltc: LP1SsHZTDexndkvRKsqAkXNsienPHwaMb5  |  hardware: nwoolls at gmail dot com
TYPEcoin
Full Member
***
Offline Offline

Activity: 154



View Profile
March 06, 2015, 02:24:02 PM
 #3

I'm on beginning level but this topic help me a lot, thanks.

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!