THIS IS A TEST INSTANCE. Feel free to ask and answer questions, but take care to avoid triggering too many notifications.
0

How to extract GATT packets value only to .csv

  • retag add tags

I have a lot of GATT packets like the one below. I only need the value part for further processing somewhere else. How can extract that part to .csv or file types that are easy to process?

Frame 466: 20 bytes on wire (160 bits), 20 bytes captured (160 bits)
Bluetooth
Bluetooth HCI H4
Bluetooth HCI ACL Packet
Bluetooth L2CAP Protocol
Bluetooth Attribute Protocol
    Opcode: Write Request (0x12)
    Handle: 0x001c (Unknown: Unknown)
        [Service UUID: CustomUUID]
        [UUID: CustomUUID]
    Value: 112233445566
chungchungdev's avatar
1
chungchungdev
asked 2023-05-08 11:23:21 +0000
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Sample capture attached to 10524: Bluetooth Smart: Add GATT dissector

C:\>tshark -r HR_SENSOR_btsnoop_hci.log -T fields -e btatt.value -Y btatt.value
4170706c69636174696f6e2076657273696f6e20322e
342e332e30
Chuckc's avatar
3k
Chuckc
answered 2023-05-08 11:49:49 +0000
edit flag offensive 0 remove flag delete link

Comments

Thanks for quick response. It works perfectly.

chungchungdev's avatar chungchungdev (2023-05-09 03:52:04 +0000) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer