Hi everybody
I'm testing a file write on USB driver VDrive2 (vinculum).
I've connected to UART 2 and connected pin RTS and CTS to port 30 an 31.
I use a sub to send commands:
If I comment the do loop the program reaches the end but there is buffer overflow, while if decomment the progam stops after a few commands and never restarts.
The CTR in the first test first is 0 then becomes 1 and finaly returns 0.
It seems that the loop doesn't really read input.
Any idea?
Best regards
Mauro Zanin
I'm testing a file write on USB driver VDrive2 (vinculum).
I've connected to UART 2 and connected pin RTS and CTS to port 30 an 31.
I use a sub to send commands:
B4X:
Sub com2(tosend As String)
Log("Tosend:",tosend," ",ctr.DigitalRead)
' Do While ctr.DigitalRead=True
'
' Loop
astream2.Write(tosend)
End Sub
The CTR in the first test first is 0 then becomes 1 and finaly returns 0.
It seems that the loop doesn't really read input.
Any idea?
Best regards
Mauro Zanin