rfm69 transmit to weather station


hello,

i want send weather data arduino rfm69hw (868mhz) weather station using lacrosse protocol. unit8_t data should sent , received receiver.
here code use:
code: [select]

#include <spi.h>
#include <rh_rf69.h>

rh_rf69 rf69;

void setup()
{
  serial.begin(9600);
  while (!serial)
    ;
  if (!rf69.init())
    serial.println("init failed");
  if (!rf69.setfrequency(868.3))
    serial.println("setfrequency failed");

  rf69.settxpower(14);
  rf69.setpreamblelength (0);
  rf69.setsyncwords (null, 0);
}

void loop()
{
  serial.println("sending rf69_server");
  // send message rf69_server
  // addr:32, temp:-0.6, hygro:89.0
  uint8_t data[] = {0x2d,0xd4,0x92,0x03,0x94,0x59,0x3c};
  rf69.send(data, sizeof(data));

  rf69.waitpacketsent();
  delay(5000);
}



some data sent receiver (raspberry pi rfm69, 868mhz) receives garbage:
code: [select]
raw rssi -66 dbm:  47 b9 13 69 3d 36

please provide links rfm69 module use, library you're using , specification of lacrosse protocol. on type of arduino using that? program using on raspberry pi? post code or link source.


Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > rfm69 transmit to weather station


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor