jFloatys Revenge: rolling out 8->12 bit libjpeg-turbo decoding

Written 2026-11-22

Tags:JPEG YUV RGB 

This spring I wrote a weird little JPEG codec, and a libjpeg-turbo implemented a small version of this, which allowing rolling it out to many other programs. This is just a review of the tasks under way.

Repair and Reassembly of GW Instek GPD-3303S

Written 2026-11-09

Tags:Repair PowerSupply Capacitor 

This summer, I had been using my lab bench to supply a flight controller. After several days up and a lightning storm, I noticed the LED display was flickering. Soon, relays were clicking and the output rails were cycling - not good. I pulled it apart, found two bulged capacitors, ordered replacements, and decided to take photos and notes when I reassembled it. I suppose disassembly is the reverse of reassembly.

Tools & Parts

I used: GW Instek GPD-3303S repair

The Usual Suspects

GW Instek GPD-3303S repair GW Instek GPD-3303S repair

Replacing the Capacitors

With the front panel board out, I used these stainless steel desoldering tubes to isolate the old capacitor legs from the solder. Once both were done, the desoldering tubs would slide through the circuit board to the base of each capacitor. Once done, I wiggled the capacitors to break the RTV and remove them. After a quick cleanup with solder wick, I soldered the new ones right in, taking care to keep them snug against the board and polarity correct. At this point I wish I had some electronics RTV to bond them to the PCB, as the old ones did.

GW Instek GPD-3303S repair

Installing the Microcontroller Board into the Front Panel

Place front microcontroller board on front case + display board and align screw holes and plastic standoffs. Once aligned, push the PCB down until the standoffs pop through. Then put in five screws, left bottom, bottom left, right bottom, bottom right, and bottom middle has a green grounding jumper.

On second thought, some of my photos show the grounding jumper connected to the banana jack, and others to the bottom middle screw. I can't recall which was right, hopefully it doesn't matter. I'll double-check continuity next time it is open.

GW Instek GPD-3303S repair

Connect the display flex to J3021

GW Instek GPD-3303S repair

The banana jacks are inserted from the front, then rotated until they align with the transverse test wire holes vertical and they should push through fully. Put a flat washer, split washer, and nut on each. Hand tighten with a 7mm socket. In the above photo, I'm using a thin steel pick inserted into the transverse banana jack hole to keep the jack aligned while I tighten the nut.

Place a small drop of blue lock tite on top of the nut where it meets the threads. Be careful! Don't use too much since it can rot plastic. It really doesn't take much.

GW Instek GPD-3303S repair

Finally, affix the channel 3 knob that fell off during disassembly.

If you have electronics safe RTV, you can put a little at the base of the new caps.

Installing the Front Panel

Align the power button Pusher with the power button hole in the front case and connect the green ground jumper to the Spade terminal on the bottom case. Once done fully slide the front case on the bottom case and install the bottom front pair of screws which are Phillips with a captive flat and split washer. Put the first one in just barely and then put the second in, and then tighten down the first and second just a little.

Wiring the Front Panel

Pull the ch2 harness through the gap between the transformer primary and the channel to transformer connector. Plug it in to j4031 and j4041.

GW Instek GPD-3303S repair

Pull the CH 1/3 harness through the gap between the transformers blue white blue cable just above the relays. Next pass the red and black cable under the thick black brown red orange transformer cable, over and connect it next to j7021 and connect its neighboring 3-pin orange gray gray cable to j7021.

The five pin jst connector goes to the USB breakout PCB. The remaining three cables on the harness are all different sizes and go toward the rear of the bottom PCB and plug into j1041, j1061, j1031.

GW Instek GPD-3303S repair

Finally connect the gray gray blue blue brown brown connector from the transformer to j301 on the front panel.

Install the power button plunger that fell off when you pulled the front panel off the instrument.

Double check that you don't have any loose wires in the previous steps. If you like to live dangerously you might turn it on with the case open but proper electrical safety would tell us that it's best to finish assembling.

Reassembling the Frame and Case

There is an internal retainer bar with two holes at each end and four holes on the top. One end has a pair of threaded holes and the other end has a pair of smooth holes. The smooth holes will go in the back and the end with the threaded holes will slide just under the top of the front case plastics like this. This internal bar will be used to attach the handle later. Put these four screws in and tighten.

GW Instek GPD-3303S repair

Next place the sheet metal case about halfway back over the power supply taking care not to scrape any wires. The end with the screw holes near the top goes toward the back. Slowly slide it forward into the channel around the front case. You should be able to see eight screw holes in total - 3 on each side and two for the handle when it's properly aligned.

Install the three screws on each side using no more Force than necessary. You may need to push or pull on the sheet metal or the front or rear case to get all the holes to line up just right at this stage.

Getting a Handle on Things

GW Instek GPD-3303S repair

For the carrying handle, align the luggage strap then place the two end caps over and finally put in the two screws in the two remaining holes on the top. Note that just outboard of the two screw holes there are two hemispherical detents - the end caps have a little tooth to key them that goes into these detents and needs to be aligned as you tighten the screws. \

Torque It All Down

Finally, locate the front case bottom two screws as well as the left and right panel three screws each, and back all of these out one turn. After that tighten all of them.

Plugging It In

Ensure that the AC selector switches have not been bumped and are in the proper configuration. Snsure that the power switch is in the off position, plug in a power lead, turn it on and give it a try.

2026-11-09_11-27-06

In my case replacing these two capacitors has fixed my power supply. The LCD 7 segment digits no longer flicker and the power supply does not reset itself when clicking the relays.

Next I need to verify the rails still track correctly.

The State of Android Auto

Written 2026-08-07

Tags:Craftsmanship Toyota Software Android AndroidAuto 

My first professional firmware job was at Garmin International, making backpacking products, at a time of my life when I backpacked myself. It was a good fit. Our team would go out a few times per year, picking up lunch, then heading to a large park to test, practice, review, and plan. I really enjoyed making a thing I wanted to use, and knowing how I wanted it to work.

Sometime you pick up a tool, and it's intuitive. It's the right tool for the job. It feels like something you'd've made to solve the same problems you have. Android Auto is not one of those products.

Toyota Bugs

Starting a route or canceling a route in Android Auto causes the compass to glitch back and forth.

The entertainment system clock location varies depending on the current page.

They're starting with a lower-contrast display technology and on top of that, in dark mode, the gauge-cluster clock is gray instead of white just to make it that extra bit more difficult to read.

The entertainment system clock does not always match the gauge cluster clock, and is sometimes off by a daylight savings time.

I cannot rev the internal combustion engine in neutral or park. My car had a rattle that only occurs at certain RPMs, but no way for me to diagnose further. This took half a day at the dealership since we couldn't reproduce it easily.

Having two different voice assistance fighting for the audio is confusing. There are voice assistants buttons on both the steering wheel and the entertainment display and they seem also to be listening all the time anyways. Long press opens Android Auto, and short tap cancels Android Auto. Short press opens Toyota Assist, and long press cancels Toyota Assist. This is, of course, incredibly confusing to both assistants.

There are two speed limit indicators, one on the dashboard and another on the entertainment screen in Android Auto. And they don't always match. The dashboard speed limit indicator is camera based, while the Android one is map-based. This means that the dashboard one is usually wrong after a turn but the Android one is usually correct if available. After passing a speed limit sign the camera one is almost always correct and the Android one is only wrong for a short while until the map is updated. I do not want to have to think about which type of speed limit is most of interest to me. The Android Auto speed limit indicator is placed on the farthest location from the driver which makes it distracting to use. You could display the minimum of both systems in a single location. Did I mention that the dashboard speed limit indicator moves around based on other indicator icons?

Connection between phone and carputer is inconsistent. The actual pairing entry in both devices works, however the link between them often fails to come up until I wade deep into the bowels of the settings on the entertainment unit and once again turn on the checkbox to enable Android Auto for this particular phone. 30 years of Bluetooth and connection management is still terrible.

I do like the fuel efficiency, but wowee this thing takes forever to warm up in the winter.

When it's raining hard, the capacitive door locks don't always open.

Android Auto Bugs

Audio stream management is bad. When a new Pandora song starts in the middle of important turn directions, the turn directions stop jarringly mid-word to let the song start.

But when I try to send a text, it reads it back to me but jumbles the turn instructions together with the outgoing text.

Today after configuring a route my car said, "by the way if you want to listen to the news say hey Google...", then abruptly cut itself off with a "Hi how can I help?" Prompt.

Eventually I figured out how to read the news, but didn't have time to finish it. The next time I started the car it started playing the news not from the beginning of the story, but from the beginning of the days news. I still have yet to finish a day's news.

Much of the user interface seems to be engagement driven, which is wildly out of place while driving. It's great to be able to send a text hands-free, but I have to click play to hear the response. This would be fine, if the button to play the text didn't disappear after a couple seconds while I was executing a lane change. Once it times out the message is seemingly gone until another message comes from the same sender. Of course you can always tap the multitask button, followed by the app list button that appears in its place, then scroll down to messages, then open the message, then play it. A simple untimed dismiss button would have worked too.

Many, many things just work better on my phone.

The quietest car I've owned, a microphone barely six inches from my mouth, music paused, can barely understand my voice. And then Gemini has the gall to say, "You probably mean ${THE_THING_I_ACTUALLY_SAID_ALOUD}" The speech to text process isn't just bad, it's buggy too - often cutting me off mid sentence and trying to process that, or waiting indefinitely for who knows what.

Several times now Gemini has responded by dumping a page of software gore: text prompts. If you ask it what happened, it'll lie and claim it didn't glitch out and prompt dump. It's not good at lying though, since there's a log. It does this at least once a week.

Gemini Prompt Dump

Perhaps this is a misplaced expectation, but I want the Android SmartPhoneAssistant to be accessible hands-free in my car just like using a Bluetooth speaker. I don't want Android DumbCarAssistant ever really.

I used to open an email to myself before driving, and dictate into it. The alternative, which is the Google Android auto note subsystem seems to record, but doesn't actually seem to go anywhere. Perhaps my hardcopy is stuck in the mail?

Using Google Maps in my car makes my phone overheat with "3D Buildings have been disabled". 3D buildings are already disabled both in Google Maps on my phone and car.

Gemini is often unusably slow, sometimes taking tens of seconds to be able to send a text message.

Gemini cannot route me to my Google maps favorites. It knows home, work, and loves making suggestions for restaurants, but only if speech to text can name it correctly - our gym, High Blue, will only route to the local high school.

Where's Walmart?

CannotFindWalmart

Today, I was pretty sure I was close to a Walmart if I could just get out of the neighborhood I was in. Google vehemently believed that I should drive to the closest Walmart, 31 minutes away. There is another only six minutes away. Then there is this one, on the other side of the neighborhood I was in, where I parked and took this photo.

Where are my favorite Waypoints?

WhereAreFavorites1 WhereAreFavorites2 WhereAreFavorites3

Android Auto has a really handy feature where it suggests one or two places you might want to go based on historical and calendar data. However, it never stays in the same place. Sometimes it's in a bubble on the top left. Sometimes it's in a subwindow on the top right. Sometimes it's hidden under a briefcase icon halfway between the search bar and Pandora. It's frightening how much driver attention is spent fiddling with Android Auto trying to find functions that move with little rhyme or reason when their eyes should be on the road.

Older