May 4, 2012 at 7:51 AM
Edited May 4, 2012 at 11:05 AM
Hi Alan - thanks for your response..
yes - I had come accross the WidcommSerialPort.Create ... but I didn't know how to implement it ( the correct syntax )
and I also thought that when I implemented that command I would see the Serial port created somewhere ... but I have figured it out in the end.
I have a third party hardware test that needs to communicate with the device through a (virtual) com port - as part of the test procedure I have to manually setup the V. com Port on each device before the hardware test to continue... thats why
I would like to programatically Discover, Pair and Setup a virtal serial port - automatically.
I'm nearly there with this project ... but have come accross an issue that when new devices (to the test PC) are introduced ... when running my code the widcomm stack prompts me "Bluetooth Security code required".
In my code I supply the pair_request command with the pin ... why does Widcomm as me for the Pin ? - can I surpress this prompt ? - I don't want the user to have to do any interaction.
just to add to this..
it is after executing the line
wsp = inthehand.net.bluetooth.widcomm.widcommserialport.createclient( addr)
that I get this prompt from the widcomm stack to enter a pin .... how can I programatically enter this pin and remove the prompt ?
Also - if I don't enter a pin at that stage - my application eventually crashes - however if I run it again a second time .. I am not asked for a pin and the port is setup correclty ... any ideas of what is happening here ?
This always happen, ist time, the pin is requested, then abort, 2nd time , no pin requested. !!