Sunday, February 6, 2011

Reporting appliance power consumption over powerline


Here is a idea I had for appliances resource consumption reporting (ARC).

This post describes an appliance standard for energy consumption reporting, with extensions to report consumption of other resources. (Powerline products extend Internet access to any existing power outlet. Netgear and other brands sell devices with this techonology).

Below a a description of a method of producing and distributing this information in a home network environment with support for powerline networking:
  • Add built-in powerline (network using the electrical cables) support to a fridge, toaster, microwave, tv, ps3, xbox etc. This would allow all appliances to be connect to a in home network. I'm assuming this would add 10-50$ extra to the cost of producing the appliances.
  • Add power-line support to home routers (dlink, netgear and all other brands of wireless routers should come with power-line support by default).
  • Create a standard for the appliances to find the home routers using the powerline connection, without configuration. Appliances would publish the energy consumption to the router. This would be done using a HTTPS PUT request with the appliance name, appliance unique ID, appliance TYPE (kind of like mime type, but for appliances), the period in minutes (5,15,30 minutes), and the number of watts spent in that amount of time, other types of consumption would also apply. Date and time are marked on the router, to avoid requiring that all appliances have a built in synchronized clock. All arguments are be passed in json format and included on the body of the HTTP message.

Example of the JSON for a fridge composed of 2 devices

{
     "devices": 
     [     
         {     
             "name": "Samsung Fridge",
             "id": "Samsung Fridge M-2345 SERIAL5-23234-8765",
"type": "refrigeration/fridge",
             "data":              
             [
                 {
                    "resource": "energy",
                    "unit": "watt",
                    "minutes": 15, 
                    "consumption": 400,
},
                 {
                    "resource": "water",
                    "unit": "mL",
                    "minutes": 15, 
"consumption": 550,
                 },
             ]
         }
         {     
             "name": "Samsung Ice Maker",
             "id": "Samsung Ice Maker M-2345 SERIAL5-23234-8765",
"type": "refrigeration/icemaker",
             "data":
             [ 
                 {
                    "resource": "water",
                    "unit": "mL",
                    "minutes": 15, 
"consumption": 100,
                 }
             ]
         }  
]
 }

Example for a TV composed of 2 devices

{
     "devices": 
     [     
         {     
             "name": "Sony Plasma TV",
             "id": "Sony Plasma TV M-2SDF5 SN HGJF72635-987-P,
"type": "entertainment/tv",
             "data":
             [
                 {
                    "resource": "energy",
                    "unit": "watt",
                    "minutes": 15,
                    "consumption": 300,
},
                 {
                    "resource": "data",
                    "unit": "KiB",
                    "minutes": 15, 
"consumption": 134235,
                 },
             ]
         }
         {     
             "name": "Sony Plasma TV - Google TV",
             "id": "Sony Plasma TV - Google TV M-2SDF5 SN HGJF72635-987-P,
             "type": "entertainment/webtv",
             "data":
             [ 
                 {
                    "resource": "data",
                    "unit": "KiB",
                    "minutes": 15, 
"consumption": 1983335,
                 },
             ]
         }  
]
 }


  • The wireless router receives the request from the appliance and timestamps the request and caches it. At a certain specific interval the cached requests are uploaded to a pre configured wed site, selected by the user.
  • This setup allows the user to use the router interface to configure where all appliances ARC messages should be delivered.
  • The wireless router needs to allow the user to forward all messages to a third party webservice (this service would be able to provide reports and display monthly aggregated data).
  • The router can have built-in data aggregation and reporting for ARC. But the option to forward ARC messages still needs to be available to the user, to allow for a open standard.
This is just an idea, would be great if a standards body could come up with a patent free and open standard that implements ARC.


It would be great to have the appliance, electronics and "wifi/powerline routers" manufacturers supporting a standard like ARC with their devices.


This is just an idea I wanted to put out there. This document was created on 6 Feb 2011.




Saturday, February 5, 2011

Lenovo Q150, OCZ vertex 2, 4Gb of Memory and Ubuntu 11.04


This time I wanted to speed up the the Q150.
I love the Q150, since I got it the disk access seems slow and I wanted to add a bit more memory for disk cache and desktop speed up.

So I got a 60Gb OCZ Vertex 2 for 129$ and corsair 4Gb DDRII 800Mhz for 99$, pics below.

So here are some basic stats with the new hardware.

30s Boot (11s for bios and grub 19s for ubuntu)
5s suspend sleep
5s suspend wake
4s shutdown

Disk speed for OCZ vertex 2
$ sudo hdparm -T -t /dev/sda1
/dev/sda1:
Timing cached reads: 1656 MB in 2.00 seconds = 827.89 MB/sec
Timing buffered disk reads: 582 MB in 3.00 seconds = 193.75 MB/sec
Everything is snappier:
  • Firefox loads in 2s
  • Chromium in 1s
  • LibreOffice Calc in 6s.
  • Hulu desktop loads and plays video in 10s.
The machine is still using a Atom CPU, so no miracles can be expected. With almost no noise and 24W power consumption this machine is very useful. It can also attach to the back of any monitor or TV and provides a great web computer to play mpeg videos at full speed and browse websites.

Q150 with SSD and 4Gb DDR mem





Wednesday, December 22, 2010

PS3 black screen and freeze with Netflix, Hulu plus, MLB.tv and Home

I spent a few days trying to figure out why my netflix, hulu and Home stop working on my PS3.

I tried everything, formatting the hd, reset to default settings, change resolution, hold the POWER button for 5 secs, reinstalling those Applications, nothing worked.

The only thing that worked was to reinstall firmware 3.55 again using the following instructions.

Follow "Activating Safe Mode" from the link below and then select the option to update the firmware from a USB drive.

http://us.playstation.com/support/answer/index.htm?a_id=1488


Get the firmware from the link below put it on the right PS3/update folder on a USB key/drive:
http://us.playstation.com/support/systemupdates/ps3/pc_update/index.htm

After the firmware was updated to the same 3.55 version I already had, NetFlix, Hulu, MLB.TV and Home all magically started to work again.

So it seems that Sony screwed up, with the update made from inside XMB in some manner.

I hope this is useful to someone else, I wish I could get back my last 4 days wasted on this stupid problem.

This is not related to OSS, but I think sharing this will save lot of hours to someone else out there and maybe they will use those some OSS code. :)

Tuesday, November 23, 2010

A feature to move running apps between different graphical sessions

I would love to see a feature on Wayland or xorg, that would allow for a running application to move from one graphical server to another, if the user has permissions for that.

I know this is tricky. But it would be super useful.

Imagine is a user has his desktop running and fully loaded with apps, and then it uses ssh or nxclient to connect to that machine.
The user would be able to list all graphical apps running under his id in any display servers are running on that machine.
It would then be possible run some command to transfer the output of a certain app to your current display server.
When the user is done with the app, the app should return to the original display server.

All of this would work without ever having to close or restart the app.

Sweet dreams :)

Friday, November 12, 2010

Ubuntu 10.10 Desktop Video Players

I got some time to record a demo with the Video players in Ubuntu 10.10, playing HD Video.


Thursday, November 11, 2010

Bluetooth Headset on Ubuntu

Pulse audio device choser:
sudo apt-get install paprefs paman padevchooser
Switch to PulseAudio by going into System -> Preferences -> Sound. Go into the Devices tab and change the Sound playback option for everything from Autodetect to PulseAudio Sound Server.




Use the gnome Bluetooth device wizard to pair your headset to the desktop


When the device is in pair mode you can type to learn the device unique ID
$ hcitool scan
Scanning ...
00:1F:82:28:XX:XX DR-BT101

create the file in $HOME/.asoundrc with the correct device ID:

pcm.bluetooth {
type bluetooth
device 00:1F:82:28:XX:XX
profile "auto"
}

type to test if the it's working:
mplayer -ao alsa:device=bluetooth ANY_MP3_FILE.mp3

Ubuntu Jaunty 64 bit:

You need some extra 32 bit libraries to make skype bluetooth work on Ubuntu 64 bit.

getlibs:
http://ubuntuforums.org/showthread.php?t=474790

Skype:
getlibs -p bluez
getlibs -p bluez-alsa

A more sophisticated Bluetooth Manager (not needed):

Add this source
deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main

Do not update your system with the new version of bluez from this source.

type to replace default gnome bluetooth applet with blueman type:
sudo apt-get install blueman

Disable this source.

Saturday, October 16, 2010

G2 review, rooting and Wifi tether.



I got the new G2 from TMobile (full price), It sounded like a great device when I got it according to the specs and the standard android build.

But HTC and TMobile got together to remove some functionality from the hardware and software and deceive the their customers by never document these restrictions, in the store or the documentation that comes with the device.

The bad:
- The G2 has a anti root mechanism
- The 4Gb internal storage is consumer fraud, the device might have a 4G internal storage but the user is only allowed to use 1.3Gb from the 4GB. Terrible deal for the price and similar devices like the Samsung Vibrant has 16Gb built in storage available and visible to the user, except for OS binaries. The G2 is missing 2Gb, the OS reporting tools don't even display 4Gb anywhere.
- The G2 has built in apps that you can't remove, twitter, web2go, quickoffice and photobucket. It's ok to pre-install these, but blocking the customer from removing these apps is a terrible idea.
- Tmobile changed market to have a useless TMobile tab and make it more difficult to get to your downloads.

The G2 uses a standard android build without any UI changes and I love that, but TMobile went the extra mile to block the customers that own the device from installing a new version of OS on the device or removeing stock apps. Rooting the device and removing stock apps is disabled on the G2.

With the new OTA, Tmobile WIFI calling was added to standard android 2.2 OS, at least this is a positive change for owners of a G2.

The Hardware:
- The network speed is fast, see the image below.
- The device is Fast.
- I love the keyboard.
- Camera and video is good, but it is a little slow if you need a fast picture, but the camera button and the LED flash are very useful.
- The screen is great.
- Only has one microphone, does not have sounds cancelling with multi microphones as other devices on the market, but it works fine.
- Battery lasts a day, depend on the usage some times not even a full day, but compared to my G1 is similar.
- The power button is not that great, difficult to press and seems like it might break easily, and since you have to press it multiple times per day, does not look like is going to last. It is very similar to the Nexus One.
- I love the volume button, big and usefull.
- I like the camera button.
- I like the 3 configurable buttons on the keyboard, I associated the gtalk, maps and browser to these, but you can associate any apps.
- I love the phone look and the metal back.

What would I change if I could:
- I would install a standard vanilla android build with 2.1, with root access so I can do whatever I want with my device.
- HTC should send a CD or USBKey with a software to restore the phone to the standard android OS image to save user from bloat-ware, spy-ware etc.

How to get root on the G2.
- Paul O’Brien has created an application that will provide quick one-click rooting for users. Get VISONary Paul's website.
- You might need to shut-down the G2 and remove the battery and restart to make VISIONary work, but after this it works great, and you can start blue-tooth tether.
- You can also use my backup pro or titanium backup to backup your device now that you have root on the device.

References:
http://phandroid.com/2010/10/14/visionary-gives-t-mobile-g2-users-a-one-click-root-solution/
http://code.google.com/p/android-wifi-tether/

Detailed review with pics:

http://www.phonescoop.com/articles/article.php?a=425

My speed test on the G2:



Updates after the OTA:
- I got the OTA, I've been running it for 2 weeks now. The phone is more stable, I don't have a freeze or reboot for 2 weeks.
- USB and WIFI tethering is enabled in this new OTA.
- There is also a WIFI calling feature from tmobile and it works.

The 2 things that stills annoys me is after the OTA are:
- that I can't remove the bloatware that tmobile injected in the OS. (So I might change it to another ROM later because of this, I always have to get all the updates for the bloatware to avoid the android notifications for those.
- The phone has some ROM write protection, to disallow the owners that payed the full price of the phone, to install a new version of the OS, this makes no sense and should be not be legal. But this is the mobile market we have today.

- I just wish that HTC or TMobile learned that I am the customer and the phone I payed full price is mine and I should be able do whatever I want with the phone, without having to find hacks and exploits. Give me a clean standard OS image without mods or bloatware that I can install, put it on HTC website or on TMobile web site and allow me to remove the bloatware from the phone, and only support that in case I call for support.


- The 4GB I payed for are still not available with the OTA, I can only see 1.8GB of internal storage, sad so sad :(


All that said:
This phone is amazing. Super fast, lasts me all day with WIFI/Bluetooth/GPS on. I use it to play podcasts for 6 hours or more per day and play these with stereo blue-tooth headsets. I also do normal usage of calling and web-browsing. Somehow the battery seems to last longer with the new OTA update. :)

Setting dns over TLS on ubuntu 26.04 using quad9 and

With this change future dns queries should got to Quad9 and fallback Cloudflare if Quad9 has a outage, and should go over TLS.  Change /etc/...