RFLink with FW that receive from RFLink with out FW

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
denisj
Posts: 58
Joined: Saturday 17 December 2016 13:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

RFLink with FW that receive from RFLink with out FW

Post by denisj »

Hi there all,
I just receive 2 kits of the RFLink.

One of this I charge the firmware and I linked it to my domoticz raspberry and it's work great :-)

The other RFLink hardware (arduino + RFLink),
I want to use it in a garden project and I want to make my custom schetch on it, so I don't want to upload all library firmware on it.

So how can I use the hardware of the second RFLink to just send
via 433Mhs a "Hello world" to the first RFLink (domoticz) please ?

I need to upload just a lib in order to send/receive from Domoticz.

Thanks all
Denis
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: RFLink with FW that receive from RFLink with out FW

Post by NietGiftig »

denisj wrote: I need to upload just a lib in order to send/receive from Domoticz.
You are sure?
Just a lib?
Then why don't you do that?
And then let us know how you did this, I'm very curious
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
denisj
Posts: 58
Joined: Saturday 17 December 2016 13:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink with FW that receive from RFLink with out FW

Post by denisj »

I'm sure that just a lib can be suficent in order to make work the rf part.
But that's not the real problem... can be 2 or 3 or 4.

What I want is to use the second arduino+RFLink
for other projects and put my sketch inside.

Thanks
Denis
NietGiftig
Posts: 121
Joined: Sunday 11 October 2015 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6224
Location: Holland
Contact:

Re: RFLink with FW that receive from RFLink with out FW

Post by NietGiftig »

denisj wrote:I'm sure ....
Always good to read, no help nessecary then
Good luck
denisj wrote: and put my sketch inside.
What sketch ?
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
denisj
Posts: 58
Joined: Saturday 17 December 2016 13:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink with FW that receive from RFLink with out FW

Post by denisj »

I will write a sketch in order to mantain my future hydroponic garfen.
And from the garden I will send statistics about PH, nutrient, water level etc... to domoticz.

Before to begin I want just to send a Hello World msg. to
domoticz server.

Thanks again
Denis
denisj
Posts: 58
Joined: Saturday 17 December 2016 13:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: RFLink with FW that receive from RFLink with out FW

Post by denisj »

Now that I'm home I can show you a better sample:

Code: Select all

#include <VirtualWire.h>

const int led_pin = 11;
const int transmit_pin = 12;
const int receive_pin = 2;
const int transmit_en_pin = 3;

void setup()
{
  // Initialise the IO and ISR
  vw_set_tx_pin(transmit_pin);
  vw_set_rx_pin(receive_pin);
  vw_set_ptt_pin(transmit_en_pin);
  vw_set_ptt_inverted(true); // Required for DR3100
  vw_setup(2000);	 // Bits per sec
}

byte count = 1;

void loop()
{
  char msg[7] = {'h','e','l','l','o',' ','#'};

  msg[6] = count;
  digitalWrite(led_pin, HIGH); // Flash a light to show transmitting
  vw_send((uint8_t *)msg, 7);
  vw_wait_tx(); // Wait until the whole message is gone
  digitalWrite(led_pin, LOW);
  delay(1000);
  count = count + 1;
}
Did you see ? ...there it's just an include cmd... the "VirtualWire.h" one, so just one lib.
This lib use another RF hardware.
So what I want is to use something like this with the RFLink hardware,
for this reason I buy 2 arduino+RFLink hardware.

So is there is something also for the RFLink hardware ? in order to use it with out the complete firmware.

And yes... I'm sure can be done, but I don't know how with the Aurel Tranceiver... for this reason I ask on this thread.
If you don't understand what I want, just ask and I'll explain better.
If you understand what I want but you don't want to help, please don't make a bad jokes.

Thanks again
Denis
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest