Bitcoin Forum
May 26, 2018, 08:06:39 PM *
News: Latest stable version of Bitcoin Core: 0.16.0  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: BFGMiner Source Help  (Read 2553 times)
msmith78037
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.
You can see the statistics of your reports to moderators on the "Report to moderator" pages.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1527365199
Hero Member
*
Offline Offline

Posts: 1527365199

View Profile Personal Message (Offline)

Ignore
1527365199
Reply with quote  #2

1527365199
Report to moderator
1527365199
Hero Member
*
Offline Offline

Posts: 1527365199

View Profile Personal Message (Offline)

Ignore
1527365199
Reply with quote  #2

1527365199
Report to moderator
1527365199
Hero Member
*
Offline Offline

Posts: 1527365199

View Profile Personal Message (Offline)

Ignore
1527365199
Reply with quote  #2

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

Activity: 840
Merit: 1001


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: 280
Merit: 100


Next Generation Antivirus


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!