ext_sleep电源Contultion.

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程https://www.dialog-seminile.com/support.。我们将在未来几天修复错误/优化搜索和标记。
4个帖子/ 0新
最后一篇
prasanth.velliy ...
离线
最后一次露面:10个月前1年
加入:2016-02-18 12:18
ext_sleep电源Contultion.

嗨对话框
我正在使用DSPS从项目并实现延长睡眠,它正常工作。
但功耗是不合适的,我正在闪烁SPI闪光和检查消耗的代码
1。IoT板DA14583 - 物联网软件 - 睡眠80uA
2。物联网董事会DA14583——需求方奴隶软件——消费意识mption 180ua in sleep
3. Murata DA14580 - P2ML3256 - DSPS从软件 - 消费160UA睡眠
4. Custom Board - DA14583 - DSPS Dlave software Consumption 220ua in sleep
5. IoT板 - DA14583 SDK 5.0.4休眠中的180UA休闲

我通过万用表检查的所有情况(CONNECT是CR2032电池一端到万用表,万用表其他端到板,设置:UA,当前模式),为什么我在任何电路板中都没有看到5ua,但早先使用UART Booter模式我实现了2ua消费,什么可能是问题??

设备:
mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
嗨prasanth,

嗨prasanth,

当设备处于睡眠模式时,实现了2UA电源Contuption,如果没有足够的时间,则某些点处的IOT在某些点处进入睡眠模式,但它还具有额外的传感器消耗功率,因此您不会能够看到这种低功耗。DSP示例它不会落入永久性睡眠,但根据其广告和连接间隔醒来并睡觉,因此还没有办法看到2UA功耗。此外,由于您在电路板上使用闪光灯,请注意,闪光灯也消耗功率,并且如果它不断电(通过闪存 - SPI_FLASH_POWER_DOWN()的电源掉电),则相当大的金额。因此,如果您在UART和SPI之间看到差异,则引导后者是最可能的原因。

谢谢mt_dialog.

prasanth.velliy ...
离线
最后一次露面:10个月前1年
加入:2016-02-18 12:18
嗨对话框

嗨对话框

谢谢for your reply

I added spi_flash_power_down()
/ ******************************************************************************************************************* /
== >>>>>>>>>>>在@file user_periph_setup.c

#ifdef DA14580_CUSTOM_BOARD

gpio_configurepin(spi_gpio_port,spi_cs_pin,输出,pid_spi_en,true);
gpio_configurepin(spi_gpio_port,spi_clk_pin,输出,pid_spi_clk,false);
gpio_configurepin(spi_gpio_port,spi_do_pin,输出,pid_spi_do,false);
GPIO_ConfigurePin( SPI_GPIO_PORT, SPI_DI_PIN, INPUT, PID_SPI_DI, false );
#万一

#ifdef da14583_custom_board.

gpio_configurepin(da14583_spi_flash_en_gpio_port,da14583_spi_flash_en_gpio_pin,输出,pid_spi_en,true);
gpio_configurepin(da14583_spi_flash_clk_gpio_port,da14583_spi_flash_clk_gpio_pin,输出,pid_spi_clk,false);
gpio_configurepin(da14583_spi_flash_do_gpio_port,da14583_spi_flash_do_gpio_pin,输出,pid_spi_do,false);
gpio_configurepin(da14583_spi_flash_di_gpio_port,da14583_spi_flash_di_gpio_pin,输入,pid_spi_di,false);

#万一

= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>@file user_sps_device.c
void user_on_init(void)
{
user_scheduler_init();
default_app_on_init();
da14580_spi_flash_init();
da14580_spi_flash_deinit();
}
= >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
void da14580_spi_flash_init(void)
{
#ifdef da14583_custom_board.

//取消注册传感器SPI网络的旧密码映射
gpio_configurepin(da14583_spi_flash_en_gpio_port,da14583_spi_flash_do_gpio_pin,input_pullup,pid_gpio,true);
gpio_configurepin(da14583_spi_flash_di_gpio_port,da14583_spi_flash_di_gpio_pin,input_pullup,pid_gpio,true);
gpio_configurepin(da14583_spi_flash_clk_gpio_port,da14583_spi_flash_clk_gpio_pin,input_pullup,pid_gpio,true);
gpio_configurepin(da14583_spi_flash_en_gpio_port,da14583_spi_flash_en_gpio_pin,输出,pid_spi_clk,false);

Int8_t man_dev_id = 0;

spi_driver_cs_pad.port = gpio_port_2;
spi_driver_cs_pad.pin = gpio_pin_3;

man_dev_id = spi_flash_enable(spi_driver_cs_pad.port, spi_driver_cs_pad.pin);

if(man_dev_id == spi_flash_auto_detect_not_detected)
{
spi_flash_init(DA14583_SPI_FLASH_SIZE, DA14583_SPI_FLASH_PAGE_SIZE);
}

// Power up flash
// spi_flash_release_from_power_down();

#万一

#ifdef DA14580_CUSTOM_BOARD

SPI_Pad_t cs_pad_param;
Int8_t man_dev_id = 0;

cs_pad_param.port = spi_en_gpio_port;
cs_pad_param.pin = spi_en_gpio_pin;

man_dev_id = spi_flash_enable(cs_pad_param.port, cs_pad_param.pin);

if(man_dev_id == spi_flash_auto_detect_not_detected)
{
// spi_init(&cs_pad_param,spi_mode_8bit,spi_rool_master,spi_clk_idle_pol_low,spi_pha_mode_0,spi_mint_disable,spi_xtal_div_8);
spi_flash_init(spi_flash_default_size,spi_flash_default_page);
}
SPI_FLASH_RELEASE_FROM_POWER_DOWN();

#万一

}

void clr_flash_cs(void)
{
#ifdef da14583_custom_board.

GPIO_SetInactive(DA14583_SPI_FLASH_EN_GPIO_PORT, DA14583_SPI_FLASH_EN_GPIO_PIN);

#万一
#ifdef DA14580_CUSTOM_BOARD

gpio_setinactive(spi_en_gpio_port,spi_en_gpio_pin);

#万一

}

void set_flash_cs( void )
{
#ifdef da14583_custom_board.

GPIO_SetActive(DA14583_SPI_FLASH_EN_GPIO_PORT, DA14583_SPI_FLASH_EN_GPIO_PIN);

#万一
#ifdef DA14580_CUSTOM_BOARD

gpio_setactive(spi_en_gpio_port,spi_en_gpio_pin);

#万一
}

void da14580_spi_flash_deinit(void){

#ifdef da14583_custom_board.
set_flash_cs();
spi_flash_power_down();
clr_flash_cs();

#万一

#ifdef DA14580_CUSTOM_BOARD

set_flash_cs();
spi_flash_power_down();
clr_flash_cs();

#万一

}

i have added this setup for DA14583 based board , i am not seeing any improvement , Please help..

谢谢

mt_dialog.
离线
最后一次露面:2个月1周前
职员
加入:2015-06-08 11:34
嗨prasanth,

嗨prasanth,

If you remove the flash or if you dont use the flash at all, do you see any improvements to the power consumption ? Also i 've mentioned above depends on the BLE activity that the device has, for example, what is the power consumption when the device goes in sleep (no sleep and wake up, the power consumption when the device is constantly in sleep mode). You will have to check exactly what is that draws that amount of power, is an external module ? is that the 580 doesn't go to sleep ? Is that you ve extra BLE activity that causes that ?

谢谢mt_dialog.