GP32 Gpsdk


It is just like doing USB communication.. correct if I'm wrong here but with the SDK you are bound to 9600bps. Check the Ericsson chatboard drivers for simple low level serial communication examples.
 
Thanks for access to your code, I would really like to use the GP32SDK if at all possible. Version 2.0 looks as if it is capable and I have now got some comms working. Unfortunatley the documentation is in korean! I guess I will not be able to make full use of the library :-(

unsigned char p_data[4096];
int i;
int n_tick;
int size = 0;
char g_string[256];

// Init Serial stuff.
desc.port_kind = COMM_PORT_0;
desc.tr_buf_size = 4096;
desc.tr_rate = 9600;
desc.tr_mode = 0;
desc.sz_pkt = 8;
desc.isr_comm_ram = 0;

//
GpCommCreate( &desc, &serial);

//
serial.comm_open( &desc );

// Send a carriage return (0x0D).
serial.comm_send_one( 0x0d );

//
for ( i=0; i<3; i++ ) {

// Receive any resulting characters, with a 50 ms (serial)
n_tick = GpTickCountGet();
while ( ( GpTickCountGet() - n_tick ) < 50 ) {
serial.comm_recv_one( p_data );
}

sprintf( g_string, "return data = %d", p_data[0] );
GpTextOut( NULL, &gpDraw, 0, 32+(i*32), g_string, 0xe0 );
}
 
im thinking of getting a gp32, and i would be interested to hear on the serial programming abilities.
i do electronics at school, and the main thing i use for logic is picaxe which can do serial Input output.
how have you made your lead?
has anyone tried this?
 
The lead was constructed from a smasung T100 data cable and around 7 componets including a MAX3222 chip. The wiring of the data cable is the most tricky and every time you plug it in to check you run the RISC of blowwing the GPIO lines on the CPU I suggest you DON'T ATTEMPT THIS YOURSELF. But I would say that as I plan to make them comercially! at around £25 mark. Lot cheaper than blowing up your gamepark!!!

I am currently using it to hook up to the LogIT Live data acquisition box, also used a lot in schools. It reads and writes without problem.

http://www.nigelibrown.pwp.blueyonder.co.uk/gp32
 
Back
Top