Other Parts Discussed in Thread: CC2541, CC2640, CC2541DK-MINI
Hi All,
I am using a HM-10 module ( https://www.fasttech.com/product/1292002-ti-cc2540-cc2541-bluetooth-4-0-ble-2540-2541 which has a CC2541 mcu, both external crystals, passive components and antenna). I have downloaded SimpleBLEPeripheral code to HM-10.
I made the following changes in the code as suggested in AN092 (http://www.ti.com/lit/an/swra347a/swra347a.pdf) to go to power saving modes.
1. To eliminate the periodic event from the application, commented out the following line of source code from the SimpleBLEPeripheral_ProcessEvent function in the file simpleBLEPeripheral.c:
// osal_start_timerEx( simpleBLEPeripheral_TaskID, PERIODIC_EVT, PERIODIC_EVT_PERIOD );
2. In SimpleBLEPeripheral_Init function, the variable initial_advertising_enable was set to TRUE instead of FALSE, as such:
uint8 initial_advertising_enable = TRUE;
I put an ammeter to measure the current of the HM-10 module. It should go to PM2 or PM3 mode automatically as POWER_SAVING symbol has been defined.
However, the current is always around 8mA, which means it is not going to PM2 or PM3 mode.
I changed DEFAULT_DESIRED_MAX_CONN_INTERVAL, DEFAULT_DESIRED_MIN_CONN_INTERVAL, DEFAULT_DESIRED_CONN_TIMEOUT to different values, however I see no change in current consumption, it always around 8mA.
I connected with the HM-10 with an Android phone "BLE Scanner" app, and current is always around 8mA.
Can you please suggest how can I go to PM2 or PM3 mode? If it goes to PM2 or PM3 mode, then my plan is to wake the device up by external interrupt.
Thanks in advance.