Bitcoin Forum
April 26, 2024, 06:01:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BFGMiner Source Help  (Read 2660 times)
msmith78037 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


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.
1714111298
Hero Member
*
Offline Offline

Posts: 1714111298

View Profile Personal Message (Offline)

Ignore
1714111298
Reply with quote  #2

1714111298
Report to moderator
"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.
nwoolls
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1002


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 |  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: 364
Merit: 101



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:  

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