Parys Technografx Ltd

		PTvncGPRS Manual

Installing PTeSVNC (You can connect PTvncGPRS to Ultr@VNC instead)

PTeSVNC is Parys Technografx' VNC server and client software for the PC.
The installer file is "SetUpPTeSVNC.exe".

To install PTeSVNC on your PC you need to run "SetUpPTeSVNC.exe", the installer will install PTeSVNC to a destination of your choice.

Once installed, in order to connect to your Pocket PC you must have PTvncGPRS installed on your Pocket PC, run the PTeSVNC WinVNC server program with a valid TCP/IP connection (eg. WiFi, Bluetooth or via the Internet) available from your Pocket PC to your PC and then run PTvncGPRS on your Pocket PC.
NB. PTvncGPRS will only connect successfully to eSVNC, PTeSVNC or Ultr@VNC.

If you decide to use Ultr@VNC instead of PTeSVNC then when making changes to the connection settings from within PTvncGPRS you must select "Reconnect" or "New connection" as "Apply changes" will not work correctly.

Note that when you first run WinVNC on your PC you should supply a suitable password to allow client software (such as PTvncGPRS) to connect to your PC.


WinVNC

WinVNC is VNC server software for the PC. It allows compatible VNC client software to connect to, view (and control) your PC when it is running.

When you first run WinVNC you need to supply a password that will be required from any VNC client software trying to connect to your machine.
The configuration menu that appears when you first run the program can also be accessed any time WinVNC is running by either right-clicking on the WinVNC icon on your taskbar and selecting Properties, or by selecting Programs : PTeSVNC : Server : WinVNC User Settings from your Start menu.

The important things to note are that you can set WinVNC to allow a client to connect and view your PC but without having remote control of your PC's mouse and keyboard, you may also disable the PC's own mouse and keyboard allowing ONLY remote control. The remove wallpaper option will do exactly that when any connection is made, this makes transfer much faster when the PC's desktop is in view. The Update Handling settings shown are the ones I would recommend except that it's worth enabling "Poll Console Windows Only" for many uses as most Windows software will still be viewed on the remote machine.
Note that you may also disable File Transfer.
One of the features in the Advanced section allows you to enable logging of activity - this could be useful if you have problems.
To close WinVNC when it's running right-click on the WinVNC icon on your taskbar and select close from the menu.
If you wish you may set up WinVNC as a service, if you do so WinVNC will be running each time you boot up your PC. To set WinVNC as a service go to Programs : PTeSVNC : Server :  Install WinVNC Service from your Start menu (you will find the remove service here also). It is best to reboot your PC after installation.
In the advanced options there is an option to lock your PC when a client disconnects, note that if this is enabled and the PC becomes locked after disconnection then you will only be able to reconnect if WinVNC is running as a service.
Note also that a Control-Alt-Delete key combination sent from the client program will only affect the PC if WinVNC is installed as a service.
DO NOT CHANGE Initial Screen Scale if connecting to PTvncGPRS.


VNCviewer

The VNCviewer provided with PTeSVNC is the VNCviewer from eSVNC 112r2.
VNCviewer is VNC client software for the PC that allows a remote PC to connect/control another PC running the PTeSVNC WinVNC server.

As with PTvncGPRS you can control your connection settings from the options in VNCviewer.
Note that in order to configure your settings manually you must first disable "Automatically select parameters compatible with Connection Speed".
See the section about PTvncGPRS for more help regarding the connection settings.
Note also that in the VNCviewer once you have made changes you may need to select "Request screen refresh" from the menu for changes to become apparent


Installing PTvncGPRS

PTvncGPRS is Parys Technografx VNC client software for the Windows PPC Phones and Windows PPCs.  The installer file is "InstallPTvncGPRS.exe".

To install PTvncGPRS to your Pocket PC you need to connect your Pocket PC to your PC via ActiveSync and then run "InstallPTvncGPRS.exe" on your PC.

After retrieving information from your Pocket PC the installer will allow you the option of installing to the default download location (Program Files in your normal Pocket PC memory) or to select an alternative location eg. a storage card or other directory.

Simply follow the instructions to install.

Once installed, in order to connect to your PC you must have PTeSVNC installed on your PC, have the PTeSVNC WinVNC server program running and ready to accept connections, and of course a valid TCP/IP connection available from your Pocket PC to your PC.
NB. PTvncGPRS will only connect successfully to eSVNC, PTeSVNC or Ultr@VNC.

If you decide to use Ultr@VNC instead of PTeSVNC then when making changes to the connection settings from within PTvncGPRS you must select "Reconnect" or "New connection" as "Apply changes" will not work correctly.

To uninstall PTvncGPRS from your Pocket PC the best way is to re-run the installer program, select "no" when asked if you wish to install then select PTvncGPRS from the list of installed software and select "remove".


Connecting PTvncGPRS to PTeSVNC

First of all a server (eg. WinVNC from PTeSVNC) needs to be installed and running on your PC (see above) and you must have a valid TCP/IP connection from your PC to your Pocket PC (this could be WiFi, Bluetooth or a remote Internet connection).
NB. For those who need to know, the connection uses port 590x, ie. any port from 5900 to 5909 and for remote connection the port used must be available through your router/firewall.

Secondly you need to know either the network name of the server PC or it's IP address and the password that was given to WinVNC to allow connection.

Those of you with a PPC phone may choose to use a remote (GPRS) or local (WiFi/Bluetooth) connection when entering the hostname.
Note that if there is an open connection to GPRS when you run PTvncGPRS you may not be able to connect locally.

Now you can run PTvncGPRS, select remote or local, enter the host (server) name or IP address and then the password to connect to WinVNC.

Once connected you will view some or all of your PC's screen on your Pocket PC and (optionally in WinVNC) have control over the PC's mouse and keyboard from your Pocket PC plus (optionally in WinVNC) be able to transfer files between PC and PPC.

Entering the host (server) name/IP (and optional port)

When you run PTvncGPRS you will be presented with a screen to enter the host name or IP address eg. "dave" or "192.168.0.1" (if you wish you can specify a display/port as well eg. "dave:1" or "192.168.0.1:5"). To type in the text just tap your stylus on the graphical keyboard. See later for more instructions on the keyboard.
Use the joypad to choose local or remote connection (irrelevant on a non-phone PPC).
You can tap "Tab" if you wish to choose a previously saved connection.

When you've entered the host (:port) the password entry screen will appear for you to give the appropriate password.

If a host name is used rather than an IP address then the IP address found for the given name is displayed on the password screen (this gives you some idea whether your router located the correct machine or not - in some cases ours failed when we were running PTvncGPRS on the emulator - but not when running on our PPC).

After entering the password if you are running PTvncGPRS for the first time then you will enter the button definition screen.
As prompted simply press the buttons you wish to use for left mouse button, right mouse button, PTvncGPRS options and as the quick exit.
Users of the Axim 5 note that you should press the "Home" button when prompted for the button to use as quick exit and this button will actually be used to send "enter" keypresses to the sever rather than being used for quick exit - to exit the program you'll have to use the options menu instead.
All users note that file transfer mode must be exited before you can quit the program.
When viewing the Options, pressing the Options button a second time will bring up the Connection Settings menu. When viewing the Connection Settings or the Netstats pressing the Options button will remove the menu.

Once the buttons are defined (or straight after entering the password) the connecting screen will appear.

After a few seconds connection should be made and your PC's screen appear on your Pocket PC. If it takes longer than a minute or so for this to happen using Bluetooth or WiFi, or longer than 2 or 3 minutes using GPRS then tap the stylus on "Tap here to cancel" to go back and make sure you got the host(:port) and password correct.
If you're sure you have the host(:port) and password correct and have repeated the procedure two or three times without success, then exit PTvncGPRS and re-run it to try again (occasionally we found this necessary in testing on the emulator). 
Obviously when wanting a remote connection on a PPC phone via GPRS you must have GPRS available with a (preferably decent) signal.


The Options menu

When you press the Options button the Options menu will appear.

To select an option tap it once and it will be highlighted in red.
Tap the option a second time to execute the option.

Redefine buttons allows you to do exactly that.

Invert screen does as it says (for left-handed users).

Toggle Magnify toggles the optional magnifying glass at the mouse position (not available when in Zoom mode).

Toggle Keyboard toggles Keyboard mode on and off.

Toggle Keypad toggles the Keypad on and off.

Full-screen/No-Zoom/Zoom lets you set the viewing mode.

Updating All/Visible allows you to choose whether changes to areas of your PC screen not currently in view are updated immediately or not. When using Updating Visible such changes will only be updated in the visible area, this can save a lot of bandwidth. Note however that when scrolling around using Updating Visible there may be a slight delay before the view is updated.

Connection takes you to the Connection Settings.

Netstats displays your connection statistics.

Save Connection allows you to save the current connection (hostname and all settings) with a chosen name for ease of future connection. You could call the connection "Work:Bluetooth" or "Home:GPRS" etc. These connections can be recalled from the hostname entry screen by pressing Tab next time you are making a new connection.

Exit program, well, exits the program.

Exit Options simply removes the Options menu.

It's worth noting that if the Options menu is displayed then pressing the Options button will take you directly to the Connection Settings menu.


Connection Settings

When you either select Connection from the Options menu or press the Options button while the Options menu is displayed then the Connection Settings menu will appear.

Use the same method to select/change options as for the Options menu.

The first option allows you to enable or disable the "Copy Rect" feature of the transfer encodings, selecting this option will toggle between "Copy Rect Enabled" and "Copy Rect Disabled". (So far I have found no reason to disable this)

The second option ("Tight") is the main transfer encoding method. Selecting it will rotate between:

Tight (+JPG option), Zlib, Zlib Hextile, Hextile, CoRRE, RRE and Raw

The third option allows you to toggle between 8 bit RGB and 16 bit RGB transfer. 8 bit is up to twice as fast but 16 bit provides much better colours. Note that for the Tight JPG options JPG is only used when using 16 bit transfer.

The fourth option allows you to choose between Optimum Quality and Optimum Speed. Optimum speed can be up to 4 times faster but Optimum Quality is much more legible.

NOTE THAT CHANGES TO THE ABOVE SETTINGS WILL ONLY BE APPLIED AFTER YOU SELECT "APPLY CHANGES", "RECONNECT" OR "NEW CONNECTION".

Apply Changes simply applies changes you have made to the settings without disconnecting from the current host.

Reconnect actually disconnects then reconnects to the current host. This option is mainly in case you get a "hung" connection.

New Connection disconnects from the current host and lets you select a new host to connect to.

If you use Ultr@VNC instead of PTeSVNC then when making changes to the connection settings you must select "Reconnect" or "New connection" as "Apply changes" will not work correctly.

Copy File from Server will enter file transfer to copy a file from the server to the Pocket PC.

Copy File To Server will enter file transfer to copy a file from the Pocket PC to the server.

Set Min Refresh Time allows you to force delayed updates from the server ie. tells PTvncGPRS to request screen updates from the server less often. Changing the seconds to values >0 will cause screen updates from the server to be requested at a maximum one update every x seconds hence reducing the GPRS bandwidth usage. Simply tap on the "+" or "-" to change the refresh value. If using local WiFi or Bluetooth this setting should be kept at zero.

Exit Settings turns off the Connection Settings menu (as does pressing the Options button).


Netstats

When you select Netstats from the Options menu, a screen showing various statistics will appear.

This information is mainly a guide for those of you who are paying per byte downloaded.
Note that the "Total" values are those from when you ran the program, no matter how many different connections you have made.
The values for bytes received (RX) and bytes transmitted (TX) include the amounts used for file transfer, however the bytes received figure used internally to calculate the Bytes per pixel does not include bytes received during file transfer hence the Bytes per pixel values give an accurate indication of how good your current Connection Settings are at saving bandwidth (tight or zlib seem the best encodings by far from this point of view).

To remove the Netstats just tap twice, or press the Options button.


Keyboard mode

When Keyboard mode is enabled a graphical keyboard will appear.

To send key presses to your PC tap the appropriate keys on the virtual keyboard. 
Note that joypad centre is also used as the "enter" (return) key ("Home" on the Axim 5).
The layouts change appropriately when Shift, Caps lock or Accents are active. Note that the keys like shift, alt and control etc. stay pressed when you press them until you press them a second time.


Keypad mode

The keypad is available when not in keyboard mode.
It provides a convenient way of sending the available keypresses to the server, ie. Escape, 0 to 9, ".", "-" and Return.
Just tap the appropriate key on the keypad to send a press to the server.


Zoom mode

You can view your PC screen in "Full-screen" mode or with "No-Zoom" or with "Zoom".


Magnify

Magnify is available in full-screen or no-zoom viewing modes (ie. not in zoom mode). When enabled the area under the current stylus location is displayed in magnified form.
If no buttons are pressed the area will remain magnified for 5 seconds.


File Transfer

From the Connection menu you can opt to copy a file to or from the server.
Transferring a file is basically the same in either direction.

If you select "Copy file from server" then you will first see a screen showing the available drives on your PC.
To choose a drive simply tap the appropriate line once to highlight it, again to select it and you will then view a directory of the drive:

You can now browse to find the file you are looking for - also tap once to highlight an option, again to select it.

Selecting a folder (in yellow) will take you to that folder's directory, selecting a file will take you to the next stage of file transfer.
As you will see you can go back to parent and possibly to next page and previous page.

Once you've selected a file you'll now be able to browse for a destination.
Browse in the same way until you have the required target, don't worry if you wish to edit the destination filename, you can do that at the next stage.
Tap twice on the "Save as" line to proceed to the filename edit stage:

Use the keyboard to edit the filename, then tap enter (return).
If a file of the selected name & location exists already, you will get the option to overwrite or redo the savename.
Tap "Yes" to overwrite the file, "No" to change the name.

When you have entered the destination filename, file transfer will begin.
During file transfer you can abort by tapping on "Cancel".

When transfer is complete simply tap on "Continue".


Encodings/Settings

To reduce the bandwidth used,  ie. to reduce the amount of, and time taken for, data transfer, PTvncGPRS has several encoding options available.
In the order of appearance these are:
Tight(+JPG), Zlib, Zlib Hextile, Hextile, CoRRE, RRE and Raw.
The best option in terms of bandwidth is Tight and the worst is Raw, however the best option in terms of server (PC) overhead is Raw and the worst is Tight so it's down to your requirements as to which option is best for you (actually we found Tight and Zlib to be almost equivalent except when in 16-bit mode the higher JPG compression options in Tight reduce bandwidth noticeably).
Also to reduce bandwidth usage you can opt for using 8-bit RGB mode, which will result in some colour banding whereas the colours should look pretty much correct in 16-bit RGB mode. For those of you requiring low bandwidth usage 8-bit is probably the best option as generally speaking it doesn't reduce the legibility of text but requires up to 50% less data transfer, however 16-bit using "Tight + JPG low quality" uses roughly the same bandwidth as "8-bit" "Tight" and may be preferable.
Further PTvncGPRS also allows you to set the amount of server scaling (resizing of the screen) to be used before data transfer:
Optimum speed will request server scaling to the SMALLEST size between 320*240 and 640*512.
Optimum quality will request server scaling to the LARGEST size between 320*240 and 640*512.
This results in the following scaling and screen transfer sizes:

PC resolution	Optimum Speed   Optimum Quality
   640*480	  (2) 320*240         (1) 640*480
   800*600	  (2) 400*300         (2) 400*300
  1024*768	  (3) 341*259         (2) 512*384
  1280*960               (4) 320*240         (2) 640*480
  1280*1024             (4) 320*256         (2) 640*512
  1600*1200             (5) 320*240         (3) 533*400

When viewing in full-screen mode the PC screen is resampled to 320*240 from the transfer size, in "no-zoom" mode the pixels are displayed at the transfer size and in Zoom mode they are displayed at transfer size*2. Magnify magnifies the pixels *2 in either full-screen or no-zoom modes.

Whether it be for legibility, speed of transfer, or overhead on the PC it is best to have your PC in a resolution of 640*480 pixels with the PTvncS settings optimised for speed.
If you require one of the larger resolutions on your PC and are having trouble reading the text on your Pocket PC one option is to change your PC settings to use large fonts, either the PC standard option of 125% or a custom font size larger than this.
Note also that you will find the colour scheme used on your PC will have a direct bearing on the legibility of the PC text on your Pocket PC - some colour combinations resample far better than others.


Support

If connecting remotely and your local network uses a router then you must ensure that the appropriate UDP port (5900 to 5909) is being routed to the local IP address of the PC running WinVNC and that the router firewall is allowing data transfer through that port in both directions.
On the PC itself you need to ensure that any software firewall is also allowing data transfer in both directions through the appropriate port (5900 to 5909).

At the time of writing you can check your PC is open for connection remotely when running WinVNC (and get your remote IP address) by going here on your PC:

http://www.gotomyvnc.com/

Alternatively (at the time of writing) you can get your remote IP address here:

http://www.whatismyip.com/

or here:

http://www.showmyip.com/

In rare cases your Internet Service Provider may be blocking UDP ports, if you think everything is set up correctly and "gotomyvnc" reports no connections open then contact your ISP.

If you require technical support for PTvncGPRS go to:

http://www.parystec.demon.co.uk/pt_vnc_gprs.htm

for the latest info, FAQs etc.

or E-mail support@parystec.demon.co.uk

PTvncS is available for the Window's Smartphones.
