Wednesday, November 20, 2013

Android Devices & Battery Life - Duel to the Death




WIFI Home Network

WIFI Networks - 


Wireless networks operate using radio frequency (RF) technology, a frequency within the electromagnetic spectrum associated with radio wave propagation. When an RF current is supplied to an antenna, an electromagnetic field is created that then is able to propagate through space.

The cornerstone of a wireless network is a device known as an access point (AP). The primary job of an access point is to broadcast a wireless signal that computers can detect and "tune" into. Since wireless networks are usually connected to wired ones, an access point also often serves as a link to the resources available on the a wired network, such as an Internet connection.

In order to connect to an access point and join a wireless network, computers, smart phones etc, must be equipped with wireless network adapters. These are often built right into the device whether it be a computer, mobile phone or a  tablet. 

DHCP - 

Short for Dynamic Host Configuration Protocol, a protocol for assigning dynamic IP addresses to devices on a network. With dynamic addressing, a device can have a different IP address every time it connects to the network. In some systems, the device's IP address can even change while it is still connected. DHCP also supports a mix of static and dynamic IP addresses.

Dynamic addressing simplifies network administration because the software keeps track of IP addresses rather than requiring an administrator to manage the task. This means that a new computer can be added to a network without the hassle of manually assigning it a unique IP address. Many ISPs use dynamic IP addressing for dial-up users.

TCP - 

Short for Transmission Control Protocol. where Connections must be properly established in a multi-step handshake process (connection establishment) before entering the data transfer phase. After data transmission is completed, the connection termination closes established virtual circuits and releases all allocated resources.

Unification of these principles - 

  • If one were to bridge these three technologies together with a screen & dial pad, it would become a   " wireless access device " or smart phone/tablet.
  • Therefore, a smart phone/tablet, would have to go through the following steps each & every time it needs to make a " wireless connection " to the Internet.                         Turn on wifi antenna > scan for an access point > authentication between  access point/ wifi access device >  request an IP > bind to that IP >  establish a IP connection between AP & host > data transmission > termination of TCP connection > Turn off wifi antenna > return to stand by mode. 
  • Power is required for all of the above steps, which drains smart phone battery, each & every time a wifi connection is made. 
  • If a device is in " sleep mode " with no wifi data transmission , wifi antenna should not be drawing in power. 

 Before 

23:41 - 02:05 17- 18 Nov 2013


Galaxy Note 1 -  2 days max use
  • Notice at 23:41 battery level reading = 93 %. At 02:05 battery level reading = 77 %. Therefore battery dropped by 16 % in 2.5 hours. In both cases, phone was in " airplane mode " & wifi turned off. Yet colossal battery drain in stand by. [  If WIFI is enabled & the user selects " airplane mode " via desktop widget or by going to " Settings/ More settings / ", WIFI is disabled, but, can be enabled by  pulling down the menu [ i forget the name for it at the moment ] in home screen. Then, even though you are in " airplane mode ", you can use WIFI in offline mode ]

    After 


    01:31 - 09:16 20 Nov 2013

    09:16 - 13:27 20 Nov 2013


    Galaxy Note 1 - 13 days max use


    • Notice at 01:31 battery level reading = 58 %. At 13:27 battery level reading = 43 %. Therefore battery dropped by 15 % in 12 hours. In both cases, phone was in " airplane mode" & wifi turned off. Whoa !!! hold it right there you ask, How can this be ? before i answer that, i like to point out, above are some of the actual screen shots of battery statistics collected in real time

    These tweaks can be done on either rooted/ non rooted android phone/ tablets

    Automatic display brightness adjustment

    Settings/ WIFI/ Advanced


    1. Go to Settings/ WIFI/ Advanced/ - Disable ( uncheck ) " Network Notifications " [ Network Notification = as most know, WIFI scans for Access Points/ Routers at pre determined times. Which uses up battery power nevertheless. So if you have pre configured WIFI access points, eg { home/office } WIFI networks, there is no need for it be pulsing so many seconds to see if there is a WIFI AP by that name. " Network Notifications has nothing to do with incoming sms/ email/ chat alerts,  all it does is, let the user know if a WIFI AP/ hotspot is nearby ]. " Keep WIFI on during sleep " = NEVER [ Increases data usage ]. Default settings for " Keep WIFI on during sleep " = ALWAYS = Faster battery drain.
    2. I need to explain what the above sentence means because, it was staring right in my face but i overlooked it. " Keep WIFI on during sleep = Always " means, in simple english, DONT turn off WIFI even when in stand by mode. WIFI is just like any antenna, draining power whether you use it or not. So, " why is a WIFI antenna continue to supply with power " when its not being used ? doesnt make any sense to keep it at default = faster battery drain. Now this is the funny part, okay, you might ask yourself, it has to be a firmware bug. But, in truth, this " default " setting has been " in effect " from the very first android device made. Now, comes the more interesting quirk to it, this tweak varies from phone/ tablet to phone/ tablet. These settings even though you change it to " Never " defaults back to  " Always " for some devices, even with latest android firmware. I was lucky with 3 android devices, where this tweak didnt default back to " Always ". Therefore, id say, try it and see, you might need to re check the " Advanced "settings to verify that fact. Do this test on a full battery charge. So why does it say " Never = Increases data usage " ? that i suspect, was added there, to fool the user into selecting  " Always " option. I did note down, data usage counters for both WIFI/ 3.75G at 01:31 and at 13:27, to my utter shock, there was zero data usage during that time period. Screenshots of battery usage during that 12 hour period speaks volumes in itself. 
    3. Location Services ] - " Disable " ( uncheck ) Use wireless networks/ Use GPS satellites/ Location & google search.  [ enable/ disable them when & you require their functionality. ] 
    4. Shutdown/ Restart the smartphone/ tablet once every 3 days is another good practice.
    5. Similar tweak can be done to 3.5G/ 3.75G/ 4G [ Settings/ More settings/ Mobile Networks/ Network Mode = GSM/WCDMA/ GSM ONLY/ WCDMA ONLY ]. Voice calls always use 2G bandwidth even though 3.75G/ 4G is enabled on the smartphone/ tablet. Therefore, that " extra  " 1.75G is just draining the battery faster. I would recommend, disabling 3.75G/ 4G during a voice calls and enabling 3.75G/4G only when its necessary. This rule doesnt apply if one were to initiate a video call where 3.75G/4G " has " to be used for that task. If service provider permits, enable 2.5G or Edge for normal day to day use together with voice as that function is not very taxing on the battery.
    6. Additional  [ Developer Options ] tweaks can be done, they may or may not extend battery life. 

      Developer Options performance tweaks


      [ Developer Options need be enabled before following tweaks ]

      1.  Window animation scale/ Transition animation scale/ Animator duration scale/ = OFF. What these 3 options do is, free up CPU/GPU resources which use considerable battery power. If one can do without these        " fancy gimmicks ", you will notice a much faster & responsive phone/ tablet. [ personally, I keep Transition animation scale = 0.5 and disable the other two. ] 
      2. " Enable ( check ) [ Do not keep activities ] " is an optional tweak, which basically wipes user data upon the user exiting that app, thus freeing up memory/cpu/gpu cycles. [ see, what usually happens is when an user exits a running app by pressing Back button, you minimize the app, but app continues to run in the background consuming battery/cpu/memory resources. That is why, after i exit an app, I manually clear background running app either via a dedicated app such as Clean Master or, android OS specific native Task Manager/ RAM Manager/ Clear memory " Synology NAS & DS File android app ", may have problems in file transfers to & from NAS. 

        01:40 20 Nov 2013 57 % battery level,
        30.79 MB 3.5G Data usage

        08:38 20 Nov 2013 54 % battery level,
        30.79 MB 3.5G Data usage 

        Apps used in this article to monitor android smartphone/ tablet - Google Play Store

        • Clean Master [ comes with a inbuilt desktop widget called " 1 Tab Boost " ]
        • Battery Monitor Widget 
        • 3G Watchdog
        • Airplane Mode Widget by Jason Hull

        Friday, November 15, 2013

        Hippie Chippie - Ocean Club Sandwich

        Ocean club sandwich

        • Ocean Club Sandwich - Rs.590
                      Ingredients - Premium Fish Fillet, Egg,  Lettuce, Tomato, Cucumber & Slice of Premium Tasty Cheese on Toasted White or Brown Bread

        This sandwich was simply delicious. One can safely conclude, this is a " full meal " given the platter variety with each potion.  But, it could have been a tad larger, for those of us who can eat a large pizza and still feel hungry. 


        Hippie Chippie [ open 11 AM - 11 PM Daily ]
        GPS -   6°53'11.82"N  79°51'54.63"E
        149 Havelock Road, Colombo 05,
        Tel - 0112002222
        web -  http://hippiechippie.com/

        Tuesday, November 12, 2013

        Hippie Chippie - Seafood Kottu

        Seafood Kottu

        • Authentic Signature Seafood Kottu - Rs.350
                               
                     Ingredients - Godhamba rotti, carrots, mushrooms, leeks, eggs, ginger, garlic, chillie powder, curry powder, salt & pepper, green chillies, prawns, cuttlefish, fish, virgin oil

        Surprisingly this tasted pretty darn good with little or no taste of oil. Potion could have been a tad larger. Definitely worth the 350 bucks. When the opportunity arose, I inquired about whether any of the menu items have the " dreaded " MSG and was told nope and was given the reason to it aswell.

        Hippie Chippie [ open 11 AM - 11 PM Daily ]
        GPS -   6°53'11.82"N  79°51'54.63"E
        149 Havelock Road, Colombo 05,
        Tel - 0112002222
        web -  http://hippiechippie.com/

        Sunday, November 10, 2013

        Hippie Chippie - Fish n Chips

        fish n chips
        This restaurant is located almost right opposite Laughs Supermarket on Havelock Rd between Isipathana Mawatha & Park Road. I decided to go there in the spirit of venturing to new restaurants/ take away places which i havnt visited before. On walking in to this place, you smell fish n chips in the air, which makes you even more hungry. Dining in arrangement is lovely. Placed an order for -



      • Authentic Battered Fish & Chips - Rs.690.00

        •       Ingredients - Premium Fish Fillets, Sourced Directly From Fish Mongers in Kalpitiya, Seasoned in Our Signature Herbs & Spices Infusion and Cooked to Perfection in Light & Crispy Homemade Batter. Simply The Best Fish & Chips You Can Find in the Country, Served With Our Signature Tartare Sauce

          It took almost 45 mins for it to be ready, came nicely packed in a rather small box, which took me by surprise given the cost. It definitely smelled nice. Bought it back home, served it on to a plate. Ok, now this is way different to other " fish n chips " i had before, on the plate were 2 big fish fillets and " huge " french fries, piece of lime, some sauce which on reading the menu is - signature tartar sauce [ potion was rather small ]. On tasting this with the " tartar sauce ", well it wasnt crunchy fish fillets as i imagined it would be but yeah it was okay, nothing special to write home about. Did the food contain MSG, i couldnt really tell, it was rather bland. Was it worth the Rs.690, im not sure really. 

            Hippie Chippie [ open 11 AM - 11 PM Daily ] 
            GPS -   6°53'11.82"N  79°51'54.63"E
            149 Havelock Road, Colombo 05, 
            Tel - 0112002222
            web -  http://hippiechippie.com/

          In Car On-The-Go Internet using a 4G router - TP Link MR 3020


          TP Link MR 3020 4G router

          Package contents
          ( not included in the package is a usb car adapter
          [optional accessory ]  )

          Share the freedom of 4G! Powered by a laptop or power adapter, the TL-MR3020 allows you to easily share a 3G/4G mobile connection with family and friends practically anywhere. By connecting a 3G/4G USB modem to the router, a 3G or 4G Wi-Fi hotspot is instantly established. If your exsting device does not support 4G sharing, please upgrade it to the latest firmware.

          Travel-sized Design and Mini USB Port

          What makes this router so convenient is its’ travel-sized design and Mini USB Port that can be connected to any Laptop or Power Adapter for power. As long as you have your laptop, the TL-MR3020 you can create a wireless cloud that can be shared by iPads, iTouches, Android Phones, Kindles and the vast majority of other portable Wi-Fi enabled devices. 

          High Compatibility Globally-Tested in Field

          Compatibility is the most important aspect to consider when you're selecting a 3G/4G router. To ensure the best compatibility between our routers and the modem you would use with the router, TP-LINK has made certain that our 3G/4G Routers are compatible with the ISPs in the regions in which they are sold. We have teams around the globe continually testing our routers with newly emerged modems to ensure that end users can feel confident that their routers will operate flawlessly where they live and work.

          IP QoS – Control Your Bandwidth

          With Quality of Service (QoS), you can determine how much bandwidth is allocated to each application. This ensures optimum utilization of bandwidth by controlling congestion and preventing bandwidth abuse. This way, users of a small network receive committed and specific bandwidth, preventing non-critical applications from degrading network performance.
          Flexible Power Supply

          TL-MR3020 provides you with a mini USB port to be connected to your laptop or power adapter for power.

          Easy to Use

          The TL-MR3020 can be installed quickly and easily almost anywhere. All you need to do is insert the USB modem into a router, search for its wireless SSID on your computer, and then connect to it. You can be online and surfing the internet in no time! Plus, a user guide is included in the provided CD to help you easily set up your wireless internet connections.


          One Button Security Setup

          The TL-MR3020 features Wi-Fi Protected Setup (WPS) which allows you to setup your security by simply pressing the "WPS" button. This automatically establishes a WPA2 secure connection which is more secure than WEP encryptions. Not only is WPA2 faster than normal security setups, you won’t have to remember a password!


          Features

          Share a 3G mobile connection, compatible with 120+ UMTS/HSPA/EVDO 3G USB modems
          Portable design, light and small enough for you to take anywhere
          Wireless N speed up to 150Mbps
          Quick security setup, faster and safer
          IP-based bandwidth control allows administrators to determine how much bandwidth is allotted to each connected device
          A mini USB port to be connected to your laptop or power adapter for power supply
          3G/WAN failover guarantees an "always-online" internet connection
          Three working modes: 3G Router, Travel Router (AP), WISP Client Router

          Package Content

          TL-MR3020 Router [ latest firmware updates required to get best use ]
          Quick Installation Guide
          Power Adapter
          USB Cable
          Resource CD
          Ethernet Cable  

          DIY In car wifi on the go 

          Items required -
          • TP Link MR 3020 router 
          • USB cable provided in the box
          • USB cigarette lighter adapter to power the router
          • 4G USB Dongle with data plan & SIM



          • pre configure the router via web interface before car install
          • since the router has a range of 300 meters, which is more than enough to envelope the entire vehicle in a WIFI bubble, thus enabling everyone in it to use " on the go wifi "
          • why use 4G using a wifi router as opposed to a 4G SIM inserted to a 4G device ? whatever signal whether it be wifi or 4G has to travel the distance from wifi enabled device to base station, longer the distance, more power required, thus faster device battery drain. If one were to isolate that power requirement needed to go that " extra mile ", you would be drawing significantly less power as both wifi access device & 4G router is in a 30 foot square area or less. Only problem with this setup is, sudden drops of 4G signal coverage in transit from city to city. And the 4G router can be located anywhere inside the vehicle within reach of a cigarette lighter socket.  
          • warning - Do not firmware update via wifi but through LAN cable directly plugged into the 4G router to avoid bricking the router. 



          4G wifi access configuration 

          wifi router signal strength measured at a distance of 300 meters
          from router 

          38 Mb/s mobile wifi download speed 

          Wire 2 needs to be used = 2A current is needed to power on this router
          Mobile Broadband powered up inside the car



          Thursday, November 7, 2013

          Pad Thai Noodles - Cafe on 5th



          Ingredients - Dried rice noodles, eggs, tofu, tamarind pulp, fish sauce, dried or fresh shrimp, Chicken, garlic or shallots, red chili pepper, palm sugar, lime, peanuts


          • One needs to inform the chef, when preparation, the quantity of spices to be added otherwise your gonna cry buckets while eating this delicious noodles.
          • Available only on Thursdays between 5 pm to  10 pm at a cost of Rs.500 

          Cafe On The 5th
          GPS - 6°54'19.19"N 79°51'25.77"E
          108 5th Lane, Colombo 3
          Tel - 0112573765

          Wednesday, November 6, 2013

          Carlo Rossi California Smooth Red Wine 1.5 Litre


          Rossi Smooth Red Wine is made from a variety of grapes grown in California’s sun-drenched vineyards and manufactured by E & J Gallo Winery, one of the biggest wine companies in the United States.

          There is no sugar added and the sweetness comes naturally from the grapes itself.

          This sweet, well-balanced wine is light to medium-bodied. Lively red fruit flavors, complemented by fresh floral accents, lead to a crisp finish.

          Carlo Rossi California Smooth Red in that iconic jug offers seriously good value for money. And though you won’t see it written up often by critics, I’m clearly not the only one who thinks so.