You Are Here:

Community: Developer Discussion Boards

#1 Old Exclamation N95 returns SERVICE_SEARCH_NO_RECORDS - 2009-01-12, 21:47

Join Date: Jan 2009
Posts: 3
woppa
Offline
Registered User
We've developed an application for controlling a project we've designed with our mobile phones. We make a bluetooth connection to one of our pc's and we send xml from and to te phone to control our application. Everything has worked well so far and the application is getting bigger and bigger, we only have one problem:

There is one phone, my N95 8GB, which doesn't find any services on my notebook. All other phones using the same j2me midlet can connect to my notebook just fine. We're using RFCOMM as protocol and Serial Port (0x1101) as UUID.

What could we be overlooking here? I've been searching the internet for a few hours now and i've discovered some people with the same problem but nowhere a real solution.

Our server application runs on linux and when I search the local pc for public services I see my service:

Code:
Service Name: RC
Service Description: A bluetooth remote control
Service Provider: RC
Service RecHandle: 0x10005
Service Class ID List:
  "Serial Port" (0x1101)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 11
Profile Descriptor List:
  "Serial Port" (0x1101)
    Version: 0x0100
Nothing wrong there, the problem seems to be at the clientside ... My phone (the N95) CAN find alle devices surrounding me but when I start a servicesearch it fails with the SERVICE_SEARCH_NO_RECORDS error indicating that no service records were returned.

Does the N95 handle things different? When I don't use our application but sample code from specialised websites I get the same error. If anyone has some bright ideas about this I'd be very happy!
Reply With Quote

#2 Old Re: N95 returns SERVICE_SEARCH_NO_RECORDS - 2009-01-13, 23:34

Join Date: Dec 2008
Posts: 8
Pada
Offline
Registered User
I'm using a N95 to test my BT application (using Serial Port) too and it works fine so far. The reason why my application might be working and yours not, can be due to the fact that I'm not checking the ResponseCode in the "serviceSearchCompleted" method.

The Sample BluetoothDemo that comes with NetBeans 6.5 (with Mobility Pack) doesn't check for the ResponseCode either,
nor does the Example provided in Chapter 5.4 of the JSR-82 Specifications document (Final Release 3, 28 Aug 2008), which can be download from http://jcp.org/en/jsr/detail?id=82

I changed the UUID array from "L2CAP" to "Serial Port" ofcourse:
Code:
UUID[] searchList = new UUID[1];
searchList[0] = new UUID(0x1101);
And also change the "deviceDiscovered" method to check for other classes.

I'm still a beginner with this BT programming, so please correct me if I'm wrong...

Regards
Chris
Last edited by Pada : 2009-01-13 at 23:38. Reason: grammer & url correction
Reply With Quote

#3 Old 2009-01-15, 18:11

Join Date: Mar 2003
Posts: 2,617
traud
Offline
Super Contributor
woppa, I recommend a Bluetooth packet analyzer which should tell which data is requested and which is sent. However, I do not have one at hand for Linux right now.
Reply With Quote

#4 Old Re: N95 returns SERVICE_SEARCH_NO_RECORDS - 2009-01-15, 18:17

Join Date: Dec 2008
Posts: 8
Pada
Offline
Registered User
traud, can you maybe give a URL to a BT packet analyzer which you're using or know of?
Reply With Quote

#5 Old Re: N95 returns SERVICE_SEARCH_NO_RECORDS - 2009-01-20, 21:49

Join Date: Jan 2009
Posts: 3
woppa
Offline
Registered User
I've tried the examples from netbeans 6.5 and they also don't work. Today I installed a new firmware on my N95 and that also doesn't make any difference... I've made a log (with hcidump) which shows my N95 connecting, looking for services and then disconnecting again... Where does it go wrong?!

Code:
device: hci0 snap_len: 1028 filter: 0xffffffffffffffff
> HCI Event: Connect Request (0x04) plen 10
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Connect Complete (0x03) plen 11
< ACL data: handle 11 flags 0x02 dlen 10
    L2CAP(s): Info req: type 2
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
> HCI Event: Max Slots Change (0x1b) plen 3
> HCI Event: Command Status (0x0f) plen 4
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> HCI Event: Read Remote Supported Features (0x0b) plen 11
> HCI Event: Command Complete (0x0e) plen 6
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
> HCI Event: Command Status (0x0f) plen 4
> ACL data: handle 11 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x0040
< ACL data: handle 11 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
      Connection successful
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
> HCI Event: Connection Packet Type Changed (0x1d) plen 5
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 16
    L2CAP(s): Info rsp: type 2 result 0
      Extended feature mask 0x0003
> ACL data: handle 11 flags 0x02 dlen 10
    L2CAP(s): Info req: type 2
< ACL data: handle 11 flags 0x02 dlen 16
    L2CAP(s): Info rsp: type 2 result 0
      Extended feature mask 0x0000
> HCI Event: Remote Name Req Complete (0x07) plen 255
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
      MTU 65535 
< ACL data: handle 11 flags 0x02 dlen 18
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
      Success
      MTU 65535 
< ACL data: handle 11 flags 0x02 dlen 12
    L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 0
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 18
    L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
      Success
      MTU 672 
> ACL data: handle 11 flags 0x02 dlen 17
    L2CAP(d): cid 0x0040 len 13 [psm 1]
        SDP SS Req: tid 0x1 len 0x8
          pat uuid-16 0x1002 (PubBrwsGrp)
          max 65535
          cont 00
< ACL data: handle 11 flags 0x02 dlen 14
    L2CAP(d): cid 0x0040 len 10 [psm 1]
        SDP SS Rsp: tid 0x1 len 0x5
          count 0
          cont 00
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 11 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
< ACL data: handle 11 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
< HCI Command: Disconnect (0x01|0x0006) plen 3
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Disconn Complete (0x05) plen 4
I think the interesting bit is here:
Code:
> ACL data: handle 11 flags 0x02 dlen 17
    L2CAP(d): cid 0x0040 len 13 [psm 1]
        SDP SS Req: tid 0x1 len 0x8
          pat uuid-16 0x1002 (PubBrwsGrp)
          max 65535
          cont 00
< ACL data: handle 11 flags 0x02 dlen 14
    L2CAP(d): cid 0x0040 len 10 [psm 1]
        SDP SS Rsp: tid 0x1 len 0x5
          count 0
          cont 00
Last edited by woppa : 2009-01-20 at 22:07.
Reply With Quote

#6 Old Re: N95 returns SERVICE_SEARCH_NO_RECORDS - 2009-01-20, 23:12

Join Date: Jan 2009
Posts: 3
woppa
Offline
Registered User
The problem is solved... It appears as if the bluez-utils library (3.25) is faulty. Phones running on Symbian S60 cannot find any services... Upgrading bluez to a higher version solves the problem!
Reply With Quote

#7 Old Re: N95 returns SERVICE_SEARCH_NO_RECORDS - 2009-02-21, 17:17

Join Date: Feb 2009
Posts: 1
ash9999
Offline
Registered User
Hello woppa. I am having the same problem and came across this post.. Can you please tell me exactly which bluez package you installed. I tried the latest one which is actually bluez-4.30. I suppose you are using bluecove as a jsr82 implementation for j2se.. Did you have to install any other package in linux for using bluecove(apart from the bluecove-gpl one). thanks mate..
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
Similar Threads
Thread Thread Starter Forum Replies Last Post
[announce] aXYZ 1.0.0 using XYZ axes of the N95 accelerometer ! cyke64 Python 84 2008-03-05 00:25
Classic N95 vs US ver. N95 qwerty0824 General Discussion 5 2007-09-13 19:09
APS returns KErrNotFound with EAPSRecorderInitialize command on N95 suterma Symbian Media (Graphics & Sounds) 1 2007-06-28 14:48
N95 Some Questions & Suggestions subzero_brighton General Discussion 0 2007-06-22 16:37
Personal JSmith77 PersonalJava 4 2003-07-30 13:52

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