how to start a program on a PC from the PDA - Windows Mobile Development and Hacking General

Hi,
I need to start a program on my PC from my XDA (connected by ActiveSync 4.5). I'm running Windows Mobile 5. How could this be done?
Regards, Gerrit

therminal services
and vnc
are 2 ways to do it

I don't want to see the PC's screen on my PDA (will be very slow anyway). I just need to be able to start a program (for example "notepad.exe") on the PC. I don't have to see the program on my PDA. It just has to run on the PC. That's all!
Regards, Gerrit

I think it is only possible to start an application on the device
from desktop with RAPI. The other way is not possible with
ActiveSync. You can write your own server that runs on the desktop
and a client on the ppc. Then send commands from pda client
to the server that starts then your application.
Houser

Hello Hauser,
Problem is that the command has to be possible both with ActiveSync (cable) and when syncing with GPRS/UMTS (wireless). Could this be done with RAPI?
Regards, Gerrit

If you use GPRS then you cannot use ActiveSync.
ActiveSync is only possible if you connect via USB.
RAPI can only be used from a desktop application to communicate with
the pocket pc, copy files, start applications on the PPC,...
So what do you want to do exactly with your app?
Houser

when connected to the pc using activesync or wifi or bluetooth PEN
make a normal network connection
and it should be transparent for the applications as they just see the connection

Hi Houser,
1. My PDA application exports lines from a PDA database to .CSV files.
2. On my PC I have to run an import & conversion program to load the exported lines into a server database
3. My PDA has to import other (new) files into the PDA's relational database
With USB syncing this works fine. I now have to run the PC's program manually. I want to control the whole process now from my PDA.
That's all...
Regards, Gerrit

If I remember right, a drive symbol is mounted on "My Computer" when Active Sync connects the device, right? So has anyone already tried to use an autorun enrty (autorun.inf like on CDs) on the PocketPC?

broekhuis said:
Hi Houser,
1. My PDA application exports lines from a PDA database to .CSV files.
2. On my PC I have to run an import & conversion program to load the exported lines into a server database
3. My PDA has to import other (new) files into the PDA's relational database
With USB syncing this works fine. I now have to run the PC's program manually. I want to control the whole process now from my PDA.
That's all...
Regards, Gerrit
Click to expand...
Click to collapse
So ok.
I would do this as follows:
1) Write a desktop application that uses ActiveSync RAPI to start you PDA export application
2) Then in your desktop app use RAPI to copy the file from PDA to desktop
3) In your desktop app start the import & conversion program with the file from the pda
4) If you want to import a file to the PDA database you can copy with RAPI to pda and then start with RAPI the pda import application
So I would not go on searching how to start a app on desktop from pda. Let the desktop application handle it.
Houser

Hi,
Problem is that a technician on location (at a customer or at home) should be able to synchronise, without going to the office. In other words: the PDA is the device that starts the communication process, not the PC! This is also what is so problematic...
Regards, Gerrit

about autorun on the pda then i dont think it will work havent made the test
but modile devices like
gmail drive
digicams
and such dont get drive letters
and i think only devices which get drive letters can use
autostart because those other devices dont seem to be "really" connected untill one click on them
you could write a service for the pc which would be listening for a network connection from the pocketpc
you could make it so it would run any applications you told it
you could give it a parth and arguments
then as soon as you got a network connections by what ever means your pda could start sending commands to the pc which it would then execute as in start programs
of cause it does require you to code a bit of c++ or .net but not tooo complex stuff if one is a programmer

Two points:
The PDA is not mounted as a drive, ActiveSync controls all access to it (even though it is integrated in the explorer) so autorun.inf can not work.
Redugar is right, for you purpose - accessing the PC directly and by remote, you need a little server app on the PC. Just use windows sockets to listen to a connection.
On the PPC side you can use the constant ppp_pear when the device is synced to get the PC address and the regular IP (I assume you have a static IP) for access via GPRS.
I did something like this a couple of years back - a server on the PC that checks a page for updates and provides them to a device when it connects and asks for them.

salling software
You might want to look into this company http://www.salling.com/Clicker/windows/scripts.php
http://www.salling.com/forums/viewforum.php?f=15&sid=45e42aa57aeb994b7b02e8ab12dc1794
Their software controls programs such as PowerPoint, WMP etc, might be a script out there that you could modify to open any program. Connects via BT and WiFi. Works real nice with my wizard with my MCE Dell running Toshiba BT Software.

About Salling Clicker..
anothersmith said:
You might want to look into this company http://www.salling.com/Clicker/windows/scripts.php
http://www.salling.com/forums/viewforum.php?f=15&sid=45e42aa57aeb994b7b02e8ab12dc1794
Their software controls programs such as PowerPoint, WMP etc, might be a script out there that you could modify to open any program. Connects via BT and WiFi. Works real nice with my wizard with my MCE Dell running Toshiba BT Software.
Click to expand...
Click to collapse
Yeah. Salling Clicker is a great software for starting or ending programs on your pc using bluetooth or wifi! the first time i installed the software,i was amazed and i played a prank on my sister.she thought that there was something wrong with the computer because it started itunes/powerdvd on its own... and i was in the other room controlling my pc..hahaha...
i've Been looking for a "script" that'll allow you to open any file/program (so are a lot of people who use salling clicker)..been following it up and As far as i know, there is still no Salling Clicker "script" that allows you to open any program on your pc.. you have to make a "script" specific to the program you want to start/control/stop.

Houser said:
If you use GPRS then you cannot use ActiveSync.
ActiveSync is only possible if you connect via USB.
RAPI can only be used from a desktop application to communicate with
the pocket pc, copy files, start applications on the PPC,...
So what do you want to do exactly with your app?
Houser
Click to expand...
Click to collapse
What?
ActiveSync can work through Bluetooth or Infrared as well.

Also, why go through all of this trouble? Run an SSH server on the PC. SSH into the PC.
C:\Documents and Settings\Administrator> start "C:\Program Files\My Program Path\My Program.exe"
Doesn't this do what you want?

Related

is there a util for this ?

Hi,
Is there a App like Remote administrator for PC
for the XDA2 ?
something where i can see on my XDA2 LCD a Screen of my PC
desktop and interact with the PC from screen taps on the XDA2.
open folders, start programs, mebe even xfer files etc etc
yeah vncview.exe
works pretty much like normal vnc between 2 computers
One I use is Pocket Controller from SOTI, very good.
I use NetOp Remote Control. Super!!
why dont u just use the terminal services client that comes built in in your xdaII and remote desktops on your xp machine??
no need for 3rd party tools
ArcticCat said:
why dont u just use the terminal services client that comes built in in your xdaII and remote desktops on your xp machine??
no need for 3rd party tools
Click to expand...
Click to collapse
Hi ArticCat, would you mind to make a step buy step explanation on that?
:?:
Thanks in advance.
This works only on Windows XP Professional, NOT on XP Home.
Works with a Wifi card and in the USB cradle, didn't test it yet with an USB BT dongle since mine is in back-order or with GPRS.
PC
- make sure you have administrative rights
- Right-click "My Computer" and choose Properties
- Choose the tab Remote
- activate Remote Desktop (Allow users to connect remotely to this computer)
- the logged on user automatically has access to the pc. If you want to add additional users, click on "Select Remote Users" and add them.
XDA
- goto Programs->Terminal Services Client.
- fill in the name or ip-address of your pc and hit "Connect"
Works fine, but I find the resolution of the XDA II to low to be practical.
Think this would work much better on a Toshiba e800 with 640x480 res.
Enjoy,
Jos
Thanks a lot for the fast response.
Looks like there is something missing, I get a "Cannot connect with current connection settings. To change your connection setings, tap setting" message.
There is not very much to configure undet the settings tab, so it's a bit frustrating.
Any ideas?
:wink:
I have no connection configured, just the XDA II in the cradle and it works.
Thanks a lot!
To my surprise it worked as you mention once I tried again. Couldn't figure out what was wrong the first time.
i used the SOTI and yes i can see the XDA screen on the PC.
But i was looking for the same util but the other way round.
i wanna see the DeskTop screen on the PDA
You need this prog: http://www.microsoft.com/windowsmobile/resources/downloads/pocketpc/remotedsp_eula.mspx
Allows you to show the display of the pda on the pc-screen and control it with mouse and keyboard.
And it's for free!
yes thats wot the UTIL dose i have now.
but im looking to..
display of the pc-screen on the PDA and control it
This is what you want....
http://www.soti.net/bot.asp?Cmd=Products
http://www.handango.com/PlatformPro...onId=0&catalog=30&txtSearch=pocket+controller
Arthur,
Let's get things clear.
You want to control the pc from the XDA?
Just use terminal services client on the XDA in combination with the remote desktop feature of Windows XP Pro, as described in the earlier postings.
Or use VNC, you can download the client for the pocket pc here:
http://www.cs.utah.edu/~midgley/wince/vnc.html
and the server for the pc here:
http://www.realvnc.com/download.html
Jos
hi jos yes you got it
one problem i have is when trying to connect via GPRS i get the msg NO MODEM AT THE OTHER END ?
Arthur, did you get this sorted in the end.
I was already running the server program on my main pc and downloaded the pocket pc vnc veiwer. Cant get it to work so far tho, is there any settings you have to change on the XDA?

USB Communication

I want the PDA to communicate directly to the PC so I can send data back and forth. I need to do this via USB.
Can anyone give me some directions?
Thanks
Selvi
Install activesync, this allows transfer of files back and forth and also synchronisation of ppc with desktop.
Yeah..i have already installed ActiveSync. Is there any API for USB communications to implement a client/server program using a USB connector to enable communication between the PDA and a desktop?
Why don't you try to search yourself? Read about RAPI on MSDN
check Softick Card Export II for Pocket PC
http://www.softick.com/pocket-pc/cardexport2/
cheers
try winsock
I've used Softik Card Export II and it works really well.
Why not use bluetooth?

ActiveSync every 5 minute

Hi, new to the form. This is a useful place!
Am with O2 Mini S, 1.5.70, AS 4.1, XP sp1, Oulook 2k3.
Does anyone notice AS runs every 5 minutes? I first tried the Add Server Source hack by WM5 Axim users, but didn't work. I couldn't find any registry entry that relates to the sync frequency.
Apart from suffering the unplug usb and wizzard freeze problem seen here. AS syncs every 5 minutes really annoys me. I need to rely on AS's tcp via bluetooth to use networking on the device and AS is heavy weight process.
So far, I have some solutions:
1. kill the wce* processes, which leaves the device connected (TCP stack still works, USB charges) but AS on the desktop says disconnected. Your wizzard's AS will still TRY to sync every 5 minutes, but it'll return quickly because the desktop ain't listening. But remember to double click AS on your desktop when you need to sync stuff again.
2. Replace the useless MS bluetooth stack with the widcomm stack taken from the Atom? Then use the PAN profile for connection. Disconnect PAN and run AS via bt from the device when needed. (But PAN on PC is not always possible as company laptops will almost certainly not allow internet connection sharing, never mind allowing you to have BT PAN enabled in the first place)
So afterall, does anyone know how to re-enable manual syncing? Some registry hack? AS 4.x is such a big step backward, I already have to disable firewall and VPN service from my company laptop when connecting, AS 3.8 was so much better when I was with an ipaq or SP3i. May be a sticky with enough post on it to get M$' to fix AS.
There are numerous threads relating to AS 4.1 and starting every x mins .... Please try to search next time....
Anyway, the simplest way is to create a dummy server entry in AS (On the mobile device) then when creating it uncheck all the "MAIL / NOTES / ..." entries in the advanced section. Once the Server has been created you can modify the server sync to set it to never.
For more info have a look through this forum for other threads on AS 4.1.
sorry if that has been talked about alot before, I suspected it. But I did a search before and couldn't find related stuff on this site, plenty of firewall/VPN stuff found which I also had a problem with...
The Add Server Source hack has been widely referenced in the dell Axim WM5 forums. As I mentioned, it didn't work for me, my ROM is very recent, as the phone is new for two weeks. I couldn't find any entry in the device registry that suggests it will run at any schedule! Although I can see peak time settings...etc but none of the scheduling options in registry.
Am really wondering if this is a problem with the specific ROM.
Yeah, I aplogise, am I bad, didn't read all your post....
Have you got any other apps that try to update regularly like Weather plugins etc?
I can agree with humps on that.
I've got a new k-jam and tried to stop AS4.1 from syncing when not connected to pc, by creating a fake server then through options setting it to manual sync.
No luck however as it still comes up in the list of running programs whenever i check :evil:
fix for constantly syncing when USB-connected
Sorry in advance if this isn't the right place for this.
I was so mad about Activesync 4.5 re-syncing during two out of every five minutes when connected via USB that I implemented a workaround that might prove useful to others as well. The result is that you can click an icon on your desktop computer and instantly change whether your handheld willl connect to its partnership for syncing or as a guest for doing other work (or just charging). Most of my data syncs wirelessly with an Exchange server anyway, and MightySync and PocketController function independent of the ActiveSync partnership. Ah, the peace ;-)
Here are the steps:
1. Change HKLM\Software\Microsoft\Windows CE Services\GuestOnly to "1".
2. Export HKCU\Software\Microsoft\Windows CE Services\Partners\[your device's partnership key] to a .reg file with name like "partnership.reg".
3. Create a batch file or script to stop WCESMGR, import the .reg file (regedit /s = silent) and restart WCESMGR. Name it like "partnership.bat".
4. Make a copy of the .reg file, edit it to *delete* the reg info (place a minus sign inside the beginning bracket of each key/subkey name), and name it like "guest.reg".
5 Create a new batch file or script to stop WCESMGR, import the guest.reg file and restart WCESMGR. Name it like "guest.bat".
6. When you execute "guest.bat," your device's partnership is deleted, and with the "GuestOnly" key enabled and no partnership found, ActiveSync will connect it as a guest without asking. After you execute "partnership.bat," ActiveSync will be ready to recognize your device on connection and sync.
7. Now, create a batch file or script that allows you to choose which .bat to execute, so you have one thing to click to go back and forth between connection types.
As will be obvious, I'm not a programmer AT ALL. I use pskill to clobber WCESMGR, and CHOICE.EXE copied form Server 2003 to choose connection type. It could be done more elegantly...but it sure works.
Only caveat: Later changing of syncing settings might require re-export of .reg key and recreate/edit of.reg-delete file.

how to transfer files from pc to ppc and vv through wifi?

im newbie
how to transfer files from pc to ppc and vv through wifi?
I use totalcommander on both the pocketpc and the pc. If memory serves me right, you would need a plugin on the PC, but you can find that on www.totalcmd.com
Oops, when you use totalcommander at the PC, you would need a activesync connection. the pocket pc version supports both activesync and wireless.
There is no way to see PPC files on PC without ActiveSync because it does not have the necessary server components, but for PPC to PC total commander is definitely the way to got (you would only need it on the PPC).
use this its great.
http://www.julien-manici.com/windows_mobile_wifi_remote_access/
u can also use MobileExplorer from Mymobiler.com.
Sure there it is possible so see the files of PPC on PC without Activesync. Use FTP Server on PPC and just browse with FTP Client through WiFi on PPC

Please help - My Mobiler and Wm5totage

Hi,
I am trying to stop using Active Sync, it seems to slow everything down tremendosly. I use My Mobiler connection via IP to run PIM on my desktop. I was looking for a way to sync files and seems wm5torage is the only application that would do it w/o AS present.
However, the moment I activate wm5torage My Mobiler loses connection. It seems wm5torage re-sets device's IP address to 0.0.0 "dummy" address. I was trying to set it back to no avail. If I de-activate wm5torage I can connect again.
So,
1) is there a way to have both programs running simultaneously ?
2) if not is there a file syncing application that doesn't need AS ?
Thanks !
I use TotalCommander and if memory serves me I have added a plugin which let the PPC show up in the network page of TC. Maybe you can also use TC on the PPC and make a wireless network connection.
i ever used wm5torage but it also didnt work, softick card export is better
try
You cant use booth programs at the same time.
Cause WM5Storage activates PDA in USB mode and simulates pendrive storage.
It disabling the connection with activesync and other programs to sync/connecting with PC.
Cheers,
Chris
Thanks all who replied.
I ended up figuring out how to connect SOTI Pocket Controller, which I also own, in TCP/IP mode - something I wasn't able to do before. So I am using its sync manager to sync files, for now (although I don't like it nearly as much as MobSync so I may end up re-enabling AS just for that).
I am using the my mobiler apps to control the phone via computer..however The gprs connection will be disconnected everytime i plug the cable data...
can anyone provide me with some help pls?

Categories

Resources