Posts

Showing posts with the label OOK

Burger pager FM and other devs in shopping centre

Image
Some times ago I noticed pager devices in burger restaurant. Specs found stated that it uses FM and works in frequencies 433.5 MHz and 433.85 MHz + also 462.750 MHz. RTL-SDR found two active frequencies 433.5 MHz and 433.85 MHz near restaurant.   Freqs around 433.85 MHz proved to be ISM OOK devices.   Pager device at 433.5 MHz seems to use POCSAG protocol. I used OnAir software to check whether it is standard pager tx and verified with SDR# Pocsag plugin. On Bluetooth sector I found some SBUS light controls. Probably by writing something in unknown service (UUID) values something can happen in lightning.   

Arduino & RX-4MM3F

Image
1.9.2024 Arduino & RX-4MM3F Arduino UNO R4 AUREL RX-4MM3F AM OOK receiver   const int dataPin = 8; const int agcPin  = 6; const int rssiPin = A1; int rssiValue = 0; PinStatus dataValue; char buf[8]; void setup() {   uint32_t startTime = millis();   while (!Serial && ((millis() - startTime) < 5000));   Serial.begin(9600);   analogReadResolution(12);   pinMode(dataPin, INPUT);   pinMode(rssiPin, INPUT);   pinMode(agcPin, OUTPUT);   digitalWrite(agcPin, LOW);   delay(250); } void loop() {   dataValue = digitalRead(dataPin);   rssiValue = analogRead(rssiPin);   sprintf(buf, "%4d %1d", rssiValue, dataValue);   Serial.println(buf); }

GNU Radio - Arduino Uno with OOK/ASK receiver

Image
  15.8.2023 GNU Radio - Arduino Uno with OOK/ASK receiver GNU Radio Companion 3.10.4.0 (Windows - Radioconda installer) Arduino Uno WL101-341 OOK/ASK receiver PySerial 3.5 + Python 3.11.4 I copied pyserial-3.5.dist-info and serial folders from Python 3.11.4 to C:\Users\<user>\radioconda\Lib\site-packages   Embedded Python block code   import numpy as np import serial from gnuradio import gr class blk(gr.sync_block):  # other base classes are basic_block, decim_block, interp_block     def __init__(self, comPort='COM5', comSpeed=38400.0, timeout=2):         gr.sync_block.__init__(             self,             name='window voltage',             in_sig=None,             out_sig=[np.byte]  ...

WL101-341 OOK/ASK decoder

Image
 2.1.2022 WL101-341 OOK/ASK decoder   Arduino used for providing 3.3V and GND.   Wireless OOK doorbell signal. WL101-341 data pins (2) output same signal. WL101-341 data output is random noise when there is no signal. Arduino Due code #define SERIAL_SPEED    57600 #define DATA_PIN        5 #define DATA_SIZE       3072 #define TIMEOUT         16000 #define PLOT_SCALE      16 int32_t data[DATA_SIZE]; uint32_t timeoutStart; volatile uint16_t idx = 0; volatile uint8_t state = 0; void setup() {   Serial.begin(SERIAL_SPEED);   pinMode(DATA_PIN, INPUT);   memset(data, 0, sizeof(data));   timeoutStart = millis();   attachInterrupt(digitalPinToInterrupt(DATA_PIN), isr, CHANGE); } void loop() {   if (state == 1) {     detachInterrupt(digitalPinToInterrupt(DATA_PIN));     state = 2...

Tools for inspecting OOK 2

Image
19.5.2021 Tools for inspecting OOK 2 Arduino Due, CC1120 (ccRF 3 click board)   CC1120 ASK/OOK transparent serial mode. CC1120 GPIO3 configured for CARRIER SENSE, triggers when RSSI is above defined threshold (AGC_CS_THR register). GPIO0 configured for SERIAL_RX. #include <SPI.h> #include "cc1120.h" #define PRINT_INFO #undef PRINT_INFO #define DATA_SIZE   512 #define PLOT_SCALE  64 uint16_t data[DATA_SIZE]; // uint16_t is enough for max 32767 uS pulse len // bit 15 = 1 when high pulse, 0 when low pulse volatile bool printData = false; volatile uint16_t idx   = 0; void setup() {   Serial.begin(57600);   pinMode(RESET_PIN, OUTPUT);   pinMode(SS_PIN, OUTPUT);   pinMode(GDO0_PIN, INPUT); // SERIAL_RX   pinMode(GDO3_PIN, INPUT); // CARRIER SENSE   digitalWrite(SS_PIN, HIGH);   digitalWrite(RESET_PIN, HIGH);   memset(data, 0, sizeof(data));     SPI.begin();   strobeSPI(SNOP);   // Sync off   u...

Tools for inspecting OOK

Image
14.5.2021 Tools for inspecting OOK Quhwa doorbell (OOK, PWM) 433.948 MHz CC1120 + CC Debugger + SmartRF Studio 7 Universal Radio Hacker, Audacity, PulseView CC1120 GPO0 connected to Logic Analyzer CH1 (SERIAL_RX) CC1120 GPO2 connected to Logic Analyzer CLK (SERIAL_CLK, not used - CC1120 transparent ASK/OOK mode with carrier sense)   Universal Radio Hacker   Audacity (signal recorded with URH - complex16s) Import raw data   Waveform (dB)   SmartRF Studio CC1120 register settings <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE configuration SYSTEM "C:/Program Files (x86)/Texas Instruments/SmartRF Tools/SmartRF Studio 7/config/xml/configdata.dtd"[]> <dcpanelconfiguration>     <Devicename>CC1120</Devicename>     <Description>Saved configuration data</Description>     <registersettings>         <Register>     ...

Retekess TD157 wireless paging system - signal with Python

Image
 5.2.2021 Retekess TD157 wireless paging system - signal with Python 433.920 MHz, AM (ASK/OOK) Python + Matplotlib/Scipy/Numpy Signal recorded from IQ to AM with SDR# import scipy.io.wavfile as wav import scipy.signal as signal import numpy as np import matplotlib.pyplot as plt fs, data = wav.read('am-rec.wav') plt.figure(figsize=(13,4)) plt.grid(b=True, which='major', color='#666666', linestyle='-') plt.minorticks_on() plt.grid(b=True, which='minor', color='#999999', linestyle='-', alpha=0.2) plt.plot(data) plt.xlabel("Samples") plt.ylabel("Amplitude") plt.title("AM") plt.show()   import scipy.io.wavfile as wav import scipy.signal as signal import numpy as np import matplotlib.pyplot as plt fs, data = wav.read('am-rec.wav') asg = signal.hilbert(data) ampenv = np.abs(asg) plt.figure(figsize=(13,4)) plt.grid(b=True, which='major', color='#666666', linestyle='-') plt.mino...

Retekess TD157 wireless paging system - 2

Image
 1.1.2021 Retekess TD157 wireless paging system - 2 433 MHz, AM (ASK/OOK) Inspectrum (running in WSL2 Ubuntu/XFCE4) GNU Radio 3.7 WX GUI scope sink

Retekess TD157 wireless paging system

Image
  29.12.2020 Retekess TD157 wireless paging system 433 MHz, AM (ASK/OOK) https://www.retekess.com/

Inspecting OOK signal with CC1120 & Arduino - carrier sense

Image
3.6.2020 Inspecting OOK signal with CC1120 & Arduino - carrier sense Arduino Uno Wireless doorbell (Quhwa as identified by RTL_433) CC1120 board: https://www.mikroe.com/ccrf-3-click Arduino software serial, CC1120 transparent serial mode (SERIAL_RX on GPIO0, CARRIER_SENSE (RSSI threshold) on GPIO2)   Doorbell button pressed     AGC_CS_THR register = RSSI threshold CARRIER_SENSE on GPIO2 pin (To-do: check carrier_sense_valid on RSSI0 register when carrier_sense detected) #include <SPI.h> #include <SoftwareSerial.h> #include "cc1120.h" /*  CHANBW  8 kHz      0x19  10 kHz     0x14  12.5 kHz   0x10  15.38 kHz  0x0D  18.18 kHz  0x0B  20 kHz     0x0A  25 kHz     0x08  28.5 kHz   0x07  33.3 kHz   0x06  40 kHz     0x05  50 kHz     0x04  6...