Good evening everybody
I established usb connection with an ftdi component (felusbserial library)
The initialization seems to be going very well, and I send 5 characters string to ftdi chip.
A B4A log confirms that the 5 characters have been sent.
But I find only the first character
Is it possible to make a mistake, or error in the B4A code at this level ?
Should the component must be initialized with the vid, pid ?
Regards.
I established usb connection with an ftdi component (felusbserial library)
The initialization seems to be going very well, and I send 5 characters string to ftdi chip.
A B4A log confirms that the 5 characters have been sent.
But I find only the first character
Is it possible to make a mistake, or error in the B4A code at this level ?
Should the component must be initialized with the vid, pid ?
B4X:
Sub Bbegin_Click
If usbserial.IsInitialized Then
Dim s As String = "begin"
Dim msg() As Byte = s.GetBytes("ascii")
usbserial.Write(msg)
Log("New data: " & bc.HexFromBytes(msg))
End If
End Sub
Regards.