[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bluetooth-dev] Problems with btinq



Hi again!! Thanks for your reply. I've tried again and the results have
been:

 I wrote:         ./btinq 1 10
The answer was:   bt_inquiry: Invalid argument


The debug messages in kernel were:

Aug  8 18:15:37 pumuki kernel: BT (driver) bt_open on line 7
Aug  8 18:15:37 pumuki kernel: BT (driver) Registering tty on line 7
Aug  8 18:15:37 pumuki kernel: BT SYS: Now 1 open fd:s for ttyBTC
Aug  8 18:15:37 pumuki kernel: BT (driver) bt_close on line 7
Aug  8 18:15:37 pumuki kernel: BT (driver) Unregistering tty on line 7

I don't know if this could help you but is the only I could get. Thank
you.

The error appears when the write system call is executed.  The output of
strace is:

open("/dev/ttyBTC", O_RDWR|O_NOCTTY)    = 3
ioctl(3, 0x80044209, 0xbffffa14)        = 0
brk(0)                                  = 0x804d598
brk(0x804d5c0)                          = 0x804d5c0
brk(0x804e000)                          = 0x804e000
ioctl(3, 0xc0084220, 0x804d5a0)         = -1 EINVAL (Invalid argument)
write(2, "bt_inquiry: Invalid argument\n", 29bt_inquiry: Invalid
argument
) = 29
_exit(1)                                = ?

And the line where 'write' is called is :

	if (ioctl(bt_cfd, HCIINQUIRY, inq_res) < 0)

Any idea? Thanks.

Arantxa.


-------- Original Message --------
Subject: RE: [bluetooth-dev] Problems with btinq
Date: Wed, 8 Aug 2001 11:21:13 +0200
From: Peter Kjellerstedt <peter.kjellerstedt@xxxxxxx.com>
To: "'Aranzazu Martinez Dominguez'"
<amd@xxxxxxx.com>

> -----Original Message-----
> From: Aranzazu Martinez Dominguez [mailto:amd@xxxxxxx.es]
> Sent: 08 August 2001 13:06
> To: bluetooth
> Subject: [bluetooth-dev] Problems with btinq
> 
> Hi!!
> 
> When I try to run the btinq programme, it always fails.  The error
> message is "Invalid Argument" and I think that I'm doing 
> well.  I wrote:
> 
>                         ./btinq -n 5 -t 20
> 
> Does anybody know what is happening? Please answer me. Thanks in
> advance.

Do you have a more accurate log of what is happening?
The reason I ask is because there is no message
"Invalid Argument" in the source in the experimental
directory, so I would like to know where it comes from.

//Peter
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com