Article View: borland.public.jbuilder.java.api
Article #1541sending data through serial port
From: Andr� Quites
Date: Thu, 29 Nov 2001 14:00
Date: Thu, 29 Nov 2001 14:00
41 lines
2684 bytes
2684 bytes
Hi, I am developing an application that is supposed to send and receive data from an equipment, through the serial port, and I am using an example from Sun, which implements an event listener. What I need to know is if the OUTPUT_BUFFER_EMPTY event occurs when the TX-EMPTY signal of the UART is raised, i.e., when the physical transmission is finished, or if it is like the TX_EMPTY of the Win32 API, that occurs when the Windows finished writing to the buffer of the serial port, waiting just to a software buffer, and not the true end of transmission. If it is so, does anyone know any way of knowing the real end of transmission in Java? My problem is that I�m using an 232/485 converter, which needs to be commuted between reception and transmission. So, when I transmit something and expect an immediate response, I need to commute for reception the converter as soon as the transmission ends, and not before or after that, or I will cut the transmission or miss the answer of the equipment. Thank you in advance for any help Andr� Quites engenharia@passo.com.br begin 666 Andr� Quites O. Santos.vcf M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..D\N(%-A;G1O<SM!;F1RZ3M1 M=6ET97,[16YG#0I&3CI!;F1RZ2!1=6ET97,@3RX@4V%N=&]S#0I.24-+3D%- M13I!;F1RZ2!1=6ET97,-"D%$4CM73U)+.CL[.T-A;F]A<PT*3$%"14P[5T]2 M2SI#86YO87,-"D%$4CM(3TU%.CL[.U!O<G1O($%L96=R93M24SL[0G)A<VEL M#0I,04)%3#M(3TU%.T5.0T]$24Y'/5%53U1%1"U04DE.5$%"3$4Z4&]R=&\@ M06QE9W)E+"!24STP1#TP04)R87-I; T*6"U704(M1T5.1$52.C(-"E523#H- M"E523#IH='1P.B\O=W=W+G!A<W-O+F-O;2YB<@T*14U!24P[4%)%1CM)3E1% M4DY%5#IE;F=E;FAA<FEA0'!A<W-O+F-O;2YB<@T*4D56.C(P,#$Q,3(Y5#$T 2,# P,5H-"D5.1#I60T%21 T* ` end
Technical Details
Message-ID:
<3c063f69_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1089d0,de3b5343e8aae826,start X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-11-29 06:03:28 PST Reply-To: "Andr� Quites" <engenharia@passo.com.br> From: "Andr� Quites" <engenharia@passo.com.br> Newsgroups: borland.public.jbuilder.java.api Subject: sending data through serial port Date: Thu, 29 Nov 2001 12:00:01 -0200 Lines: 42 Organization: Passo Automa��o X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 200.213.17.24 Message-ID: <3c063f69_2@dnews> X-Trace: dnews 1007042409 200.213.17.24 (29 Nov 2001 06:00:09 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews