Linux Development :  Bluewater Systems Support Forum
Covers issues with Linux development, such as tool chains, packages, kernel issues etc... 
bluetooth module connection fail
Posted by: henry ()
Date: October 05, 2009 11:28PM

The bluetooth module can scan bluetooth devices nearby, however, failed to make connection with any of them, as shown 'Can't get device information: Host is down'.

The devices include my laptop, cell phone and a bluetooth mouse, and they were all turned on

root@snapper:~$ hcitool scan
Scanning ...
00:24:7D:02:16:4A Henry
00:21:86:92:71:AD HENRY-PC
root@snapper:~$ hidd -connect 00:21:86:92:71:AD
Can't get device information: Host is down
root@snapper:~$ hcitool scan
Scanning ...
00:1F:01:A1:4E:27 n/a
00:24:7D:02:16:4A Henry
root@snapper:~$ hcitool scan
Scanning ...
00:24:7D:02:16:4A Henry
root@snapper:~$ hcitool scan
Scanning ...
00:21:86:92:71:AD HENRY-PC
00:24:7D:02:16:4A Henry
00:16:41:88:B6:6B n/a
root@snapper:~$ hidd -connect 00:21:86:92:71:AD
Can't get device information: Host is down
root@snapper:~$ hidd -connect 00:24:7D:02:16:4A
Can't get device information: Host is down
root@snapper:~$ hcitool scan
Scanning ...
00:22:B4:24:08:FC Claudie
00:24:7D:02:16:4A Henry
00:21:86:92:71:AD HENRY-PC
00:16:41:88:B6:6B COMPACT
root@snapper:~$ hidd -connect 00:22:B4:24:08:FC
Can't get device information: Host is down
root@snapper:~$ hcitool scan
Scanning ...
00:24:7D:02:16:4A Henry
00:21:86:92:71:AD HENRY-PC
00:16:41:88:B6:6B COMPACT
root@snapper:~$ hidd -connect 00:16:41:88:B6:6B
Can't get device information: Host is down
root@snapper:~$ hcitool scan
Scanning ...
00:24:7D:02:16:4A Henry
00:22:B4:24:08:FC Claudie
00:16:41:88:B6:6B COMPACT
00:21:86:92:71:AD HENRY-PC
root@snapper:~$ hidd -connect 00:22:B4:24:08:FC
Can't get device information: Host is down
root@snapper:~$

Options: ReplyQuote
Re: bluetooth module connection fail
Posted by: andre ()
Date: October 06, 2009 02:11PM

What kind of devices are Claudie/COMPACT? hidd is generally used to bind up a HID device (ie: a keyboard/mouse). If Claudie/COMPACT are PCs, or similar, I doubt that they will respond to those kind of requests.

Can you use the l2ping command to validate the bluetooth link?

Regards,
Andre

Options: ReplyQuote
Re: bluetooth module connection fail
Posted by: Henry ()
Date: October 06, 2009 08:27PM

Can you give some detailed information on how to use the l2ping command to make a connection between the bluetooth module and my laptop

Options: ReplyQuote
Re: bluetooth module connection fail
Posted by: andre ()
Date: October 06, 2009 08:56PM

l2ping simply validates that the layer-2 networking is working. It will not create a connection.

OBEX is the normal protocol for transferring files (Assuming that is what you want to do over bluetooth). Our package repository will be updated tonight to include the obexftp software. Once available, you should be able to run the following.

Have a look here for some more information:
[www.klings.org]

root@snapper:~$ ipkg-cl install obexftp
root@snapper:~$ hcitool scan
Scanning ...
        00:02:C7:11grinning smiley9:A9       iPAQ PocketPC
        00:10:C6:8A:1A:5D       n/a
        00:09grinning smileyD:50:08:28       tutira-0
root@snapper:~$ sdptool browse 00:09grinning smileyD:50:08:28
Browsing 00:09grinning smileyD:50:08:28 ...
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: 0x0100

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

Service Name: AVRCP TG
Service RecHandle: 0x10002
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: 0x0103

Service Name: AVRCP CT
Service RecHandle: 0x10003
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: 0x0103

Service Name: OBEX Object Push
Service RecHandle: 0x10004
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: OBEX File Transfer
Service RecHandle: 0x10005
Service Class ID List:
  "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 10
  "OBEX" (0x0008)
Profile Descriptor List:
  "OBEX File Transfer" (0x1106)
    Version: 0x0100
root@snapper:~$ obextool push touchwheel.sh   00:09grinning smileyD:50:08:28 9




Andre

Options: ReplyQuote
Re: bluetooth module connection fail
Posted by: andre ()
Date: October 06, 2009 08:58PM

The smiley faces are supposed to be : D (colon, capital D, with no space in between).

Andre

Options: ReplyQuote
Re: bluetooth module connection fail
Posted by: Henry ()
Date: October 06, 2009 09:25PM

Yes, what I wanna do is collecting data from a serial port, then these data will be fed to the bluetooth module and then bluetooth module transfer the data to a paired PC. At the moment, I am trying to pair the module with my laptop, however, failed to make connection between them.

Options: ReplyQuote
Re: bluetooth module connection fail
Posted by: henry ()
Date: October 07, 2009 11:37PM

error apears when i typed

root@snapper:~$ ipkg-cl update
root@snapper:~$ ipkg-cl install obexftp
Clearing state_want and state_flag for pkg=base-files (arch_priority=0 flag=256 want=2)
Clearing state_want and state_flag for pkg=sysvinit-inittab (arch_priority=0 flag=256 want=2)
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package obexftp.
Check the spelling or perhaps run 'ipkg update'
root@snapper:~$

any suggestion?

Options: ReplyQuote


Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.

Applications

rs1

rs_2

rs_3

rs_4