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: CC2450 how to avoid deep sleep mode ( power save mode)

Part Number: CC2540
Other Parts Discussed in Thread: CC2541, BLE-STACK

Hi,

let me first describe the issue,
For one of the application we are using CC2540 BLE based module (HM10). the module comes with pre-loaded stack and it communicate using "AT command", Module has defined as tow mode of operation, Active and sleep mode (PWRM1 and PWRM0). in sleep mode device goes into power save and consume less current (~40-80uA average current) and it is available for any Bluetooth to connect. once connected it goes into active mode and consumes ~8mA. as our application will be in idle 99% of the time so and it is battery operated so we have configure module in  PWRM0 mode (power save mode) when not connected.  Module works fine but some time it doesnt show up for connection during this module use to consume ~1-2uA, and when given  power-ON reset it comes to active and then sleep mode and available for connection. During debugging we found out that there is timer who puts device in deep sleep mode (~1-2uA) current time to time and during this time device is not available for connection.  i am unable to get rid of this mode of operation. 

Our requirement is to keep the device in sleep mode (40-80uA) in all the time and make him available for connection when needed. and never go in deep sleep mode (1-2uA current consumption) 

so my questions is: is there any way we can disable this mode (deep sleep ~1-2uA) of operation, if yes then how
How to disable the the time which puts the device in deep sleep (power save mode - 1-2uA) and let the device be always in sleep mode (40-80uA) when not connected.

Feel free to ask if you need any further information.

Kamil

  • Hi Kamil,

    You'll want to see the OSAL API documentation, specifically the documentation on the Power Management API, Section 9. You can find this @ "C:\Texas Instruments\BLE-CC254x-1.4.2.2\Documents\osal" if you have everything installed in the default paths.

    I also recommend seeing section 4.2 in the CC254X User's Guide, Power-Management Control. This section describes power management of the device in detail.

    Regards,
    Rebel
  • I don't think this AT command BLE SW is provided by TI. You might need to contact the module manufacturer for help.
  • Yes, the module is from third party. Does TI also make HM10 module? if yes then can you please provide me the link. My basic question is with this device is following application configuration is possible or not
    1. When connected be in active mode of operation and current consumption <6-8mA
    2. Device should go in low mode ( current consumption <60-80uA) when not connected. but it should be available for connection. once connection commands comes should be able to connect and move to active mode of operation.

    If TI dont make these module, then please let us know who can provide us the module and can support us to configure the device in such configuration.

    as well as may i know if we can use MCU of this BLE device. we want to do some processing of data once received data from transparent UART in BLE and toggle 3-4 I/Os. is this possible.
  • YK is correct here, we don't provide support for your module directly, you'll have to contact the party your purchased the module from.

    Regarding using the MCU directly, again, contact the module developer directly to see if they have a JTAG interface you can hook into and exposed IOs.

    Regards,
    Rebel
  • Hello,

    I am not sure why you are diverting my direct question to you to third party. is it possible to connect me to engineer who worked on this device and can clarify my questions. Thanks in advance.

    Kamil

  • I suppose this HM-10 module is made by http://www.jnhuamao.cn/ so I suggest you to contact them.
  • Hello,
    HM10 is made by third party, so understood you will not be able to support on HM10. But will you support on TI BLE device and tools to develop application and configure device as mentioned above. I mean BLE stack which can configure BLE device as per requirement and provide access to its MCU to process data and toggle I/Os.

    Kamil
  • Do you still have to use AT commands provided by 3rd party?
  • i am not married to use AT command. What i am interested is to configure and run device as per my requirement. Hope this makes things clear.
  • Then, Rebel already give you direction.

    You'll want to see the OSAL API documentation, specifically the documentation on the Power Management API, Section 9. You can find this @ "C:\Texas Instruments\BLE-CC254x-1.4.2.2\Documents\osal" if you have everything installed in the default paths.

    I also recommend seeing section 4.2 in the CC254X User's Guide, Power-Management Control. This section describes power management of the device in detail.

    You can download and install BLE Stack v1.4.2 to get the documents and examples.
  • Please, that was your first response and I have gone through those documents. but it provide answer to my question. My humble request to you to please go through them and let me know exactly how to achieve that configuration.
  • Please, that was your first response and I have gone through those documents. but it provide answer to my question. My humble request to you to please go through them and let me know exactly how to achieve that configuration.
  • Hello Kamil,

    If you keep the device Advertising, it will not enter PM3 mode and will remain available for accepting a connection in PM2. This is the default configuration for the simpleBLEPeripheral sample application which is supported on the TI CC2541/CC2540 development kits listed on the TI BLE Wiki.

    Note that some 3rd party modules do not stuff a 32k crystal, so you will not be able to enter any sleep mode and must keep the MCU in active mode. I strongly recommend you use a TI development kit before deploying your product on a 3rd party module.

    If you are developing on this platform I suggest going through the SW Developer's Guide which is included in the CC254x BLE-Stack SDK. Also, there are some good app notes, such as the power management AN092 -- Measuring Bluetooth Low Energy Power Consumption (Rev. A) which you can find on the CC2540 product folder under "Technical Documents".

    Best wishes
  • Hello,

    My question is very specific and to the point, so please dont be so generic in your answer, like read RM or datasheet or this documents. I have gone through that documents and those information are not there, request you to please you also go through it and let me know if i missed any thing. 

    I expect direct answer.

    Thanks in advance.

    Kamil

  • Hi Kamil,

    Our answer was utilize the documentation to do what you wish -

    What have you tried? Are you able to directly program the device? Did you contact the manufacturer of your device?

    If our documentation doesn't help, then please tell us what you tried and what your results are. We're here to help, but just like you, our time is limited and we have many different things we're doing.

    Regards,
    Rebel