LIST

Name

LIST -- List connections

Synopsis

LIST

Description

The LIST command reports active connections as well as some statistics.

Reply

LIST number_of_connections
LIST link_id status type blocksize bytes_in bytes_out elapsed_time our_msc
  remote_msc bdaddr channel direction powermode role crypt child_pid hcihandle
LIST link_id status type blocksize bytes_in bytes_out elapsed_time our_msc
  remote_msc bdaddr channel direction powermode role crypt child_pid hcihandle
...
LIST link_id status type blocksize bytes_in bytes_out elapsed_time our_msc
  remote_mscbdaddr channel direction powermode role crypt child_pid hcihandle
        

Example


          READY.
          LIST
          LIST 1
          LIST 0 CONNECTED RFCOMM 666 4242 100 30 8d 8d 00:07:80:80:bf:01 4
            OUTGOING ACTIVE MASTER PLAIN 0 2a
        

Notes

Status values are: WAITING (iWRAP server is waiting someone to connect to the datasocket created with RFCOMM CONNECT or RING event), CONNECTED (data connection is up and running), and CLOSING (datasocket has been closed, Bluetooth connection shutdown in progress).

Type is SDP, RFCOMM, PPP, PAN-PANU, PAN-GN, PAN-NAP, FORK or L2CAP.

Blocksize is the maximum transfer unit of the Bluetooth link, only for statistics.

Bytes_in and bytes_out are numbers of bytes transferred.

Elapsed_time is the number of seconds the connection has been up.

Msc is the link's MSC value for both ends.

Bdaddr is the Bluetooth address of the connected device.

Channel is the service channel of the connection.

Direction is either OUTGOING or INCOMING.

Powermode is ACTIVE, SNIFF, PARK or HOLD.

Role is MASTER or SLAVE.

Crypt is PLAIN or ENCRYPTED.

Child_pid is the PID of the child process for types PPP and FORK, zero for others.

Hcihandle is the HCI handle for this connection.