openconnection exception problem

Help
L T
2009-01-08
2012-12-10
  • L T
    L T
    2009-01-08

    openconnection exception javax.bluetooth.Bleutoo... message on my K320i.
    i use ubuntu 8.10 and bluetooth connection is good. tested with 4.12 & 4.11.
    in advance thanks.

     
    • Mike
      Mike
      2009-01-08

      Which channels are used on phone side and on PC side ?
      (19 on both sides ?)
      Rerun anyremote from console with "-log" option and send
      $HOME/.anyRemote/anyremote.log to me

       
    • L T
      L T
      2009-01-09

      CFG - anyRemote v4.13
      CFG - [Mode] default
      CFG -     # = Emulate(mousedblclick<|>);
      CFG -     0 = Emulate(key,space<|>);
      CFG -     9 = Emulate(mouse,5<|>);
      CFG -     8 = Emulate(mousermove,0,10<|>);
      CFG -     7 = Emulate(mouse,4<|>);
      CFG -     6 = Emulate(mousermove,10,0<|>);
      CFG -     5 = Emulate(mousermove,0,-10<|>);
      CFG -     4 = Emulate(mousermove,-10,0<|>);
      CFG -     3 = Emulate(mouse,3<|>);
      CFG -     2 = Emulate(mouse,2<|>);
      CFG -     1 = Emulate(mouse,1<|>);
      CFG -     Back = Set(text,close<|>);
      CFG -     * * = Set(text,replace,Help,1 - Left Click\n2 - CenterClick\n3 - RightClick\n4 - Move Left\n5 - Move Up\n6 - Move Right\n7 - WheelUp\n8 - Move Down\n9 - WheelDown\n** - Help\n0 - Space\n# - Left DblClick<|>);
      CFG -     Cancel = Exit<|>;
      CFG -     (Connect) = Set(icons,Mouse,0,default,1,ok,2,ok,3,ok,4,previous,5,up,6,next,7,ok,8,down,9,ok,*,question,0,minus,#,ok<|>);\ CFG -         Set(skin,default,keypad_only<|>);
      CFG - [ModeEnd] default
      CFG - [Aliases]
      CFG -     Key FIRE     aliased to 1
      CFG -     Key RIGHT     aliased to 6
      CFG -     Key LEFT     aliased to 4
      CFG -     Key DOWN     aliased to 8
      CFG -     Key UP     aliased to 5
      CFG -     Key 69     aliased to Cancel
      CFG -     Key -8     aliased to Cancel
      CFG -     Key -11     aliased to Cancel
      CFG - [End]
      CFG - [Alarms]
      CFG - [End]
      CFG - [Parameters]
      CFG -     AutoRepeat    Yes
      CFG -     Device        bluetooth:19
      CFG -     Log          Debug
      CFG -     Retry Sec     60
      CFG -     Screen Menu   Yes
      CFG -     Port          5050
      CFG - [End]
      [Fri Jan  9 14:30:19 2009] - DEBUG - mainRoutine
      [Fri Jan  9 14:30:19 2009] - DEBUG - connect to frontend >5050<
      [Fri Jan  9 14:30:19 2009] - ERROR - connect socket for frontend
      [Fri Jan  9 14:30:19 2009] - INFO - openPort()
      [Fri Jan  9 14:30:19 2009] - DEBUG - Bluetooth Sockets Server mode. Use channel 19
      [Fri Jan  9 14:30:19 2009] - INFO - registered SP for channel 19
      [Fri Jan  9 14:30:19 2009] - DEBUG - findItemInMode >default,(Init)<
      [Fri Jan  9 14:30:19 2009] - DEBUG - findItemInMode: No parameters suspected. Item does not found.
      [Fri Jan  9 14:30:19 2009] - DEBUG - initPort
      [Fri Jan  9 14:30:19 2009] - INFO - Server mode: Waiting connection
      [Fri Jan  9 14:30:19 2009] - INFO - listenAndAcceptSocketConn
      [Fri Jan  9 14:38:51 2009] - DEBUG - findItemInMode >default,(Exit)<
      [Fri Jan  9 14:38:51 2009] - DEBUG - findItemInMode: No parameters suspected. Item does not found.
      [Fri Jan  9 14:38:51 2009] - DEBUG - freeTimers()

      I use ganyremote otherwise (not for this log)

       
    • Mike
      Mike
      2009-01-09

      OK. Seems all is OK on PC side.
      Does "sdptool browse local" shows service registered by anyRemote ?

      On phone side: could You please remove PC address from the list
      and run serach again.
      If it does not helps try to enter bluetooth address manually.

       
      • L T
        L T
        2009-01-09

        sdptool browse local :

        Service Name: anyRemote
        Service Description: Bluetooth remote control
        Service Provider: anyRemote
        Service RecHandle: 0x10007
        Service Class ID List:
          "Serial Port" (0x1101)
        Protocol Descriptor List:
          "L2CAP" (0x0100)
          "RFCOMM" (0x0003)
            Channel: 19
        Profile Descriptor List:
          "Serial Port" (0x1101)
            Version: 0x0100

        With the  "hcitool dev" i get an address (the local address ?): I enter it in the phone : btspp://xxxxxxxxxxxx:19 => it doesn't work, alway the same message.

        Search doesn't find anything.

         
    • Mike
      Mike
      2009-01-10

      Does bluetooth adapter on PC is in discoverable mode ?
      (hciconfig hci0 piscan)
      Which version of bluez do You have ?

       
      • L T
        L T
        2009-01-10

        That's it ! It works now ! It's was the piscan mode just missing. The remote works just awesome. I couldn't find this by mysellf...I know anything about bluetooth. Thank you so much for your help and your time Mike.

         
  • maximi89
    maximi89
    2010-11-28

    The same thing it's happening me, it was working very well, and now it doesn't…

    i'm using in the server anyremote v5.3 and in the client, i have tried with anyremote 4.18 and 4.21, nothing…

    now when i try to connect i get an "openconnection exception" and it show me the bluetooth link when it's in the bluetooth list connections of Anyremote…

     
  • maximi89
    maximi89
    2010-11-28

    in my case

    sdptool browse local

    Service Name: anyRemote
    Service Description: Bluetooth remote control
    Service Provider: anyRemote
    Service RecHandle: 0x10006
    Service Class ID List:
      "Serial Port" (0x1101)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 1
    Profile Descriptor List:
      "Serial Port" (0x1101)
        Version: 0x0100

    sdptool browse phone

    Service Name: Dialup Networking Gateway
    Service Description: Dialup Networking Gateway
    Service Provider: Motorola
    Service RecHandle: 0x10001
    Service Class ID List:
      "Dialup Networking" (0x1103)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 1
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
      code_ISO639: 0x6672
      encoding:    0x6a
      base_offset: 0xc800
      code_ISO639: 0x6573
      encoding:    0x6a
      base_offset: 0xc803
      code_ISO639: 0x7074
      encoding:    0x6a
      base_offset: 0xc806
    Profile Descriptor List:
      "Dialup Networking" (0x1103)
        Version: 0x0100

     
  • maximi89
    maximi89
    2010-11-28

    by default the channel of local bluetooth device it's 19…

     
  • Mike
    Mike
    2010-11-29

    You can try to start "from scratch":
    - remove $HOME/.anyRemote directory on PC
    - delete all previously found server on java client
    and after this "clean-up" start anyremote and run search on java client

     
  • maximi89
    maximi89
    2010-11-29

    Hi mikefedotov, i made what you said,  but nothing, i get the same as before, rfcomm was started with my mobile mac address  and channel 1, but this is my conf:

    $ rfcomm
    rfcomm0: 00:1A:1B:96:93:22 channel 1 clean
    # l2ping  00:1A:1B:96:93:22
    Ping: 00:1A:1B:96:93:22 from 00:11:67:CB:5D:87 (data size 44) …
    44 bytes from 00:1A:1B:96:93:22 id 0 time 46.39ms
    44 bytes from 00:1A:1B:96:93:22 id 1 time 49.84ms
    ^C2 sent, 2 received, 0% loss
    # sdptool browse 00:1A:1B:96:93:22
    Browsing 00:1A:1B:96:93:22 …
    Service RecHandle: 0x0
    Service Class ID List:
      "SDP Server" (0x1000)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "SDP" (0x0001)
    Profile Descriptor List:
      "SDP Server" (0x1000)
        Version: 0x0100

    Service Name: Dialup Networking Gateway
    Service Description: Dialup Networking Gateway
    Service Provider: Motorola
    Service RecHandle: 0x10001
    Service Class ID List:
      "Dialup Networking" (0x1103)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 1
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
      code_ISO639: 0x6672
      encoding:    0x6a
      base_offset: 0xc800
      code_ISO639: 0x6573
      encoding:    0x6a
      base_offset: 0xc803
      code_ISO639: 0x7074
      encoding:    0x6a
      base_offset: 0xc806
    Profile Descriptor List:
      "Dialup Networking" (0x1103)
        Version: 0x0100

    Service Name: Voice Gateway
    Service Description: Headset Audio Gateway
    Service Provider: Motorola
    Service RecHandle: 0x10003
    Service Class ID List:
      "Headset Audio Gateway" (0x1112)
      "Generic Audio" (0x1203)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 3
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
      code_ISO639: 0x6672
      encoding:    0x6a
      base_offset: 0xc800
      code_ISO639: 0x6573
      encoding:    0x6a
      base_offset: 0xc803
      code_ISO639: 0x7074
      encoding:    0x6a
      base_offset: 0xc806
    Profile Descriptor List:
      "Headset" (0x1108)
        Version: 0x0100

    Service Name: Handsfree Voice Gateway
    Service Description: Handsfree Voice Gateway
    Service Provider: Motorola
    Service RecHandle: 0x10007
    Service Class ID List:
      "Handsfree Audio Gateway" (0x111f)
      "Generic Audio" (0x1203)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 7
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
      code_ISO639: 0x6672
      encoding:    0x6a
      base_offset: 0xc800
      code_ISO639: 0x6573
      encoding:    0x6a
      base_offset: 0xc803
      code_ISO639: 0x7074
      encoding:    0x6a
      base_offset: 0xc806
    Profile Descriptor List:
      "Handsfree" (0x111e)
        Version: 0x0101

    Service Name: OBEX Object Push
    Service Description: OBEX Object Push
    Service Provider: Motorola
    Service RecHandle: 0x10008
    Service Class ID List:
      "OBEX Object Push" (0x1105)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 8
      "OBEX" (0x0008)
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
      code_ISO639: 0x6672
      encoding:    0x6a
      base_offset: 0xc800
      code_ISO639: 0x6573
      encoding:    0x6a
      base_offset: 0xc803
      code_ISO639: 0x7074
      encoding:    0x6a
      base_offset: 0xc806
    Profile Descriptor List:
      "OBEX Object Push" (0x1105)
        Version: 0x0100

    Service Name: OBEX File Transfer
    Service Description: OBEX File Transfer
    Service Provider: Motorola
    Service RecHandle: 0x10009
    Service Class ID List:
      "OBEX File Transfer" (0x1106)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 9
      "OBEX" (0x0008)
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
      code_ISO639: 0x6672
      encoding:    0x6a
      base_offset: 0xc800
      code_ISO639: 0x6573
      encoding:    0x6a
      base_offset: 0xc803
      code_ISO639: 0x7074
      encoding:    0x6a
      base_offset: 0xc806
    Profile Descriptor List:
      "OBEX File Transfer" (0x1106)
        Version: 0x0100

    Service Name: Image Push
    Service Description: Image Push
    Service Provider: Motorola
    Service RecHandle: 0x1000a
    Service Class ID List:
      "Imaging Responder" (0x111b)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 10
      "OBEX" (0x0008)
    Language Base Attr List:
      code_ISO639: 0x656e
      encoding:    0x6a
      base_offset: 0x100
      code_ISO639: 0x6672
      encoding:    0x6a
      base_offset: 0xc800
      code_ISO639: 0x6573
      encoding:    0x6a
      base_offset: 0xc803
      code_ISO639: 0x7074
      encoding:    0x6a
      base_offset: 0xc806
    Profile Descriptor List:
      "Imaging" (0x111a)
        Version: 0x0100

    # sdptool browse local
    Browsing FF:FF:FF:00:00:00 …
    Service Name: Headset Audio Gateway
    Service RecHandle: 0x10000
    Service Class ID List:
      "Headset Audio Gateway" (0x1112)
      "Generic Audio" (0x1203)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 12
    Profile Descriptor List:
      "Headset" (0x1108)
        Version: 0x0102

    Service Name: Hands-Free Audio Gateway
    Service RecHandle: 0x10001
    Service Class ID List:
      "Handsfree Audio Gateway" (0x111f)
      "Generic Audio" (0x1203)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 13
    Profile Descriptor List:
      "Handsfree" (0x111e)
        Version: 0x0105

    Service Name: Audio Source
    Service RecHandle: 0x10002
    Service Class ID List:
      "Audio Source" (0x110a)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
        PSM: 25
      "AVDTP" (0x0019)
        uint16: 0x102
    Profile Descriptor List:
      "Advanced Audio" (0x110d)
        Version: 0x0102

    Service Name: AVRCP TG
    Service RecHandle: 0x10003
    Service Class ID List:
      "AV Remote Target" (0x110c)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
        PSM: 23
      "AVCTP" (0x0017)
        uint16: 0x103
    Profile Descriptor List:
      "AV Remote" (0x110e)
        Version: 0x0100

    Service Name: AVRCP CT
    Service RecHandle: 0x10004
    Service Class ID List:
      "AV Remote" (0x110e)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
        PSM: 23
      "AVCTP" (0x0017)
        uint16: 0x103
    Profile Descriptor List:
      "AV Remote" (0x110e)
        Version: 0x0100

    Service Name: OBEX Object Push
    Service RecHandle: 0x10005
    Service Class ID List:
      "OBEX Object Push" (0x1105)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 9
      "OBEX" (0x0008)
    Profile Descriptor List:
      "OBEX Object Push" (0x1105)
        Version: 0x0100

    Service Name: anyRemote
    Service Description: Bluetooth remote control
    Service Provider: anyRemote
    Service RecHandle: 0x10006
    Service Class ID List:
      "Serial Port" (0x1101)
    Protocol Descriptor List:
      "L2CAP" (0x0100)
      "RFCOMM" (0x0003)
        Channel: 19
    Profile Descriptor List:
      "Serial Port" (0x1101)
        Version: 0x0100

     
  • maximi89
    maximi89
    2010-11-30

    I believe i found the problem, but not the solution:

    i started the service anyremote manually:
    anyremote -fe 5050 -log -f /usr/share/anyremote/cfg-data/Server-mode/ooimpress.cfg

    Then i check the output /home/maximi89/.anyRemote/anyremote.log and i found:

    " - DBG - send to dispatcher 98
    - DBG - : Got event
    - DBG - : No connection. Skip event
    - DBG - : wait init OK event
    - DBG - : Got event
    - INF - : Got init OK event
    - DBG - : ************ outer loop **********
    - INF - : openPort()
    - DBG - : Bluetooth Sockets Server mode. Use channel 19
    - ERR - can not register SDP service
    - INF - registered SP for channel 19
    - DBG - : Device open OK
    - DBG - : initPort
    - INF - : Server mode: Waiting connection"

     
  • maximi89
    maximi89
    2010-11-30

    no, the last message was because i left to connect the bluetooth device…  now with it, it doesn't show any message.
    Still don't know what happened…

     
  • I have the same problem on Samsung e2121b
    In my case, there isn't a "search". I can only add the bt adress manual. And can't add it, so i always have to reenter the adress with the mobile phone keypad. That makes no fun.
    So are there any new idees of a solution?

     
  • Mike
    Mike
    2012-09-19

    2 schmusebaerchen: does the problem remains with latest version of J2ME client ?