×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    6

    Bleutooth SPP-service channel number

    Is there any way to affect the RFCOMM channel number
    that is allocated while using SPP server connection in
    java?

    I mean that this seems to be total mess beacase channel
    number allocation seems to variate from product to product.
    For example in S60 the btspp service seems to be in channel
    5 or 12 at first - but after closing-opening sequence the
    channel seems to increased by 1.

    In some S40 product uses channel 22 - and it remains while
    disconnecting/connection. But not all of them...

    This causes me little bit problems, when my home-made
    hardware uses hardcodes channel number and cannot do the
    device inquiry to find suitable device and channel connecto
    to..

    In S40 product seems to have also another SPP's than just
    my own java created port - so 1101 is also useless because
    we get connected probably the first one which is suitable.

    I already try to modify the service description tables
    but acceptandopen() -method seems to restore attribute
    4 value back...

    In my previous post there was some sort of hack-work-around
    by creating connection as long as channel get wrapped and
    it is the original channel number again, but it does not
    seem to work in my newest S40...

    Any ideas?

    -R

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105
    Quote Originally Posted by vastila View Post
    Is there any way to affect the RFCOMM channel number that is allocated while using SPP server connection in java?
    Well, this is a feature limitation of JSR-82 specification itself (see table 10-1 and chapter 10.6.2). Unfortunately, many implementations obey that, although they could permit to change the channel identifier if that is not used already. Anyway, even that would not be any help for you across various implementations as different devices have different identifiers allocated already. Or am I wrong?
    Quote Originally Posted by vastila View Post
    This causes me little bit problems, when my home-made hardware uses hardcodes channel number and cannot do the device inquiry to find suitable device and channel connect to.
    The correct way (in any case) would be to do a service search to receive that identifier. This should be quite fast. Then you do a direct connection to your service and you never deal with channel identifiers. There is no need to do a device search (inquiry), as you know the BD_ADDR already. If your home made device is programmed via JSR-82, does this help?

Similar Threads

  1. Bluetooth / Change the RFCOMM server channel number
    By olepogam in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2008-07-31, 11:17
  2. Cannot find where the issue is, Bluetooth service discovery
    By newbietoprofessional in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-07-14, 16:39
  3. Replies: 0
    Last Post: 2006-07-20, 15:28
  4. Service Center Number?
    By PangolinLaser in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-12-12, 09:43
  5. Unicode Song Title In NSM Ringtone
    By mcai7db3 in forum Smart Messaging
    Replies: 3
    Last Post: 2002-08-28, 06:58

Posting Permissions

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