USB Communication - Windows Mobile Development and Hacking General

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?

Related

Can you access folders on PC through Activesync?

Hi,
From my PDA I can access the internet over the USB connection by having pass through on activesync set to the internet on the PC.
I would like to be able to access shared folders on my PC from my PDA over the USB connection. Is this possible. If it has to go over activesync that's ok.
BTW: My PDA is a Magician.
Thanks,
Stekke.
Z2 PocketLan
Best way is through 3rd Party software Z2 PocketLan, will even create shortcuts. Will work over wifi, BT, Activesync etc as use it at home to stream music to PDA
the new total commander is also good
totalcommander explicitely states in the faq that over USB through active sync is not supported.
I've tried pocketlance but can't get it to connect.
Other suggestions?

Q: How to browse the Wizard over Wifi network from XP PC

Hi,
Can anyone tell me if it possible to browse my wifi connected Wizard (O2 mini S - latest O2 ROM) from my PC...
Ie i would like to be able to open window to my documents on my phone on my PC to copy file etc...
Thanks in advance!
Yes, but you will need some third party software, such as Resco Explorer, to 'map' the folders you want to access across the network.
Thanks for your quick reply, however i meant if/how is it possible to browse the files on the wizard from the PC over wifi network, not the other way around.
Cheers
lo thought i would try helping.
if you downgrade your active sync on your pc 2 or 3 releases it supports syncing via wifi.... the newer ones it was disabled on for some daft reason.
it may be enabled on the new beta version i dunno.
anyway if your pc was synced to it you certainly can view the my documents folder. also by bluetooth in any version of active sync, just need a bluetooth dongle for ur comp.
hopw that helps
I don't think you can downgrade with WM5, I believe that you need Active Sync 4.1 and above.
I can't think of a way to browse the PPC on a wireless network which is a good thing for security.
hi, have you tried pocket controller? you can control your ppc from the pc via wifi.
tbito said:
hi, have you tried pocket controller? you can control your ppc from the pc via wifi.
Click to expand...
Click to collapse
Excellent, thankyou for pointing me in this direction, it does exactley what i want (and a bit more!)
Cheers,
Bachy
use activesync when your connected via usb? you can browse the files

how to start a program on a PC from the PDA

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?

ActiveSync issues

My 8525 has a Schaps ROM on it, and it will not sync with ActiveSync.
The phone will charge from USB, but when plugged in I get no error, no event or anything that the PC has noticed a device has been connected.
I have tried multiple USB cables, mulitple USB ports, multiple PCs, uninstalled and reinstalled ActiveSync 4.5.
I also have the settings for Advanced Network Features in the USB to PC settings unchecked.
Any ideas?
Did you check you connection settings in AS 4.5 as per attached, specifically ALLOW USB CONNECTIONS? Also, Windows Firewall or your AV may block the TCP ports used by AS4.5 (if using the advanced network stuff - RNDIS).
On the phone side, if your partnership with the PC was already created, Did you try sync via Bluetooth? Does it work? You can also try WM5Storage or Cardexport just to test the USB port is working.
I havent tried those programs you were referring to, are the free?
From Windows Firewall I manually set all of the UDP and TCP ports to be allowed as well as all of the executables needed for ActiveSync.
I have also tried using all of the COM settings from the connection settings within ActiveSync and it is still a no go.
Aside from this I am thinking it may be a hardware issue...
Are you using XP or Vista? There are extra things you need to do to sync properly with vista. do a search on the forum.
Cheers...
ultramag69 said:
Are you using XP or Vista? There are extra things you need to do to sync properly with vista. do a search on the forum.
Cheers...
Click to expand...
Click to collapse
Also with vista after syncing you will not notice contacts or address book being copied from your device. It only syncs any files. Please correct me if i am wrong.
When i was using xp, after a sync all my contacts will be copied inside the contacts in my outlook in the pc but now in vista, even after it informs a successful sync I dont see any contacts getting copied into the outlook. Then in some forums and google I have seen people mention that the new mobile device center for vista doesnt support the contacts and calendar sync...tell me i am correct pls
Sorry sany, Can't tell what I don't know. I use XP (microsoft would have to pay me to use Vista). I just read about all the problems syncing with vista. I believe theres a fix floating around the forum but don't know anymore than that.
Cheers...
Hi Vasichko,
I'm assuming you are working with XP or lower (not Vista). Try this:
goto:"File>Connection Settings" in Activsync and make sure "Allow USB Connection is set. Then reconnect your device. If that doesn't work:
goto "Settings>Connection>USB to PC>Extended Network Functions Activated" on you Hermes and uncheck the box. Perform a soft reset and try to sync. if that doesn't work try:
http://toril.ru/pda/akrndisadd.exe This program makes sure your device knows what to do when the USB is connected.
If that doesn't work I'm out of guesses.
Cheers
DB
Im running Windows XP.
With this program, do I run this from my laptop or on the phone?
datas_brother said:
Hi Vasichko,
I'm assuming you are working with XP or lower (not Vista). Try this:
goto:"File>Connection Settings" in Activsync and make sure "Allow USB Connection is set. Then reconnect your device. If that doesn't work:
goto "Settings>Connection>USB to PC>Extended Network Functions Activated" on you Hermes and uncheck the box. Perform a soft reset and try to sync. if that doesn't work try:
http://toril.ru/pda/akrndisadd.exe This program makes sure your device knows what to do when the USB is connected.
If that doesn't work I'm out of guesses.
Cheers
DB
Click to expand...
Click to collapse
"File>Connection Settings" in Activsync and make sure "Allow USB Connection is set. Then reconnect your device - Activesync (PC)
"Settings>Connection>USB to PC>Extended Network Functions Activated" on you Hermes and uncheck the box. Perform a soft reset and try to sync - hermes (PHONE)
Hi that prog will only run on the PDA.
Cheers
DB
It comes up and says True and that it.
datas_brother said:
Hi that prog will only run on the PDA.
Cheers
DB
Click to expand...
Click to collapse
Did you also try the ActiveSync troubleshoot Utility? Is in the same folder as ActiveSync, called astu.exe.
Vasichko said:
It comes up and says True and that it.
Click to expand...
Click to collapse
That's correct. If it says true, then it worked. If that hasn't solved the problem and you've done the rest above then I would try re-installing the OS via SD. Check the wiki for instructions.
Cheers
DB
Ok so I have reinstalled with a new ROM from the SD card and it still will not notice that I have plugged the 8525 into my PCs.
I can use the OEM headseat without issues and it charges fine.
Anyone know what's going on?
Hello Vasichko:
1. Did you try running the Astu.exe program in the ActiveSync folder? What was the result?
2. Did you manage to transfer files to/from the PC with Cardexport or WM5Storage? If so, then your hardware is OK.
3. Could you find and attach the following file from your PC:
C:\Documents and Settings\YOUR USER NAME OR PROFILE NAME\Local Settings\Temp\WCESCOMM.LOG Let's look at that and go from there.
4. It could be an IP address issue...but you did uncheck the Advanced Network Functionality in the settings menu...right?
PS,
Are you using the original USB Cable? Can you try another cable?
With ASTU.exe it tells me that I must connect the device to troubleshoot and it doesnt find any other issues.
In the WCESCOMM.LOG it has the following:
06/30/2008 12:26:06.504 - Windows CE Services (4.5.0) Communication Logging.
06/30/2008 12:26:06.504 - IrUtil: IrDA socket cannot be created, error code 10093.
06/30/2008 12:26:06.504 - Windows CE Services Communication started.
06/30/2008 12:26:06.770 - Cannot find a default comm port - Disabling serial connections...
06/30/2008 12:26:06.770 - Started desktop passthru TCP2UDP component
06/30/2008 12:26:06.770 - Connection: Prep for a new socket connection.
06/30/2008 12:27:46.832 - Start scan for serial devices.
06/30/2008 12:27:46.832 - COM1 - Not installed. 2
06/30/2008 12:27:46.832 - COM2 - Not installed. 2
06/30/2008 12:27:46.848 - COM3 - Available.
06/30/2008 12:27:46.848 - IrUtil: IrDA socket cannot be created, error code 10047.
06/30/2008 12:27:46.848 - End scan for serial devices.
dgaud007 said:
Hello Vasichko:
1. Did you try running the Astu.exe program in the ActiveSync folder? What was the result?
2. Did you manage to transfer files to/from the PC with Cardexport or WM5Storage? If so, then your hardware is OK.
3. Could you find and attach the following file from your PC:
C:\Documents and Settings\YOUR USER NAME OR PROFILE NAME\Local Settings\Temp\WCESCOMM.LOG Let's look at that and go from there.
4. It could be an IP address issue...but you did uncheck the Advanced Network Functionality in the settings menu...right?
PS,
Are you using the original USB Cable? Can you try another cable?
Click to expand...
Click to collapse
Slightly off-topic but I think it can sync and exchange with Outlook but I think it needs to be Outlook 2007 or later. As to getting Sync with Vista I had no trouble at all on Vista HP x64.
To the OP it sounds like something simple as others have already suggested and is most likely just a matter of correcting USB settings.
I have turned off the advanced functionality in USB to PC settings.
I have tried 4 different USB cables and uninstalled and reinstalled ActiveSync on 2 different laptops that it used to sync with.
Look in the Device Manager with phone connected and see if it has the HTC USB Hub at the end, like mine. If it's not there... then:
1. Disconnect any other USB device in the computer and reboot the PC.
2. Check your CMOS setup (when rebooting) to see if they are enabled. Some CMOS chips have an option for disabling COM / USB ports.
3. Make sure Activesync is running on the phone.
4. Look into \Program Files\Microsoft Activesync\Drivers. It should like like my folder - pic attached.
You haven't said if WM5Storage or Cardexport work (i.e. Windows detects a mass storage device).
What is WM5Storage or Cardexport? Do these run on the 8525?
I dont see a HTC USB Hub when connecting the HTC.
dgaud007 said:
Look in the Device Manager with phone connected and see if it has the HTC USB Hub at the end, like mine. If it's not there... then:
1. Disconnect any other USB device in the computer and reboot the PC.
2. Check your CMOS setup (when rebooting) to see if they are enabled. Some CMOS chips have an option for disabling COM / USB ports.
3. Make sure Activesync is running on the phone.
4. Look into \Program Files\Microsoft Activesync\Drivers. It should like like my folder - pic attached.
You haven't said if WM5Storage or Cardexport work (i.e. Windows detects a mass storage device).
Click to expand...
Click to collapse

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