Linux bluetooth development
 help / color / mirror / Atom feed
* [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux
@ 2005-08-18  6:42 Al
  2005-08-18 19:21 ` blookk -
  0 siblings, 1 reply; 4+ messages in thread
From: Al @ 2005-08-18  6:42 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 1965 bytes --]


Hi,

     The poll() always return error :

     while ((n = poll(&p, 1, to)) < 0) in funcion int hci_send_req () (file: hci.c) results in "Can't read local name on hci0: Connection timed out (110)"

     Has anyone had same problem using poll() in embedded linux?

thanks a lot,

Al
-----Original Message-----
From:	Al on behalf of Al
Sent:	Wed 8/17/2005 3:48 PM
To:	bluez-users@lists.sourceforge.net
Cc:	
Subject:	Port BlueZ lib and utility on embedded uClinux
Hi, there:
 
     I'm trying to port BlueZ on embedded uClinux. Kernel part seems ok so far.
 
    For the HCI utility on user space part, I first have /hci-lib and /hcid 
compiled to hcid. Then have /hci-lib and /hciconfig compiled to hciconfig.
Copy two applications, hcid and hciconfig, to ramdisk. Also I have hcid.conf
copied to ramdisk /etc/bluetooth/
 
     After boot up, run hcid, then hciconfig hci0 up to bring up the device.
MAC address is read correctly. But when running hciconfig -a, it can't read local name correctly.
Are those steps correct? What do I miss?
 
thanks a lot,
 
Al
 
--------------------------------------
If I rn hcid -n to see the printout:
 
/>hcid -n
hcid[18]: Bluetooth HCI deamon
hcid[18]: Starting security manager 0
 
---------------------------------------------------------------
/> hcid
/> hciconfig hci0 up
/> hciconfig -a
hci0:   Type: USB
        BD Address: 00:11:67:03:DB:62 ACL MTU: 678:8 SCO MTU: 48:10
        UP RUNNING PSCAN ISCAN
        RX bytes:323 acl:0 sco:0 events:9 errors:0
        TX bytes:33 acl:0 sco:0 commands:9 errors:0
        Features: 0xff 0xff 0x8d 0x78 0x08 0x18 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy:
        Link mode: SLAVE ACCEPT


Can't read local name on hci0: Connection timed out (110)
pid 17: failed 256
/>
-------------------------------------------------------------------------------------------

 




[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 3415 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux
  2005-08-18  6:42 [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux Al
@ 2005-08-18 19:21 ` blookk -
  0 siblings, 0 replies; 4+ messages in thread
From: blookk - @ 2005-08-18 19:21 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/html, Size: 4428 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux
@ 2005-08-19  1:45 Al
  0 siblings, 0 replies; 4+ messages in thread
From: Al @ 2005-08-19  1:45 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 3777 bytes --]

Hi,
 
     How did you get name for other bluetooth device to find? Give the name
in codes instead of from /etc/bluetooth/hcid.conf ? Are other utilities functional
ok while disabling those options?
 
Thanks for helps,
 
Al

	-----Original Message----- 
	From: bluez-users-admin@lists.sourceforge.net 代理 blookk - 
	Sent: 2005/8/19 [星期五] 上午 03:21 
	To: bluez-users@lists.sourceforge.net 
	Cc: 
	Subject: RE: [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux
	
	

	Hi,

	When I am porting BlueZ to uCLinux, I found the same problem.
	I try with "select()" instead of "poll()", but I did not  solve the problem.

	I decided disable this option, and do not read the local name or other characteristics that I do not remenber.
	

	Regards.
	

		
  _____  

		From:  "Al" <Al_chane@issc.com.tw>
		Reply-To:  bluez-users@lists.sourceforge.net
		To:  <bluez-users@lists.sourceforge.net>
		Subject:  [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux
		Date:  Thu, 18 Aug 2005 14:42:09 +0800
		>
		>Hi,
		>
		>      The poll() always return error :
		>
		>      while ((n = poll(&p, 1, to)) < 0) in funcion int hci_send_req () (file: hci.c) results in "Can't read local name on hci0: Connection timed out (110)"
		>
		>      Has anyone had same problem using poll() in embedded linux?
		>
		>thanks a lot,
		>
		>Al
		>-----Original Message-----
		>From: Al on behalf of Al
		>Sent: Wed 8/17/2005 3:48 PM
		>To: bluez-users@lists.sourceforge.net
		>Cc:
		>Subject: Port BlueZ lib and utility on embedded uClinux
		>Hi, there:
		>
		>      I'm trying to port BlueZ on embedded uClinux. Kernel part seems ok so far.
		>
		>     For the HCI utility on user space part, I first have /hci-lib and /hcid
		>compiled to hcid. Then have /hci-lib and /hciconfig compiled to hciconfig.
		>Copy two applications, hcid and hciconfig, to ramdisk. Also I have hcid.conf
		>copied to ramdisk /etc/bluetooth/
		>
		>      After boot up, run hcid, then hciconfig hci0 up to bring up the device.
		>MAC address is read correctly. But when running hciconfig -a, it can't read local name correctly.
		>Are those steps correct? What do I miss?
		>
		>thanks a lot,
		>
		>Al
		>
		>--------------------------------------
		>If I rn hcid -n to see the printout:
		>
		>/>hcid -n
		>hcid[18]: Bluetooth HCI deamon
		>hcid[18]: Starting security manager 0
		>
		>---------------------------------------------------------------
		>/> hcid
		>/> hciconfig hci0 up
		>/> hciconfig -a
		>hci0:   Type: USB
		>         BD Address: 00:11:67:03:DB:62 ACL MTU: 678:8 SCO MTU: 48:10
		>         UP RUNNING PSCAN ISCAN
		>         RX bytes:323 acl:0 sco:0 events:9 errors:0
		>         TX bytes:33 acl:0 sco:0 commands:9 errors:0
		>         Features: 0xff 0xff 0x8d 0x78 0x08 0x18 0x00 0x00
		>         Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
		>         Link policy:
		>         Link mode: SLAVE ACCEPT
		>
		>
		>Can't read local name on hci0: Connection timed out (110)
		>pid 17: failed 256
		>/>
		>-------------------------------------------------------------------------------------------
		>
		>
		>
		>
		>
		

		><< winmail.dat >> 

		

	------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users 


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 8053 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux
@ 2005-08-22  2:11 Al
  0 siblings, 0 replies; 4+ messages in thread
From: Al @ 2005-08-22  2:11 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

Hi,
 
     Sorry, I described poll() problem incorrectly before. 
 
     The poll() always return 0, not error, meaning the descriptor is not ready before the timer expires.
 
      while ((n = poll(&p, 1, to)) < 0) in funcion int hci_send_req () (file: hci.c) 
      results in "Can't read local name on hci0: Connection timed out (110)"

     Any advice/comment appreciated!
 
Al
     

	 


[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 3697 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-22  2:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-18  6:42 [Bluez-users] RE: Port BlueZ lib and utility on embedded uClinux Al
2005-08-18 19:21 ` blookk -
  -- strict thread matches above, loose matches on Subject: below --
2005-08-19  1:45 Al
2005-08-22  2:11 Al

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox