Article View: borland.public.jbuilder.java.api
Article #146how to send ascii null to serial port
From: asystems
Date: Wed, 26 May 2004 04:47
Date: Wed, 26 May 2004 04:47
18 lines
1265 bytes
1265 bytes
Hi,
I've finally managed to get my serial ports working with the javax.comm
library, and all appears to be working ok. However, I need to send ascii
characters such as <null> <EOT> <SOH> and <ETX>
which is the prefered way ?
char nullchar 0x00; // assign ascii <null>
or
byte nullchar 0x00; // assign ascii <null>
or am I totally wrong on both counts.
any help would be appreciated.
Thanks
Technical Details
Message-ID:
<40b4218a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,3bfc81ee0723da46,start X-Google-Attributes: gid1089d0,public From: "asystems" <asystems@ozemail.com.au> Newsgroups: borland.public.jbuilder.java.api Subject: how to send ascii null to serial port Date: Wed, 26 May 2004 14:47:25 +1000 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.102.126.66 Message-ID: <40b4218a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085546890 203.102.126.66 (25 May 2004 21:48:10 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail