Might be the missing link...on the displayCode:DEC net
If the LED goes low then I would say it is working, but try sending something else and see what happenes.
Might be the missing link...on the displayCode:DEC net
If the LED goes low then I would say it is working, but try sending something else and see what happenes.
Dave
Always wear safety glasses while programming.
Hi Dave
I still haven't solved the number 3 problem
Where should I place the DEC keyword in ? As I try to compile with DEC keyword in, MCS spits out compile errors.
I am using TLP-434 and RLP-434 modules.
With this in mind would you suggext I now start adding in manchester encoding ?
Should I be trying SERIN/OUT2, DEBUG and HSER first ? (these all worked well when the PIC's were wired together)
I see your lines of serin code pre-condition the receiver first, should i be sending more $55's ?
As always any help or suggestions,tips,tricks etc would be greatly appreciated.
Kind regards
Dennis
Well crap. The DEC modifier does not work with straight SERIN. Sorry about that.
Yes, setup for SERIN2/SEROUT2
get that working with wires and we will go from there.
The Manchester stuff is not needed at this time.
Dave
Always wear safety glasses while programming.
Hi Dave
Great news ;-)
It's working :-) and I'm thrilled --thank you!
Using HSERIN both wired and wireless
WOOOOOHOOOOO!
Now I have a question...
I would say the receiver get's maybe one in every 50 sent packets, if I'm lucky ;-(
What do I need to change or try to make this better ?
The reason I am asking is because I would like to press button 3 on the keypad and that is transmitted and receiver number 3 switches on.
Does that make sense ?
Kind regards
Dennis
Hi Dave Houston
Thanks million for the reply.
I have them even farther apart >3m
If I am closer I receiver more transmitted frames, as I move further so the number decreases.
I tried the same transmitter and receivers using your code as well but have no success when I use it but it does work when the two PICS are connected by wire !
I will most certainly try increasing or reducing the range...
and then update a little later :-)
I will also try your code using the PIC 12F629's as well
If you have any more suggestions I would happily try them and submit feedback
Thanks again
Dennis
I think the modules you are using are the same as Bruce sells, the RWS/TWS ones?
What are you using for an antenna and how long is it? Should be around 6.5 inches. Ground plane? Anything around that could be causing interference? A picture of the setup might help.
Can you post the code that is sorta working? At this point it could be a number of things. We have to rule out hardware or software.
Now try to tighten things up a bit.
Code:TRAIN VAR BYTE train = $B3 SYNK VAR BYTE SYNK = $7E SEROUT2 PORT??, BAUD?,[TRAIN, SYNK, DEC 23]Code:SYNK VAR BYTE SYNK = $7E MYVAR VAR BYTE SERIN2 PORT??, BAUD?, [WAIT(SYNK), DEC MYVAR]
Dave
Always wear safety glasses while programming.
Bookmarks