I want a sniffer or recorder build a arduino similar items have been around in this lin
i hoppe other people ca help me
of the IoT and Home Automation devices on the market today use 433MHz radios, and for simplicity’s sake, most of them use OOK encoding. [Texane]‘s entry for THP is a simple device with two buttons: one to record OOK frames, and a second to play them back.
I dont understund because there nothing dooing have anywhere used the pins
i search the pin description for this
// Sample RFM69 sender/node sketch, with ACK and optional encryption
// Sends periodic messages of increasing length to gateway (id=1)
// It also looks for an onboard FLASH chip, if present
// Library and code by Felix Rusu - felix@lowpowerlab.com
// Get the RFM69 and SPIFlash library at: LowPowerLab (Felix Rusu) · GitHub #include <RFM69.h> #include <SPI.h> #include <SPIFlash.h>
#define NODEID 2 //unique for each node on same network #define NETWORKID 100 //the same on all nodes that talk to each other #define GATEWAYID 1
//Match frequency to the hardware version of the radio on your Moteino (uncomment one): #define FREQUENCY RF69_433MHZ
//#define FREQUENCY RF69_868MHZ
//#define FREQUENCY RF69_915MHZ #define ENCRYPTKEY "sampleEncryptKey" //exactly the same 16 characters/bytes on all nodes!
//#define IS_RFM69HW //uncomment only for RFM69HW! Leave out if you have RFM69W! #define ACK_TIME 30 // max # of ms to wait for an ack #ifdefAVR_ATmega1284P #define LED 15 // Moteino MEGAs have LEDs on D15 #define FLASH_SS 23 // and FLASH SS on D23 #else #define LED 9 // Moteinos have LEDs on D9 #define FLASH_SS 8 // and FLASH SS on D8 #endif
#define SERIAL_BAUD 115200
int TRANSMITPERIOD = 300; //transmit a packet to gateway so often (in ms)
char payload[] = "123 ABCDEFGHIJKLMNOPQRSTUVWXYZ";
char buff[20];
byte sendSize=0;
boolean requestACK = false;
SPIFlash flash(FLASH_SS, 0xEF30); //EF30 for 4mbit Windbond chip (W25X40CL)
RFM69 radio;
If may be wrong, but it think its very unlikely that you are easily going to create a general purpose packet capture and playback system
There are multiple proprietary data transmission formats, so just finding the start and end of a packet is not that easy.
I suspect that the code etc you are using is designed to capture one specific data format, ie specifically the default format for the RFM module that you have bought.
Although the RFM69 can handle OOK its primarily used for FM not AM. As fm has better noise emmunity etc.
A while ago I also tried to use the RFM69W for OOK transmission, but it was quite hard. I did manage to send a signal to my lamp (Klik aan Klik uit), but receiving a signal was much harder. Here is some information:
members.home.nl/hilcoklaassen/index.html
I did not post the Arduino sketches yet, but maybe the information helps.
I'm currently working on an RFM69-OOK implementation as well. I saw your altered libraries, but couldn't find the Arduino-code. Is there any chance to get the Arduino-Sketch to follow your implementation?