Discuss [Tutorial] iPhone Serial Port I/O with source at the Free Toolchain Software - Hackint0sh.org; duoduo:
It is not hard. You can use either the source code on my site ...
It is not hard. You can use either the source code on my site for the iphone side (still works for setting up serial even without hardware trick). For the controller itself, it will take either programming a microcontroller (in this case, the programming is fairly simple as far as microcontroller stuff goes), or by adapting an old serial gamepad from the early 90's to it.
I have a gamepad built and ready to use. It uses a PIC microcontroller and I compiled my software using SDCC. SDCC makes PIC programming pretty simple.
My gamepad project was sort of stiffled by the fact that zodtt who makes the gpSPhone gameboy advance emulator stopped talking to me when he found out that I was not looking to sell the gamepads, only to release info on how to make one for yourself. He then stopped releasing source code for the emulator, so I could not add support for the gamepad myself.
could you please send me your intels ?? I would be so gratefull man !!! I'm trying to find a serial gamepad now but it's so hard...
and I nerver code an PIC microcontroller, I've seen your sources for opening the serial port, I can understand it as it works a bit like a socket (I'm better in math and physics coding f**** school) but if you've already done it I think it could avoid me sone headaches
about zodttd sources: couldn't we run a sort of daemon on the backbround (maybe a gaz factory) binding screen area to buttons? I'll be pleased to talk of this with you as I'm close to the french community and everyone is hopping for such device !
A major problem with glomming a GPS module directly onto the iphone is that the dock connector is not designed to support a weighty dongle with a relatively large effective lever arm. You risk damaging the connector, especially if you are bouncing around in a vehicle, etc. A much more reliable (but much less cool) implementation would be to connect the GPS via a cable. Another possibility is a dongle that somehow braces itself around the iphone case.
@mortenbek: Do you have additional electronic components between iPhone and SiRF III ?
I have received mine 2 days ago, and have some problem. It is a BR-355 (a SiRF III mouse GPS receiver).
The problem is that the Tx/Rx signal is using 'RS232-style' reversed polarity (-5V for High level, and +5V for low level).
So I can link the GPS module to my PC through the RS232 com port (it should work only with +/-12V, but is ok with +/-5V) and receive the GPS NMEA data.
In the BR-355 datasheet, the output voltage levels are supposed to be 0-2.85V and protocol electrical levels are TTL (and I read in a forum, that the gps was directly connectable to RS232).
I do not have any oscilloscope here (I am in holidays)...
Could you confirm that you directly link the SIRF to the iPhone
Does anyboday have an idea (except than a MAX232 to have TTL outputs) ?
PS: Merry Christmas, everybody !!
Last edited by ThibThib; 12-25-2007 at 08:33 PM.
To mortenbek and rainman
It would be great if some detailed instructions were posted on tis blog on how to interface the gps module with the iphone...
Edit : Oops,post for therain and not rainman :p
ThibThib: you could try doing a logical bitwise negate for the serial data maybe. I've done this with communicating with such a device before and it seemed to work. Or on the hardware end, use a hex inverter.
subramanyam: The connections would be pretty standard, Iphone serial RX to gps serial TX, iphone serial TX to gps serial RX, ground to ground. The rest you'd have to research for now, or soon Curt will be releasing open source software for GPS on iphone.
I had to chime in on this one. Our company (part foundry) has done numerous consumer electronic devices... I personally have developed and shipped at least three made for ipod products. I worked for Cisco Systems for 4 years and engineered state of the art switches and routers... I worked at Lockheed developed mechanisms and electronics for satellites... I worked at a product design firm and brought dozens of products to market. Just because we don't have pictures of those products does not mean we don't know how to make them. BTW, Our products will carry a money back guarantee, customer support, and FCC/ CE certification. We are a *real* accessories company making real products... the pre-orders are merely a way to get an idea of what kind of demand there is for the products we are making and to properly scale our initial production runs.
Originally Posted by lh99
BTW.. the receiver is not from Sparkfun, its a custom design that I put together several months ago. Early next week we will be posting some photos and video of our progress... I think you guys will be surprised what can happen in a week.
Last edited by CVB; 12-28-2007 at 04:19 AM.
Here's a snippet from a mail I sent to Subramanyam - as for what to do with the negated levels I am afraid I cannot help - I'm not that much into electronics:
The gps is bought from SparkFun:
And here I also ordered a bunch of these:
for experimenting with iPod/iPhone accessories.
I remove all the pins in the connector that I have no need for - to
make it easier to solder. The connector is documented here:
We are very lucky in that the iPhone supplies 3.3v to accessories, and
this appears to be enough for driving the gps (even though the spec
GPS ground is wired to ground on the iPhone and serial transmit on the
gps is wires to serial receive on the phone. I haven't wired serial
receive from the gps since I have no need for configuring the gps.
So - just three wires needs to be soldered and you are ready to go.
That's really all there is to it - I am sure that the locoGPS will be a much neater solution, but for all DIY'ers, the above is a quite easy (and fun) approach.
Couldn't we also use SparkFun's BlueSMiRF module to translate serial data remotely to ANY compatible serial device (i.e. bluetooth GPS "pucks") now that serial communications have been confirmed on the iPhone itself? It seems to be a lower-power (25mA @ 3.3V), smaller-footprint (0.15x0.6x1.9") solution with limitless applications.
P.S. This thing even supports "BCSP, SPP, DUN, LAN, GAP SDP [sic], RFCOMM, and L2CAP" profiles and protocols, for goodness sakes!
Last edited by PacoBell; 12-29-2007 at 02:51 PM.
Man, that really shows what a lamer zodtt is. That's okay though...his talents are not unique (none of ours are), and I suspect you'll reach your goal, even though (maybe because that) you're not profit-driven.
Originally Posted by TheRain
Last edited by MuscleNerd; 01-01-2008 at 01:33 PM.
By hackint0sh in forum Latest Headlines
Last Post: 10-28-2010, 08:00 PM
By Sheerz in forum Kernel / Kext (Driver) Support
Last Post: 03-25-2010, 01:28 AM
By netboy in forum Installation
Last Post: 03-02-2010, 07:10 PM
By iphonejoe in forum Free Toolchain Software
Last Post: 02-04-2010, 09:22 AM
By SierraDog in forum iPod Touch 2G
Last Post: 07-27-2009, 11:30 PM