Hi All,<div><br></div><div>If I want to use off the shelf components, instead of making my own cable could I use the following to create the cable you made:</div><div><br></div><div><a href="http://www.tca-inc.net/usbmatousbbf.html">http://www.tca-inc.net/usbmatousbbf.html</a></div>
<div><br></div><div><a href="http://www.usbgear.com/computer_cable_details.cfm?sku=Y-105A&cats=199&catid=199">http://www.usbgear.com/computer_cable_details.cfm?sku=Y-105A&cats=199&catid=199</a></div><div><br>
</div><div>If these won't work, why not, and what would work?</div><div><br></div><div>-Tim</div><div><br></div><div>P.S.</div><div><br></div><div>I spoke with others in the #noisebridge irc channel and they said I could not simply open up like /dev/usb0 with a program and write bytes out and have it work.  It was not clear to me why this would not work.  Does anyone know the answer?<br>
<br><div class="gmail_quote">On Mon, Mar 16, 2009 at 2:17 PM, Jacob Appelbaum <span dir="ltr"><<a href="mailto:jacob@appelbaum.net">jacob@appelbaum.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">William Heath wrote:<br>
> Hi All,<br>
> I have started this fun project:<br>
><br>
> <a href="https://www.noisebridge.net/wiki/Autonomous_Flying_Platform#Team_Members" target="_blank">https://www.noisebridge.net/wiki/Autonomous_Flying_Platform#Team_Members</a><br>
><br>
> I need to find a way to control propellers etc... with the G1.  The easiest<br>
> way I know how to do this is to use the serial interface from the G1 to like<br>
> a parallax board which then connects to servos etc...  I am stuck in park so<br>
> far as I am a mere mortal and the serial inteface/software on the G1 phone<br>
> is "undocumented" but does exist.  I was told that ioerror might know about<br>
> it.  I am performing the incantation to the G1 Gods/Gurus to rain down this<br>
> undocumented knowledge that I might drink deeply from that cup of knowledge.<br>
>  I also invite advice/recommendations on what hardware to use for the<br>
> propellers etc... in this project.<br>
<br>
</div></div>I am by no means a G1 god or guru. There are better people to ask and I<br>
do hope they'll chime in. I am however linked to that nickname that you<br>
dropped and so I feel compelled to answer. ( And no, I'm not nor have I<br>
ever been, a woman. )<br>
<br>
The serial interface you're discussing does indeed exist on the HTC<br>
Dream (G1). I hear it's possible to build a cable that is a mini-usb on<br>
one end and a normal sized usb on the other. Between the two is a usb to<br>
serial device. It's just a nice way to have a set of pin outs and power;<br>
it's otherwise not a special cable.<br>
<br>
If you have or build such a cable, you'll then be able to access a few<br>
low level debuggers or boot prompts on the serial port. If you have the<br>
right setup, you should be able to connect the cable, attach to the usb<br>
serial device and set minicom to operate at 115200 8N1 (and with no<br>
software/hardware flow control).<br>
<br>
A photo of the mythical cable attached to my G1 is available here:<br>
<a href="https://www.noisebridge.net/wiki/Image:G1-two-usb-to-serial-cable.jpg" target="_blank">https://www.noisebridge.net/wiki/Image:G1-two-usb-to-serial-cable.jpg</a><br>
<br>
This is the code for that interface (see the Android source):<br>
/kernel/drivers/serial/msm_serial_debugger.c<br>
<br>
>From the source you'll see the following commands available when the<br>
phone is booted:<br>
pc<br>
regs<br>
reboot<br>
irqs<br>
kmsg<br>
version<br>
sysrq<br>
<br>
If you have the developer or engineering boot loader, you can do more...<br>
<br>
You can boot the phone with the camera button held down to access a<br>
serial boot prompt that looks like this:<br>
UART0:Cmd><br>
<br>
So far I've only seen a single command 'set'. I didn't find very much<br>
useful information beyond that for the serial interface to the (first?)<br>
boot loader. Perhaps someone knows more about this? It may prove to be<br>
useful...<br>
<br>
Another interesting but unrelated (GSM) test function is available in<br>
the dialer program when the phone is booted by calling this number:<br>
*#*#INFO#*#*<br>
<br>
Best,<br>
Jake<br>
</blockquote></div><br></div>