stack initialization

29 views
Skip to first unread message

darkwizz

unread,
Sep 4, 2008, 4:19:22 AM9/4/08
to bluecove-users
Hello,
I am developing a project to send messages from PC to mobile and vice
versa using bluetooth. I have bluesoleil stack installed. I want to
know that is some code required to initialize a bluesoleil stack?
If i have to send a message from bluetooth enabled mobile to PC then
is there need to specify a port number... if yes, where to specify it?
Please help

Vlad Skarzhevskyy

unread,
Sep 4, 2008, 11:06:01 AM9/4/08
to bluecov...@googlegroups.com
Nothing special. Just start using it. BlueCove will be initialized by itself.

darkwizz

unread,
Sep 6, 2008, 6:34:19 AM9/6/08
to bluecove-users
thanks Vlad
But the problem is If i run 2 instances of this program on PC they can
communicate but this does not happen between mobile and PC.

Server URL:

private final static String UUID
="0x102030405060708090A1B1C1D1E10073¨;
LocalDevice device = LocalDevice.getLocalDevice();

device.setDiscoverable(DiscoveryAgent.GIAC);

String URL="btspp://localhost:" + UUID ;
StreamConnectionNotifier notifier = (StreamConnectionNotifier)

Connector.open(URL);

StreamConnection conn = notifier.acceptAndOpen(); // Blocks!

Client URL:
String url=((ServiceRecord) btServicesFound.elementAt(deviceID))

.getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,
false);
StreamConnection con=(StreamConnection)Connector.open(url);

Can u tell me what is the problem & how can i communicate between PC
and mobile ?

Vlad Skarzhevskyy

unread,
Sep 29, 2008, 7:48:22 AM9/29/08
to bluecov...@googlegroups.com
Should work.
Nothing wrong with your code.
Reply all
Reply to author
Forward
0 new messages