USB: 29F1:33F1
Schematics
BFGMiner
./bfgminer \
-S ICA:/dev/ttyACMx \
-o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 \
--set-device ICA:baud=115200 \
--set-device ICA:reopen=timeout \
--set-device ICA:work_division=1 \
--set-device ICA:fpga_count=1 \
--set-device ICA:probe_timeout=100 \
--set-device ICA:timing=0.22 \
--api-listen \
2>log
bfgminer.exe ^
-S ICA:\\.\COMn ^
-o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 ^
--set-device ICA:baud=115200 ^
--set-device ICA:reopen=timeout ^
--set-device ICA:work_division=1 ^
--set-device ICA:fpga_count=1 ^
--set-device ICA:probe_timeout=100 ^
--set-device ICA:timing=0.22 ^
--api-listen ^
2>log
备注:timing详见bfgminer的README,如果当前配置的频率是400MHz,则Hashrate=400*11.8=~4Gh/s
<math>\mbox{timing} = \frac{1}{4\times 10^9}\times 10^9</math>
MHS Cur = Diff1 Work * (Difficulty Accepted/(Difficulty Accepted+Difficulty Rejected+Difficulty Stale)*60/(Elapsed)*71582788/(1000000)
所有的信息可以通过./bfgminer-rpc -o summary获取。
注:如果Difficulty Accepted+Difficulty Rejected+Difficulty Stale = 0,则Difficulty Accepted/(Difficulty Accepted+Difficulty Rejected+Difficulty Stale) 取1。
- BFGMiner release from luck.dashjr
http://luke.dashjr.org/programs/bitcoin/files/bfgminer/
Cgminer for Avalon nano
- Cgminer(Icarus)compile guide
sudo apt-get install libudev-dev
./autogen.sh && ./configure --enable-icarus && make
- Cgminer(Icarus)Run params
./cgminer \
-o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 \
--icarus-options 115200:1:1 \
--icarus-timing 0.22 \
--api-listen \
2>log
Note:Please add 01-cgminer.rules to your udev rules before you run.
颜色说明
空闲状态:绿色。
工作状态:颜色随频率调整,由红变蓝。
温度过高:红色闪烁。
ULINK 2
SmartPro 5000U-Plus
LPC11u14
- LPC11U14 LPCXpresso Board Spec
Processor NXP's Cortex-M0 LPC11U14 microcontroller in LQFP48 package
Flash 32 kB
Data Memory 6 kB
Clock Crystals 12.000 MHz crystal for CPU
Dimensions 35 x 140 mm
Power 3.15V-3.3V external powering, or from USB via JTAG probe (LPC-LINK)
Connectors
• mini-B USB connector for LPC11U14 USB interface
• All LPC11U14 pins available on expansion connector (2x27 pin rows, 100 mil pitch, 900 mil between rows)
Other
• Embedded JTAG (LPC-LINK) functionality via LPCXpresso toolchain
• LPC-LINK can be connected to external target processor after modifications to the LPCXpresso board
• LED on PIO0_7
Diagnostics when connecting to LPC-Link
1. lpc-link info
crt_emu_lpc11_13_nxp -info-emu -wire=winusb
2. target info
crt_emu_lpc11_13_nxp -info-target -pLPC11U14/201 -wire=winusb -4
3. burn and run axf file
crt_emu_lpc11_13_nxp -pLPC11U14/201 -wire=winusb -flash-load-exec nxp_lpcxpresso_11u14_periph_blinky.axf
4. info scan
crt_emu_lpc11_13_nxp -info-scan -wire=winusb
5. semi_host debug
use newlib semihost
1. gdb connect
arm-none-eabi-gdb nxp_lpcxpresso_11u14_periph_blinky.axf
target extended-remote | crt_emu_lpc11_13_nxp -pLPC11U14/201 -2 -wire=winusb
load
Firmware
Reflash
Patches
For what: Cgminer patch.
From where: Based c5ec1171@https://github.com/BitSyncom/cgminer/tree/avalon2
Comments: Support avalon3 nano in cgminer.
Support Icarus protocol.
- Avalon3 nano firmware(20140523-dd84b993)
- Support nonce receive timeout check
- Support adjust freq for 100Mhz to 360Mhz,freq value after reset is 360Mhz
- Avalon3 nano firmware(20140519-8c38877c):first version
- Avalon3 nano test scripts found here:a3233_avalon_usb_testbench.sh
- Support adjust freq for 360Mhz to 400Mhz,value after reset is 400Mhz
- Include avalon3 nano module test(avalon_bsp_testben)
- bfgminer(0676fa314a9cc1491ad2e5f5c6a5e97f38fa67e3),how to run:http://wiki.0xf8.com/index.php/Bfgminer
- NOTICE: Only for testing
- Adjust LED color according to the temperature
AvalonMiner
Windows GUI
背景介绍
* 我们的设备: 针对消费类电子的 USB 设备,尺寸比一般U盘会大一些。
* 后台/命令行的程序已经做完成,我们需要做一个展示的界面。
* 展示界面:
一个状态界面,一个配置界面。
配置与状态必须使用后台程序的 Socket API 来通信。
* 参考资料
比特币挖矿入门 https://bitcoin.org/zh_CN/faq#what-is-bitcoin-mining
一些常见USB挖矿机的使用方法
http://support.dualminer.com/how-to-install/
http://rdmsnippets.com/tag/install-block-erupter-on-windows-7/
http://www.usberupter.com/how-to-mine-bitcoins-using-usb-stick/
要求
* 时间要求:3周
* 支持 MS Windows 7/8
* 界面参照 360 随身 WiFi 的界面
* 在主页上增加广告推送的地方,用户可以接受。
* 简单的安装程序(需要安装1.驱动或者相应的库(libusb);2.后台程序;3.界面主程序)
Links