PIC to PIC TX RX and PIC to PC COM RX ..a little help please


Closed Thread
Results 1 to 40 of 68

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Code:
    DEC net
    Might be the missing link...on the display

    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.

  2. #2


    Did you find this post helpful? Yes | No

    Default and now for the next step

    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

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  4. #4


    Did you find this post helpful? Yes | No

    Default it's working

    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

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    I would say the receiver get's maybe one in every 50 sent packets, if I'm lucky ;-(
    You need 2-3m physical separation between TX & RX. Otherwise, the superregenerative receiver and the transmitter will interfere with each other.

  6. #6


    Did you find this post helpful? Yes | No

    Default I have that distance

    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

  7. #7
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  8. #8
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    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 !
    If it works wired but not wireless, the most likely explanation is that you have something amiss in the way you have connected the TX/RX modules.

Similar Threads

  1. Direct PIC to PC without MAX232
    By acjacques in forum Serial
    Replies: 14
    Last Post: - 23rd October 2014, 22:32
  2. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 01:52
  3. PIC or xbee times out after Tx 504 bytes
    By archendekta in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd November 2009, 09:45
  4. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  5. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 01:13

Members who have read this thread : 2

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts