Notices


Reply
Thread Tools
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#801
Originally Posted by wakkamis View Post
Haha. Thanks for pointing that out. I read them but i guess i just didnt "get" them.
I'm in the same boat...
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#802
I posted a request for a command line utility to send and receive manually as a bug. Is this the correct spot to post this?

I am working on a solution to push a request to my n900 to check for new messages whenever I receive a sms message. I just need a script that will force my device to check for new sms messages.

Is the reset_state_machine debug command only supposed to reset the countdown? When I run that command, it appears to set the countdown to ~20seconds, so there is a delay before I receive any new messages. Is there any command that will force an immediate check?

Last edited by xur17; 2010-10-09 at 06:31.
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#803
Originally Posted by xur17 View Post
I posted a request for a command line utility to send and receive manually as a bug. Is this the correct spot to post this?
Yes, I just switched the priority to Enhancement.

Originally Posted by xur17 View Post
I am working on a solution to push a request to my n900 to check for new messages whenever I receive a sms message. I just need a script that will force my device to check for new sms messages.

Is the reset_state_machine debug command only supposed to reset the countdown? When I run that command, it appears to set the countdown to ~20seconds, so there is a delay before I receive any new messages. Is there any command that will force an immediate check?
As part of the feature I could always add a new command.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#804
If I run reset_state_machine in the debug prompt, it resets the voicemail timeout to 60 seconds, even if it is disabled. The contacts and sms polling rates are kept though.

Is there a way to send a command to the debug console via dbus? I have tried using the following command, but it goes to the open window instead of the debug prompt:

Code:
run-standalone.sh dbus-send --type=method_call --dest=:1.113 /org/freedesktop/Telepathy/Connection/theonering/gv/username_40gmail_2ecom/channel6 org.freedesktop.Telepathy.Channel.Type.Text.Send uint32:0 string:"reset_state_machine textsnow"

Last edited by xur17; 2010-10-09 at 18:07.
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#805
Originally Posted by xur17 View Post
If I run reset_state_machine in the debug prompt, it resets the voicemail timeout to 60 seconds, even if it is disabled. The contacts and sms polling rates are kept though.

Is there a way to send a command to the debug console via dbus? I have tried using the following command, but it goes to the open window instead of the debug prompt:

Code:
run-standalone.sh dbus-send --type=method_call --dest=:1.113 /org/freedesktop/Telepathy/Connection/theonering/gv/username_40gmail_2ecom/channel6 org.freedesktop.Telepathy.Channel.Type.Text.Send uint32:0 string:"reset_state_machine textsnow"
TOR will shutdown if it has no active connection for about 10 seconds. So just log off, wait a while, and log on.

EDIT: And that sounds like a bug that it resets voicemail even when disabled.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#806
Can you give me any hints on how to call a function in state_machine.py from an external python script? I added the following two functions to state_machine.py:

Code:
        def update_now(self):
                self._update_now()

        def _update_now(self):
                self._onTimeout.cancel()
                self._strategy.reinitialize_state()
                self._strategy.increment_state()
                self._onTimeout.start(seconds=1)
I can call update_now from within debug_prompt.py (I added the following command that runs when "reset_state_machine textsnow" is run from the debug prompt) (see line ~80):

Code:
self._conn.session.textsStateMachine.update_now()
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#807
Originally Posted by xur17 View Post
Can you give me any hints on how to call a function in state_machine.py from an external python script? I added the following two functions to state_machine.py:

Code:
        def update_now(self):
                self._update_now()

        def _update_now(self):
                self._onTimeout.cancel()
                self._strategy.reinitialize_state()
                self._strategy.increment_state()
                self._onTimeout.start(seconds=1)
I can call update_now from within debug_prompt.py (I added the following command that runs when "reset_state_machine textsnow" is run from the debug prompt) (see line ~80):

Code:
self._conn.session.textsStateMachine.update_now()
I thought you had figured out how to run it manually:
Originally Posted by xur17 View Post
Code:
run-standalone.sh dbus-send --type=method_call --dest=:1.113 /org/freedesktop/Telepathy/Connection/theonering/gv/username_40gmail_2ecom/channel6 org.freedesktop.Telepathy.Channel.Type.Text.Send uint32:0 string:"reset_state_machine textsnow"

Originally Posted by feuxfollets View Post
Also it sets all of the polling times (contacts, voicemail, text) to -2147483648.
Note I found the bug report for this. It is filed upstream at b.fd.o (previous b.m.o bug)
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#808
Originally Posted by xur17 View Post
If I run reset_state_machine in the debug prompt, it resets the voicemail timeout to 60 seconds, even if it is disabled. The contacts and sms polling rates are kept though.
I've now fixed the issue with voicemail timeouts and it should be included in the next release.

Originally Posted by xur17 View Post
Is there a way to send a command to the debug console via dbus? I have tried using the following command, but it goes to the open window instead of the debug prompt:

Code:
run-standalone.sh dbus-send --type=method_call --dest=:1.113 /org/freedesktop/Telepathy/Connection/theonering/gv/username_40gmail_2ecom/channel6 org.freedesktop.Telepathy.Channel.Type.Text.Send uint32:0 string:"reset_state_machine textsnow"
Sorry, I glossed over this before and didn't realize you didn't have this working. I'll try to look into this.

EDIT: I've also added a command to force TOR to completely shutdown immediately so you can reload a modified version.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 

The Following User Says Thank You to epage For This Useful Post:
Posts: 356 | Thanked: 123 times | Joined on Dec 2008
#809
I had been just killing the TOR process (it restarts itself), but after it started again, it was having some issues (it would have some messages shown twice).

Thanks again for your help by the way. I have the rest of my script working, so I can notify my n900 when new text messages arrive.

I just need to get TOR to check for new text messages via a command, and the script will be ready to go.

Last edited by xur17; 2010-10-12 at 00:39.
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#810
Originally Posted by xur17 View Post
I had been just killing the TOR process (it restarts itself), but after it started again, it was having some issues (it would have some messages shown twice).

Thanks again for your help by the way. I have the rest of my script working, so I can notify my n900 when new text messages arrive.

I just need to get TOR to check for new text messages via a command, and the script will be ready to go.
So in addition to quit and fixing reset_state_machine, I've added update_now.

Sorry I'm taking so long on getting the script ready to send commands to the debug prompt. It'll probably be a couple more days.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
Reply

Tags
google voice, maemo 4, maemo 5

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:27.