jrnelson90 / tinderboxpedal

Bluetooth "Universal Remote" Footpedal for Digital Guitar Amps, on ESP32 or Pi Zero W
Apache License 2.0
71 stars 11 forks source link

May I ask how do you find out these command code? #4

Closed janzhen closed 4 years ago

janzhen commented 4 years ago

Hi Justin, thanks for your excellent work. May I ask how do you find out these command codes?

TONE_1 = "01fe000053fe1a000000000000000000f00124000138000000f779"
TONE_2 = "01fe000053fe1a000000000000000000f00123010138000001f779"
TONE_3 = "01fe000053fe1a000000000000000000f00125020138000002f779"
TONE_4 = "01fe000053fe1a000000000000000000f00120030138000003f779"
jrnelson90 commented 4 years ago

Hi Justin, thanks for your excellent work. May I ask how do you find out these command codes?

TONE_1 = "01fe000053fe1a000000000000000000f00124000138000000f779"
TONE_2 = "01fe000053fe1a000000000000000000f00123010138000001f779"
TONE_3 = "01fe000053fe1a000000000000000000f00125020138000002f779"
TONE_4 = "01fe000053fe1a000000000000000000f00120030138000003f779"

By packet sniffing the app's BT controls, just like how a universal remote learns your TVs IR controls https://www.wireshark.org/

janzhen commented 4 years ago

@jrnelson90 Thank you. I didn't know Wireshark can also sniff Bluetooth.