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.

CC2540: Communication between two Bluetooth modules

Part Number: CC2540
Other Parts Discussed in Thread: LAUNCHXL-CC2640R2, CC2640R2F, CC2640

Hi, I am newbie with wireless communication.

I want to build two bluetooth modules, to communicate with each other, using CC2540 SoC. One of the modules is intended to act as remote control. Pressing push-buttons on the first module (remote control), the second module will react and output signals on its I/O port depending on the software which I have to write onto the embedded 8051 MCU.

Will this work?

I searched all information related to the development of CC2540, but it seems overwhelming. What do I really need to write the simple code on each module?

I have downloaded the smartRF_Flash_Programmer.

Do I really need the IAR workbench tool? it is not free. Can I use something else for the simple code I want to write?

Do I have to download the Bluetooth software stack on the chip or is the chip already programmed with the bluetooth software?

Do I have to deal with the bluetooth software? or simply write my code onto the embedded 8051?

Do I really need the development kit to build this project? the development contains the following:

  • 2 SmartRF05 Evaluation Boards (SmartRF05EB)
  • 2 CC2540 Evaluation Modules (CC2540EM)
  • 2 Pulse Antennas
  • 1 CC2540 USB Dongle
  • Cables

Can't I simply build the hardware (CC2450) with USB interface, connect it to the PC and download my program using the Smart_RF_Flash_Programmer?

My communication range is 2 meters. Is using Bluetooth the right approach or does exist simpler solution?

Please help!

  • Hello,

    Welcome to BLE! I suggest you start by reading the SW Developer's Guide which walks through the simple_peripheral application and the required build environment. I also recommend obtaining LAUNCHXL-CC2640R2 LaunchPads and taking the BLE SimpleLink Academy labs. Even though this does not use CC2540 many of the concepts apply.

    IAR is required for CC254x BLE development. If this is a barrier for you, I suggest looking at CC2640R2F which can use CCS for free.

    More details are in the pinned Getting Started post here in the BLE forum.

    Best wishes
  • This is great.

    One important question before I dive into the universe of BLE. I know the answer will 99% yes, but I want a 100% confirmation. My intention is using 2 chips CC2640 to build two units which will communicate with each other (I have to say that there will be no display or sound involved). The goal of these units is to wirelessly communicate push-buttons statuses (with some special functions that will be coded on the ARM MCU embedded in the C2640 chip) of one unit to the other and do some actions (driving motors ^through drivers^, etc..)

    My question is can I make these two chips communicate with each other (each of them as tranceiver) without adding other circuitry or chips?

    Thanks!

  • Yes, it’s no problem to use two CC2640 chips to serve your application.
  • Hi,

    I bought two LAUNCHXL_CC2640R2 and one of them seems to be defective (the USB connection could not be recognized)!!.

    I have no communication problem with the second board and I was able to control the LEDs (Red, Green) via TI_SensorTag App, using project_zero. However, I can't get the communication working via PUTTY. I have set all possible baud_rate with serial communication but I didn't receive any information from the board when press the reset button as suggested in the video for the project_zero.

    Any thoughts?

    Thanks!

  • When you plug LAUNCHXL-CC2640R2 into your desktop, you will get two virtual COM port and you should select application one to get UART.
  • Select application one? where? is there a program other than PUTTY that I should be running?
  • I also tried to use Tera Term and I still can't get the communication working between the LAUNCHXL-CC2640R2 and Tera Term or PUTTY on the serial port. Could you please help!
  • When you connect , you will see two UARTs emulated, one is XDS110 Class Application/User UART and another is XDS110 Auxiliary Data Port. You should open XDS110 Class Application/User UART from your TeraTerm or Putty.
  • The problem is when I connect the board through the USB cable, nothing opens on my PC.

    I set the baud_rate in Putty to 115200 (also tries 9600 baud), and connect to the com port where the USB cable is plugged, the communication window opens but no communication happens. I press on the reset button of LAUNCH board (downloaded project zero to it) but nothing happens (no information sent to Putty). 

    Note the communicate with the phone (SmartTag application) works and I can control the LEDs through the App.

    I don't know if I should be running any other software to see the two emulated UARTs you are reffering to.

  • Can you take a picture to show me your connection between desktop and your LAUNCHXL-CC2650R2. By the way, your current issue is off topic of this discussion thread and I suggest you to create a new one for this issue.
  • Ok, I created a new topic for this issue.