04/11/2004 @ 21:24 by aldweb
|
Dear all,
I copy & paste an e-mail exchange I had with someone, to keep you updated on the "serial port in iziBasic" topic.
[Privacy preserve] in these messages replaces the real name of the person who got in touch with me, for obvious reasons (I did not ask him permission before copying this e-mail exchange here, I will do right now!).
Cheers, aldweb
----- Original Message ----- From: [Privacy preserve] To: info@aldweb.com Sent: Thursday, November 04, 2004 6:06 PM Subject: serial port in iziBasic
Hello Laurent, I am sorry that I write to this mail, but I cannot find forum about iziBasic on http://www.aldweb.com .
My question is howto handle with serial port. I inspired in Turbo Basic program, which I used several years ago:
20 ' *** do in circle till RTN$ not A(HEX41) 30 OPEN "COM2:4800,N,8,1,CS,DS,CD" FOR RANDOM AS #1 40 PRINT #1, "S1" 50 LINE INPUT #1, RTN$ 60 RTN = ASC(RTN$) 100 PRINT "ERROR STATUS="; RTN 140 PRINT #1, "R1(0000,0050,A)" 215 CLOSE #1 320 END
In iziBasic help I found:
OPEN c|t FOR INPUT|OUTPUT|APPEND|RANDOM AS #v|n
For it I tested in already working program this construction:
OPEN "COM1:1200,N,8,1,CS,DS,CD" FOR RANDOM AS #1 CLOSE #1
I tested this variations of OPEN, bat all was bad:
OPEN "COM1:1200,N,8,1,CS,DS,CD" FOR RANDOM AS #1 OPEN "COM1:1200,N,8,1" FOR RANDOM AS #1 OPEN 'COM1:1200,N,8,1' FOR RANDOM AS #1 OPEN "COM:1200,N,8,1,CS,DS,CD" FOR RANDOM AS #1 OPEN "COM:1200,N,8,1" FOR RANDOM AS #1 OPEN 'COM:1200,N,8,1' FOR RANDOM AS #1
Do you can help me please how Open, close, read and write to serial port? Thank you very much. You must not answer immediately to all. Only information, if iziBas know handle with COM or not will good for me now.
Best Regards [Privacy preserve] I use ZIRE 71 (When I connect serial cable, I listen info sound. If could be tested COM cable connection, it will good information for me too.)
----- Original Message ----- From: aldweb To: [Privacy preserve] Sent: Thursday, November 04, 2004 9:18 PM Subject: Re: serial port in iziBasic
Dobri den [Privacy preserve]
The forum area is here: http://www.aldweb.com/fortopic.php?lng=en And the dedidated iziBasic forum is here: http://www.aldweb.com/forum.php?lng=en&cat=80 Both can be accessed from the Forum icon in the top bar.
Currently, iziBasic does not manage the serial communications. I have no special plan for doing it for 2 reasons: 1. I never looked in the serial communication Palm OS APIs, but you made me curious about that so I will look just after I finish answering you 2. I have no device with a serial connector, just a USB connector, so I am not sure that I will be able to test what I program
But, meanwhile, you may very well workaround this limitation, by writing some PP applets to manage the serial communications. This will require you to dig into the Palm OS APIs and to Pascal programming...
Cheers, Laurent
@+ aldweb |