I am attempting to establish a connection to a RN-42 Bluetooth Chip located on a circuit board. I have successfully been able to connect, read, and write steam data to this chip without a problem using the InTheHand library using VB.NET
I have come across one problem however, and this is when I attempt to programatically connect to the Bluetooth device before a COM Port has been established for the device. Here are some examples of what I am talking about:
When going into 'Bluetooth Places', then browsing to the device, this is what will be shown when a fresh discover for the first time has been done for this device (as you can see there is no COM Port assigned to this device yet in Windows).
When no COM Port is established, this is the error I receive when attempting to establish a connection programatically:
The error reads:
An operation was attempted on something that is not a socket (BlueSoleil: OPERATION_FAILURE (0x0302)).
However, when I establish a COM Port by right clicking the 'Bluetooth Serial Port' item from 'Bluetooth Places', then select 'Connect', windows will bring up a small window stating that it is assigning a COM Port. Shortly afterwards, a COM Port will be assigned
to the device and a connection will be made.
Here is a picture of the device after it has a COM Port established:
Is it possible for me to accomplish this COM Port assignment using the 32feet development kit? Or any other easy way programatically for that matter?