X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Cesar Rabak Newsgroups: comp.os.msdos.djgpp Subject: Re: help on DOS serial communication using DJGPP Date: Tue, 04 May 2004 19:20:07 -0300 Lines: 21 Message-ID: <40981717.2080603@acm.org> References: <000101c43214$9160c730$f088e783 AT emilda> NNTP-Posting-Host: 241132.virtua.com.br (200.182.241.132) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1083709209 1296902 I 200.182.241.132 ([39218]) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: pt-br, pt To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com mohd hamizi ahmad escreveu: > i've tried to communicate between embedded system to PC using serial > communication. my embedded system using DOS operating system. i've tried > to send a character to PC and should be display on hyperterminal. i've > tried but nothing happen. i've check my program, and i think there is no > problem. could anybody check my simple program down here? maybe i make a > mistake and you can tell me where my mistake. [snipped] > while(1) > { > // send a push keyboard character to com2 > com1_send = _bios_serialcom(_COM_SEND, 1, (unsigned)getch()); > printf("Send status: 0x%4.4X\n", com1_send); > } You mention your DOS system is an embedded one, anyhow, is there a means of reading the results of these printf calls?