qgvdial does it's best to not update anything unless the user explicitly asks.
But then there is the issue of timely updates about new messages and calls - missed, received or otherwise. Google doesn't have a push api for this.
Why don't I just poll for it? Because polling means waking up every few seconds, opening a socket, sending a request, getting the data, parsing it, and then more times than not, figuring out that there is nothing new. This absolutely kills the battery life on the phone.
What I needed was a robust push mechanism.
This is where a qgvdial user - xur17 - suggested Mosquitto - a publish/subscribe message broker.
I've ported Mosquitto to Maemo and Diablo and added functionality to qgvdial to subscribe to a mosquitto topic to get inbox and contacts updates.
So now, qgvdial gets updates by just waiting (select) on a socket. No polling involved on the qgvdial side. All the heavy lifting and polling done on the publisher side, which resides in a place where there isn't any constraint on battery life or CPU consumption.
The publisher is a bunch of python scripts that continuously poll for changes in the GV inbox. On any changes, it publishes the change to the mosquitto server on the predefined topic.
This publisher can run on anything that has python. So any regular desktop OS would do. But I had another constraint: I wanted to energy footprint of the device to be as low as possible. What low power device do I have that I can afford to run continuously? I have 2: My DD-WRT router and the n810.
Right now, I've only run the scripts on the n810 and it turns out that this works pretty well to give me all the updates I wanted.
Pretty soon I'll attempt to make it all run even on the router so that I can really truly have only one device that is "always on", doesn't burn a lot of energy and still is a powerful enough machine to do everything I want.
Thursday, March 3, 2011
Tuesday, February 22, 2011
Minor modifications and new build: 0.2.387
-> By user request: Inbox selector is saved and retrieved.
-> Inbox entries are now on two lines and slightly smaller font. Big enough to click, small enough to fit.
-> Tab order in settings page - not applicable to Maemo5, but oh so useful on desktop builds.
-> Windows setup is now an MSI.
-> About page has a link to the changelog.
-> Inbox entries are now on two lines and slightly smaller font. Big enough to click, small enough to fit.
-> Tab order in settings page - not applicable to Maemo5, but oh so useful on desktop builds.
-> Windows setup is now an MSI.
-> About page has a link to the changelog.
Monday, February 21, 2011
Stop timing out Mr Hurricane!
timing out before the web page loads is a drag. Especially if we're on a slow connection. qgvdial 0.2.385 is the beginning of what will be a real fix to this. Right now all I have introduced is a way for the caller to change timeouts and set the timeout for the initial login to 60 seconds.
Later releases will try larger timeouts starting from 45 seconds.
That's what I was thinking about when I realized, this is not a browser. I should leave these sort of settings to the user - accessible from "Advanced Settings".
Until I get to that, get your fix from the download list.
Later releases will try larger timeouts starting from 45 seconds.
That's what I was thinking about when I realized, this is not a browser. I should leave these sort of settings to the user - accessible from "Advanced Settings".
Until I get to that, get your fix from the download list.
Saturday, February 19, 2011
Starbucks effect
Starbucks uses a captive portal for its free wifi.
This means that the wifi device gets an IP address, and data transfer does happen, but it is not what qgvdial wants.
The symptom is that when qgvdial attempts to make phone calls (or send texts or listen to voicemail), it fails to get the data in a timely manner.
0.2.383 released today is the result of about 2 hours of Starbucks wifi and sugary drinks. Hopefully it takes care of the Starbucks effect as reasonably as possible.
This means that the wifi device gets an IP address, and data transfer does happen, but it is not what qgvdial wants.
The symptom is that when qgvdial attempts to make phone calls (or send texts or listen to voicemail), it fails to get the data in a timely manner.
0.2.383 released today is the result of about 2 hours of Starbucks wifi and sugary drinks. Hopefully it takes care of the Starbucks effect as reasonably as possible.
Frosty piss
Excuse the childish subject but this is the first post in this blog, and I wanted to legitimately use this meme.
This blog is to follow the exploits of me as I continue to enhance and improve qgvdial - the Google Voice Dialer written in Qt.
The awesomeness of Qt allows qgvdial to be compiled and run on a variety of platforms.
The ones that I have managed to make it work on so far are Windows, Linux, Maemo5 and Mac OSX.
The Symbian one should have worked straight out of the box, but doesn't - I'll work on that as soon as I make qgvdial stable on the platforms that it's being used on the most: Maemo5, Linux and Windows.
Next on the agenda will be Meego.
There will be a WebOS port and hopefully soon enough an Android port as well.
At least at this point, the WebOS port seems to be easier and sooner than the Android port.
Didja notice how I excluded iOS out of this so far? You did? How astute of ya!
I'm not going there until I finish everything up to Android.
Hopefully by then the iOS port of Qt will be done and I won't have to be distracted by a lack of Qt there.
Windows Phone 7: Do not want. Cannot develop. No Qt = No go.
So in order of stuff to work on:
* Stability on Windows, Linux and Maemo5
* Symbian port
* Meego development
* WebOS
* Android
* iOS
This should keep me busy for the next few years.
This blog is to follow the exploits of me as I continue to enhance and improve qgvdial - the Google Voice Dialer written in Qt.
The awesomeness of Qt allows qgvdial to be compiled and run on a variety of platforms.
The ones that I have managed to make it work on so far are Windows, Linux, Maemo5 and Mac OSX.
The Symbian one should have worked straight out of the box, but doesn't - I'll work on that as soon as I make qgvdial stable on the platforms that it's being used on the most: Maemo5, Linux and Windows.
Next on the agenda will be Meego.
There will be a WebOS port and hopefully soon enough an Android port as well.
At least at this point, the WebOS port seems to be easier and sooner than the Android port.
Didja notice how I excluded iOS out of this so far? You did? How astute of ya!
I'm not going there until I finish everything up to Android.
Hopefully by then the iOS port of Qt will be done and I won't have to be distracted by a lack of Qt there.
Windows Phone 7: Do not want. Cannot develop. No Qt = No go.
So in order of stuff to work on:
* Stability on Windows, Linux and Maemo5
* Symbian port
* Meego development
* WebOS
* Android
* iOS
This should keep me busy for the next few years.
Subscribe to:
Posts (Atom)