forked from flipperdevices/flipperzero-firmware
-
-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
ProtoView is a digital signal detection and visualization tool for the | ||
[Flipper Zero](https://flipperzero.one/). 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](https://www.ti.com/product/CC1101)) | ||
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](http://antirez.com/news/124). | ||
|
||
# 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 |