Нема описа

antirez 7026e42043 README added. пре 3 година
LICENSE 4f8f7d8ca5 Initial commit with working minimal app. пре 3 година
README.md 7026e42043 README added. пре 3 година
TODO 860879eece Up/down change scale. Better short pulse computation. пре 3 година
app.c 2679be7807 Skip almost empty classes in short pulse len calculation. пре 3 година
app.h 860879eece Up/down change scale. Better short pulse computation. пре 3 година
app_buffer.c bdaebc51e3 Display short pulse length. пре 3 година
app_buffer.h 4f8f7d8ca5 Initial commit with working minimal app. пре 3 година
app_subghz.c 4f8f7d8ca5 Initial commit with working minimal app. пре 3 година
appicon.png 4f8f7d8ca5 Initial commit with working minimal app. пре 3 година
application.fam 4f8f7d8ca5 Initial commit with working minimal app. пре 3 година
proto.c 4f8f7d8ca5 Initial commit with working minimal app. пре 3 година

README.md

ProtoView is a digital signal detection and visualization tool for the Flipper Zero. The Flipper is able to identify a great deal of RF protocols, however when the exact protocol is not implemented (and there are many proprietary ones, such as the ones of the car keys), the curious person is left wondering what the device is sending at all. With ProtoView in can visualize the high and low pulses like in the example image below:

This is often enough to make an initial idea about the encoding used and if the selected modulation is correct.

The secondary goal of ProtoView is to provide a well-documented application for the Flipper. Many apps dealing with the subghz subsystem (the Flipper abstraction to work with the CC1101 chip) tend to be complicated and completely undocumented. This is unfortunately true for the firmware of the device itself. It's a shame because especially in the case of code that talks with hardware peripherals there are tons of assumptions and hard-gained lessons that can only be captured by comments and are in the code only implicitly.

Detection algorithm

In order to show unknown signals, the application attempts to understand if the samples obtained by the Flipper API (a series of pulses that are high or low, and with different duration in microseconds) look like belonging to a legitimate signal, and aren't just noise. We can't make assumptions about the encoding and the data rate of the communication, so we use a simple but relatively effective algorithm. As we check the signal, we try to detect long parts of it that are composed of pulses roughly classifiable into a maximum of three different classes of lengths, plus or minus 10%. Most encodings are somewhat self-clocked, so they tend to have just two or three classes of signal lengths.

Usage

The application shows the longest coherent signal detected so far.

  • The OK button resets the current signal.
  • The UP and DOWN buttons change the scale. Default is 100us per pixel.
  • The LEFT and RIGHT buttons switch to settings.

License

The code is released under the BSD license.

Disclaimer

This application is only provided as an educational tool. The author is not liable in case the application is used to reverse engineer protocols protected by IP or for any other illegal purpose. no responsibility in case