PIC-PIC RF Comms


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    If you look at what im sending you will notice that it already in machester format:

    $55,$55,$66,$95 = 01010101 01010101 01100110 10010101

  2. #2
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    Hello,
    try more preambel-characters,
    Use "DEFINE CHAR_PACING 1000" at the transmitter

    We use such simple receivers/transmitters... ;-)
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  3. #3
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    so just add the line "DEFINE CHAR_PACING 1000" at the beginning of the transmitter program? no need to change anything else?

  4. #4
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Question

    Quote Originally Posted by Kamikaze47
    If you look at what im sending you will notice that it already in machester format:

    $55,$55,$66,$95 = 01010101 01010101 01100110 10010101
    Not sure I agree with this statement. I'm no RF engineer by any means, but I think the manchester equivelent for this would be:
    Code:
    0110011001100110 0110011001100110 0110100101101001 1001011001100110
    Melanie explains it HERE very well.
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    What im saything there is it is allready encoded. If you encode 1111 1111 1010 0111, you get 01010101 01010101 01100110 10010101 which is what im transmitting. The numbers you worked out is what you get if you encode 1111 1111 1010 0111 twice
    Last edited by Kamikaze47; - 4th November 2005 at 19:47.

  6. #6
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Red face

    OK... gotcha.... what, you don't want superdooper redundant encoding? Just kidding.
    Wisdom is knowing what path to take next... Integrity is taking it.
    Ryan Miller

  7. #7
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Cool

    You want to try and figure out if SERIN2 is hanging on the wait qualifier or if it is receiving garbage after the qualifier. You could try something like this:

    Code:
    start1:
    Serin2 PORTB.1,16572,[qual]     ' wait for $66, then store data
    if qual=$66 then start2
    goto start1
    
    start2:
    Serin2 PORTB.1,16572,[recvd]     ' once qualifier is recieved store data new data
    if recvd=$95 then High PORTB.0              ' if recvd=1 turn on LED
    if recvd=$99 then Low PORTB.0               ' if recvd=2 turn off LED
    goto start1                                  ' loop
    This will not hang the SERIN2 command on waiting for $66, it's kind of crude and it will not be great if it misses sync (i.e. receives $95 before 66$). To properly do this you want to have what is referred to as a ring buffer (good topic for search).

  8. #8
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Ive tried adding the "DEFINE CHAR_PACING 1000" line, but it dosnt seem to have made much difference either.

    The range is still about 15m with obsticles, or 30m line of sight... That might be as good as it gets?

  9. #9
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default

    These modules you are using should get further but long time ago, I run a test on these and was disappointed by their behaviour. Then switch to Aurels and after that I am building my own modules for superegenarative and hyperodyne ones.

    I would suggest if you don't need many, to try some other brand.

    Ioannis

Similar Threads

  1. RF transmiter reciever using PIC
    By drama in forum mel PIC BASIC
    Replies: 5
    Last Post: - 4th October 2007, 17:26
  2. Generating RF from a PIC
    By Rob Martin in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th January 2006, 21:26
  3. PIC to PIC serial comms
    By damiko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th July 2005, 18:40
  4. Pic to Pc Comms
    By Darrenmac in forum General
    Replies: 2
    Last Post: - 21st May 2005, 02:44
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

Members who have read this thread : 0

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