Sending/receiving data using Linx modules


Closed Thread
Results 1 to 4 of 4
  1. #1
    Goat 403's Avatar
    Goat 403 Guest

    Default Sending/receiving data using Linx modules

    I'm using 2 Pics a transmitter/receiver to send data. Pic 1 is the 16F877 for TX and Pic 2 is the 16F876 for the RX. The Linx modules are TXM-916-ES and RXM-916-ES.

    I have tried serout and serin but just receive junk. I have a scope probe on the data lines for both the TX and Rx. I do see the same data on both channels. I know the data is being transmitted and received but I cannot get this data into the pic.

    If anyone has used the Pic with the Linx modules before any help would be great.

    Thanks

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    Does it work without the RF modules?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Nov 2007
    Location
    South-West of Australia. A small town called Denmark. 'Where the forest meets the sea.'
    Posts
    136

    Default LINX Radio

    Yes, I've done it.

    I think your problem may be the noise output from the receiver?

    The Rx gives a steady stream of noise and one has to use the SEROUT2 and SERIN2 commands with the WAIT modifier in SERIN2 (As described in page 138 of the PBP handbook.

    This SERIN2 scans the stream of noise/signal out of the Rx until the transmitted "Start of Frame" characters arrive.

    I know that this approach is rather primative but Iv'e got mine to work over a good range with zero errors - but I do live in the back of beyond in a very quiet electromagnetic environment.

    If I'm on the right track I'll post my code?

    Regards Bill Legge

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

    Default

    I'll second what Bill wrote. Most AM receivers output a constant stream of noise in the absence of a strong signal. Their AGC circuits amplify the low level noise so it tends to be rail-to-rail. You can see some o'scope screenshots here...You must use some sort of STX (start of transmission) marker to distinguish signal from the noise. The simplest approach is to just use a wide pulse as STX. It sets the receiver AGC level so that the noise is suppressed and you can distinguish what immediately follows.
    Last edited by dhouston; - 21st May 2009 at 14:41.

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

Members who have read this thread : 1

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