Hi all,
Trying to establish a simple SerialPort connection (which is described in numerous topics here and in sample code), but again, having a problem.
What I'm facing is
BluetoothSecurity.PairRequest(deviceAddress, "0000");
returns success, but then
BluetoothClient.Connect(deviceAddress, BluetoothService.SerialPort);
it says "No connection could be made because the target machine actively refused it".
The funny thing is when I'm doing
bdi.GetServiceRecords(BluetoothService.SerialPort)
the device returns no records. However, it for sure supports serial port connection. Could this be a reason?
Creating a virtual serial port also doesn't help. COM port is created successfully, but it is not visible from other software and couldn't be opened via .net framework interfaces..
The device is noname china OBD-II bluetooth adapter - it for sure works and connects from another platform (nokia, j2me).
The platform I'm trying to connect from is WinCE6.0 (PNA device).
Advices are highly appreciated!