You Are Here:

Community: Developer Discussion Boards

#1 Old Nokia 3650 BT sockets - 2003-08-25, 12:33

Join Date: Aug 2003
Posts: 41
vasilak
Offline
Registered User
Hi,

I am currently programming for the Nokia 3650 mobile phone using its bluetooth capabilities. I have encountered the following problem:
I have opened an L2CAP socket on the mobile listening at a specific port for incoming connections. From a Linux PC (using BlueZ) I am trying to connect to the mobile phone at the specific port. The problem is that the connection is not accepted.
When I reversed the roles (connecting from the mobile to the PC) the connection was made.
I also observed that I can't perform a pairing between the mobile and the PC - I wonder if this has anything to do with it.

Any help would be greatly appreciated.
thnx
Reply With Quote

#2 Old 2003-08-25, 14:21

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
Symbian OS does not require authentication/pairing for outgoing connections (it depends on the remote device if the authentication is done).

For incoming connections, it can be determined on the application-level if authentication or authorisation is needed.

Seppo
Forum Nokia
Reply With Quote

#3 Old RSocket::Accept() could be the problem - 2003-08-25, 14:41

Join Date: Aug 2003
Posts: 41
vasilak
Offline
Registered User
So pairing isn't the problem here because I specify in the program for the accepting socket that no authorisation/authentication should be used.
The problem could be caused by RSocket::Accept() then. Immediately after this call the RequestStatus of the socket gets
a big negative value and not KErrNone. So maybe there could be something wrong with this call.
I also cannot run the BTPointToPoint example. Again there is something wrong during accept so I believe the two problems share the same nature.
Could it have to do with any configuration options of BlueZ under Linux? I sincerely do not believe it to be so but then you never know.
Has anyone run the BTPointToPoint example under Linux???
Reply With Quote

#4 Old 2003-08-25, 16:11

Join Date: Aug 2003
Posts: 41
vasilak
Offline
Registered User
Problem solved.
I had allowed for authorisation to be performed on
incoming socket operations so the connection was getting rejected because of that.
Thanks
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia