I've opened two COM ports using the Serial Port Profile of my Bluetooth device in my PC. I want to connect 2 Nokia 3650 to the two ports. The first phone at COM10 and the second at COM 11. How can i create my program in the phones so that phone A will connect to COM 10 and phone B will connect to COM 11? I would like each of the phone to initiate connection to the server(PC). Is there any way i could do this? Please let me know. Thanks in advance!
The first issue is the scatternet support. If you want the phones to establish the connections to your PC, your PC should support scatternet. It is very likely that scatternet is not supported.
You can hard-code the COM port where to connect to in your Symbian C++ application in the phone. The recommended way would of course be to avoid it and let the phone to connect to the first free port on PC.
I would like to clear up some things. If i connect more than two mobile phones to a PC using two serial ports each connected to a different port, the latter would have to supporrt scatternet. But if i connect more than two mobile phones to a PC using two different services, it would not require support for scatternet. Please correct me if i am wrong..
Can you give me an idea on how to connect to a specific COM port? How can i make my program connect to COM port 10, for instance. What API can i use to convert this to a data type which could be understood by Symbian platform?
Also, since some of the methods used in searching for devices are asynchronous, i don't know in which part of the program should i specify that it should connect to a COM port with a given handle. Can you give me any hints on how to do this?
I have been working on this part of my program from the past 3 days. I know it's not this hard. Can anyone tell me what i have been missing?