I have some communication problems (may be I'll post something later...). I started considering the WIDTH statement, and found I don't understand it!
My communication problem is on a device which doesn't need CRs or LFs to be automatically inserted at all. I never used a statement like WIDTH "COM1:", 255 to disable the automatic CR insertion, as I never suspected it was needed.
This moment I'm trying the WIDTH statement. I connected toghether the TX and RX lines and run the following code:
The result is every second I back receive the 30 chars I print, but I never see the CR chars I expected. I tried also to simply open the COMM port without WIDTH statements: I expected to see a CR every 80 Tx chars, but it doesn't happen.
The question is: is WIDTH needed to avoid the CRs insertion on printing to a communication port?
Aldo
------------------
My communication problem is on a device which doesn't need CRs or LFs to be automatically inserted at all. I never used a statement like WIDTH "COM1:", 255 to disable the automatic CR insertion, as I never suspected it was needed.
This moment I'm trying the WIDTH statement. I connected toghether the TX and RX lines and run the following code:
Code:
open "com1:4800,n,8,1,cs,rs,ds,cd" as #1 width "com1:", 10 close #1 open "com1:4800,n,8,1,cs,rs,ds,cd" as #1 width "com1:", 10 do while inkey$ = "" print #1, "123456789012345678901234567890"; t = timer do while timer - t < 1 if loc( 1 ) then print asc( input$( 1, 1 ) ); end if loop print loop
The question is: is WIDTH needed to avoid the CRs insertion on printing to a communication port?
Aldo
------------------
Comment