Posts

Showing posts with the label CC1120

Mobitex-1200:

Image
CC1120: preamble detector is not always needed. 32 bit sync word configuration also is possible. 0xCCCC + frame sync word e.g. 0xB433. #define SMARTRF_SETTING_SYNC3            0xB4 #define SMARTRF_SETTING_SYNC2            0x33 #define SMARTRF_SETTING_SYNC1            0x33 #define SMARTRF_SETTING_SYNC0            0x33 #define SMARTRF_SETTING_SYNC_CFG1  0x0A #define SMARTRF_SETTING_SYNC_CFG0  0x17 #define SMARTRF_SETTING_PREAMBLE_CFG0 0x0A  GNU Radio block for receiving Mobitex-1200: options:   parameters:     alias: ''     author: ''     catch_exceptions: 'True'     comment: ''     copyright: null     description: ''     gen_linking: dynamic     generate_options: qt_gui     generator_class_name: PythonQtGuiGenerator     generator_module: gnuradio.grc.w...

Some ideas about decoding TETRA with TI CC1120 and Arduino Due

https://www.rtl-sdr.com/decoding-tetra-voice-on-a-retevis-c62-handheld-with-custom-openrtx-firmware/ TI CC1120 has a mode called CFM. The CC1120 receives Custom Frequency Modulation (CFM) / Analog FM by bypassing its packet handler and continuously reading the instantaneous frequency offset from the CFM_RX_DATA_OUT register over SPI. This mode is designed for demodulating e.g. custom FSK modes. To configure the CC1120 for CFM, apply std RF settings (frequency, ch filter bw and AGC) and modify the following extended registers: Enable CFM Mode (CFM_DATA_CFG at 0x2F09) Bypass Packet Handling (PKT_CFG2 at 0x0026) Disable Sync Word Qualification (SYNC_CFG1 at 0x0008) Set RX Filter bw (CHAN_BW at 0x0010): Match the channel filter bandwidth to 25 kHz. Reading demodulated data (CFM_RX_DATA_OUT) Once the chip enters RX state via the SRX command strobe, your microcontroller must sample the demodulated frequency offset at regular intervals. Data format: register returns a signed 8-bit integer (tw...

CC1120 + Arduino : Mobitex-1200

Image
https://techcoderadio.blogspot.com/2025/03/arduinosx1278-mobitex-1200-462325-mhz.html   #include <SPI.h> #include "cc1120.h" #define PRINT_INFO  1 #define DATA_SIZE   128 #define pinOfPin(P)\   (((P)>=0&&(P)<8)?&PIND:(((P)>7&&(P)<14)?&PINB:&PINC)) #define pinIndex(P)((uint8_t)(P>13?P-14:P&7)) #define pinMask(P)((uint8_t)(1<<pinIndex(P))) #define isHigh(P)((*(pinOfPin(P))& pinMask(P))>0) #define isLow(P)((*(pinOfPin(P))& pinMask(P))==0) #define digitalState(P)((uint8_t)isHigh(P)) uint8_t data[DATA_SIZE]; uint8_t chipStatus      = 0; volatile uint8_t index  = 0; volatile bool printData = false; void setup() {   Serial.begin(57600);   pinMode(RESET_PIN, OUTPUT);   pinMode(SS_PIN, OUTPUT);   pinMode(GDO0_PIN, INPUT);   pinMode(GDO2_PIN, INPUT);   pinMode(GDO3_PIN, INPUT);   digitalWrite(SS_PIN, HIGH);   digitalWrite(RESET_PIN, HIGH); ...

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>     ...