I think microcontroller's send's binary data as output... how to read and send that???
I have problems too...
When microcontroller sends data GM receive something, but I can't see what...
Also, when I try to send something to microcontroller , they only blink twice, and that is all...
Same microcontroller work fine with other programs...
Can someone help with this?
I was been a stupid...
Yes there are a byte's and they are unreadable.. but... ( I was talk about microcontrollers... )

Look these...
CREATE SECTION
if(RS232_CreatePort("COM1",1)!=1) //Try and open Com port 1 with ID 1
{
show_message("Error creating COM1");
game_end();
}
RS232_SetPortProperties(9600,8, 0,1,1)// these settings are setting of microcontroller... 9600= baudrate, 8 bytes are length of the message, etc...
RS232_SetTimeouts(-1,0,0,10,1,1); //Set the read/write timeouts to a typical value
str='poruka: ';
fajl= file_text_open_append('log.txt'); // all put in txt readable file
//***********END OF CREATE SECTION****************************************
STEP EVENT **************************************************
*
str=real(RS232_ReadByte(1)); //Try and read up to 1 character ( byte) form Com1
if real(str)!=-2 {
//if real(str)>64 or real(str)<90 or real(str)=32{ // more another filter for readable characters look the ASCII table for more
slovo=dekoder(str)
file_text_write_string(fajl,string(slovo))
file_text_writeln(fajl);
//}
}
//************************* END OF STEP EVENT *****************************
// DRAW EVENT **********************************
draw_text(20,20,string(str)) // just to see what was happend
// **************** END OF DRAW EVENT ****************
// How to write to microcontroler....
// PRESS <SPACE> EVENT ********************************
RS232_WriteByte(48,1); // write number 0 on the Com Port 1 ( ASCII )
// END OF PRESS <SPACE> EVENT *****************************
// SCRIPT DEKODER *************************************
// Change byte to readable characters for more look the ASCII table...
slovo='';
switch(argument0){
case 32: slovo=' '; break;// space
case 48: slovo='0'; break;
case 49: slovo='1'; break;
case 50: slovo='2'; break;
case 51: slovo='3'; break;
case 52: slovo='4'; break;
case 53: slovo='5'; break;
case 54: slovo='6'; break;
case 55: slovo='7'; break;
case 56: slovo='8'; break;
case 57: slovo='9'; break;
case 65: slovo='A'; break;
case 66: slovo='B'; break;
case 67: slovo='C'; break;
case 68: slovo='D'; break;
case 69: slovo='E'; break;
case 70: slovo='F'; break;
case 71: slovo='G'; break;
case 72: slovo='H'; break;
case 73: slovo='I'; break;
case 74: slovo='J'; break;
case 75: slovo='K'; break;
case 76: slovo='L'; break;
case 77: slovo='M'; break;
case 78: slovo='N'; break;
case 79: slovo='O'; break;
case 80: slovo='P'; break;
case 81: slovo='Q'; break;
case 82: slovo='R'; break;
case 83: slovo='S'; break;
case 84: slovo='T'; break;
case 85: slovo='U'; break;
case 86: slovo='V'; break;
case 87: slovo='W'; break;
case 88: slovo='X'; break;
case 89: slovo='Y'; break;
case 90: slovo='Z'; break;
default: break;
}
return slovo;
// END OF SCRIPT DEKODER ******************************************
// GAME END EVENT ****************************
file_text_close(fajl);
RS232_ClosePort(1)
// END OF GAME END EVENT **********************************
And this metod work....
I was try this metod on the PIC 16F877A microcontroller.... with display and with huge posibilities...

tnx for your time..
Edited by zmaj, 29 January 2010 - 07:26 AM.