<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>teardown on irq5 test</title><link>https://irq5-7854a1fdb9f4.pages.dev/tag/teardown/</link><description>Recent content in teardown on irq5 test</description><language>en-us</language><lastBuildDate>Tue, 02 Apr 2019 11:59:00 +0000</lastBuildDate><atom:link href="https://irq5-7854a1fdb9f4.pages.dev/tag/teardown/feed/" rel="self" type="application/rss+xml"/><item><title>ONV PD3401G PoE Splitter Teardown &amp; Review</title><link>https://irq5-7854a1fdb9f4.pages.dev/2019/04/onv-pd3401g-poe-splitter-teardown-review/</link><pubDate>Tue, 02 Apr 2019 11:59:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2019/04/onv-pd3401g-poe-splitter-teardown-review/</guid><description>&lt;p>Continuing my &lt;a href=https://irq5-7854a1fdb9f4.pages.dev/tag/poe rel=noopener>PoE series&lt;/a>,
I bought the &lt;strong>ONV PD3401G&lt;/strong>, an active PoE splitter that is capable of extracting up to 60W (24V @ 2.5A) from the PSE.
It is housed in a small aluminum extruded case that can be DIN rail mounted.
This splitter is comparatively low-cost, about US$35,
and more importantly, is capable of passing through Gigabit.&lt;/p>&lt;p>ONV seems to be quite a reputable company, so I believe their products shouldn&amp;rsquo;t be too badly designed.
This unit can also be easily purchased on Aliexpress without having to go through some obscure distributor.&lt;/p>&lt;p>&lt;picture>&lt;source srcset=/posts/2019/img/47507377741_54f9e66587_2813.jpg.webp type=image/webp>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2019/img/47507377741_54f9e66587_2813.jpg alt="ONV PoE splitter, side view" width=1280 height=853>&lt;/picture>&lt;/p>&lt;p>&lt;picture>&lt;source srcset=/posts/2019/img/33630711828_27cb5770a8_2819.jpg.webp type=image/webp>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2019/img/33630711828_27cb5770a8_2819.jpg alt="ONV PoE splitter, front view" width=1280 height=853>&lt;/picture>&lt;/p>&lt;p>Internally it uses the &lt;a href=https://www.analog.com/en/products/lt4275.html rel=noopener target=_blank class=external>LT4275A&lt;/a>
(marking &lt;code>LTGBT&lt;/code>) for PD interfacing.
The &lt;code>A&lt;/code> variant of this chip supports up to 90W of power.
On the power supply side, it uses a &lt;a href="https://www.onsemi.com/PowerSolutions/product.do?id=NCP1034" rel=noopener target=_blank class=external>NCP1034&lt;/a> synchronous buck converter.
The NCP1034 is capable of handling up to 100V, which is more than sufficient for PoE.&lt;/p>&lt;p>Looking inside, the in/out Ethernet ports are connected via a transformer, in order extract power from the center taps of each pair.
We can see that the PCB traces for the input port pairs are thicker to carry the higher currents.
Large beefy diodes form rectifier bridges for the data pairs.&lt;/p>&lt;p>&lt;picture>&lt;source srcset=/posts/2019/img/46783600124_a981bb08b6_2807.jpg.webp type=image/webp>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2019/img/46783600124_a981bb08b6_2807.jpg loading=lazy alt="PCB, top side" width=1280 height=853>&lt;/picture>&lt;/p>&lt;p>Surrounding the input port on the underside, there are a lot of unpopulated components; those were supposed to offer input protection,
probably using some TVS of some kind.
these are marked &lt;code>RD1&lt;/code> ~ &lt;code>RD8&lt;/code>, one for each Ethernet wire.&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2019/04/onv-pd3401g-poe-splitter-teardown-review/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>Making USBasp Chinese Clones Usable</title><link>https://irq5-7854a1fdb9f4.pages.dev/2017/07/making-usbasp-chinese-clones-usable/</link><pubDate>Tue, 25 Jul 2017 00:06:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2017/07/making-usbasp-chinese-clones-usable/</guid><description>&lt;p>I don&amp;rsquo;t have any dedicated programmers.
I have been programming Atmel chips
&lt;a href=https://irq5-7854a1fdb9f4.pages.dev/2010/07/programming-the-attiny10/ rel=noopener>using the USB-to-serial bitbang method&lt;/a>.&lt;/p>&lt;p>Recently, I thought I&amp;rsquo;d get one because doing a re-programming cycle is taking
quite a bit of time (a disadvantage of serial port bitbanging).&lt;/p>&lt;p>A popular one on Aliexpress seems to be
&lt;a href=https://www.aliexpress.com/item/1pcs-Free-shipping-USB-ISP-USBasp-USBisp-Programmer-for-51-ATMEL-AVR-download-support-Win-7/1289376766.html rel=noopener target=_blank class=external>this &amp;ldquo;USB ISP&amp;rdquo; one&lt;/a>, so I bought one.
I chose this one because it has a nice aluminium case, and a pinout diagram
imprinted on the case, which is handy.
After having so many one-off projects with bare PCBs collecting dust,
I now appreciate the importance of having projects in their own box or case.&lt;/p>&lt;p>&lt;picture>&lt;img src=https://c1.staticflickr.com/5/4324/35866155142_0bf2674c3e_b.jpg alt="USB ISP programmer with aluminium case">&lt;/picture>&lt;/p>&lt;p>While it has &amp;ldquo;USBasp&amp;rdquo; in the item name, it turns out that this was &lt;strong>not a USBasp device&lt;/strong>,
and getting it to work like one takes some effort.&lt;/p>&lt;p>It identifies itself as a &lt;em>zhifengsoft&lt;/em> HID device when I plug it into Linux:&lt;/p>&lt;div class=highlight role=region aria-label="code block" translate=no>&lt;pre tabindex=0 class=chroma>&lt;code class=language-fallback data-lang=fallback>&lt;span class=line>&lt;span class=cl>[705621.968025] usb 3-1: new low-speed USB device number 3 using ohci-platform
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>[705622.199065] usb 3-1: New USB device found, idVendor=03eb, idProduct=c8b4
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>[705622.205939] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>[705622.213194] usb 3-1: Product: USBHID
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl>[705622.216876] usb 3-1: Manufacturer: zhifengsoft&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>&lt;code>avrdude&lt;/code> does not recognize the device,
even after creating an entry with the corresponding vendor/product ID.
This particular device was designed to work with their Windows-based UI called
&lt;a href=http://www.electrodragon.com/w/ProgISP rel=noopener target=_blank class=external>ProgISP&lt;/a>
and &lt;a href=http://www.avrfreaks.net/forum/how-use-usbasp#comment-1459441 rel=noopener target=_blank class=external>will not work with avrdude&lt;/a>.&lt;/p>&lt;p>And apparently you can&amp;rsquo;t just take the USBasp firmware and flash it into
this device, because the circuit is somewhat different.&lt;/p>&lt;p>After some research based on the PCB markings, I found these sites that talk about them:&lt;/p>&lt;ul>&lt;li>&lt;a href="https://www.sciencetronics.com/greenphotons/?p=938" rel=noopener target=_blank class=external>GreenPhotons: Hacking an AVR programmer&lt;/a>&lt;/li>&lt;li>&lt;a href="https://www.sciencetronics.com/greenphotons/?p=1937" rel=noopener target=_blank class=external>GreenPhotons: Hacking an AVR programmer II&lt;/a>&lt;/li>&lt;li>&lt;a href="http://wiki.efihacks.com/index.php?title=USBasp_Experiences" rel=noopener target=_blank class=external>USBasp Experiences - efiHacks Wiki&lt;/a>&lt;/li>&lt;/ul>&lt;h1 id=disassembly>Disassembly&lt;/h1>&lt;p>Disassembling the device is simple.
While grabbing the side of the case, firmly push the USB connector inwards
and the board should slide out the other end.
You can then gently pull the board out by the IDC connector.&lt;/p>&lt;p>&lt;picture>&lt;img src=https://c1.staticflickr.com/5/4308/35964033316_b5385eed09_b.jpg alt="Disassembly how-to photo">&lt;/picture>&lt;/p>&lt;p>The programmer seems to be based off of the popular &lt;a href=http://www.fischl.de/usbasp/ rel=noopener target=_blank class=external>USBasp programmer&lt;/a>,
but modified somewhat (to what end I&amp;rsquo;m not sure).
It lacks some features offered by other USBasp programmers,
like the ability to control the target&amp;rsquo;s clock,
or to use 3.3V for certain targets.
But at $2 with a nice aluminium case, what more can you ask for?&lt;/p>&lt;p>It&amp;rsquo;s powered by an ATmega88 (I read that older versions were based on ATmega8).
The markings on the board indicate that this is a &lt;code>MX-USBISP-V4.00&lt;/code>.
You can ignore tHe date because it was never updated;
the older V3.02 also has the same date.
While the &lt;em>GreenPhotons&lt;/em> blog was talking about V3.00,
I have verified that this version suffers from the same issue.&lt;/p>&lt;p>&lt;picture>&lt;img src=https://c1.staticflickr.com/5/4310/36005584165_a81de0f13c_b.jpg loading=lazy alt="USBISP programmer, with aluminium case">&lt;/picture>&lt;/p>&lt;p>&lt;picture>&lt;img src=https://c1.staticflickr.com/5/4291/35964039616_074efac6af_b.jpg loading=lazy alt="USPISP PCB rear">&lt;/picture>&lt;/p>&lt;p>Note that there are provisions on the PCB to add a voltage regulator,
and the PCB link marked &amp;ldquo;C&amp;rdquo; can be cut to separate USB power from the
rest of the system. Link &amp;ldquo;D&amp;rdquo; can be cut if you wish to disable target power.
However, none of these options were used.&lt;/p>&lt;p>The crucial difference with this clone
is that the USB &lt;code>D-&lt;/code> pin is additionally connected to &lt;code>PD3&lt;/code>,
shown here highlighted in blue:&lt;/p>&lt;p>&lt;picture>&lt;source srcset=/posts/2017/img/zhifengsoft-schematic-diff.png.webp type=image/webp>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2017/img/zhifengsoft-schematic-diff.png loading=lazy alt="Clone difference in schematic view" width=502 height=336>&lt;/picture>&lt;/p>&lt;p>However, in the USBasp&amp;rsquo;s &lt;code>main()&lt;/code> function, &lt;code>PORTD&lt;/code>&amp;rsquo;s
data direction register was initialized like so:&lt;/p>&lt;div class=highlight role=region aria-label="code block" translate=no>&lt;pre tabindex=0 class=chroma>&lt;code class=language-c data-lang=c>&lt;span class=line>&lt;span class=cl> &lt;span class=cm translate>/* all outputs except PD2 = INT0 */&lt;/span>
&lt;/span>&lt;/span>&lt;span class=line>&lt;span class=cl> &lt;span class=n>DDRD&lt;/span> &lt;span class=o>=&lt;/span> &lt;span class=o>~&lt;/span>&lt;span class=p>(&lt;/span>&lt;span class=mi>1&lt;/span> &lt;span class=o>&amp;lt;&amp;lt;&lt;/span> &lt;span class=mi>2&lt;/span>&lt;span class=p>);&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This causes the USB &lt;code>D-&lt;/code> line to be actively driven from &lt;code>PD3&lt;/code>,
thereby impeding communication to/from the USB host.&lt;/p>&lt;p>The rest of this post will talk about (1) correcting this problem in USBasp,
and (2) uploading the firmware into your &lt;em>zhifengsoft&lt;/em> programmer.&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2017/07/making-usbasp-chinese-clones-usable/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>Paper Shredder Repair</title><link>https://irq5-7854a1fdb9f4.pages.dev/2015/04/paper-shredder-repair/</link><pubDate>Mon, 06 Apr 2015 12:50:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2015/04/paper-shredder-repair/</guid><description>&lt;p>Now is probably a good time to mention that I have a paper shredder.
When I was shopping for a shredder, the basic requirement is that it must be relatively &amp;ldquo;secure&amp;rdquo;.
Straight cut shredders (that produce long straight strips) are definitely &lt;em>not secure&lt;/em>.&lt;/p>&lt;p>Ultimately I settled on the &lt;a href=http://www.amazon.co.jp/dp/B002UKPAEO rel=noopener target=_blank class=external>CARL DS-3000 personal paper shredder&lt;/a>.
The DS-3000 is a cross-cut shredder which produces &amp;ldquo;particles&amp;rdquo; no larger than
2mm x 4.5mm and this meets &lt;a href=//en.wikipedia.org/wiki/Paper_shredder#Types rel=noopener>DIN security level 4&lt;/a>.
These days, the NSA mandates 1mm x 5mm &amp;ldquo;particles&amp;rdquo; for classified documents.&lt;/p>&lt;p>At this point, it&amp;rsquo;s probably helpful to show you what my shredder bin looks like:&lt;/p>&lt;p>&lt;picture>&lt;source srcset=/posts/2015/img/shredder-confetti.jpg.webp type=image/webp>&lt;img src=https://irq5-7854a1fdb9f4.pages.dev/posts/2015/img/shredder-confetti.jpg alt="shredder confetti" width=1024 height=683>&lt;/picture>&lt;/p>&lt;p>From the particles, you can make out various truncated words such as &amp;ldquo;A/C&amp;rdquo;,
&amp;ldquo;exp&amp;rdquo; and the number &amp;ldquo;5&amp;rdquo;, but it&amp;rsquo;s almost impossible to reconstruct any bank
balances or personal information from it.&lt;/p>&lt;p>This particular model was the right balance between my budget and the level of security.
Plus, the shredder is compact enough to sit on your desk.
I bought it in 2009 and I use it every couple of months when I have accumulated
enough material that needs to be destroyed.&lt;/p>&lt;p>I was in the middle of shredding papers when it suddenly stopped working.
Now the shredder does not respond when I stick paper into its slot.
The LED indicator looks dimmer than usual when it is turned on.&lt;/p>&lt;p>But I&amp;rsquo;m not ready to give up on it just yet&amp;mldr;&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2015/04/paper-shredder-repair/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>CY-20 Cheap Flash Teardown</title><link>https://irq5-7854a1fdb9f4.pages.dev/2013/06/cy-20-cheap-flash-teardown/</link><pubDate>Mon, 10 Jun 2013 01:04:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2013/06/cy-20-cheap-flash-teardown/</guid><description>&lt;p>Following up on &lt;a href=https://irq5-7854a1fdb9f4.pages.dev/2012/03/diy-optical-slave-flash/ title="DIY Optical Slave Flash" rel=noopener>my DIY slave flash project&lt;/a>, I thought I&amp;rsquo;d get something more powerful than that tiny Xenon bulb. I bought the &lt;a href=http://dx.com/p/cy-20-camera-flash-speedlite-2-x-aa-58592 rel=noopener target=_blank class=external>cheapest flash on DX.com&lt;/a> - the &lt;strong>CY-20&lt;/strong>. It has a considerably large bulb and as a plus, it has what looks like a tiny window on the front for automatic output control. The main reason for getting this was the 2.5mm jack on the back of the flash that allows it to be externally triggered.&lt;/p>&lt;p>&lt;picture>&lt;img src=//farm3.staticflickr.com/2878/8961494006_3886eabcae_z.jpg alt="retaining clips on the CY-20">&lt;/picture>&lt;/p>&lt;p>Opening it was easy. Remove the 4 screws that secure the hotshoe mount and go round the casing to release the retaining clips. Surprise surprise, take a look at the sensing window.&lt;/p>&lt;p>&lt;picture>&lt;img src=//farm4.staticflickr.com/3721/8961493560_e40de5e1a0_z.jpg alt="CY-20 open, showing the decorative">&lt;/picture>&lt;/p>&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2013/06/cy-20-cheap-flash-teardown/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>Apple's Lightning Digital AV Adapter</title><link>https://irq5-7854a1fdb9f4.pages.dev/2013/03/apples-lightning-digital-av-adapter/</link><pubDate>Mon, 11 Mar 2013 22:39:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2013/03/apples-lightning-digital-av-adapter/</guid><description>Recently, Panic noticed the odd output resolution and MPEG-like artifacts with the new Lightning digital AV adapter and decided to take a hacksaw to it. They found an ARM processor inside.
image credit: Panic blog
Shortly after, they received an anonymous comment that explains it all:
The reason why this adapter exists is because Lightning is simply not capable of streaming a &amp;ldquo;raw&amp;rdquo; HDMI signal across the cable. Lightning is a serial bus.&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2013/03/apples-lightning-digital-av-adapter/#more">Continue reading…&lt;/a>&lt;/p></description></item><item><title>How Electret Microphones Work</title><link>https://irq5-7854a1fdb9f4.pages.dev/2011/04/how-electret-microphones-work/</link><pubDate>Thu, 07 Apr 2011 18:39:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2011/04/how-electret-microphones-work/</guid><description>There&amp;rsquo;s a really nice article on Open Music Labs that describe the inner workings of the ubiquitous electret microphone.</description></item><item><title>Dissecting the SoundGraph iMON MM</title><link>https://irq5-7854a1fdb9f4.pages.dev/2011/01/dissecting-the-soundgraph-imon-mm/</link><pubDate>Sat, 22 Jan 2011 17:01:00 +0000</pubDate><guid>https://irq5-7854a1fdb9f4.pages.dev/2011/01/dissecting-the-soundgraph-imon-mm/</guid><description>Correction: The device is actually an iMON Multi-Median (MM), which includes an IR receiver and a remote control.
My friend recently passed me a brand new unopened SoundGraph iMON IR receiver device. Here&amp;rsquo;s how it looks like:
As you can see from the box, it supports up till Windows XP. If you&amp;rsquo;re thinking how the terms &amp;ldquo;Windows XP&amp;rdquo; and &amp;ldquo;brand new unopened&amp;rdquo; go together, it&amp;rsquo;s because he&amp;rsquo;s kept it for 4 years.&lt;p>&lt;a href="https://irq5-7854a1fdb9f4.pages.dev/2011/01/dissecting-the-soundgraph-imon-mm/#more">Continue reading…&lt;/a>&lt;/p></description></item></channel></rss>