transceiver 433 MHz


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    You might want to verify your send/receive data rates as well.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Feb 2006
    Location
    france
    Posts
    47


    Did you find this post helpful? Yes | No

    Default rf

    Hello

    Thank you for your help, I'll try this way?


    j var byte
    datac Var Byte '
    TX_Donnee Var Byte[24] ' Donnee emission
    ID Var Byte ' emission IDentificateur
    RX_Donnee Var Byte[24] ' Donnee reception



    Loop: ' emission

    ID=32 ' l'ID

    For J = 0 to 23 '
    TX_Donnee[J] = datac ' Transfert de datac vers TX_Donnee

    Serout2 PortA.0,B2400,["#OK",ID,TX_Donnee] ' envoie l'ID suivie des donnees
    Pause 100 '
    Next J
    Goto Loop



    Loop1: ' reception


    Serin2 PortA.1,B4800,[wait ("#OK"),ID,RX_Donnee] ' attend reception l'ID suivie des donnees

    if ID=32 THEN

    For j = 0 to 23 '
    datac[J] = RX_Donnee ' Transfert de datac vers TX_Donnee
    next j

    Goto Loop1 ' boucle

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    No, you receive loop is wrong in the logic.

    Try this for the receive part:

    Code:
    j=0
    
    While j<24' reception
      
        Serin2 PortA.1,B4800,[wait ("#OK"),ID,RX_Donnee] ' attend reception l'ID suivie des donnees
    	
        if ID=32 THEN
            datac[J] = RX_Donnee           ' Transfert de datac vers TX_Donnee
            j=j+1
         endif
    Wend					                        ' boucle

  4. #4
    Join Date
    Feb 2006
    Location
    france
    Posts
    47


    Did you find this post helpful? Yes | No

    Default rf

    hello

    thank you for your help

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