Posts

Showing posts with the label Due

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

Arduino Due & Dragino LoRa shield (SX1278)

Image
 21.3.2018 Arduino Due & Dragino LoRa shield (SX1278) Dragino LoRa shield can be used with Arduino Due. http://wiki.dragino.com/index.php?title=Lora_Shield Semtech SX1278 chip (https://cdn-shop.adafruit.com/product-files/3179/sx1276_77_78_79.pdf) can do packet and continuos (raw) data modes in FSK, ASK, GFSK and MSK. Arduino Due provides more processing power than Uno and is more suitable for raw mode. I wrote short code for Arduino to handle packet/continuous modes which works in both Due and Uno. #define CONT_MODE 1 sets raw mode and 0 sets packet mode. Raw mode uses shiftIn function and it could be optimized with direct port manipulation instead of shiftIn function. Arduino Due also provides flash memory which could be used to store raw data (DueFlashStorage). Direct port shiftIn for Uno: https://teknokoodiradio.vuodatus.net/lue/2017/08/semtech-sx1278-continuous-mode-arduino-shiftin // http://wiki.dragino.com/index.php?title=Lora_Shield #include <SPI.h> #define SERIAL_...