Bitcoin Forum
May 10, 2024, 10:03:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: [DIY] Tube/Prisma USB Adapter from USB Blockerupter  (Read 10292 times)
novak@gekkoscience (OP)
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
November 14, 2014, 01:43:35 AM
Last edit: November 15, 2014, 07:36:05 PM by novak@gekkoscience
 #1

I wanted to reverse engineer the USB adapter from ASICMiner for
Tubes/Prismas so I built one out of an old USB Blockerupter.  The
Blockerupter, like most (all?) USB-controlled bitcoin hardware makes use of
the CP2102 USB-UART adapter, just like the adapter from asicminer.  Here's
a picture of the adapter, showing which pins are which.


To use the blockerupter, you want to get rid of anything potentially using
the BE100 chip, or communicating on the UART.  Here's the blockerupter,
showing what I removed.  Some of this is optional, but I wanted to reuse
the inductor pads for wiring so make sure to get rid of big caps as well.


Once you've got a bunch of the stuff pulled, plug it into a computer and
check if it works.  The SI labs website has a handy tool for checking if
CP2102s are in working order.  Everything on the chip should be factory
defaults.


Now you need to wire the UART RXD and TXD pins to output wires.  Find the
smallest wire you can.  I used single strands from a stranded 24 AWG wire,
and it worked pretty well.  The RXD pin on the CP2102 goes to the topmost
left pin of the microcontroller, an Atmel 2313 AVR, and the TXD pin goes
to the leftmost top pin on the micro.  I jumped them from these tiny pads
to the inductor pads.  You can jump them where you think best, but don't
short to something which would interfere with the signal.  There is one
more issue.  If you look closely at the RXD pin on the ASICMiner adapter,
you'll notice that it is tied high (to 3.3V, not 5V) through a 1K
resistor.


We need to run a 1K resistor from 3.3V to RXD.  C5 and C6 are the output
capacitors from the internal regulator for the CP2102.  Jump from them to
RXD.  Here's a picture showing where all the wiring on the blockerupter
needs to go.  Remember, leftmost top pin, and topmost left pin from the
microcontroller.


It should function as a USB-UART adapter now!  Hook up GND, TXD, and RXD
as shown in the first picture and fire up your miner!  The final product
should look something like this.  I added some hot glue to keep the tiny
wires in place.


It seemed to work as well as the ASICMiner adapter, here's a screenshot
from a single prisma board hashing:


You should theoretically be able to use any CP2102 USB-UART with
a 1K pullup resistor from 3.3V to RXD in this fashion.

EDIT: Moved pictures temporarily so they will load.  I might mess with resizing them later.

--
novak

1715378615
Hero Member
*
Offline Offline

Posts: 1715378615

View Profile Personal Message (Offline)

Ignore
1715378615
Reply with quote  #2

1715378615
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
ManeBjorn
Legendary
*
Offline Offline

Activity: 1288
Merit: 1004



View Profile
November 14, 2014, 11:41:11 AM
 #2

Excellent job and good way to find a new use for the old block erupters.
Nice guide as well.

Swimmer63
Legendary
*
Offline Offline

Activity: 1593
Merit: 1004



View Profile
November 18, 2014, 10:22:48 PM
 #3

Wow - you are good. 
tutorialevideo
Legendary
*
Offline Offline

Activity: 1161
Merit: 1001

Don`t invest more than you can afford to lose


View Profile WWW
November 19, 2014, 08:00:36 AM
 #4

Keep the updates flow Smiley

Hosting Bitcoin and any mining gear in Europe/Romania.

https://bitcointalk.org/index.php?topic=5228685.msg53918147#msg53918147

For more info you can write me!
ManeBjorn
Legendary
*
Offline Offline

Activity: 1288
Merit: 1004



View Profile
November 19, 2014, 09:07:56 AM
 #5

We would like to hear from you all.  He can do a run of UARTs for this.
If there is enough interest I will get him the funds and he can get them going.  I know they are hard to get and depending on the amount needed we can get the run going.
I have been working with him behind the scenes to get project going.  Novak is a talented guy that is for sure.

So everyone let us know here if you are interested and we will get it going.  I will give him what ever help he needs.

Thank you.

novak@gekkoscience (OP)
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
November 19, 2014, 10:40:41 AM
 #6

Just to elaborate on ManeBjorn's point, here's the plan:

Instead of building these adapters from scratch, I'm looking for an existing USB-UART using the CP2102 which I can adapt (essentially the only requirement besides being a CP2102 USB-UART is having a LED tied to RXD- let me know if you have one, and post a couple pictures so I can find a clone for sale more easily).  Once I find a good cheap option, I can make a professional looking USB-UART adapter suitable for tubes and prismas by switching only a couple of surface mount parts.  This will be faster to make than buying everything from scratch, especially PCBs, and cheaper too unless I'm making at least several hundred.

In about a week or so I should be getting in some adapters which I will test for suitability (Not all of them would necessarily be just a simple SMD swap, it might require a through hole jumper/resistor hanging off, which I would like to eliminate).  Once I know what adapter to use I will have a price and know what changes are required.  For now, a crude price estimate is about $4-$7 plus shipping, depending on what quantity the batch is and how cheaply I can find good adapters.  No promises yet, everything is up in the air.  ManeBjorn has been working/discussing with me to try to improve the tubes since they first came out, especially with regard to the BE-controller debacle.

The only reason I am even considering a production run is how bad of a job ASICMiner is doing at shipping adapters / selling to existing tube owners.  If they step up their game this becomes fairly pointless. 

So let me know if you're interested!  I will update as I have more info.

--
novak
novak@gekkoscience (OP)
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
November 20, 2014, 01:06:16 AM
 #7

Person6278 PM'd me a while back, he picked up a USB-UART and got it working by adding a resistor:

https://bitcointalk.org/index.php?topic=865503

In unrelated news I've ordered a couple of UARTs as well, probably be here early next week.

--
novak
novak@gekkoscience (OP)
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
November 28, 2014, 05:01:15 PM
 #8

I finally played with some USB-UART adapters and  got one of two to work while looking nice.  The other I thought would work, but the pins were incorrectly labeled, as in RXD was actually TXD.  The key is to find a CP2102 USB-UART with an LED on the RXD line.  Typically, this LED will have a pull-up resistor to 3.3V.  I replaced both the LED and resistor with 0805 SMD 470 ohm resistors, which comes out to be about 940 ohms, or fairly close to the 1K used on the tubes.  I tested it and it seems to work just fine.

I apologize for this picture, I might have to bring in my camera or find somewhere better lit.  It's impossible to read the resistors, but two of them are replaced, specifically the one right next to the letters RXD and the one right beneath that.



I plan on ordering UARTs on Monday, so if you're going to want some let me know so that I get enough.  Right now I have a couple places I could purchase them, resulting in either a $5 price tag and a ~14 day turn around, or a $7 price tag and a ~6 day turn around (to be clear, the price is the end price I would sell at, although shipping is extra and days means business days because most of the time is waiting for shipments to arrive).  Let me know if you have a preference.  If no one says much I'll probably go with the faster one as I think most people who want them want them yesterday.  If I need to order a whole lot I might go with the cheaper option and I'd probably be able to drop the price a little too.  So far I haven't had requests for even 25 total, so that's a pretty tiny batch.

As to the wiring, I just used the cables that came with the adapter and small pieces of solid-core wire to plug between the female connector on the adapter cable and the UART cable (white one that comes with tubes/prismas).

If you want to save a buck or two I don't mind telling you which adapters to buy and how to replace the resistors yourself.  I used a hot air station, but you can certainly do it with a soldering iron although I recommend a fine tip. I've swapped resistors that size using an iron before without much trouble.

--
novak
novak@gekkoscience (OP)
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
December 02, 2014, 06:04:09 PM
Last edit: December 03, 2014, 11:35:43 PM by novak@gekkoscience
 #9

So, I got hold of the seller in the US, and they did not have sufficient stock.  I looked around for another US seller offering the same part but couldn't find one.  I did however, find even cheaper pricing from an oversea seller.  So I will be offering the adapters at $4.50 each (plus shipping, which should only be $2.50 in the US), and they will be delivered between 6 and 18 business days.  I guess shipping around the holidays is messy.  At any rate, it should only take me a couple days to rework them, test them, and get them back out.  

If you would like to buy one or more, just PM me or email sales@gekkoscience.com

Edit:  Link to the group buy page: https://bitcointalk.org/index.php?topic=882348

--
novak
hedgy73
Legendary
*
Offline Offline

Activity: 1414
Merit: 1077



View Profile
December 18, 2014, 09:13:37 PM
Last edit: December 18, 2014, 09:36:08 PM by hedgy73
 #10

Please excuse me for sounding stupid but what are these for exactly? Embarrassed

I have 2 x asicminer tubes running off their own controllers at the moment.

EDIT: Do they just replace the standard controllers or are there benefits to these over the originals?
sidehack
Legendary
*
Offline Offline

Activity: 3318
Merit: 1848

Curmudgeonly hardware guy


View Profile
December 18, 2014, 09:52:20 PM
 #11

It's a USB adapter to run Tubes or Prismas off a standard host controller like a laptop, Pi or beaglebone, running cgminer on any pool, instead of AM's BlockErupter controllers with no failover options and a broken stratum implementation.

Basically he's making them because they're hard to get from ASICMiner.

Cool, quiet and up to 1TH pod miner, on sale now!
Currently in development - 200+GH USB stick; 6TH volt-adjustable S1/3/5 upgrade kit
Server PSU interface boards and cables. USB and small-scale miners. Hardware hosting, advice and odd-jobs. Supporting the home miner community since 2013 - http://www.gekkoscience.com
hedgy73
Legendary
*
Offline Offline

Activity: 1414
Merit: 1077



View Profile
December 18, 2014, 10:05:57 PM
 #12

It's a USB adapter to run Tubes or Prismas off a standard host controller like a laptop, Pi or beaglebone, running cgminer on any pool, instead of AM's BlockErupter controllers with no failover options and a broken stratum implementation.

Basically he's making them because they're hard to get from ASICMiner.

Ok that's great thank you very much. They sound pretty good I'll try and order myself a couple Smiley.
sidehack
Legendary
*
Offline Offline

Activity: 3318
Merit: 1848

Curmudgeonly hardware guy


View Profile
December 18, 2014, 10:08:43 PM
 #13

There's info enough on the DIY, but he's got 'em priced pretty reasonable in the Group Buy. Looks like he just finished testing a bunch of 'em, probably ship orders out tomorrow. We've got some Prismas in hosting running off stock AM USB adapters and they're a heck of a lot better than the AM BE controllers.

Cool, quiet and up to 1TH pod miner, on sale now!
Currently in development - 200+GH USB stick; 6TH volt-adjustable S1/3/5 upgrade kit
Server PSU interface boards and cables. USB and small-scale miners. Hardware hosting, advice and odd-jobs. Supporting the home miner community since 2013 - http://www.gekkoscience.com
hedgy73
Legendary
*
Offline Offline

Activity: 1414
Merit: 1077



View Profile
December 18, 2014, 10:18:16 PM
 #14

There's info enough on the DIY, but he's got 'em priced pretty reasonable in the Group Buy. Looks like he just finished testing a bunch of 'em, probably ship orders out tomorrow. We've got some Prismas in hosting running off stock AM USB adapters and they're a heck of a lot better than the AM BE controllers.

That sounds like exactly what I need thanks again Grin. I'm pretty fed up with the standard setup and have considered selling these only problem is with the limited software and pools etc. they're not going for much money. I like the hashrate and both of mine have been running non stop for weeks now without missing a beat so they're reliable enough, I have changed the stock fan for 2 x Corsair high performance fans and the noise has reduced by probably 80% which is a real bonus when they're in my small office at home.

I've just posted on the group buy thread hopefully he'll ship to the UK. Yes sorry posted this on the wrong thread really I should have posted on the group buy one as I'm looking to buy one already made. I have no electronics experience or skills so making one of these would be pretty much impossible for me lol.
helipotte
Hero Member
*****
Offline Offline

Activity: 650
Merit: 500


Pick and place? I need more coffee.


View Profile
December 26, 2014, 06:33:44 PM
 #15

How did you get you boards to hash under Windows?  On my win7 machine all I get are LIBUSB errors regarding syncing.  The same setup works fine in

Linux.  Self compiled CGminer 4.9.0. with --enable-blockerupter config.  I compiled it on the same machine using Mingw.
novak@gekkoscience (OP)
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
December 28, 2014, 07:52:32 PM
 #16

How did you get you boards to hash under Windows?  On my win7 machine all I get are LIBUSB errors regarding syncing.  The same setup works fine in

Linux.  Self compiled CGminer 4.9.0. with --enable-blockerupter config.  I compiled it on the same machine using Mingw.

I didn't have any trouble getting it to start on windows using the zadig drivers.  Didn't even compile my own, just use anything 4.7.0 or newer (or the custom ASICMiner 4.6.0 that they made specifically).  Now getting it to stay running is another story.  The windows driver must suck or something, because it usually takes between 4 minutes and 4 hours to crash (tested on an XP box, perhaps 7 is better).

I did see weird errors like that when I plugged in a tube board powered, but had another unpowered board still chained off of it.  Disconnecting the other board did the trick.  The tube/prisma are very picky sometimes.

--
novak
helipotte
Hero Member
*****
Offline Offline

Activity: 650
Merit: 500


Pick and place? I need more coffee.


View Profile
December 28, 2014, 08:35:55 PM
 #17

How did you get you boards to hash under Windows?  On my win7 machine all I get are LIBUSB errors regarding syncing.  The same setup works fine in

Linux.  Self compiled CGminer 4.9.0. with --enable-blockerupter config.  I compiled it on the same machine using Mingw.

I didn't have any trouble getting it to start on windows using the zadig drivers.  Didn't even compile my own, just use anything 4.7.0 or newer (or the custom ASICMiner 4.6.0 that they made specifically).  Now getting it to stay running is another story.  The windows driver must suck or something, because it usually takes between 4 minutes and 4 hours to crash (tested on an XP box, perhaps 7 is better).

I did see weird errors like that when I plugged in a tube board powered, but had another unpowered board still chained off of it.  Disconnecting the other board did the trick.  The tube/prisma are very picky sometimes.

--
novak

Hmm.  The distributed windows binary would not even "see" my units.  The one I complied myself in Mingw sees them, but produces many errors then crashes right away.

I am using the drivers installed by Zadig and an adapter I made.  This exact hardware work fine under Linux but that is not an option where these are.
novak@gekkoscience (OP)
Full Member
***
Offline Offline

Activity: 173
Merit: 100


View Profile
December 28, 2014, 09:28:23 PM
 #18


Hmm.  The distributed windows binary would not even "see" my units.  The one I complied myself in Mingw sees them, but produces many errors then crashes right away.

I am using the drivers installed by Zadig and an adapter I made.  This exact hardware work fine under Linux but that is not an option where these are.

I did notice that the newer versions of cgminer did a more accurate job of reporting errors on tubes/prismas.  I'm guessing that whatever is messing up your devices is the same error, just reported differently by different cgminer versions (can't detect vs libusb errors).
I'm extremely suspicious of the hardware working under linux but not windows, that seems very unlikely to be a hardware problem.  Double check that you did everything the same on both, test on a single board disconnected from all other boards, and try plugging things in and starting cgminer in different orders. 
It's hard for me to be too much help without actual access to the hardware, but I have to wonder if it's just being really picky about something that doesn't make sense.

Post the libusb errors for me, maybe?

--
novak
helipotte
Hero Member
*****
Offline Offline

Activity: 650
Merit: 500


Pick and place? I need more coffee.


View Profile
December 28, 2014, 11:13:24 PM
Last edit: December 29, 2014, 06:58:59 PM by helipotte
 #19

I am not at the location currently.  The errors referenced "usb timeout"  and something about "returned 00" or some such thing (bad memory).  Might post a screenshot

tomorrow.  I will be at that location then.

Edit: Unexpected value 00
helipotte
Hero Member
*****
Offline Offline

Activity: 650
Merit: 500


Pick and place? I need more coffee.


View Profile
December 29, 2014, 08:16:09 PM
 #20

When I run cgminer-main 4.9.0 for windows with argument --bet-clk 25 I get "unrecognized option".

Hmm?  I thought Cgminer supported the tube/prisma after 4.7.0.

Novak, What version exactly are you using?  Where did you download it from or did you compile it yourself? This is weird. Huh
Pages: [1] 2 »  All
  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!