Posts

Showing posts with the label DMR

Mods for SDRSharp simple DMR plugin

Image
 13.9.2021 Mods for SDRSharp simple DMR plugin Visual Studio 2019 C# dotPeek - for reverse engineering simple DMR plugin (as VS project) Show code Player.cs namespace SDRSharp.DMR {   public class Player : IDisposable   { ...     public int IqBufferSize { get; set; }     public uint dmrCode { get; set;  }   // add this line ... Simple DMR plugin combines voice data from both timeslots into single channel, maybe playing from 0 to 287 or from 288 to 576 plays either ts.     private unsafe void PlayerThread()     {       this._needAudioConfigure = true;       while (this._playerEnabled)       {         if (this._iqStream.Length < 576 || this._audioSampleRate <= 0.0)         {           Thread.Sleep(20);  ...

CC1120 & Arduino Due - sync serial mode rx - DMR experiment

Image
5.10.2020 CC1120 & Arduino Due - sync serial mode rx - DMR experiment Arduino Due & CC1120 https://www.mikroe.com/ccrf-3-click CC1120 synchronous serial mode GDO0 pin connected to Arduino Due digital pin 2 - SERIAL_CLK GDO2 pin connected to Arduino Due digital pin 5 - SERIAL_RX GDO3 pin connected to Arduino Due digital pin 6 - CARRIER_SENSE* CC1120 AGC_CS_THR register sets threshold for carrier sense (-102 dBm + AGC_CS_THR value) * CARRIER_SENSE_VALID signal seems not working ok in synchronous serial mode rx Receiving DMR base station transmission. Due direct port access.   #include <SPI.h> #include "cc1120.h" #define PRINT_INFO  1 #define DATA_SIZE   168 uint32_t data[DATA_SIZE]; uint8_t chipStatus      = 0; volatile uint16_t idx   = 0; volatile bool printData = false; void setup() {   Serial.begin(57600);   pinMode(RESET_PIN, OUTPUT);   pinMode(SS_PIN, OUTPUT);   pinMode(GDO0_PIN, INPUT);   p...

CC1120 - synchronous serial mode rx - DMR experiment

Image
24.9.2020 CC1120 - synchronous serial mode rx - DMR experiment CC1120 + Arduino Uno CCRF3 Click https://www.mikroe.com/ccrf-3-click CC1120 synchronous serial mode GDO0 pin connected to Arduino Uno digital pin 2 - SERIAL_CLK GDO2 pin connected to Arduino Uno digital pin 3 - SERIAL_RX GDO3 pin connected to Arduino Uno digital pin 4 - CARRIER_SENSE* CC1120 AGC_CS_THR register sets threshold for carrier sense (-102 dBm + AGC_CS_THR value) * CARRIER_SENSE_VALID signal seems not working ok in synchronous serial mode rx Receiving DMR base station transmission. Probably much better rx quality with e.g. Teensy or Due.   #include <SPI.h> #include "cc1120.h" #define PRINT_INFO  1 #define DATA_SIZE   680 #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...