TAG | USB
30
From the archive: USB->Serial converters and using OSX as a serial terminal
0 Comments | Posted by andrew in Uncategorized
I was digging through my old Blogger blog deciding whether to let it live on or to kill it when I came across this gem. The instructions still work, even on the new Intel macs, and can be a lifesaver if you need a serial console on OSX.
I’m in my cisco networking class, and we’re working on our 2600 series routers. After getting frustrated with having to drag out hold laptops and desktops to do serial, I decided to hook my Mac up with a USB to serial adapter.
Here’s how I did it and what advice I have:
1. Purchased a generic USB to serial with a Prolific 2303 chipset. Most usb-to-serial adapters have this.
2. Googled A BUNCH! (you’ll be able to skip this step if you’re reading this)
3. Installed the opensources PL2303 drivers for OS X from here.
4. Reboot. Don’t bother with trying to kextload, while it says it works it doesn’t seem to.
5. Plug in USB to Serial adapter.
6. In terminal type ls -l /dev/tty.* Look for the one that has PL2303 in it. If it’s there, you’re golden!
7. Download ZTerm. Here’s your terminal emulator
-OR-
8. Use screen. type this in terminal: screen /dev/tty.PL2303-(your device ID here) 9600 You get your device ID from your ls -l /dev/tty.* 9600 is the baud rate.
In part 1, I outlined my plans to upgrade my USB mug warmer. Today, I have managed to “finish” the project.
After some gluing, and some soldering, and some cursing (burnt fingertips SUCK!), I plugged the warmer into a USB port. No smoke…computer isn’t dead…yay! Looks like it is working!
Sadly, after being plugged in for half an hour..it barely got a few degrees above room temperature. I’m not sure what the issue is..but I’m not happy about it.
So, the plan for now is to get ahold of a multimeter and check my connections. After that, I might up the ante and add a second USB cord to it and make this one a dual-porter.
I recently purchased a USB mug warmer off of ebay. It was one of the $2 ones, with integrated 4 port USB hub. It shipped in from Hong Kong.
At first, I found it fantastic. It seemed a great use of USB to me. I often consume warm beverages at my computer, but I usually don’t finish them before they get cold. Unfortunately, reality soon sunk in. The warmer just didn’t keep things warm. It barely got warm to the touch.
So, I dissasembled it. Taking a look at it, it was nothing more then a simple hub with an added resistor circuit on a switch. The resistors simply dissipated voltage when the switch was thrown.
So, the first “increase the heat” modification was to disable the USB hub that was robbing voltage from the heating element. I cut a trace on the board by scratching it with a screwdriver. No more hub voltage. But alas, even without the drain of the 4 port hub, it scarecly got any warmer.
I set aside the “heatsync” (a 1/8th inch thick piece of aluminum about the size of the bottom of a coffee mug) and let the resistors heat up on their own. After a 10 minute heatup…they got kinda warm. So, I deduced the resistors weren’t making good enough contact with the heatplate. I removed the globs of thermal paste, added a little back, and put a penny between each resistor and the plate. EUREKA…heat….but only in two very small spots. The resistors just didnt have the oomph to even begin to heat the plate up.
So, I decided to do some math. Ohms law to the rescue.
I = V / R
I being current in Amps, V being voltage in volts, and R being resistance in Ohms.
and
P = V x R
P being power in watts, V being voltage in volts, and I be resistance in Ohms.
After scraping off all of the thermal paste, I discovered that the resistors were 17 ohms. The two in series was 34 ohms of resistance. After some math, I found out that they were dissipating .73 watts of power. This is NOT a lot of heat. So, it was time for a drastic redesign.
I came up with this circuit.

All of the resistors in that circuit are 1 ohm, 1 watt resistors. The total resistance of that circuit is 10.5 ohms. Using the above formulas, that circuit would dissipate 476 mA of energy, less then the 500 mA possible from a USB port. It also would dissipate 2.38 watts of energy, producing a nice, toasty plate.
All of the parts have been ordered and are on the way. I’ll soon be posting photos of the build process and an instructable. I’ve already decided to use the housing from my current warmer, removing the built in circuit and adding to some mass to the warmer plate.
