gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Formula SAE car & GBA --> RS232 code

#54984 - a4_jet - Sat Sep 24, 2005 4:47 am

Hi,
I am currently reading up on how to program a GBA.
What I am trying to do is setup a GBA as a display for a formula SAE car(www.fsae.com), like engine rpm, oil pressure etc. The GBA needs to read in serial data from a motec ecu(www.motec.com.au)

I am having trouble understanding how to write the software to read in the data from the motec. Could someone point me in the direction of someone that has done a similar project?
Some sample code examples would be great.

#54988 - crossraleigh - Sat Sep 24, 2005 5:19 am

http://www.cardiagnostic.co.uk/ might help. Also, there is a commercial product in the same vein called the Turbo XS DTEC.

Information on GBA UART is all over the web, however GBATEK is probably a good starting point. DarkFader did have some useful UART to RS-232 schematics, but it looks like his site is down. It used a MAX3232 to convert voltages.

EDIT: http://frotz.net/gbadev/cable.html has DarkFader's schematics.
_________________
My world is black and white, but if I blink fast enough, I see it in grayscale.

#55063 - a4_jet - Sun Sep 25, 2005 3:31 am

i had a look at cardiagnostic.co.uk, its pretty much exactly what i want to do. Except that the information coming from the motec isnt OBD protocol, its a special motec protocol.

Is it possible to decompile GBA files? I wanna have a look at cardiagnostics.co.uk UART code.

#55068 - a4_jet - Sun Sep 25, 2005 4:03 am

Ok i searched and found out it is pretty much impossible to convert .gba into .c, that was a silly question.

Does anybody have some sample C code for a program they used for UART/RS232 control?

#55193 - crossraleigh - Mon Sep 26, 2005 5:13 am

Well, the guy running cardiagnostic.co.uk seems pretty approachable. You might try mailing him (or posting to his Y! group) for his source code, or at least assistance.

If nothing else, his links section points to a site that looks like it has good code. http://frotz.net/gbadev/ also has a simple, open-source UART program. And if you haven't tried yet, please search these forums for similar posts.

I think this is my hundredth post. It took me two years, but I finally made it. Cheers!
_________________
My world is black and white, but if I blink fast enough, I see it in grayscale.