I am trying to get CHAT sample program to communicate with a device.
When I debug on my device end the char is not send correct.
I have now found out if I run my software made with visual studio it afterwards Work perfect.
So I think it is the setup of the port that is wrong.
I an using normal com setup "9600, 8, none, 1" in my software.
In the chat sample I have put in
B4X:
Sub btnOpen_Action
sp.Open(cmbPort.Value)
sp.SetParams(9600, 8, 0, 1)
'AStreams.InitializePrefix(sp.GetInputStream, True, sp.GetOutputStream, "AStreams")
AStreams.Initialize(sp.GetInputStream, sp.GetOutputStream, "AStreams")
txtInput.Enabled = True
btnOpen.Enabled = False
lblStatus.Text = "Status: Open"
End Sub
I an not using "handshake" but I can not see a option in b4j to set this to "false"
I attached at screendump from VS
Mogens