Hi All,
Unusually today I am not posting CODE that I am trying to work out what I have or have not done correctly.
Instead I am hopeful of getting some suggested hints and tips regarding PICAXE RF linking from The Guru's I know are here
I have used these transceivers with PICAXE in the past with great results, however I now need to do a pretty important task that requires bulletproof reliable confirmations.
PDF: http://www.ebyte.com/en/downpdf.aspx?id=164
These really are awesome little units that are very easy to use with PICAXE and offer exceptional range.
What I'd like to achieve:
An 'ABSOLUTE' way of indicating there is an active and reliable RF link between the two transceivers.
One side to be a 'Master' control panel, the other side to be a 'Slave' output device.
The actual application is far too complex to go into detail here, however as an example that would answer my questions:
The 'Master' panel to have 5 buttons and 5 LED's that indicate the state of 5 outputs on the 'Slave'.
DESIRED PROCESS:
An active and reliable link MUST be confirmed available before any output altering commands are transmitted.
'Master' sends a command telling the 'Slave to turn on a particular output.
'Slave' replies with confirmation that the requested output has been activated.
'Master' uses the received confirmation data to be the basis of turning on the appropriate master panel LED.
My coding thoughts:
In my mind I am thinking if I transmit b0 as a randomly generated value (0 to 254) from the 'master', so long as the same value is received back from the 'slave', that will confirm a reliable RF link.
Now transmit b1,b2,b3,b4, b5 (being the requested slave output state's (a simple 1 or 0 for each b#)). When the correct/same values are received back from the 'slave', turn on the appropriate LED's on the master panel displaying which outputs are on or off. If the values received were different or incomplete, resend a new link confirmation value (b0) and if successful, resend the requested output states (b1, b2, b3, b4, b5).
Keep repeating this at a relatively fast rate.
Perhaps the Ultra Experts here can tell me if this is or isn't a reasonable way to go, or is there a "Betterer" way to go about this?
Thanks in advance Guys/Gals. Your expert knowledge is as always greatly appreciated.
Regards,
Mort.
Unusually today I am not posting CODE that I am trying to work out what I have or have not done correctly.
Instead I am hopeful of getting some suggested hints and tips regarding PICAXE RF linking from The Guru's I know are here
I have used these transceivers with PICAXE in the past with great results, however I now need to do a pretty important task that requires bulletproof reliable confirmations.
PDF: http://www.ebyte.com/en/downpdf.aspx?id=164
These really are awesome little units that are very easy to use with PICAXE and offer exceptional range.
What I'd like to achieve:
An 'ABSOLUTE' way of indicating there is an active and reliable RF link between the two transceivers.
One side to be a 'Master' control panel, the other side to be a 'Slave' output device.
The actual application is far too complex to go into detail here, however as an example that would answer my questions:
The 'Master' panel to have 5 buttons and 5 LED's that indicate the state of 5 outputs on the 'Slave'.
DESIRED PROCESS:
An active and reliable link MUST be confirmed available before any output altering commands are transmitted.
'Master' sends a command telling the 'Slave to turn on a particular output.
'Slave' replies with confirmation that the requested output has been activated.
'Master' uses the received confirmation data to be the basis of turning on the appropriate master panel LED.
My coding thoughts:
In my mind I am thinking if I transmit b0 as a randomly generated value (0 to 254) from the 'master', so long as the same value is received back from the 'slave', that will confirm a reliable RF link.
Now transmit b1,b2,b3,b4, b5 (being the requested slave output state's (a simple 1 or 0 for each b#)). When the correct/same values are received back from the 'slave', turn on the appropriate LED's on the master panel displaying which outputs are on or off. If the values received were different or incomplete, resend a new link confirmation value (b0) and if successful, resend the requested output states (b1, b2, b3, b4, b5).
Keep repeating this at a relatively fast rate.
Perhaps the Ultra Experts here can tell me if this is or isn't a reasonable way to go, or is there a "Betterer" way to go about this?
Thanks in advance Guys/Gals. Your expert knowledge is as always greatly appreciated.
Regards,
Mort.