gnokii-users
[Top][All Lists]
Advanced

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

Siemens S55 via Bluetooth


From: Войнович Андрей
Subject: Siemens S55 via Bluetooth
Date: Fri, 19 Sep 2008 17:10:44 +0600
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

I try to manage Siemens S55 using gnokii via bluetooth interface.
I installed bluez-utils and gnokii from debian unstable, then i try:

   $ gnokii --identify
   GNOKII Version 0.6.26
   LOG: debug mask is 0x1
   Config read from file /andreyv/.gnokiirc.
   phone instance config:
   model = AT
   port = 00:01:e3:24:f7:f1
   connection = bluetooth
   initlength = default
   serial_baudrate = 19200
   serial_write_usleep = -1
   handshake = software
   require_dcd = 0
   smsc_timeout = 10
   rfcomm_channel = 1
   sm_retry = 0
   Initializing AT capable mobile phone ...
   Serial device: opening device 00:01:e3:24:f7:f1
   Can't connect: Connection refused
   AT bus initialization failed (1)
   Initialization failed (1)
   Serial device: closing device
   Telephone interface init failed: Command failed.
   Quitting.
   Command failed.


I read somewhere that i should have /etc/bluetooth/pin file with password to connect to device via bluetooth, i did it, but the problem still the same. Then i read that i should have script like:

   #!/bin/sh
   echo "PIN:123456"


And even added line to /etc/bluetooth/hcid.conf:

   pinhelper /bin/bluepin


It didn't help.

Here is dump of the whole connection attemtp:

hcidump
HCI sniffer - Bluetooth packet analyzer ver 1.42
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Connect Complete (0x03) plen 11
< ACL data: handle 41 flags 0x02 dlen 12
   L2CAP(s): Connect req: psm 3 scid 0x0040
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Max Slots Change (0x1b) plen 3
> HCI Event: Command Status (0x0f) plen 4
> ACL data: handle 41 flags 0x02 dlen 16
   L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
     Connection successful
< ACL data: handle 41 flags 0x02 dlen 16
   L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
     MTU 1013
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Command Status (0x0f) plen 4
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> ACL data: handle 41 flags 0x02 dlen 17
> ACL data: handle 41 flags 0x01 dlen 1
   L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 4
     MTU 1013
> ACL data: handle 41 flags 0x02 dlen 16
   L2CAP(s): Config req: dcid 0x0040 flags 0x00 clen 4
     MTU 339
< ACL data: handle 41 flags 0x02 dlen 14
   L2CAP(s): Config rsp: scid 0x0040 flags 0x00 result 0 clen 0
     Success
< ACL data: handle 41 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Command Complete (0x0e) plen 6
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
> HCI Event: Command Status (0x0f) plen 4
> ACL data: handle 41 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
< ACL data: handle 41 flags 0x02 dlen 18
   L2CAP(d): cid 0x0040 len 14 [psm 3]
     RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8
     dlci 2 frame_type 0 credit_flow 15 pri 7 ack_timer 0
     frame_size 334 max_retrans 0 credits 7
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Read Remote Supported Features (0x0b) plen 11
> ACL data: handle 41 flags 0x02 dlen 17
> ACL data: handle 41 flags 0x01 dlen 1
   L2CAP(d): cid 0x0040 len 14 [psm 3]
     RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8
     dlci 2 frame_type 0 credit_flow 14 pri 0 ack_timer 0
     frame_size 334 max_retrans 0 credits 2
< ACL data: handle 41 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): SABM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x59
> HCI Event: Remote Name Req Complete (0x07) plen 255
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: PIN Code Request (0x16) plen 6
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
> HCI Event: Command Complete (0x0e) plen 10
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
> HCI Event: Command Complete (0x0e) plen 10
> ACL data: handle 41 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): DM: cr 1 dlci 2 pf 1 ilen 0 fcs 0x73
< ACL data: handle 41 flags 0x02 dlen 8
   L2CAP(d): cid 0x0040 len 4 [psm 3]
     RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
< ACL data: handle 41 flags 0x02 dlen 12
   L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Number of Completed Packets (0x13) plen 5
> ACL data: handle 41 flags 0x02 dlen 12
   L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
< HCI Command: Disconnect (0x01|0x0006) plen 3
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Disconn Complete (0x05) plen 4

I see that i didn't configure bluetooth password correctly here:

   < HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6

But cannot find info how to do it.
Help :)

Yours faithfully,
Andrey.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]