Newbie radio link issue


Closed Thread
Results 1 to 32 of 32

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    AAh : AA is the value, h represent Hexadecimal.

    SEROUT pin, baud, [$AA,$AA,$AA,$AA,$AA, YouDataVariable]
    OR
    SEROUT2 pin,baud,[REP $AA\5,YourDataVariable]

    Anything from Linx, Laipac, RFSolution, Maxstream will work without too much adjustment, but the manchester protocol have to be use in most case.

    Sometimes just by sending some $AA, a header, your variables may work good. If you don't have many data to sent, i don't think Manchester is really needed.

    Transmitter
    SEROUT2 ...[REP $AA\5,"READY", YourVariable]

    Receiver
    SERIN2 ...[WAIT("READY),YourVariable]
    Steve

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

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,115


    Did you find this post helpful? Yes | No

    Default

    Just for testing try to send repeatedly:

    loop:
    SEROUT pin, baud, [$AA]
    goto loop

    This will send endless AA to the receiver.

    If you read them then you need to encode your data.

    If you don't then you need to check the design back from zero.

    For modules contact me private if you need many. We build our own.

    Ioannis

  3. #3
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    Have found the problem, wrote to the manufacturer and they replied with this:

    The ER modules are pre-set to 19200 baud. If you cannot talk to them at this speed then you cannot use them. One of the best ways to get around this is to purchase the eval kit for 55 pounds. This has two pcb boards, leads, antennas etc. which enable you to connect the module to a PC that can communicate at 19200 baud. Then you can send the ER command to change the board rate to PIC baud rate you need for example 2400 etc.

    So I was thinking about building another board with a 20MHz crystal and try send it the commands to change down to 2400. If I do this - am not really sure of the syntax - it says in the datasheet the comm settings is ER_CMD#U1 so do I send it like this SEROUT pin,baud,["ER_CMD#U1"] ???

    Thanks again for all your guys input so far

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


    Did you find this post helpful? Yes | No

    Default

    any link to the datasheet?
    Steve

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

  5. #5
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    Have found the problem, wrote to the manufacturer and they replied with this:

    The ER modules are pre-set to 19200 baud. If you cannot talk to them at this speed then you cannot use them. One of the best ways to get around this is to purchase the eval kit for 55 pounds. This has two pcb boards, leads, antennas etc. which enable you to connect the module to a PC that can communicate at 19200 baud. Then you can send the ER command to change the board rate to PIC baud rate you need for example 2400 etc.

    So I was thinking about building another board with a 20MHz crystal and try send it the commands to change down to 2400. If I do this - am not really sure of the syntax - it says in the datasheet the comm settings is ER_CMD#U1 so do I send it like this SEROUT pin,baud,["ER_CMD#U1"] ???

    Thanks again for all your guys input so far

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


    Did you find this post helpful? Yes | No

    Default

    O.K. i heard you but any link to the datasheet?
    Steve

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

  7. #7
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    Sorry - here it is: http://www.lprs.co.uk/pdf_directory/....3-sept-05.pdf
    BTW - if I make a 20MHz board - what size caps do I use with my crystal? I use to use 22pF with 4MHz - does that mean I use 5pF with 20MHz?
    cheers
    Last edited by George; - 21st February 2007 at 19:54.

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


    Did you find this post helpful? Yes | No

    Default

    the recommended cap are listed in your datasheet. usually 22pF is a nice choice.

    In theory your SEROUT is good. BUT, to me, you still have to transmit it with the default baudrate.. so it doesn't solve the problem unless you buy the suggested module to reprogram them first.. waste of time and money to me.

    BTW @19200 baud, for ANY reliable serial comm, i'll suggest you to use the PIC USART with HSERIN/HSEROUT instead.
    Steve

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

  9. #9
    Join Date
    Oct 2005
    Location
    New Zealand
    Posts
    171


    Did you find this post helpful? Yes | No

    Default

    You don't think SEROUT2 running 20MHz could send enough data to change the default setting in the radio module? Is my syntax correct in how I'd send it? If you think that the serout won't do 19200 then I think I'll just cut my losses and try find another module that just works, the manufacturer did say that I could send it back and they would change it in the factory and send it back to me - however they r on the opposite side of the planet!

Similar Threads

  1. Car radio (Car radio and electronics support forum)
    By freewillover in forum Forum Requests
    Replies: 1
    Last Post: - 1st July 2009, 19:41
  2. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  3. Replies: 5
    Last Post: - 6th September 2007, 04:59
  4. quickBlue™ Link
    By lester in forum Bluetooth
    Replies: 4
    Last Post: - 20th March 2007, 13:23
  5. 18F1320 ... Strange Memory
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 43
    Last Post: - 9th April 2006, 09:55

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