[Q] Http 500 from a different server than requested - Windows Mobile Development and Hacking General

I have a problem with a Windows-Mobile 6.5 Device and my c# .NET CF 3.5 software.
I developed a POS-Software which worked quite fine, but since the newest firmware upgrade I randomly get HTTP500 errors when I "POST" a request to my REST-Server. (Only when connected via GPRS)
The Problem with that: They are not from my server, because they have a different content and they don't appear in the server logs.
Could it be, that the HTTP-Errors come from my network provider who is maybe proxying my requests?
The InternetExplorer seems to work fine.
Has anybody an idea where the HTTP500 errors could come from?

Having been working at a telco I can confirm that all traffic goes through their routers/servers. It's actually logical if You think about that they have to charge You for the traffic, so they must count the bytes. The fact that it only occurs when connected via GPRS and the fact that it's not from Your own server pretty much confirms it. But... I am suspecting that the latest firmware that You refer to has something to do with it. By firmware You mean ROM I guess. Maybe there is a flaw related to protocol handling in the ROM, have You tried with other ROMs as well? If You haven't, test it. It could also be a faulty ROM instead telco problem. Or it could be both. Anyway it's easier to test a different ROM than to get an able technical person on the line from Your service provider, who would be willing to dig through the massive logs of the telco servers and in the end declare that they can't do anything about it. That's the bottom line in 99,99% of the cases.
My 2 cents.

Related

TCP/IP connection over GPRS stops receiving

I'm having problems with TCP/IP "freezing" with the XDA. What happens is that the XDA stops receiving messages if there's a period of inactivity over the IP connection of about 45 seconds.
The IP connection still works, and I can send messages from the XDA in the other direction, which then "unfreezes" the waiting messages and they then appear at the XDA.
GPRS is still connected throughout.
This happens both with my IP test apps and with MS Messenger. In messenger, if I start a chat with a PC and the person on the PC doesn't type anything for 45 secs, then no further message comes in from the PC until I send a message from the XDA, whereupon I get all the messages they sent to me.
This seems, therefore, to be a bug in the XDA's socket stack.
Is this a known problem and, if so, is there a fix?
I'm running BIOS version 3.12.07 ENG, 08/13/02.
Cheers,
MikeS.
Upgrade your software.
I had the same issue and fixed it by upgrading to 3.16.13 & 3.19.
Thanks bamse - was planning on doing that as soon as I get a smart card reader.
i have various different versions of the radio stack and bios on different devices but none of them are as recent as the versions you mention. can anyone tell me where to get these versions of the bios and radio software? did they come from microsoft or from the device manufacturer, or somewhere else perhaps?
thanks,
nick.
You might want to try this:
http://www.idedata.no/support/support.asp?ID=299
The files seem to be the same for all of the Scandinavian countries (SE/DK/NO), and they work just fine for me in Sweden. I don't know if anyone tried them anywhere else, but I can't see why they wouldn't work.
Thanks!
Not speaking Norwegian I'm not sure exactly what it says, but I already have Radio version 4.08 so I'm not going to change that. Is there a list of the problems that this release fixes that you know of? (There isn't one in the zip file) I'm specifically interested in fixes to the Communication Manager and GPRS connection handling and I don't know whether these would be in the BIOS upgrade or the Radio upgrade. I know that various people have Radio v6.x and ideally i'd like to get hold of this.
Any help you can give is much appreciated,
nick.
4.08 is actually way older than 3.19 (v8 compared to v19). From what I've read on this site, the first digit in the version number is sort of an area code that will differ between different areas rather than different versions. I am not sure the 3.XX would work for you as your original is 4.XX, but I think there has been a discussion about that in another thread.
What it tells you on the Norweigan page is more or less that you have to make the upgrades in the correct order, or they will fail and leave you with a non-working device.
I think the improvements you're looking for are in the radio upgrade, but for a stable device you should probably upgrade both at the same time.
I've also heard that in the UK, the O2 version of the radio stack has been 'optimised' (a moot point, since it doesn't currently work that well) for use over the O2 GPRS network, so I'm thinking it might be wise to wait for the official 4.x release. Unfortunately they're being slow in producing the update and we've got customers complaining about the reliability of the connectivity in our software when it's all down to the flaky radio stack (!)
Thanks for your help,
nick.
Just to update everyone: it was a problem with the radio stack not allocating resource for the return leg.
The problem went away when I installed radio stack 4.20.
MikeS.
GPRS has an issue. The downlink is kept alive by sending packets in hte uplink, and vice versa. So if you are sending downlink UDP data with nothing on the uplink then the GPRS downlink will timeout after 62 seconds.
So if you are coding a video or audio streaming application please send an uplink packet now and then...
(Pay attention Microsoft WMP team)
try this program:
https://www.handango.com/PlatformPr...og=30&txtSearch=gprs&sectionId=0&platformId=2
GPRS socket
Could anyone send me a sample code creating and using socket over GPRS ??
I ve only found how to send HTP request over GPRS in the forum.
I d like to be able to send packets in UDP for a VoIP softphone.
THANK YOU FOR YOUR HELP

Using as general modem via TAPI (or RIL if need be)

I am trying (unsuccessfully so far) to develop a program that will create a data (modem) connection to a modem connected to any other phone. I then want to transfer a small file using xmodem.
I have done extensive searches and tried solutions with TAPI calls based on samples I have found. I can dial the number of my laptop from the i-mate and the laptop on my desk rings. I tell it to pickup the line (ATA) and it does, but there is no "LINECALLSTATE_CONNECTED" from the "lineInitialize" callback function on the imate. All I get is a "LINECALLSTATE_DISCONNECTED" with the type as "LINEDISCONNECTMODE_UNREACHABLE". finally the it all hangs up, no connection.
I seem to be banging my head against a wall at the moment. There must be many of you out there who have done this or very similar.
I can post source is you want that type of thing, but I dont expect anyone to debug my app, but any pointers or others experiences are appreciated. I have come across the RIL interface, but I get the impression that TAPI is the "correct" way.
Thanks in advance.
Frustrated...
Have you got data enabled on your SIM. I was also banging my head against a wall until I thought I would check that with my service provider. There are 2 data things they can enable, one is fax but there is also data. Without data enabled you will never get a sucessfull modem connection.
arrhh!.. that's is. lol. I knew it would be something silly. Ill call today.
Thanks also. God bless you.
Well sorry to say that was not the issue, I still only get repeated
"LINEDISCONNECTMODE_UNREACHABLE"
errors. I am starting to wonder if I am just getting really bad lines. Can someone who has made a modem connection from the PPC to a desktop modem please post their experience on how reliable it is and what type of connection speed it should connect at (9600? 1200? 300? any connection?).
Is their any working sample code for creating a data connection from the PPC using the TAPI?
I will be happy to publish the code to the small project I am doing so future developers have something to work from as I havent been able to find a working example so far. (when it works that is)
Any help appreciated.
Thank-you
Figured out why it would not connect, for anyone else who has similar problems. Mine was the "CSC Line Type" option in the connection settings area.
It was set to "9600 v110" and "Non-transparent".
Im in australia, I understand the v.110 is the american standard, I changed it to
"9600 v.32" and "Non-transparent" and it connects fine. (dont you hate this type of bug)
Im still unsure what the "Transparent" and "Non-transparent" are todo with, if anyone could expain it would be appreciated.
I am glad you got it working. So I guess your code must be OK. I did not set any special communication mode so I guess that my XDA must of been set correctly anyway. It seems sensible that you are supplied with a setup for the country your device is meant for. I say this is bad of the provider.
How do you get to this setting ? I can't even seem to find it on my XDA. I have got a CSD setting that has a choice of 'Analogue' or 'ISDN' mode, mine is set to 'Analogue'.
I did post some code on this forum that is cut from an application I wrote, have a look at
http://forum.xda-developers.com/viewtopic.php?p=7857&highlight=#7857
Cheers
Paul
The code actually worked almost first time when I had all the connection settings right. Ive got the XModem transfer working now also.
The "CSD Line Type" on my device (an i-mate) is an icon in the setting connection tab. In the same tab there is also
"Beam" - allows you to turn on recieve all incoming beams
"Bluetooth" - on/off/discoverable and bonding
"Connections" - normal connection setup
"GPRS Settings" - PAP/CHAP auth and class 8(4RIT)/class 10(3R2T)
not sure what the different GPRS settings are for either, but that side seems to work.
Hey to you all,
I'm trying to set up a CSD connection via RIL , AT commands and TAPI!!! You seem to have accomplished the TAPI solution which i have not started yet, could you advice me on the necessary TAPI functions to use in order to make this work ?
Any help would be very appreciated. Thanks to all.
Have you seen this link?
http://forum.xda-developers.com/viewtopic.php?t=1716&highlight=csd

odd GPRS problem

Hi,
my GPRS connection is working, it connects without any problem but when i try to navigate with PIE then I can see the message "Opening" on the left lower corner but it just stays that way for a long time and the page never gets displayed. My e-mail works fine so that means i have GPRS connection and working. If i try navigating to a WAP site some pages get displayed and some other don't. If i connect via WiFi or via activesync then i can navigate without any problems. Based on my observations I suspect a problem with the MRU (Maximum receive Unit) of the TCPiP stack but i can not find on the registry where to change that.
Hope someone can help.
I used Tweak2K2 to set it in mine. Sorry I do not know the Reg setting.
hguiraud said:
Hi,
my GPRS connection is working, it connects without any problem but when i try to navigate with PIE then I can see the message "Opening" on the left lower corner but it just stays that way for a long time and the page never gets displayed. My e-mail works fine so that means i have GPRS connection and working. If i try navigating to a WAP site some pages get displayed and some other don't. If i connect via WiFi or via activesync then i can navigate without any problems. Based on my observations I suspect a problem with the MRU (Maximum receive Unit) of the TCPiP stack but i can not find on the registry where to change that.
Hope someone can help.
Click to expand...
Click to collapse
I wonder whether your HTTP proxy port number is correct. I had same problem and I was using the advertised port number until I discovered there was another one that actually worked. I would suggest a port number but I'm O2 UK (it was `advertised as 80 but only actually worked on PIE with 8080)
Mike
You are not alone
Please check the following threads, both are related to our problem, unfortunely none of them gives a solution.
http://forum.xda-developers.com/showthread.php?t=286449
http://forum.xda-developers.com/showthread.php?t=287101
My GPRS connection doesn´t require an HTTP proxy server so Mike´s suggestion didn´t work for me. I contacted Movistar and they are not open to give support since I didn´t buy the device from them....
On the other hand, if somebody can provide the ROM reg settings and a brief instruction on how can be changed would be great
Hi Luiggi
Sorry you have not got it solved yet. I remembered your post and looked for it but did not find it - hoped you had a solution to offer - sadly not
Edit: I suppose you are certain about the proxy? I ask because mine will connect to GPRS just fine without it - BUT PIE does not unless it's set.
Mike
Maybe it is a Movistar problem
Interesting, so happens that my service provider is also Movistar; maybe they have done something different to their network settings. Any way, I was in the US recently and was able to use GPRS roaming although because the TyTN does not differentiates between GPRS and EDGE it could have been that it was using EDGE and that it why i could navigate using PIE.
The funny thing about this problem is that my e-mail works fine and my SPB whether also updates without problems, it is only the navigation with PIE that i have issues with. Based on my observations it seems to be that if the tcp packet is larger that a certain size it gets dropped by the tcp stack.
Not lucky so far
Hi Mike!
Movistar people told me that the don´t need proxy servers for the connections since they use Dynamic IP addresses (?). I´ve have tried a lot of different configurations but not luck so far, the comment posted above could be they key, now the big question is: What are the proper settings and how to modify the reg...?
Will reflashing the phone be the only solution?
Well looks like the options are narrowing down to reflashing the phone.... I'll give it a couple of days more to see if someone can give Us a hint on what to do.
hguiraud said:
Well looks like the options are narrowing down to reflashing the phone.... I'll give it a couple of days more to see if someone can give Us a hint on what to do.
Click to expand...
Click to collapse
I´m not sure about reflashing, actually I have two 8525 I paid to SIM unlock the 1st one so I still have the original ROM 1.34.505.1 and the symptoms are the same, I don´t know what ROM would be suitable to "solve" the problem in case this would be causing the partial lock.
New Finding
I´ve been trying a lot of things and I guess I´m close to the root cause. I strated from scratch with a hard reset and giving a soft reset before the 3 sec secreen of auto configuration, then I tried to set a connection in my ISP, I named it "The Internet" and when I hit the OK button I got a message saying that there was an existing connection setting under the same name!!! I couldn´t find such connection, so I´m pretty sure that the connection is hidden somewhere in the ROM and we need to disable it and create a new one or modify the reg to address a different connection consistent with our own network.... Any thoughts on this?
luiggi said:
I´ve been trying a lot of things and I guess I´m close to the root cause. I strated from scratch with a hard reset and giving a soft reset before the 3 sec secreen of auto configuration, then I tried to set a connection in my ISP, I named it "The Internet" and when I hit the OK button I got a message saying that there was an existing connection setting under the same name!!! I couldn´t find such connection, so I´m pretty sure that the connection is hidden somewhere in the ROM and we need to disable it and create a new one or modify the reg to address a different connection consistent with our own network.... Any thoughts on this?
Click to expand...
Click to collapse
I do have exactly the same problem: an MMS connection is missing but stored somewhere... Anyway to figure out where it is? To me, it's just a flag to change in order for it to re-appear in the \connection\connections tab...
MMS in Cingular
Jeff_mm said:
I do have exactly the same problem: an MMS connection is missing but stored somewhere... Anyway to figure out where it is? To me, it's just a flag to change in order for it to re-appear in the \connection\connections tab...
Click to expand...
Click to collapse
I mapped that one in Cingular, the MMS settings are self extracted from the extended ROM, if you want to get rid of it just do a hard reset and then a soft reset when the 3 sec message shows up, hope this can help you
Please tell us how you did it....
jcb_home said:
I used Tweak2K2 to set it in mine. Sorry I do not know the Reg setting.
Click to expand...
Click to collapse
Yesterday I took a look the the various reg entries and there are some which set default addresses, did you change those addresses? How did you do with Tweak2k2?
8525 on SALE
hguiraud said:
Hi,
my GPRS connection is working, it connects without any problem but when i try to navigate with PIE then I can see the message "Opening" on the left lower corner but it just stays that way for a long time and the page never gets displayed. My e-mail works fine so that means i have GPRS connection and working. If i try navigating to a WAP site some pages get displayed and some other don't. If i connect via WiFi or via activesync then i can navigate without any problems. Based on my observations I suspect a problem with the MRU (Maximum receive Unit) of the TCPiP stack but i can not find on the registry where to change that.
Hope someone can help.
Click to expand...
Click to collapse
I went thru all regs and I couldn´t find MRU or LCP (Link Control Protocol) settings, what disturbes me more is that I put my SIM in my 8125 and everything (IE. messenger, Gmail, Hotmail, etc.) works wonderful!! I think I´ll put on sale my 8525.......
More findings
I do have GPRS connection, no doubt about it. I install Tonaya Iper in my phone and the software gives the ability to trace the route from my phone to the destination, for instance The route to www.gmail.com (216.239.63.19)
is as follows (I set the time [email protected]):
1.- 10.15.14.78
2.- 10.2.4.20
3.- 10.2.4.134
4.- 200.36.174.81
5.- 200.39.31.42 (mx-mesr-rt1.telefonica-data.com.mx)
6.- 213.140.50.233 (So-2-3-1-grtmtyma2.red.telefonica-wholesale.net
7.- Request timed out
8.- 213.140.43.25
9.- 213.140.43.225
10.- 213.140.36.45
11.- 213.140.37.57
12.- 64.233.123
13.- 66.249.94.8
14.- 72.14.233.123
15.- 71.14.233.123
16.- 216.239.63.19 (bp-in-f19.google.com)
When I try to trace the communication with a 1 second timeout the phone stalls for a while in server 213.140.50.233 and makes the traceability extremely slow.
My conclusión is that when the communication reach the server 213.140.50.233 this cause a delay and my phone can not continue to the final destination probably because the pre set delay in the application exceeds its timout parameter.
Any suggestions?
Not a "Maybe" MOVISTAR is guilty for poor GPRS connections!!
hguiraud said:
Interesting, so happens that my service provider is also Movistar; maybe they have done something different to their network settings. Any way, I was in the US recently and was able to use GPRS roaming although because the TyTN does not differentiates between GPRS and EDGE it could have been that it was using EDGE and that it why i could navigate using PIE.
The funny thing about this problem is that my e-mail works fine and my SPB whether also updates without problems, it is only the navigation with PIE that i have issues with. Based on my observations it seems to be that if the tcp packet is larger that a certain size it gets dropped by the tcp stack.
Click to expand...
Click to collapse
Today I use a SIM from the other mexican cell company (telcel), I just enter APN, user name and password and in a blink my 8525 flew thru PIE, hotmail, MS messenger, Gmail and everything!!! Conclusion:Movistar system or set ups are causing all the connection problems, I´ve spent hours in the phone with their wonderful engineers and none of them has been able to explain why Movistar can´t give a decent service to 8525 users.
Using the Traceroute feature of IPer I notice a very long delay to ping the Movistar router located in Madrid (213.140.50.233), there´s where I think the problem is.
You are right Luiggi...!
One of the guys here at the office also has a Dopod 838pro (I'm ussing a HTC TyTN) but with Telcel instead of Movistar...the push e-mail capabilities and the internet surf are really very good ...but with the GPRS of Movistar I recive my e-mails very delayed in the phone and also still unable to sing in to MSN messenger.
Thanks to your post now I know the trut; I was really thinking that maybe the TyTN was the problem (I mean, the HTC branded because the Dopod was functioning just very fine) I was even thinking in return it...
regards
Hummm I suspected that....
Well I think we have (a winner) an answer (partially), I will go back to Movistar and complain, I may not get any results from it but I really have no options since because of my work I travel a lot and the roaming pricing I get with them is way better that the other alternative. The funny thing about this issue is that other HTC phones do not have it. A co worker has a Wizard and he can navigate with PIE. Maybe it would be interesting to investigate what could be the difference or why other phones can navigate and Tytn can't.
Wizard works great!
hguiraud said:
Well I think we have (a winner) an answer (partially), I will go back to Movistar and complain, I may not get any results from it but I really have no options since because of my work I travel a lot and the roaming pricing I get with them is way better that the other alternative. The funny thing about this issue is that other HTC phones do not have it. A co worker has a Wizard and he can navigate with PIE. Maybe it would be interesting to investigate what could be the difference or why other phones can navigate and Tytn can't.
Click to expand...
Click to collapse
I do my living buying and selling phones and I guess next time (tomorrow) I get a Wizard for sale I´ll spend enough time going thru the registry and routes to compare it with the Hermes. Would you guys mind to run IPer and check if the afore mentioned router or server with the problem is common for all of us?
I already wrote a not very nice letter to Movistar, probably they are shocked because normally their tournaround time for an answer is less than 24hrs and this time is taking longer. Next letter I´m going to be addressing the Director or whoever is the top dog.
How do I get/ run the aplication mentioned???
I would like to help to figure out what the problem is or help you guys to get to a solution...so, where can I find and how do I use the software luiggi is mentioning??
Is it free or with a trial version???
regards

8525 - Pocket MSN and Connectivity Problem

Ok, in addendum to the previous post I had, I had a few problems with my 8525. First was the telnet not accessing, which is since fixed. (zaTelnet CF2 + .NET Framework upgrade). Second was the Bluetooth not responding correctly. After alot of research I found that sending as a beam will after failing to find an IR beam will present you with the option of bluetooth under "Unknown connection". So, those are fixed, which leaves me with:
My pocket msn will sign in, work for about a minute and then stop recieving messages for some reason. Then it'll work again (completely skipping any messages I should have gotten) and then stop completely. I have a feeling this might be due to connectivity to the high speed network. I only say that because I can hop on the internet explorer, browse pages for about a minute and then all the rest become unlocatable. Same way with telnet.
Device Information:
Rom Version 1.34.502.1
Rom Date 09/21/06
Radio Version 1.16.00.00
Protocol Version 32.53.7018.01H
Model Number Herm100 (Hermes 100?)
Platform PocketPC
I just got my phone a few days ago, 2gb MicroSD Card is on its way, and I'm looking to make this a really stable phone, any insight or suggestions that might be able to help are extremely appriciated (Been googling for quite a while on this and can't seem to come up with a definate solution)
Also, I won't be upgrading to the WM6, I don't want to risk bricking my phone as I am too new to changing roms etc (First PDA phone... ever)
*shameless bump*
Well, since noone responded and I have gone and done everything here, it would appear that switching from wap.cingular (Note: Not wap.cingular.com) to isp.cingular (note: not isp.cingular.com) fixed the connectivity problem. Figured I'd post it here incase anyone ran into any problems with their messenger connecting/disconnecting etc etc. Also to note, you would need the pda unlimited if you're going to use isp.cingular or you'll rack up charges fast.

Wifi to GPRS/3G

I have searched this and other forums and have not seen either this problem or an answer to it. Per AT&T's suggestion, I just upgraded to the new AT&T rom version that adds PTT and seems to have big problems. My current issue is that when I first boot up and connect via GPRS/3G all works well. When I get to a wifi area and switch to wifi, again all works well. However when I leave the wifi area (or just turn off wifi) I can't get any data via GPRS/3G. The balloon comes up saying it is connecting. The little "G" and bidirectional arrows in the top left indicate it is connected. However in the browser, it just continues to grind away with "Locating" in the bottom right corner until it finally times out and puts up a screen that says that the "page cannot be displayed because the connection was lost". I open the connection manager and press and hold the "Data Connection" icon until that goes off and try again, same problem. The only way I can get GPRS/3G data connection to actually work again is to reboot. Any ideas what is going on or how this can be fixed? Forgot to add that this is an HTC 8525. Thanks.
From your description I wasn't able determine whether AT&T's suggestion was aimed at remedying the issue, or if it's something that came about with the update.
Assuming the latter, you may want to try a hard reset first and run it for a bit before loading any other apps. Failing that, reflash the ROM. I had a lot of trouble with my radio when my 8525 was new, but it mysteriously cleared up after a few radio flashes.
Thanks but still a problem
Thanks for your thoughts here. I hard reset and reflashed.
Yes the firmware is the latest one that AT&T has suggested that everyone who had the older Cingular phones upgrade to. It provides the AT&T logo, the "push to talk" feature, and some other junk. I have contacted AT&T about this and their response was to send me a new phone that they claimed had the old firmware, since they have been getting a lot of complaints about the new firmware. It didn't have the old firmware and also it's SIM card reader appears to be broken. I called HTC and they said that they too have had lots of complaints about the new firmware quirks but had nothing to offer to solve them. Anyway, the old firmware had no problem switching between wifi and CGRS so I don't think it is in the hardware. On the other hand I'm surprised that nobody else is encountering the problem from the upgrade.
I'm having the same prob. Purchase three of these phones and the other users have little technical expertise. First I set up a sync with my office PC. Then loaded the ROM update. I run MAC's @ home had difficulty connecting to my home wifi. Finally determined that the 8525 would not accept the 13 key ASCII wep password. Needed to use the HEX. So I connected. Went to work and had problems syncing with my PC. Active sync had to rediscover the device. Now I'm back home and can't connect again. My Device ID changed names upon "resyncing" and I updated the Airport Base Station with my new name. I've spent a lot of time on this issue.. Maybe I need to send em back for an iPhone!
Well I found a solution to it
This is a great forum - though somewhat hard to search through thoroughly. Anyway the solution for me was to go back to ROM 1.34. Found how to do that through flashing from the micro card at http://forum.xda-developers.com/showthread.php?t=311704&highlight=cingular+8525+rom+version and getting the production ROM version at http://wiki.xda-developers.com/index.php?pagename=Hermes_Upgrades. Back to normal - everything works fine. Just for a trial, I also downloaded ROM V2.1.1 and it works find also - but sure seems a bit large - ends up with 42.9M of storage free vs V1.34 that has 50.25. Think I'll try the the memory expansion process at http://forum.xda-developers.com/showthread.php?t=298327&highlight=want+more+storage. That seems to at least provide a more than 9 megabyte smaller MBH file but I don't know what that translates to in memory usage yet.
Suspect there is a way to fix this problem but I haven't seen anything in the forums on it.

Categories

Resources