• AVR Freaks

RN4678 Transmits via Bluetooth, Doesn't Receive

Author
Altazi
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2018/05/09 00:27:55
  • Location: 0
  • Status: offline
2020/03/26 01:01:05 (permalink)
0

RN4678 Transmits via Bluetooth, Doesn't Receive

I have an RN4678 module on a custom target board using an ATxmega32E5 MCU.  P2_0, P2_4, and EAN are controlled via MCU ports, as are SW_BTN, WAKE_UP, RST_N, RTS, and CTS.  P1_5 and P0_4 are monitored via MCU ports.
 
The MCU can send data to the RN4678, which is then successfully transmitted via Bluetooth.  However, I cannot seem to get the module to receive data via Bluetooth - I do not see any activity on the RN4678 TXD pin.
 
Is there a 'trick' to get the RN4678 module to receive Bluetooth data?  Is there a way to check it's status or configuration via the Bluetooth link?
 
Thanks in advance!
 
Altazi
#1

4 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 18424
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: RN4678 Transmits via Bluetooth, Doesn't Receive 2020/03/26 05:54:06 (permalink)
    0
    Are you using RTS and CTS?
    They are required by default.
    #2
    Altazi
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2018/05/09 00:27:55
    • Location: 0
    • Status: offline
    Re: RN4678 Transmits via Bluetooth, Doesn't Receive 2020/03/26 11:40:19 (permalink)
    0
    Yes.  I am driving the CTS signal.  RTS is an input to the MCU.
     
    Is there a capability for over-the-air diagnostics?
    #3
    NKurzman
    A Guy on the Net
    • Total Posts : 18424
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: RN4678 Transmits via Bluetooth, Doesn't Receive 2020/03/26 12:04:45 (permalink)
    0
    Are you Driving CTS Correctly?
    That was the Only Issue I recall for communication.
    I assume you have power to the VDD_IO.
    #4
    Altazi
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2018/05/09 00:27:55
    • Location: 0
    • Status: offline
    Re: RN4678 Transmits via Bluetooth, Doesn't Receive 2020/03/27 07:38:16 (permalink)
    4.5 (2)
    Well, well.  Mystery solved.  Thanks for your hint about RTS & CTS.  The schematic symbol I created for the RN4678 had the pins labeled 'CTSI' and 'RTSO' to clearly indicate that CTSI was an input to the RN4678 and that RTSO was an output from the RN4678.  There were even notes on the schematic to that effect.
     
    The firmware guy used the labels in his code, and configured CTSI as an INPUT on the MCU, and RTSO as an OUTPUT.  This, of course, was EXACTLY backwards.  Sigh.
     
    Everything works fine now.
     
    Stay well.
     
    Altazi
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5