|
2010-10-08
, 23:46
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#802
|
|
2010-10-09
, 11:55
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#803
|
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?
|
2010-10-09
, 16:49
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#804
|
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"
|
2010-10-09
, 22:02
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#805
|
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"
|
2010-10-10
, 21:25
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#806
|
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)
self._conn.session.textsStateMachine.update_now()
|
2010-10-11
, 12:47
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#807
|
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:
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: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)
Code:self._conn.session.textsStateMachine.update_now()
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"
Also it sets all of the polling times (contacts, voicemail, text) to -2147483648.
|
2010-10-11
, 13:03
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#808
|
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"
The Following User Says Thank You to epage For This Useful Post: | ||
|
2010-10-11
, 17:03
|
Posts: 356 |
Thanked: 123 times |
Joined on Dec 2008
|
#809
|
|
2010-10-13
, 03:13
|
|
Posts: 1,684 |
Thanked: 1,562 times |
Joined on Jun 2008
@ Austin, TX
|
#810
|
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.
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog