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.

CC2541 power level

Other Parts Discussed in Thread: CC2541, CC2540

I am able to use one UART 1 or 0 at a time in CC2541 , it is working fine by using "npi" with HAL drivers in BLE-BRIDGE project.. Now i am in need of getting data from UART-1 and send the data via. UART-0 and BLE also. 

So, I want to use UART 1 and 0 simultaneously in CC2541. Can anybody tell me how to configure both UART's at a time.. 

Is it possible with DMA and ISR. for this what will be the preprocessor settings needed.?

 I also referred following post,  

http://e2e.ti.com/support/low_power_rf/f/158/t/169089.aspx

Can anybody guide me regarding this.

 Can we increase the Transmit Power from 0 dBm to more in CC2541 by changing in software by the below mentioned code.

  // Tx power level

  0x02,   // length of this data

  GAP_ADTYPE_POWER_LEVEL,

  0       // 0dBm

  But in following forums post it is saying we can't.

http://e2e.ti.com/support/low_power_rf/f/538/t/287647.aspx

Regards,

Karan

  • Hi Karan,

    CC2541 does not support more than 0 dBm output power. The CC2540 supports up to +5 dBm.

    Regarding the UARTs, I'm not familiar with HAL but if you bypass HAL and use the UARTs directly from the CPU with interrupts you can run both at the same time regardless of the number of available DMA channels.

    Peder

  • Hello Peder,

    Thanks for the response!

    Regards,

    Karan

  • Hello Peder,

    Actually i am trying to use two UARTs in CC2541:

    1 # UART-0 for GSM modem and UART-1 for GPS receiver (continuous data receiving) with BLE connection to iPad.

    2 # In this scenario when i am communicating with all these simultaneously, my BLE connection is disconnecting.

    3 # I am using BLE-Bridge project (removing HAL UART) and added uart0 and uart1 files of uart poll project in "CC2541_43_44_45_Peripherals_Software_Examples".

    Can you please tell me why 2# is happening, and any more considerations..? for the above project.

    Regards,

    Karan

  • Hello Karan,

    Since UART communication takes up alot of processing time it could be that it "runs over" the radio communication so that the device looses the synch and disconnects. You could use the connection event hooks to only allow serial communication when device is idle, by using the command HCI_EXT_ConnEventNoticeCmd. You can read more about how to use it in the TI BLE Vendor Specific Guide that comes with the stack installer.

    Also, make sure to disable halt during RF with the command HCI_EXT_HaltDuringRfCmd. 

    Best Regards

    Joakim

    PS. maximum output power for CC2540 is +4dBm (not +5dBm) DS.