Re: Hacking my old eSATA Dock; and why will i (maybe not) fail to bypass the IC? - Page 1
Forum section: electronics / beginners

author: faekjarz
author_rank: Regular Contributor
timestamp: September 13, 2016, 03:39:24 pm
content: Hey there!I have an oleSharkoon SATA QUICKPORT DUO IIwhich is in perfect working order, but its limits are USB 2.0 and SATA I / 1.5 Gbps.Now i want to hack it, like this…the idea is to bypass (cut traces) the slow IC and directly connect the SATA connectors to the eSATA sockets.Here are some money shots of its nice Rubycon capsMy plan A is to implement this bypass as a "Turbo" switch which energizes some relays that directly connect the storage device through to the eSATA port and let the computer main board negotiate transfer rates. Well, those negotiations will hopefully result in SATA III / 6 Gbps.I'm a little worried about the signal integrity, because I’ve found some craycray expensivehigh frequency relays(those) on Mouser. Do i really need those? The English Wikipedia article onSATAdoesn't state it, the German onedoes; apparently the frequency of the SATA bus correlates with transfer rates, 1.5 Gbps = 1.5 GHz.How about a trial and error approach? Just use cheap relays and see what happens - if the "Turbo" doesn't work, well than just don't switch it on.Will i fail?What about solid state relays?Are there other types of switching mechanisms i haven't thought of?

author: MosherIV
author_rank: Super Contributor
timestamp: September 13, 2016, 03:46:28 pm
content: QuoteProbably.SATA, eSATA and USB are all SERDES interfaces. To achieve the high serial data rates, they use transmission line networks - that is the impedance and line terminations are carefully controlled.Randomly adding bits of wire and solid state relays will change the line impedance and termination way out of specification.

author: wraper
author_rank: Unknown
timestamp: September 13, 2016, 03:58:13 pm
content: Almost guaranteed that relays will screw up signal integrity enough to cause SMART UltraDMA CRC error count parameter growing very fast, as minimum.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 02:08:28 pm
content: OK, those are interesting points to consider in order to avoid failure.Nevertheless i want to try, and well, it's ahack, i know that. So please no insults, i also already know that i'm stubborn.In case of success, it'll be an upgrade: The temptation is strong with this one.In case of failure, there's something to be learned. I'll document in this thread.Here's my Plan B:I'll only hack one of the two channels - mainly to retain a pristine backup, a control group, one to compare kernel logs and SMART parameters againstI'll not use relays, solid state relays or other switching mechanisms for nowI will not "randomly add bits of wire", carefully keep an eye on the wire length, and hope those juicy differential pairs like what i do to themI already learned that the degradation of high frequency signals is worse over multi stranded wire - so i'll use solid core single strand magnet wire, like on the board, there's only one conductor tooWill my Plan B reduce the probability of failure?What else should i consider to avoid failure?

author: TheBay
author_rank: Unknown
timestamp: September 14, 2016, 04:01:26 pm
content: It's gonna end up in data corruption and a lot of triggered SMART events, so don't use it with any drive you care about or with any data.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 04:23:53 pm
content: Hmm, that's still not a sufficiently encouraging answer. But thanks, @TheBay!A'ight here's my Plan C:I'll sever the traces on the board, as close as possible to the connectors (termination / reflection)I'll use a standard SATA cable - which is compliant to SATA III / 6Gbps spec, and shielded and stuff - to directly bridge the SATA connector to the eSATA socketThis should be death proof!(Veto, anyone? Come right at me!)*loves the juicy evolution of this idea*

author: TheBay
author_rank: Unknown
timestamp: September 14, 2016, 06:07:18 pm
content: Quote from: faekjarz on September 14, 2016, 04:23:53 pmSATA can be a nightmare, I have seen data corruption with cheap/dodgy cables. And "X" amount of certain flags on SMART can render a drive useless or will constantly nag on boot up that it's failed.So many variables with it and keeping cables the same length, capacitance, resistance etc. Will be a nightmare if you did decide to use relays. You may get away with removing the IC and putting some small flat bridge wires on the board as if both pass straight through directly to the eSATA ports, just bypassing the IC but using the same tracks if that makes sense?

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 07:19:20 pm
content: Here's my log…hacking in progress……the pin-out……soldering directly to the SATA connector that plugs into the storage device……marking pin 1…If you do this twitter thing, there i am, follow me, or block me, do what you want?https://twitter.com/faekjarz

author: wraper
author_rank: Unknown
timestamp: September 14, 2016, 07:32:24 pm
content: Did you cut tracks very close to the connector? If you cut them at IC side, it will ruin signal integrity.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 08:08:16 pm
content: @wraper: nope, i cut as close to the connectors (SATA / eSATA) as possible(let's hope those ~600mV electrons don't "jump" that ~1.5mm gap)…getting ready to solder…looking forward to benchmarking this puppy

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 08:52:00 pm
content: …soldering done, re-assembling and benchmarking next…I'll try a faulty old spinning HDD, that already throws SMART errors, first…to see if any counter increase rapidly, and stuff…to see if it's safe to run real benchmarks with an almost new SSD

author: Monkeh
author_rank: Super Contributor
timestamp: September 14, 2016, 09:23:17 pm
content: Nice work. Actually got a pretty good chance of working okay.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 09:41:06 pm
content: Quote from: Monkeh on September 14, 2016, 09:23:17 pmHaha, that Kepton tape makes quite a professional look, doesn't it.Well, however, my hack failed for now; the HDD doesn't spin up.Although i don't think that it's the SATA link i modified. I guess, this now bypassed IC doesn't see a device and therefore has no reason to tell the rest of the circuitry to enable power to the HDD/SSD.Apparently i'll have to find a datasheet for the INIC-1611, to see which pin says "Maximum warp, engage!"Or maybe i can just reverse engineer (follow traces) the SATA power supply and bridge some pads.

author: Monkeh
author_rank: Super Contributor
timestamp: September 14, 2016, 09:44:02 pm
content: U1, U2, U5, U12 are the power switches, I'd say.

author: TheBay
author_rank: Unknown
timestamp: September 14, 2016, 09:47:38 pm
content: Have a look on Stationdrivers if there is a firmware for no power down on there, I have flashed a few "docks/enclosures" in the past to remove power saving.Might be worth a look?

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 10:50:14 pm
content: Quote from: Monkeh on September 14, 2016, 09:44:02 pmU1 and U5 appear to be responsible for port 2, so irrelevant for now.Port 1 does business with U2 and U12, which are fairchild P95AG (both the same, same as U1 & U5)I can't find a data sheet for those …maybe not needed, i can probe for continuityhere's the SATA power pin-out, pin 1 (notch) is near the data link pinsBut… but Mr. judge justice, si…sir, MacGyver uses the Twitter CDN as a globally, without login, accessible image dump for forum posts too!

author: faekjarz
author_rank: Regular Contributor
timestamp: September 14, 2016, 11:38:57 pm
content: Update: the DMM says 5V and 12V, where and when it's supposed to be present, it's not a power supply issue.Maybe it _IS_ the SATA data link …i'm checking and probing.Edit:Aye, seems like i reversed the eSATA pin-outThe intensity of my embarrassment is directly proportional to my re-soldering effort - in binary, that's ONE…well, that's why i posted in the "Beginners" forum…no worries, no damage done, along the way i learned that it doesn't break things when the data pins are reversed, apparently (in my case)

author: chicken
author_rank: Frequent Contributor
timestamp: September 15, 2016, 12:35:35 am
content: Quote from: faekjarz on September 14, 2016, 10:50:14 pmFairchild FDS4435 P-channel MOSFEThttps://www.fairchildsemi.com/products/discretes/fets/mosfets/FDS4435.html

author: faekjarz
author_rank: Regular Contributor
timestamp: September 15, 2016, 03:47:24 am
content: Q'PLAH¹! SIX GIX!…aaand one bad CRCI left ddrescue running till it ran out of bits, reading the whole 120 Gigger² Bite² produced only 2 bad CRCs.I reworked my bypass on both connectors and the SATA link seems stable at 6 Gbps. The trick is to solder as straight and uniformly as possible, every wire cut to the same length, every wire soldered onto the pad (connector through hole pin) at the same distance to the PCB, none crooked or with weird bends.That one HDD, that didn't spin up, did so because it is a little weirdo and liked to annoy me, maybe it needed a stable SATA link to spin up. All the other HDDs, although those couldn't establish a stable link either, spun up (without the eSATA cable even connected). That confirmed what the Multimeter already told about power supply.¹: that's Klingon and means success²: i'm tired, and that makes me stupid or funny, you choose (but don't tell me)Quote from: chicken on September 15, 2016, 12:35:35 amOH! Thank you, Chicken. Next time i'll search for everything, that's written on the package.

author: Monkeh
author_rank: Super Contributor
timestamp: September 15, 2016, 04:06:05 am
content: Not too bad.Get those centre conductors trimmed to ~1mm and keep the shield right up to the end and you should get better results. It'll get a lot trickier to solder, though!Once you can get 10TB+ through it without an error, it's perfect.

author: dmills
author_rank: Super Contributor
timestamp: September 15, 2016, 09:02:27 am
content: Did you solder the screens down to the ground plane at each end of those cables, kind of important for impedance control....Regards, Dan.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 15, 2016, 11:35:47 am
content: No, i removed the screen / shield, and the exposed ends are ~5mm long. There's still the 2nd channel to take care of, but i have to wait until the additionally ordered SATA cables come in. Then we'll see if i can do better.edit: @dmills: those shielded pairs have two grounding conductors on either side, which are in contact to the shield / screen. (Next time i'll go with the ~1mm approach of @Monkeh)Meanwhile maybe some Kepton tape and alumin(i)um foil helps to suppress those rebellious CRCs.Thinking about soldering those ~1mm-stubbies …maybe a small conical tip isn't all that bad after all.There's the right tip for every job, i guess.

author: dmills
author_rank: Super Contributor
timestamp: September 15, 2016, 02:26:01 pm
content: You will want the screens (or their drain wires) tacked down to the ground plane at both ends or that wire will be nothing like the impedance it is supposed to be.Regards, Dan.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 15, 2016, 02:46:17 pm
content: Quote from: dmills on September 15, 2016, 02:26:01 pmAye, that's what i did. I thought that's obvious.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 15, 2016, 08:48:12 pm
content: I reworked my soldering and shortened the exposed ends even more. Here's a before and after:…that was probably not necessary because i found out, that it's the eSATA cable that's not rated for 6 Gbps. Although initially negotiated for 6 Gbps, after 4 CRC errors, something (i guess the Leenoox kernel) throttles down to 3 Gbps. That's what the system log says. I ordered 2 quite expensive (>10€ each) 6gig rated eSATA cables.This, by the way, was my attempt to enhance the shielding. I wrapped AL foil all the way around and zip tied it to the original shielding, on both ends. …nope, it didn't became 6Gbps capable (not w/o CRC errors).

author: Monkeh
author_rank: Super Contributor
timestamp: September 15, 2016, 08:49:52 pm
content: I don't know about eSATA cables, but internal SATA cables havenever changed. I doubt eSATA cables have.You should also note that technically a direct connection of an eSATA port to a drive is inappropriate. You're basically only getting eSATA in one direction, the drive may not be delivering the enhanced signal levels.

author: faekjarz
author_rank: Regular Contributor
timestamp: September 15, 2016, 09:03:26 pm
content: Quote from: Monkeh on September 15, 2016, 08:49:52 pmWell, that eSATA port on my PC is internally directly plugged into the main board, and in BIOS configured as hot pluggable. I tested another eSATA cable, one that is included with a 6gig rated eSATA Dock (which i can't keep), no bad CRCs.

author: Monkeh
author_rank: Super Contributor
timestamp: September 15, 2016, 09:11:51 pm
content: So it may not even be eSATA at all. Excellent!(this is why eSATA is a failure)

author: RGB255_0_0
author_rank: Frequent Contributor
timestamp: September 15, 2016, 09:15:54 pm
content: Quote from: Monkeh on September 15, 2016, 09:11:51 pmNah. USB just made more sense. Then USB 3 fired the final shot. You can think of eSATA in the same way to Thunderbolt, except Thunderbolt has versatility.

author: Monkeh
author_rank: Super Contributor
timestamp: September 15, 2016, 09:19:10 pm
content: Quote from: RGB255_0_0 on September 15, 2016, 09:15:54 pmNo, USB makes no sense at all for fixed external storage, not even USB 3. eSATA just sadly sucks (crap connector, poor support for FIS, too easy to connect incorrectly).

author: RGB255_0_0
author_rank: Frequent Contributor
timestamp: September 15, 2016, 09:28:05 pm
content: I don't recall them being designed for fixed storage. Around the time eSATA came out it was more of a stop-gap for people who needed to transfer files and didn't feel USB 2 speeds were enough.Even though many laptops had a hybrid connector that fit USB 2 and eSATA it was too much of a niche like FireWire was, even though both were faster than the competing USB (at their respective release).

author: faekjarz
author_rank: Regular Contributor
timestamp: September 15, 2016, 09:30:51 pm
content: Maybe my SATA to USB bridges aren't sufficiently expensive to be feature complete; mostly i can't read SMART because smartctl doesn't like JMicron. So i don't like USB for mass storage.