Wireshark dissector for Pro DJ Link protocol
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

add interface color lookup table

Stella 6e604a09 4be12721

+16 -2
+16 -2
pro_dj_link.lua
··· 59 59 local f_playlist_count = ProtoField.uint16("pdjl.playlist_count", "Playlist Count", base.DEC) 60 60 local f_total_media_space = ProtoField.uint64("pdjl.total_media_space", "Total Space", base.DEC) 61 61 local f_avail_media_space = ProtoField.uint64("pdjl.avail_media_space", "Available Space", base.DEC) 62 - local f_interface_color = ProtoField.uint8("pdjl.interface_color", "Interface Color", base.HEX) 62 + local f_interface_color = ProtoField.uint8("pdjl.interface_color", "Interface Color", base.DEC, INTERFACE_COLORS) 63 63 local f_settings_present = ProtoField.bool("pdjl.settings_present", "MYSETTINGS.DAT present", 8, nil, 0x01) 64 64 65 65 ··· 191 191 [0x02] = "Player (XDJ)", 192 192 [0x03] = "Mixer", 193 193 [0x04] = "PC/Rekordbox", 194 + } 195 + 196 + local INTERFACE_COLORS = { 197 + [0] = "Default", 198 + [1] = "Pink", 199 + [2] = "Red", 200 + [3] = "Orange", 201 + [4] = "Yellow", 202 + [5] = "Green", 203 + [6] = "Aqua", 204 + [7] = "Blue", 205 + [8] = "Purple", 194 206 } 195 207 196 208 local MENU_ITEM_TYPES = { ··· 552 564 tree:add(f_raw_payload, buf(0x94, 18)):set_text("Unknown Text: \"" .. unknown_str .. "\"") 553 565 554 566 tree:add(f_media_tracks, buf(0xa6, 2)) 555 - tree:add(f_interface_color, buf(0xa8, 1)) -- UI/USB light tint color (CDJ-3000) 567 + local c_val = buf(0xa8, 1):uint() 568 + local c_str = INTERFACE_COLORS[c_val] or "Unknown" 569 + tree:add(f_interface_color, buf(0xa8, 1)):set_text("Interface Color: " .. c_str .. " (" .. c_val .. ")") 556 570 557 571 tree:add(f_media_type, buf(0xaa, 1)) -- Media Type $T_r$ at correct offset 558 572 tree:add(f_settings_present, buf(0xab, 1)) -- Settings presence bit