Commit Graph

39 Commits

Author SHA1 Message Date
Bharat Panda
f1c6c3a7b5 monitor: Add FolderItem support for GetFolderItems
Add support for decoding GetFolderItems(FolderItem) for avrcp in
bluetooth monitor.

      Channel: 65 len 20 ctrl 0x0000 [PSM 27 mode 3] {chan 1}
      I-frame: Unsegmented TxSeq 0 ReqSeq 0
      AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
        AVRCP: GetFolderItems: len 0x000a
          Scope: 0x01 (Media Player Virtual Filesystem)
          StartItem: 0x00000000 (0)
          EndItem: 0x0000000a (10)
          AttributeCount: 0xff (255)
          AttributeID: 0x0000326e (Reserved)
2015-04-17 16:56:26 +03:00
Bharat Panda
aff80675b1 monitor: Add MediaPlayerItem for GetFolderItems
Add support for decoding GetFolderItems(MediaPlayerItem) for avrcp
in bluetooth monitor.

      Channel: 65 len 20 ctrl 0x0306 [PSM 27 mode 3] {chan 1}
      I-frame: Unsegmented TxSeq 3 ReqSeq 3
      AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
        AVRCP: GetFolderItems: len 0x000a
          Scope: 0x00 (Media Player List)
          StartItem: 0x00000000 (0)
          EndItem: 0x00000064 (100)
          AttributeCount: 0x00 (0)
2015-04-17 16:56:21 +03:00
Bharat Panda
ddb01ec673 monitor: Add AVRCP GetFolderItems Support
Support for decoding AVRCP GetFolderItems added in btmon.

      Channel: 65 len 20 ctrl 0x0000 [PSM 27 mode 3] {chan 1}
      I-frame: Unsegmented TxSeq 0 ReqSeq 0
      AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
        AVRCP: GetFolderItems: len 0x000a
          Scope: 0x01 (Media Player Virtual Filesystem)
          StartItem: 0x00000000 (0)
          EndItem: 0x0000000a (10)
          AttributeCount: 0xff (255)
          AttributeID: 0x0000326e (Reserved)
2015-04-17 16:48:24 +03:00
Marcel Holtmann
d9e800cbc9 monitor: Use local includes for libbluetooth headers 2015-02-12 21:52:00 +01:00
Vikrampal Yadav
c96bf1ba21 monitor: Add AVRCP SetBrowsedPlayer support
Support for decoding AVRCP SetBrowsedPlayer added in Bluetooth monitor.

Channel: 65 len 12 ctrl 0x0102 [PSM 27 mode 3] {chan 1}
      I-frame: Unsegmented TxSeq 1 ReqSeq 1
      AVCTP Browsing: Command: type 0x00 label 0 PID 0x110e
        AVRCP: SetBrowsedPlayer: len 0x0002
          PlayerID: 0x0001 (1)
2015-01-12 10:10:50 -02:00
Vikrampal Yadav
84f3de0df8 monitor: Fix AVRCP GetElementAttributes
AttributeValueLength can be 0 which would lead to use uninitialized
memory, with this changes it now workds properly:

      AVCTP Control: Response: type 0x00 label 0 PID 0x110e
        AV/C: Stable: address 0x48 opcode 0x00
          Subunit: Panel
          Opcode: Vendor Dependent
          Company ID: 0x001958
          AVRCP: GetElementAttributes pt Single len 0x0019
            AttributeCount: 0x03
            Attribute: 0x00000001 (Title)
            CharsetID: 0x006a (UTF-8)
            AttributeValueLength: 0x0000
            AttributeValue:
            Attribute: 0x00000002 (Artist)
            CharsetID: 0x006a (UTF-8)
            AttributeValueLength: 0x0000
            AttributeValue:
            Attribute: 0x00000003 (Album)
            CharsetID: 0x006a (UTF-8)
            AttributeValueLength: 0x0000
            AttributeValue:
2014-11-12 17:20:47 +02:00
Vikrampal Yadav
5a2eb0093a monitor: Fix AVRCP GetElementAttributes formatting issue
AVRCP GetElementAttributes formatting issue for AttributeValue fixed.

      AVCTP Control: Response: type 0x00 label 4 PID 0x110e
        AV/C: Stable: address 0x48 opcode 0x00
          Subunit: Panel
          Opcode: Vendor Dependent
          Company ID: 0x001958
          AVRCP: GetElementAttributes pt Single len 0x0040
            AttributeCount: 0x04
            Attribute: 0x00000001 (Title)
            CharsetID: 0x006a (UTF-8)
            AttributeValueLength: 0x0008
            AttributeValue: fernando
            Attribute: 0x00000002 (Artist)
            CharsetID: 0x006a (UTF-8)
            AttributeValueLength: 0x0004
            AttributeValue: abba
            Attribute: 0x00000003 (Album)
            CharsetID: 0x006a (UTF-8)
            AttributeValueLength: 0x000d
            AttributeValue: Greatest Hits
            Attribute: 0x00000007 (Track duration)
            CharsetID: 0x006a (UTF-8)
            AttributeValueLength: 0x0006
            AttributeValue: 150000
2014-11-11 14:45:23 +02:00
Vikrampal Yadav
8327001e6f monitor: Fix AVRCP PASS THROUGH parser
This fixes the intendaition for AVRCP PASS THROUGH commands:

      Channel: 66 len 14 [PSM 23 mode 0] {chan 3}
      AVCTP Control: Command: type 0x00 label 0 PID 0x110e
        AV/C: Status: address 0x48 opcode 0x7c
          Subunit: Panel
          Opcode: Passthrough
          Operation: 0x44 (PLAY Pressed)
          Lenght: 0x00
2014-10-15 15:35:57 +02:00
Vikrampal Yadav
0e62b2721a monitor: Add AVRCP PASS THROUGH command support
Support for decoding AVRCP PASS THROUGH command added in Bluetooth
monitor.
2014-10-09 11:18:06 +03:00
Vikrampal Yadav
8f87c53b75 Monitor: Add AVRCP AddToNowPlaying support
Support for decoding AVRCP AddToNowPlaying added in Bluetooth
monitor.
2014-09-26 10:02:56 +03:00
Vikrampal Yadav
adbe760e35 Monitor: Add AVRCP PlayItem support
Support for decoding AVRCP PlayItem added in Bluetooth monitor.
2014-09-26 10:02:55 +03:00
Vikrampal Yadav
dae15aaeea Monitor: Add AVRCP SetAddressedPlayer support
Support for decoding AVRCP SetAddressedPlayer added in Bluetooth
monitor.
2014-09-26 10:02:55 +03:00
Vikrampal Yadav
ab0a30b6fd Monitor: Add AVRCP SetAbsoluteVolume support
Support for decoding AVRCP SetAbsoluteVolume added in Bluetooth
monitor.
2014-09-26 10:02:55 +03:00
Vikrampal Yadav
51da5a96a4 Monitor: Add AVRCP RegisterNotification support
Support for decoding AVRCP RegisterNotification added in Bluetooth
monitor.
2014-09-26 10:02:55 +03:00
Vikrampal Yadav
173354080b Monitor: Add AVRCP GetPlayStatus support
Support for decoding AVRCP GetPlayStatus added in Bluetooth
monitor.
2014-09-26 10:02:55 +03:00
Vikrampal Yadav
665c517776 Monitor: Add AVRCP GetElementAttributes support
Support for decoding AVRCP GetElementAttributes added in
Bluetooth monitor.
2014-09-24 17:51:05 +03:00
Vikrampal Yadav
8b0792b830 Monitor: Modify design of AVRCP callback functions
Modified the design of AVRCP callback functions.
2014-09-15 10:20:58 +03:00
Vikrampal Yadav
3002cd44a5 monitor: Remove superfluous call to l2cap_frame_pull
Removed superfluous call to l2cap_frame_pull.
2014-09-05 13:16:43 +03:00
Vikrampal Yadav
ab77c4b6f3 monitor: Add AVRCP InformDisplayableCharacterSet support
Support for decoding AVRCP InformDisplayableCharacterSet added in
Bluetooth monitor.
2014-09-05 13:16:43 +03:00
Vikrampal Yadav
58918f0ef5 monitor: Add AVRCP GetPlayerApplicationSettingValueText support
Support for decoding AVRCP GetPlayerApplicationSettingValueText
added in Bluetooth monitor.
2014-09-05 13:16:43 +03:00
Vikrampal Yadav
5a52a580b6 monitor: Add AVRCP GetPlayerApplicationSettingAttributeText support
Support for decoding AVRCP GetPlayerApplicationSettingAttributeText
added in Bluetooth monitor.
2014-09-05 13:16:43 +03:00
Vikrampal Yadav
3e45317f74 monitor: Add AVRCP SetPlayerApplicationSettingValue support
Support for decoding AVRCP SetPlayerApplicationSettingValue
added in Bluetooth monitor.
2014-09-05 13:16:43 +03:00
Vikrampal Yadav
40d016c1f0 monitor: Add AVRCP GetCurrentPlayerApplicationSettingValue support
Support for decoding AVRCP GetCurrentPlayerApplicationSettingValue
added in Bluetooth monitor.
2014-09-05 13:16:43 +03:00
Luiz Augusto von Dentz
1b42893a9a monitor: Fix warnings when using l2cap_frame_get* 2014-08-29 13:01:11 +03:00
Luiz Augusto von Dentz
450f9ea3be monitor: Make l2cap_frame_get* function to return bool 2014-08-26 13:24:38 +03:00
Luiz Augusto von Dentz
8bcfc8b71b monitor/avctp: Fix parsing of Company ID capability 2014-08-26 13:24:38 +03:00
Luiz Augusto von Dentz
3423d22f99 monitor/avctp: Make use of l2cap_frame_get* 2014-08-26 13:24:38 +03:00
Vikrampal Yadav
7299624f4f monitor: Add AVRCP ListPlayerApplicationSettingValues support
Support for decoding AVRCP ListPlayerApplicationSettingValues
added in Bluetooth monitor.
2014-08-26 13:24:38 +03:00
Vikrampal Yadav
df7452346f monitor: Fix AVRCP rejected packet handling error
Rectified the handling of AVRCP rejected packets in btmon.
2014-08-20 14:41:27 +03:00
Vikrampal Yadav
58a2c3c0b6 monitor: Add AVRCP ListPlayerApplicationSettingAttributes support
Support for decoding AVRCP ListPlayerApplicationSettingAttributes
added in Bluetooth monitor.
2014-08-14 18:10:55 +03:00
Andrei Emeltchenko
bf672a2808 monitor: Fix use of uninitialized value
Fixes clang warnings below:
...
 CC       monitor/avctp.o
monitor/avctp.c:600:2: warning: Function call argument is an
uninitialized value
        print_indent(indent, ctrl_pdu_data_color, "AVRCP: ",
pdu2str(pduid),
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
monitor/display.h:47:2: note: expanded from macro 'print_indent'
        printf("%*c%s%s%s%s" fmt "%s\n", (indent), ' ', \
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
...
2014-08-13 15:30:04 +03:00
Vikrampal Yadav
dcd08628a2 monitor: Add AVRCP GetCapabilities support
Support for decoding AVRCP GetCapabilities added in
Bluetooth monitor.
2014-08-13 13:09:21 +03:00
Vikrampal Yadav
0cb017cb86 monitor: Add AV/C specific PDUs' error macros and functions
Added AV/C specific PDUs' error macros and functions in
Bluetooth monitor.
2014-08-13 13:09:21 +03:00
Vikrampal Yadav
f0bcb0ea2c monitor: Add AVRCP specific AV/C PDUs' macros and helper functions
Added AVRCP specific AV/C PDUs related stuffs such as macros and
helper functions in Bluetooth monitor.
2014-08-13 13:09:21 +03:00
Vikrampal Yadav
3fd7e0684e monitor: Handle AVRCP specific AV/C PDUs
Added handling of AVRCP specific AV/C PDUs.
2014-08-13 13:09:21 +03:00
Vikrampal Yadav
393258c266 monitor: Add AV/C commands related macros and helper functions
Added AV/C commands related stuffs such as macros and helper
functions in Bluetooth monitor.
2014-08-13 13:09:21 +03:00
Vikrampal Yadav
b5b11a3332 monitor: Add AVRCP specific AV/C commands support
Support for decoding AVRCP specific AV/C commands added in
Bluetooth monitor.
2014-08-13 13:09:20 +03:00
Luiz Augusto von Dentz
b4116446ce monitor/avctp: Fix coding style 2014-08-12 11:19:58 +03:00
Vikrampal Yadav
5f43216313 monitor: Add AVCTP support to btmon
Support for decoding AVCTP packets added in Bluetooth monitor.
2014-07-31 15:35:04 +03:00