Posts

Showing posts with the label Dragino

Arduino SX127x FSK skanneri projekti - 1

24.2.2017 Arduino SX127x FSK skanneri projekti - 1 http://www.semtech.com/images/datasheet/sx1276_77_78_79.pdf http://wiki.dragino.com/index.php?title=Lora_Shield Arduino koodi versio 0.2. Testattu jonkin verran. Ei vielä implementoitu kaikkia ominaisuuksia, esim. continuous mode vastaanotto puuttuu vielä. Continuous modessa raakadatan käsittely ja analysointi (de-serialisointi) tullaan tekemään Windows ohjelmassa. /*    SX127x FskScanner by OH1GIU    Version 0.2    http://www.semtech.com/images/datasheet/sx1276_77_78_79.pdf    http://wiki.dragino.com/index.php?title=Lora_Shield */ #include <SPI.h> #include "fskscanner.h" SPISettings spi_Settings(spi_max_speed, MSBFIRST, SPI_MODE0); char serialData[serial_data_len]; byte rxFifo[fifo_buffer_size]; byte bytesRead; byte rxLen = 255; // 1200,2400,4800,9600,19200,38400,57600,12500,25000,50000 byte bps_hi[10] = {0x68, 0x34, 0x1A, 0x0D, 0x06, 0x03, 0x02, 0x0A, 0x05, 0x80}; byte bps_lo[10] = {0x2B, ...

Receiving OOK raw data with Arduino/Dragino SX127x module

Image
 25.3.2017 Receiving OOK raw data with Arduino/Dragino SX127x module Raw OOK data from Prego 433 MHz wireless thermometer with Arduino & Dragino Lora (Semtech SX127x) module. http://wiki.dragino.com/index.php?title=Lora_Shield http://www.semtech.com/wireless-rf/rf-transceivers/sx1278/ SX1278 library: https://github.com/open-electronics/LoRa/releases #include <SX1278.h> #define SERIAL_SPEED        9600 #define FREQ                433.98 #define RSSI_SAMPLES        1 #define STATE_STANDBY       1 #define STATE_FSRX          4 #define STATE_RX            5 #define S_DELAY             1 #define L_DELAY       ...