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

    Getting a 2 ?? Maybe you just need to add 1

    Try sending something other than a 9 or waiting for something other than a 9.
    It must be seeing the 9 or it would not go on to the next command.

    This is the very most basic code, but it does work. I pulled it from my "laser fence". If the beam is broken the TX kicks in and an alarm goes off at the house.
    Dave
    Always wear safety glasses while programming.

  2. #2
    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.

  3. #3


    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

  4. #4
    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.

  5. #5


    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

  6. #6
    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.

  7. #7


    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

Similar Threads

  1. Direct PIC to PC without MAX232
    By acjacques in forum Serial
    Replies: 14
    Last Post: - 23rd October 2014, 21:32
  2. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 00: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, 08: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, 14:46
  5. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 00: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