ActiveSync, RAPI problems on XV6900 - Touch CDMA General

Somewhat lame description of my problem, but maybe it's good enough for someone to recognize the cause.
I have an untweaked XV6900 from Verizon (Windows Mobile 6 Professional, ROM 1.15.605.14 dated 03/10/08) . I've encountered some odd behavior when copying a 300K file (part of my home made backup system).
RAPICopy (part of RAPIUtils from Scott Seligman) has no problems with small files, but stalls completely on the big file. It has no problems with other devices I've tested (Smartphone 2002, Windows Mobile 5 Pocket PC Phone Edition, Windows Mobile 6 Professional).
Drag-and-drop via ActiveSync works for the large file, but is much slower with XV6900 than with the others.
So something about ActiveSync and RAPI seems odd on the XV6900.
I decided to write my own version of RAPICopy, and have something that works and is significantly faster than ActiveSync. An earlier version failed the same way as the program from Seligman. Clearly, I should be able to compare the two versions to see what changed, but so far I haven't seen anything different that I can change to break the new version.
Thanks for any clues.

I can add a little more info.
I still have problems with my XV6900, but not with my S730. Same "desktop" in both cases.
When copying files from "desktop" to XV6900, drag and drop to ActiveSync works pretty reliably for small files, but not for large files. When I use my own RAPI program to copy a directory tree, it stops randomly, and displays an error message saying the remote party initiated a graceful shutdown of the connection.
In my program, I tried changing the size of the buffer used in each call to CeWriteFile, with no clear difference. I tried 10KBytes and 50KBytes.
The target folders on my XV6900 are on an 8GB Kingston micro SD Card. The target folders on my XV6900 are on a 6 GB Kingston micro SD Card.
Thanks for any hints.

hmm interesting, may sound weird but what OS are you using, checked perhaps maybe there is a timeout issue causing the "shutdown" error your recieving
older phones slower known connections but newer phones may be having an issue with attempting to copy too fast or slow and causing a delay that the app cant recover or deal with and therefor causing the shutdown error
what version of activesync as well, have you tried the newest (Ill assume you have) but in a location I was working at we had WinXP syncing with haldheld mobile devices that when the company came out with a new version of the bartender/microfridge app we actually had to drop back to AS 4.0 or 4.1 rather than newer versions
something to check at least
Detroit Doug

My laptop is running Win XP with SP3. My desktop is running Win 2K with SP 4 (I _think_). Similar symptoms with both, but desktop is much slower. Part of problem with desktop may be USB port.
I'm using ActiveSync 4.5 on both laptop and desktop. Will XV6900 work with earlier versions?

And a bit more info:
It is the CeWriteFile function that fails. I then call CeGetLErrorFunc, which returns 2147014842. When I use FormatMessage to interpret that error number, I get "An existing connection was forcibly closed by the remote host".
My program can copy a few dozen files before the error occurs.
I've added a loop that tries CeWriteFile 4 times, with a 100 msec pause (I call Sleep) between tries. I _think_ this helps; my program seems to get through more files before giving up, and I display progress info that pauses once in a while.

More clues
The latest symptom is that my program reports it can't close a file it just transferred. So I now call Sleep before trying to close a file, and try 3 more times with a longer "Sleep" before giving up. My program stops much less often. So I think I'm on the right track, but am still puzzled.

Related

Solution for Activesync crash/freezing Wizard after re-Sync!

Hi. This has worked for me, and solved a massive problem. Hope it helps someone else too.
Step 1:
Ensure you are trying to fix the same problem as I was by looking at the symptoms, which were:
- HTC Wizard synchronizes OK when you plug it in the first time
- It stays in sync if you leave it plugged in
- If you unplug it and then plug it back in at any time later, XDA goes s-l-o-o-o-w and then freezes and will NOT re-sync
- If you unplug it and soft reset before reconnecting then it's fine
Essentially, the Wizard was requiring a soft reset between every connection to the USB cable, or it would crash and require a reset anyway!
These issues have been discussed in about 10 threads on this board, and on pretty much every other resource for Wizards and Pocket PC devices on the net. I was, however, totally unable to find something like this which directly addressed the problem.
Step 2:
Download a program called Dr. TCP from here: http://www.dslreports.com/drtcp
Run it to open a dialog box with loads of fields with strange techy names... no, i didn't understand it either. However, I've been searching the net for days and I found an article here: http://www.pcworld.idg.com.au/index.php/id;504222574;fp;2;fpid;1277378924 which told me how to work the numbers out...
In the bottom drop-down box, select "Windows Mobile-based Device" and enter 1492 in the box next to that. That's your maximum "MTU".
Here are the settings which work for me (from the top). If i don't mention a setting, I didn't change it!
Tcp Recieve Window: 261360
Dial Up (RAS) MTU: 1492
Path MTU Discovery: Yes
Save and Exit Dr. Tcp.
Step 3:
You need to open "Network Connections"... in XP, that's Start > Connect To > Show All Connections. I'm sure you can find it yourself. Anyway there should be an icon called "Local Area Connection (x)" with "Wireless Mobile-based Device" written in grey underneath.
Right click on that and select DISABLE. This will close your USB connection to your Wizard so those MTU settings can be applied.
Now unplug your Wizard from its cable. Here, I tried right clicking on the connection and selecting "Enable", but it just errored. So you need to unplug it.
Step 4:
Reconnect and see what happens. I am now happily disconnecting and reconnecting as many times as i like and it just keeps on synchronising itself. MAMMA MIA!
If this solves your nasty "i need to reset every time I disconnect" problems then please post here to say so. If it doesn't work then post here also, I guess. If this is a solution for you then credit for this is not mine - it's just the sum total of a lot of searching across this and other forums, websites and message boards. THANKS!
not working
These steps did not work for me.
I still have to reset the device otherwise I get this message after about 5 minutes.
"Synchronization cannot be completed successfully. Reconnect your device and try again. If the problem persists, see the Microsoft ActiveSync Troubleshooter in Microsoft ActiveSync Help on your desktop computer."
It appears to be only a problem syncing as I can still explore the device.
well...
...that's depressing. I genuinely thought that would work for other people too.
Did you read that PCWorld article I linked to? it explains how I got those numbers... they could be different for you, perhaps?
I'll keep thinking...
I did not look at the article. I'm having other issues trying to get my 2 computers synced with my mobile device http://forum.xda-developers.com/viewtopic.php?p=234189. Once I get those resolved I can try some different things.
On my home computer I am only synchronizing favorites and files and it doesn't appear to be a problem.[/url]
Oh right ok. I read your other post too, but I only have 1 PC for home and work so i can't help with that.
Has anyone else tried this?
I am no longer having the problem since I fixed my other sync issue (multiple computers issue). I had reinstalled activesync and did a hard reset on my device so maybe something else got cleared up. I am also having much better luck with the way my device is running. Before I was getting frequent slowdowns and lockups. I am a much happier customer and will be sticking with my cingular 8125. I just love all the features, but the activesync issues and slowness was starting to get to me. I'm so glad it is all behind me now and I can start to really enjoy the thing. Although I have yet to connect my bluetooth headset, that may have caused me issues too. Sorry I couldn't be more help testing this out.
I and a work college have had this problem on both our systems and found that it was being caused by Avantgo.
It would work fine and sync every time for days until we installed Avantgo.
After these we both had the symptoms you describe in the first post until we did a hard reset and re installed everything except Avantgo, it was then fine again. As a test I then reinstalled it and it started not syncing again, my college who has not reinstalled it has had no further problems.
I have now been running for 3 weeks with no problems and no Avantgo.
If you have it installed it may be worth trying it without for a wile and see if it helps.
Didn't work for me. Still no connection when plugging in for the 2nd time. MTU value changes back to blank when opening the Dr.TCP again, the other values are ok though. But thanks anyway for the hints!
Greetings,
Andreas
Didn't work for me neither...
just to check (i know this sounds daft) but you did DEFINITELY press the SAVE button in Dr TCP before you pressed the EXIT button? can't imagine why it wouldn't store the data.
aaaaaaaaanyway i guess it's not the ubersolution i thought it was
Now I thought I had this working 100% using this hack (It was on a clean install of WM5 however so this may have been why it worked). Anyhow, it stopped working again after I installed PocketWeather ... now locks up whenever I connect....
I wonder if it is 3rd part s/w causing some of the problems with AS? Is it down to the scheduled update in PocketWeather or simply hooks into the ConnectionManager / ActiveSync from apps looking to see if a network connection exists....
I think some more investigation is required ... or perhaps I will flood MS with 1000's of emails telling them how flakey their software is *(Though I think they already know that)*
Any updated? I'm having this same problem, except my device won't connect at all! Even after a reset. It connected once and that was it.
Hi Silentz,
sure, I saved the settings. I'll try the ActiveSync clean install-method and report the results. 'Hope that MS will put out an update or better version soon! Rumours out there?
Greetings,
Andreas
tried and failed...
tried the above TCP solution- Not working for me either...
Found best solution. Go try the latest imate rom. You can then plug out/in the cable as many times as you want & it'll just work fine.
Bebbo said:
Now I thought I had this working 100% using this hack (It was on a clean install of WM5 however so this may have been why it worked). Anyhow, it stopped working again after I installed PocketWeather ... now locks up whenever I connect....
I wonder if it is 3rd part s/w causing some of the problems with AS? Is it down to the scheduled update in PocketWeather or simply hooks into the ConnectionManager / ActiveSync from apps looking to see if a network connection exists....
I think some more investigation is required ... or perhaps I will flood MS with 1000's of emails telling them how flakey their software is *(Though I think they already know that)*
Click to expand...
Click to collapse
It seems to be as soon as you access the internet through the passthru connection on Activesync. So installing AvantGo/PocketWeather might explain this to a certain degree as they may be accessing the internet.
Incidentally, how could Microsoft have stuffed up so badly with Activesync? It's a tiny program but works so badly - Couldn't a third party come up with a different version of Activesync or something? I'd pay for it if it worked better than this crock!
Just for info, the latest iMate ROM (With Push Email) does indeed seem to fix this issue. Obviously it was with the WM5 side rather than anything that could be fixed on the PC side.
My Active-sink probelms disappeared since upgrade to the latest iMate ROM. Has been working like a charm with all apps and utilities installed, Tweaks2k2, Spb Pocket Plus, Pocket Informant, Worldmate Pro, etc...
told you it works
cheers
I am running the 2.08 (Qtek test) rom and have this issue since last friday. before that never had it!!
What I changed on thursday was: enable exchange server sync and use it. because push-email si no solution for me I just disabled it and dropped the association.
Then (on friday) the trouble started.
I tried DrTCP...and ended up with a broken netlogon (secure client) service on the pc. The IS solution for that was a new image . . thank you very much.
I am back on track with the pc now, but AS still slows down my device.
Are any of you having this trouble using or have used:
-Push email
-Blackberry
What is the amount of free program memory on your device? Mine is around 6MB (probably caused by Blackberry install which I cant remove). . . .

End of my tether with Activesync 4.1

Is there a credible alternative to Activesnc 4.1 anywhere ? I am absolutely sick and tired of this cr*p.
I want to be able to sync calendar, tasks, notes and files - reliably. That's all. That's not too much to ask is it?
Any ideas ?
TIA, DBo.
I'd be interested in one, been looking for a day or two but pretty new to the PPC thing and not making much progress.
Atm the only surefire way to ActiveSync seems to be, soft reset before sync, again after. It's quite a 1 shot deal, once it's synced, it won't again without a soft reset of the PDA. Note: Never needed to restart the PC used, I have tried this, no difference.
Have you read this?
http://forum.xda-developers.com/viewtopic.php?t=41955&highlight=activesync+solution
Solved that problem for me.
reading the other post now ... my activesync kills itself too i need to reboot my pc to make it work again ... apart from that it wont even synch all my contact ... it misses out random ones all the time
Can't tweak my TCP settings
I'd love to do this, but I can't go messing about with the TCP settings on my company laptop. Not if I want to keep my job.
I need a decent alternative to AS 4.1 even if that means AS 4.2
Silentz:
Yeah, tried that (amongst several hundred other things). I already use DrTCP for optimising my lans due to me using gigE with jumbo packets, so am pretty familiar with it on that ground. I also tried many other reg tweaks (on the PC not PPC) regarding networking etc. to no avail.
From all the tests and tweaks I've done I'm no further into solving this issue, which doesn't half stick in my side. PC m$ os with m$ software talking to a PPC with m$ os with m$ software, who the hell is writing this utter drivvle software?
I have concluded however that the PC / ActiveSync 4.1 side of things does not fail or lockup, regardless of reboots or no reboots or net settings used. It is the PPC's running ActiveSync which borks, stalls then grinds to a halt. I suppose it's possible m$ will fix the PC 4.1 software to not bust the PPC but I've also pretty much resided myself to needing a ROM update to fix the PPC half
This of all things annoys me, I've fixed almost everything else wrong with this phone but turning it off on a regular basis just takes the biscuit, like who does that nowadays? :roll:
Yeah that's right - it's the PPC which goes funky, but in my case it was down to the PC (i think) cramming data at it.
If you switch off (untick) all elements of the today screen it also works better, although that's not really a solution!
Microsoft do need to release ActiveSync 4.2 asap.
Yeah, tried all that, I only have MSN on today page anyways but have tried it with nothing. I only sync contacts anyway and even then only about 100 - still hangs if not the first time...
What about this?
Device Manager
Hi,
I was successful in resolving a "stubborn" active Sync, by doing the following:
Remove USB Cable to K-jam.
Open device manager.
Go to Network adapters.
Disabling adapter called: "Windows Mobile Based Device".
Re-enabling adapter called: "Windows Mobile Based Device".
Plugging USB cable back in.
Kind regards
Adrian
I was successful in resolving a "stubborn" active Sync, by doing the following
Click to expand...
Click to collapse
But for how long?
I find that AS is very unstable.
I have installed the latest ROM and still get problems with both my devices.
If I play an MP3 in Windows Media Player, AS drops the connection and I have to unplug my MDA Vario (or my XDA Mini S) and reconnect it again.
If I soft reset for any reason while still connected to AS, it drops the connection and on re-connect it hangs at 'Looking for changes' and I have to re boot the PC to get a connection again.
Other times without warning it will drop the connection and not re-connect without a re-boot of the PC
etc. etc etc.
Fortunately all my contacts, calendar and tasks are held on my PC in Thunderbird (I don't use Outlook) and I have a seperate sync programme for syncing them so I don't need to rely on AS for data sync.
But I do wish there was an alternative for enabling the connection to the PC.

WM5, CINGULAR 8125 and ActiveSync

My ActiveSync will no longer display the "Windows" folder for my Cingular 8125, so I can't add/drag and drop files directly from my computer to that late, great aspect of 'ActiveSync".
egavac said:
My ActiveSync will no longer display the "Windows" folder for my Cingular 8125, so I can't add/drag and drop files directly from my computer to that late, great aspect of 'ActiveSync".
Click to expand...
Click to collapse
what version of activesync? you might need to reinstall.. have you rebooted the computer?
reply
ActiveSync 4.5.0 (Build5059) Beta, but the same thing happened with Version 4.2.....and, yes, I rebooted several times.
have you by chance installed WM5torage? also what rom are you using? maybe you need to use the usb switch in the programs menu (one of the folders, its been a few roms ago for me, change it from serial to rndis? or maybe your rom has the USB to PC setting in the connections menu, try changing that? try a different usb cable? or maybe try a different usb port? or my last idea.. try a different computer to isolate whether its the phone or pc... after that i am out of ideas, lol
Thanks
Wel, I ran into a host of problems, and am in the process of re-installing programs after a destructive reinstall of WIN-XP. I read on the microsoft WINMOBILE-5 Site, that a firewall could be the problem, but the ordeal of gruelling through what seemed to be life disrupting barrier seemed too much. I had Verizon Internet Security Suite, and after Windows reinstall, the Windows-Folder for WinMobile5 in ActiveSync displayed, so my favored apps are almost installed. When I have time, I'll look to investigate the advisories you kindly sent. (I still don't know what caused the disappearance of Windows for WM5 in ActiveSync) Looks like I'll have 3 or 4 hours sleep if I'm lucky.
egavac said:
Wel, I ran into a host of problems, and am in the process of re-installing programs after a destructive reinstall of WIN-XP. I read on the microsoft WINMOBILE-5 Site, that a firewall could be the problem, but the ordeal of gruelling through what seemed to be life disrupting barrier seemed too much. I had Verizon Internet Security Suite, and after Windows reinstall, the Windows-Folder for WinMobile5 in ActiveSync displayed, so my favored apps are almost installed. When I have time, I'll look to investigate the advisories you kindly sent. (I still don't know what caused the disappearance of Windows for WM5 in ActiveSync) Looks like I'll have 3 or 4 hours sleep if I'm lucky.
Click to expand...
Click to collapse
i always forget to mention a damn firewall, lol

Activesync with Two PCs, troubleshooting ideas needed

I've been successfully synchronizing with two PCs for the better part of a year. Last week, with no obvious change in software (but there were some XP updates), synchronization quit working correctly. The symptom is that when I go back to a PC I have already sync'd with, activesync doesn't recognize the existing partnership and insists that I delete one of my two partnerships. If I do this, say at home, it will sync fine, but then when I reach the office, activesync doesn't recognize the existing partnership there. I am not running exchange on either machine. I run zonealarm pro with the standard fix that has worked fine, and nothing on any machine changed except standard updates.
I'm using Activesync 4.1 because when I tried 4.2 when it first came out, it didn't sync properly, and running the stock t-mobile 2.6, but without most of the extended ROM items.
Any ideas would be appreciated. I have not yet tried the hard reset with a fresh install of activesync that some advise, but did change the
HKEY_CURRENT_USER\Software\Microsoft\ActiveSync\EnableNonLocalCrossPollination
to one, which doesn't seem to have fixed the problem.
Trying 4.5
I installed activesync 4.5, first by deleting both partnerships, then stopping and uninstalling activesync on both pcs and deleting the activesync file in program files, then installing 4.5 and syncing. Now both have partnerships, and I'll know in the morning if that cured the problem.
SidebySide Errors and Fix
I looked in the Event Viewer under administrative tools, and activesync was generating a list of about twelve "red X" errors, all of the form
Dependent Assembly Microsoft.VC80.MFCLOC
called by something called SideBySide. A quick search turned up this fix:
http://support.microsoft.com/kb/923014/en-us
and the installing of the download under Resolution eliminated the errors. I don't yet know if this is connected to my activesync partnership problems.
Solution!
This seems to be a complete solution: renaming the device.
http://www.cellphonetalk.net/viewtopic-146185.html
Help!
None of these solutions has fixed the problem! Has anyone figured out a solution that doesn't involve a hard reset?
Another solution
This doesn't work for me because no mobile device shows up under network connections:
Sometimes the Windows device manager recognizes the Windows Mobile adapter but Activesync does not recognize the device. In that case, go to Start—>Control Panel—>Network Connections. Look for the Windows Mobile adapter. Right click on it and go to properties. Under “This connection uses the following items” make sure 1) TCP/IP, 2) Client for Microsoft Networks and 3) File and Printer Sharing for Microsoft Networks are selected. If not, just select them and hit OK. Activesync should recognize the device.
Frustrated
Well, I couldn't get this to work. Finally I did the hard reset. The good news is that I was at 99% functionality in under an hour; the remaining was the odd tweak I didn't have in my list, most of which I did when I had a minute otherwise unoccupied.
The hard reset seems to have fixed the problem. But what a nuisance! And still no glimmer of an idea as to what causes it. If anyone has a theory, I'm curious.

Windows Mobile Device Center Connects then Disconnects

I'm having a problems syncing my Athena with my laptop. It's a T-Mobile Ameo with PK3.0. I think the problems may have occurred when I upgraded to PK3.0 (about a month ago).
I'm running Vista - on two laptops, a Dell D610 and a D630. I can't sync by cable with either or bluetooth to the D630 (not supported on D610).
What happens (whether by cable or bluetooth) is often you can get the phone to connect and Windows Mobile Device Center says 'connecting'. Then I am connected - for about 5 seconds. Then, I am just disconnected.
I've tried everything - disabling advanced USB functionality, reinstalling WMDC numerous times, different laptops, bluetooth/usb and nothing's working. I suspect it happened when I installed PK 3.0 but I can't be sure. I've tried hard resetting and the 'clear storage' utility.
I have no memory card and no way of connecting a memory card to my laptop so I can't really reflash that way.
Has anyone come across this before? Do you have any ideas how I can fix this?
Many, many thanks in advance.
Do you have a personal firewall installed?
By your description looks as if you have one active. TrenMicro anti-virus instals one by default and I believe others do too.
Cheers,
--M
no no firewalls and have also disabled all the stuff in the Windows Firewall.
sorry, forgot to say that.
Had you synced before you flashed? If so, delete any existing partnerships and try again. Also, why AP3? AP4 is out now. I have had no probs syncing with either,
this is the whole point....
I can't install AP4 because I can't get the F*ing thing to connect to the F*ing computer. This is driving me up the wall, I have tried absolutely everything.
Most recently:
Bought memory card and adapter. Came to about £30 what a waste.
Put Tmobile WM5 NBH on SD card and installed that via boot manager.
Following that I could now sync by bluetooth.
But you can't upgrade the ROM via bluetooth, that must be by cable, and that's not working.
New error now though. WMDC shows connecting for around 5-10 seconds, and then tells me 'Error'. Well that's really useful.
Investigating the event viewer reveals error 0x80072745. Full log at bottom of post.
A google of 'wmdc 0x80072745' reveals lots of other people who have this problem.
The generally suggested solution is uninstall/reinstall WMDC. Well that doesn't work. (and a load of silly things like disabled advanced network functionality which ive obviously already tried).
Most people seem to think this problem exists because they upgraded to WMDC 6.1. In that case, how do I completely remove that from my system? Obviously not just uninstall restart etc.
No-one on the internet seems to have yet found a solution to this. All the forums end with 'I still haven't sorted this'. I really hate Microsoft. Its over 6 months since they released 6.1 and STILL NO FIX??!
And I can't even decompile the 'athena updater' EXE file to get the NBH for AP4 and put that on an SD card because according to the wiki, the SPL structure is changed for the upgrade to AP4 and obviously I can't do that by myself and presumably it is not the NBH that controls this but some other part of the .exe package.
GRRR all I want is AP4.
Please, anyone any ideas?
- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
+ <System>
<Provider Name="RapiMgr" />
<EventID Qualifiers="49152">8</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2008-05-09T18:30:17.000Z" />
<EventRecordID>4724</EventRecordID>
<Channel>Application</Channel>
<Computer>DaveD630</Computer>
<Security />
</System>
- <EventData>
<Data>communication (0x80072745)</Data>
</EventData>
</Event>
Like Confusious said, if you where syncing before you upgraded, then you will need to delete all partnerships, and then set them up again.
out of all the roms, I used 6.1 the longest, with no problems
I'd tried that as far as I could.
Problem now solved!
Thanks to this genius:
http://www.tech-archive.net/Archive...lic.pocketpc.activesync/2007-09/msg00101.html
I'm not sure if doing all these manual steps helped to delete partnerships properly. I'd tried as far as possible to do this already, by deleting c:\windows\windows mobile, but I hadn't looked at the stuff in reg edit or in c:\users\dave\appdata\.....
So perhaps that solved it. I think more it was a problem with WMDC 6.1 as a search for 'wmdc 0x80072745' in Google reveals everyone moaning about 6.1.
Anyway hopefully this will help anyone who has this problem in the future - I had tried literally everything (like you probably have so far) and this really worked.
You need to download WMDC 6.0, the link at Microsoft is:
http://www.microsoft.com/downloads/...EA-9DF9-4920-AF33-3A0E2E4E7BEB&displaylang=en
(you can check with install file you have easily, as 6.0 is 10.3mb and 6.1 is 12mb).
Thanks to everyone for their help. I love the way how when MS release an upgrade it is breaks things for so many users (but yes I'm sure things are fine for others...).
Sidenote: AP4.0 seems verrrry slow at writing text messages. I wonder if it's snapvue that's slowing it down (seeing as that was designed for the shift).

Categories

Resources