SKKV Software

 Home      Q&A      Support    

Applications - You can use the script to periodically check to see if your phone is currently connected to a GPRS (data)connection and disconnect that connection. You may want to do this if you want to save battery power - for example if you are not using the GPRS (data)connection at night when you got to bed and can't be asked to turn it off everytime then you can get the script to do it for you. Like wise you could create another script which switches your GPRS (data)connection on - For example in the morning before you wake up.

Variations on a theme - Replace #iffalse with #iftrue and #disconnect with #connect to get the device to connect to GPRS at the specified time in the Queue rather than disconnecting.

Conflicts - The script has been tested on a HERMES (T-Mob MDA Vario II) without any problems. IF you are using PUSH Messaging that constantly maintains a connection to your (data)connection for emails, then activesync will simply reconnect to your (data)connection after you have disconnected, so using the script would not have any benefit.

Final Note - This tutorial is for advice only, Skschema is a powerful program, remember to back-up important data and files on your device etc as you would before using any software.

How the script works...

The devices GPRS connection is checked to see if it is ON or OFF. If the devices connection is ON (TRUE) then the script follows the disconnect command and switches off the GPRS connection (this is the disconnect bit). But if the connection is OFF (FALSE) then the script jumps to the "end" label which is right at the end of the script and by-passes the disconnect commmand because it does not need to order a disconnection if there is no connection in the first place (this is the "check bit").

The Science Bit...

#r(#chkconnection) - This command simply checks the devices connection.

#p(Your GPRS Operator) - This command specifies which connection type to check for.

#r(#iffalse) - This command says if the connection is False (in other words if there is NO connection.

#p(end) - This is a label called "end".

#r(#disconnect) - This command simply disconnects the connection.

#r(#label) - This command identifies the row in the script with the label #p(end)

The Tutorial

Creating the Script...

[01] GPRS Check & Disconnect
[02] Create a new Folder on the ROM of your device and label it "Automation". It's best to keep your skschema script files on your devices memory rather than a memory card.
[03] From programs, launch Skschema by clicking on the skschema icon.
[04] Click on [Tools - Right Softkey] and select "script", then [New - Left Softkey].
[05] Tap on "Command" and then tap on the icon in the far right top corner with 3 dots (...). From the context popup, select "Check" followed by "Connections".
[06] Under Command you should now see the syntax "#chkconnection" listed.
[07] Now tap on "Parameters" and again tap on the 3 dot icon, select "Connections" followed by your GPRS connection, in this example it was "T-Mobile Internet".
[08] Under parameters you should now see the syntax with the name of your GPRS operator.
[09] Click on [OK - Left Softkey]
[10] You should now see the script code which you entered listed at the top of the screen. Click on [New - Left Softkey].
[11] Doing the same as previous, Tap on Command, the 3 dot icon, select "Control" followed by "FALSE".
[12] Now Tap on Parameters and this time enter in the text box the word "end".
[13] Click on [OK - Left Softkey] then [New - Right Softkey]. Tap on Command, the 3 dot icon, select "Device" followed by "Disconnect".
[14] Click on [OK - Left Softkey] then [New - Right Softkey}. Tap on Command, the 3 dot icon, select "Control" followed by "LABEL".
[15] Tap Parameters and enter in the text box the word "end".
[16] Now you can test your script to see if it works, but first make sure you have a GPRS connection active. Tap and hold anywhere on the center of the screen, from the context menu select "Execute".
[17] As an illustration you will see the little G above the signal icon...
[18] ... Disconnect from GPRS when you run the script.
[19] From Skschema click on the [Tools - Right Softkey] and select the "Context Menu" option.
[20] Followed by "Save to File".
[21] Browse to your "Automation" folder and name the file "check_and_disconnect"
[22] You can skip the setting the icon for the shortcut [Skip - Right Softkey].

Automation of the Script...

[23] Click on [Tools - Right Softkey] and select "Queue".
[24] The Queue screen will appear.
[25] Click on [New - Left Softkey]. Tap on Command, the 3 dot icon, select "script".
[26] Tap on Parameters, the 3 dot icon, select "Script file".
[27] Browse to the Automation folder and select the script you previously saved "check_and_disconnect.sksc".
[28] Tap on Description and enter a description (so you know what the script does) "gprs checking and disconnecting".
[29] Tap on Run at time and use the 2 arrow buttons to select a start time that you wish to run the script eg. 09:30
[30] Tap on Repeat it after... and enter a value, which is in minutes for the repeating of the script. For example 240 is 240 minutes (4hrs).
[31] Tap Repeat it N... and enter a value for how many repeats you want. For example 2 will cause the script to run initially at 9:30 followed by running again (first repeat) at 13:30 and then again at 17:30 (second repeat).
[32] Tap on days(of week) and select the days you wish the script to run eg Monday,Tuesday,Wednesday.
[33] Tap on Wait X milliseconds... and enter "1 second". This feature may come in handy when your device wakes up.
[34] Click on [OK - Left Softkey].
[35] On the main Queue screen you should see the newly schedule item.
[36] You can tap on the item and test it by selecting "Execute".
[37] Click on [Tools - Left Softkey] and select "Exit" to exit Skschema. The Scheduled Script will be placed in the Devices Notification Queue.

Removing/Disabling the script...

[01] Simply start Skschema and Tap and hold on the scheduled item and select "Delete" or "DeActivate".

(C) Chalky

Terms of Use       Privacy Policy       RSS       Copyright © 2004 - 2021 SKKV Software