Remote Control Power Sockets: Part 3: Protocol Analysis with SDR
Tools and materials
Software-defined radio supported by Gqrx (e.g. Noxon DAB Stick)
SDR
In the last post, Part 2: Protocol analysis with the oscilloscope, we recorded the protocol of the remote control with an oscilloscope. This time we show a cheaper way to the same result. The DVB-T sticks that rtl-sdr supports also receive the 433 MHz UHF band and work as a software-defined radio (SDR). With free software such as Gqrx and Audacity we use such a stick to reconstruct the complete codewords that the encoder chip of the remote control sends. We already know all the information we need from the post Part 1: Information gathering.
Recording the codeword with Gqrx
Gqrx is an excellent, easy-to-use open source receiver for software-defined radio that supports rtl-sdr devices such as the Noxon DAB Stick. The list of supported hardware shows whether Gqrx supports a particular device.
Modulation
Anyone familiar with radio may already have noticed in the encoder datasheet that all circuits for UHF data transmitters use an amplitude modulator (AM). The carrier frequency (433.92 MHz) appears in the manual of the sockets or on the back of the remote control.
Gqrx settings

With Gqrx we record a complete transmission of the remote control to a .wav file. We then analyse the recorded audio file with Audacity. Gqrx saves the file in the home directory, and its name looks similar to gqrx_20170422_152940_433920000.wav. We now open this file in Audacity and look at the codeword.
Analysing the codeword with Audacity
Audacity is free, open source, cross-platform audio software. Audacity shows us the demodulated codeword audio files that Gqrx created.
Socket group 0 | Socket 1 | On
The following picture shows the recorded codeword for switching on socket 1 in socket group 0.

The codeword seems to contain valid bit patterns, but the first and the last bit (sync bit) look odd. A quick look into the datasheet of the decoder (PT2272) explains why: the RF application circuit contains an inverting stage. Luckily, inverting the audio track is easy in Audacity:
Effect -> Invert

The first bit pattern still looks a little odd, but the rest of the codeword matches exactly the result we already know from Part 2: Protocol analysis with the oscilloscope.
Group |
Socket |
On/Off |
|---|---|---|
FFFFF |
0FFFF |
0F |