Hi there, I've written a program which communicates over the serial port with a bluetooth device. This works perfectly on one Windows 8.1 notebook but not another which has installed Windows 10.
The code itself seems simple, so I have no idea what could be changed here:
Code: Select all
ComPort=7
t=OpenSerialPort(#Serial,"COM"+Str(ComPort),9600,#PB_SerialPort_NoParity,8,1,#PB_SerialPort_NoHandshake,256,256)
If t
t=WriteSerialPortData(#Serial,?Magic,6)
If t=6
Debug "Check Magic Sequence..."
:
Else
Debug "Wrong reply sequence ("+Str(t)+" bytes)"
CloseSerialPort(#Serial)
EndIf
EndIf
When using the Windows 8 PC, 6 bytes are returned correctly from the "remote" device, using Windows 10, the serial port gets opened but 0 bytes are returned - the error says Frame (8) and Break (16). Does anyone have an idea what could be done here?