我只广播,不干别的。话说一节纽扣电池如何用一年。
广播的时候是处在那种功耗模式,能进PM2或PM3吗?不然的话一节纽扣电池最多能用几天吧!
就是beacon的应用啊。
广播的时候当然是TX了。之间用deepsleep
你可以用 http://www.ti.com/lit/an/swra478/swra478.pdf 算一下的。广播周期拉长一点,1年没问题的。下面是个例子,还是个connectable beacon (有RX)。
Bluetooth Smart Power consumption - Beta | |||||||
Hardware | SmartRF06EB + CC2650EM | ||||||
Software | SimpleBLEPeripheral (pre-RTM) | ||||||
Supply Voltage |
|
||||||
Battery capacity [mAh] | 230 | ||||||
Activity 1: Advertising | |||||||
Standby Current [uA] |
|
||||||
Advertising Interval [ms] | 1000 | ||||||
State | Time [µs] |
Current [mA] | |||||
Re-Charge | 83 | 1.6 | 132.8 | ||||
Wake Up & Pre-Processing | 898 | 3.39 | 3044.22 | ||||
Radio Preparation | 220 | 3.77 | 829.4 | ||||
Transmit (TX) | 202 | 7.19 | 1452.38 | ||||
TX to RX transition | 111 | 4.43 | 491.73 | ||||
Recieve (RX) | 184 | 6.34 | 1166.56 | ||||
RX to TX transition | 370 | 3.40 | 1258 | ||||
Transmit (TX) | 202 | 7.09 | 1432.18 | ||||
TX to RX transition | 111 | 4.54 | 503.94 | ||||
Recieve (RX) | 184 | 6.39 | 1175.76 | ||||
RX to TX transition | 370 | 3.36 | 1243.2 | ||||
Transmit (TX) | 202 | 6.87 | 1387.74 | ||||
TX to RX transition | 111 | 4.45 | 493.95 | ||||
Recieve (RX) | 184 | 6.42 | 1181.28 | ||||
Post-Processing | 409 | 3.5 | 1431.5 | ||||
Going to Standby | 230 | 0.85 | 195.5 | ||||
17420.14 | |||||||
Total time of connection event | 4071 | ||||||
Average Current draw during advertising event [mA] | 4.27908 | ||||||
Average current draw accounting for sleep [mA] | 0.018416069 | ||||||
Avg. current draw during advertisement: | 0.018 | mA | |||||
Expected battery life: | 12489 | Hours | |||||
Expected battery life: | 520 | Days | |||||
说的对,谢谢。
大神,你觉得我这样设定广播周期合适不(我是小白 啊,求别嫌弃)
#if 1
uint8 advType = GAP_ADTYPE_ADV_NONCONN_IND; // use non-connectable advertisements
#else
uint8 advType = GAP_ADTYPE_ADV_DISCOVER_IND; // use scannable unidirected advertisements
#endif
// Set the GAP Role Parameters
GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &initial_advertising_enable );//使能广播
GAPRole_SetParameter( GAPROLE_ADVERT_OFF_TIME, sizeof( uint16 ), &gapRole_AdvertOffTime );//关十秒
uint16 ls = 1000;
GAP_SetParamValue( TGAP_GEN_DISC_ADV_MIN, ls );//广播一秒
循环广播一秒,关十秒。
呵呵,我是代码小白。还是纯白。。。:-P
你可以在电源上串联一个10ohm的采样电阻,然后用示波器看一下电流的样子确认一下吧。
或者等楼下软件的帮你看看。
很好
加上太阳能就可以了的!