Quote Originally Posted by tazntex View Post
Thanks Melanie, for answering my last post this morning. Last night I read a post about using rf module and carrier detect back in 2004, I am playing with the Linx rxm-418lr-s and it has an rssi pin. The data output pin is always toggling. I have added the suggested squelch circuit and as you mentioned it cuts the range, but using the timeout with the squelch I can jump of serin2 onto my loop that would state basically no data received so "do this". I already take multiple samples to confirm what is being sent is what I want. For example, SERIN2 serialpinin,16468,100,loop1,[wait(254),a,b,c,d,e,f,g,h,i,j,k,l] ok, so if everything matches m=1 , moving on if a particular bit in A is 1 and m=1 then through a IF THEN ELSE statement a certain function get turned on but lets go back to serin2 now reading serinpinin if everything matched but that particular bit in A is a 0, then it gets turn off but what if your not sending any data? how would I be able to turn it off? I want this to be momentary, If I "SERIN2 serialpinin,16468,100,loop1,[wait(254),a,b,c,d,e,f,g,h,i,j,k,l] " it never jumps out because the data pin is constantly toggling, and if I take the timeout away it also just sits there waiting until the qualifier is satisfied or doomsday comes.

Any Ideas?

BTW I am using PBP 2.50a that I have purchase from BRUCE at Rentron
Thank you
you know if you use hardware UART your code will be much better in this case

or you can use interrupt pin in case there is no hardware uart in your pic
also it works
i hope that will help

regards