delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
From: | "mohd hamizi ahmad" <M DOT H DOT Ahmad AT lboro DOT ac DOT uk> |
To: | <djgpp AT delorie DOT com> |
Subject: | RE: help on DOS serial communication using DJGPP |
Date: | Wed, 5 May 2004 09:37:31 +0100 |
Message-ID: | <000101c4327c$37d81ca0$f088e783@emilda> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook, Build 10.0.2627 |
In-reply-to: | <40981717.2080603@acm.org> |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2739.300 |
X-Scan-Signature: | 88a77c7b14e2ecbc2d1c84e6ad8f3806 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
The communication is ok now. Thanks. -----Original Message----- From: Cesar Rabak [mailto:crabak AT acm DOT org] Sent: Tuesday, May 04, 2004 11:20 PM To: djgpp AT delorie DOT com Subject: Re: help on DOS serial communication using DJGPP 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?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |