This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Need Help to make 3-wire[H5] uart interface work

Other Parts Discussed in Thread: CC2564MODA, BOOST-CC2564MODA, CC2564

Has anyone got success in communicating with CC2564Moda[Boost board] using 3-wire uart inteface ? As i have failed.

What i want is, 

Boost-CC2564Moda <----------3-wire uart------------> PC

Below is the post for reference,

Really need some help, as i don't want to feel that i wasted my money and "TIME".

  • Hi,
    Your query has been assigned to the relevant Bluetooth expert. Please expect a follow up response.
    BR,
    Eyal
  • Hi,

    The BOOST-CC2564MODA is based on the CC2564B which does support the 3 wire UART (H5). In order to test this out in your setup, please use the HCITester utility with a 3-wire UART connected to the BOOST-CC2564MODA board.

    1. Make sure the BnSD1 (nSHUTD pin of the BOOST-CC2564MODA) is jump connected to the 3.3V on the boosterpack. This will ensure that as soon as the boosterpack is powered up, the CC2564MODA will be automatically enabled.

    2. Connect the TX, RX and GND of the 3 wire UART.

    3. Change jumper J10 to connect LDO_3V3 and BP_LDO. And power up the boosterpack using the micro-USB port.

    4. Open the HCITester and configure the serial port (View->Options) with Flow Control set to "Three Wire". 

    5. After the serial port is connected, you can use the HCITester normally to pass HCI commands to the CC2564MODA. The CC2564 will automatically recognize from the first message that the H5(three wire) UART is being used. Attached is a trace log of the three wire test that I did with the BOOST-CC2564MODA.

    <HTML>
    <HEAD>
    <TITLE>HCITester Log</TITLE>
    </HEAD>
    <BODY>
    <FONT face="Courier New">
    <TABLE ALIGN=LEFT CELLSPACING=0 width=3500 CELLPADDING=0>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.497 ThreeWire (H5): Synchronizing...</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.534 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.534     0000: c0 00 2f 00 d0 01 7e c0                         ../...~.</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.540 ThreeWire (H5): Negotiating for...</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.540                 Flow Control = XOn/XOff</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.540                 Sliding Window Size = 7</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.540                 Data Integrity = 0</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.540 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.540     0000: c0 00 2f 00 d0 02 7d c0                         ../...}.</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.773 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.773     0000: c0 00 3f 00 db dc 03 fc 0f c0                   ..?.......</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.783 ThreeWire (H5): Negotiated:</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.783                 Flow Control = XOn/XOff</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.783                 Sliding Window Size = 2</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.783                 Data Integrity = 0</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:34.783 ThreeWire (H5): Active</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.783 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:34.783     0000: c0 00 2f 00 d0 04 7b c0                         ../...{.</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">17:08:41.950 --</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">17:08:41.950 Packet "HCI_VS_Get_System_Status", Opcode 0xfe1f</font></td></tr>
    <tr bgcolor="ffffe6"><td><font color="0000c0">17:08:41.950 --</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:41.950 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:41.950     0000: c0 80 31 00 4e 1f fe 00 c0 00                   ..1.N.....</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:41.964 Outgoing Dump:</font></td></tr>
    <tr bgcolor="60c0c0"><td><font color="ffffff">17:08:41.964     0000: c0 08 00 00 f7 c0                               ......</font></td></tr>
    <tr bgcolor="408080"><td><font color="ffffff">17:08:41.967 Incoming Dump:</font></td></tr>
    <tr bgcolor="408080"><td><font color="ffffff">17:08:41.967     0000: 04 0e 1b 01 1f fe 00 07 10 06 01 40 9c 01 00 00 ...........@....</font></td></tr>
    <tr bgcolor="408080"><td><font color="ffffff">17:08:41.967     0010: 00 01 01 00 8b c6 01 00 06 1b 00 00 96 00       ..............</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 --</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 Packet "HCI_Command_Complete_VS_Get_System_Status_Event", Opcode 0xfe1f</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 Parameters:</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Number HCI commands      : 0x01</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Command Opcode           : 0xfe1f</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Status                   : 0x00 (Success)</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | SW Version ("Major")     : 0x07</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | SW Version ("Internal")  : 0x10</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Chip Revision            : 0x06</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Chip mode                : 0x01</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | ROOT Clock               : 0x9c40</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Slow Clock used          : 0x01</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Process Type             : 0x00</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Deep Sleep Mode          : 0x00</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Whitening Mode           : 0x00</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | CDC Mode                 : 0x01</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Self Test Result         : 0x01</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Hopping Mode             : 0x00</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | HCI UART Baud Rate       : 0x0001c68b</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Temperature Index        : 0x06</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | Detected Temperature     : 0x1b</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | I2C Status               : 0x00</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | FREF/TCXO Clock          : 0x9600</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 | PLL Sharing Running Mode : 0x00 (SHARED_PLL_NOT_ENABLED)</font></td></tr>
    <tr bgcolor="fff7fa"><td><font color="006400">17:08:41.967 --</font></td></tr>
    </TABLE>
    </FONT>
    </BODY>
    </HTML>
    

    Note : For an end-application with the ti bluetooth stack SDK, the UART mode is configured from the sample application. The HCITester method is only for the HCI level tests with a PC.

    Best regards,

    Vihang

  • Closing the thread since there has not been any update since the last answer.