How to calculate the battery life theoretically: The power consumption of one day in sleep time: 1.5 microamperes*24=0.036mah; The power consumption of sending data for one day: 10ma*24*1/20=12mah (taking data sending once every 20 minutes as an example, and temporarily setting each data sending as 1s, in fact it should be much less than 1s) Then the total power consumption for one day is: 12.036mah; Just divide the total battery power, for example 2000mah, by 12.036, which is the total theoretical battery life; In addition, clarify two power units: Coulomb and mah: 1mah=3.6c; 1mah=1A/1000*3600s=3.6A*s=3.6c; (conversion relationship) When the current is in ma, the time is in h, and the product of the two is mah. PS: There is no problem with both methods. One is calculated in mah and the other is in mas. You can refer to another blog (from a method in a paper.)