PPP Connection Problems | developer.brewmp.com PPP Connection Problems | developer.brewmp.com

Developer

PPP Connection Problems

Forums:

My company is writing a BREW internet application that we are just beginning to run on soon to be production phones on the Verizon network. We are outside of Chicago.

Two days ago the application was running fine. It got a PPP connection, talked some HTTP and established a couple of independent TCP and UDP sockets. Then, yesterday morning, when we came into work, the application was suddenly unable to get and keep a PPP session. The application had not changed at all. The phone establishes a PPP connection and then the PPP connection is INSTANTLY DROPPED! PPP is up for less than a second.

It is as if the Verizon data network booted us out for some authentication problem. Its hard to understand why it would be ok one day and not ok the next. Verizon tech support cannot guess what may have changed.

Another strange circumstance is that we have two phones with our software running on them that are currently out in San Diego. In San Diego, the same software (on the same model phone) still works. There, connections to the network are not a problem. Its as if something was done in the Chicago part of Verizon's network to make it impossible to connect here but not there. Verizon tech support insists that all 4 phones (the 2 that don't work in Chicago and the 2 that do work in San Diego) are all provisioned with identical service options.

A couple of other facts: It is possible for the built in web browser that runs on the phone to keep a connection. That is, the browser works fine so it must be doing something different than we are. Although the web browser works, the BREW shopping capability that is on the phone does not work. It tries for quite a while, trying to onnect,
and never succeeds. Eventually, it reports the following error:

"Unable to retrieve catalog. please try again later.(1287)"

Trying to guess what may be different about our program from the Web Browser that works, I tried experimenting with the BREW function call INETMGR_SetOpt(), using the 'INET_OPT_PPP_AUTH' option. However, that does not seem to help. Perhaps I am not calling the function correctly. Note also that when we run the software on the BREW emulator on a laptop that connects to the network with a Sierra Wireless card, the code works fine (even in Chicago). Do these symptoms resonate with anyone? Thanks

Jeff

We tried downloading the sample program 'Net Diagnostics' into our phone. Like my application, it is also unable to talk on the internet. It seems that there is either some characteristic of my particular subscription, or a characteristic of my cellular coverage area that precludes BREW talking over the web (even though the built in web browser can do it).
One other oddity. For about 10 seconds, while I was running Net Diagnostics, the signal strength became very weak and the phone's ROAMING indicator came on. Interestingly, during that 10 seconds, Net Diagnostics managed to proceed and make a little progress. This supports the idea that there is something strange about my normal coverage area.
I guess all we need to do is ROAM for it to work.
Does this trigger any explanations?
Note that the error code that Net Diagnostics prints when it is not roaming and gives up is -1287

We tried downloading the sample program 'Net Diagnostics' into our phone. Like my application, it is also unable to talk on the internet. It seems that there is either some characteristic of my particular subscription, or a characteristic of my cellular coverage area that precludes BREW talking over the web (even though the built in web browser can do it).
One other oddity. For about 10 seconds, while I was running Net Diagnostics, the signal strength became very weak and the phone's ROAMING indicator came on. Interestingly, during that 10 seconds, Net Diagnostics managed to proceed and make a little progress. This supports the idea that there is something strange about my normal coverage area.
I guess all we need to do is ROAM for it to work.
Does this trigger any explanations?
Note that the error code that Net Diagnostics prints when it is not roaming and gives up is -1287

Could it be that Verizon blocks network access on BREW appliations
unless they have been blessed? Is an application identifier exchanged
when a BREW application gets a PPP connection?

Could it be that Verizon blocks network access on BREW appliations
unless they have been blessed? Is an application identifier exchanged
when a BREW application gets a PPP connection?

Probably not. More like Verizon has a problem in your area or there is a problem with your service

Probably not. More like Verizon has a problem in your area or there is a problem with your service

Whenever I connect to my server, it says
got response
message code -1287
no response
What does that mean? I know my web server is up and running.
Thank you.

Whenever I connect to my server, it says
got response
message code -1287
no response
What does that mean? I know my web server is up and running.
Thank you.

#define WEB_ERROR_DNSTIMEOUT (WEB_ERROR_BASE+7) /* no response from server *

#define WEB_ERROR_DNSTIMEOUT (WEB_ERROR_BASE+7) /* no response from server *

Now, I can access my server, but downloading xml file causes error, IFILE_Write():
default:
if (ByteCount)
{
IFILE_Write(pIFile, buf, ByteCount);****
}
THe error says: "unhandled exception in BREW_Emulator.exe: 0x0000005: Access Violation". What does this mean?
I think the problem is where do I write the file to, AEE_SHARED_DIR. Where is that on the PC? Is it default C:/? How do I define it?
Thank you.

Now, I can access my server, but downloading xml file causes error, IFILE_Write():
default:
if (ByteCount)
{
IFILE_Write(pIFile, buf, ByteCount);****
}
THe error says: "unhandled exception in BREW_Emulator.exe: 0x0000005: Access Violation". What does this mean?
I think the problem is where do I write the file to, AEE_SHARED_DIR. Where is that on the PC? Is it default C:/? How do I define it?
Thank you.

It looks like your IFILE object is not instantiated. Please take a look at the ifile usage example application shipped with the 1.1 SDK.

It looks like your IFILE object is not instantiated. Please take a look at the ifile usage example application shipped with the 1.1 SDK.

Hi,
I want to read in a file that is bigger than 1MB. I know you can download in small chunks and reallocate the buffer. I did that and it still returned 1024 bytes.
1. What does _OFM_APPEND in IFILEMGR_OpenFile() does? Does it write to the end of the file using small chunks until writing is completed? How do you do that? A code snnipet is helpful!!

Hi,
I want to read in a file that is bigger than 1MB. I know you can download in small chunks and reallocate the buffer. I did that and it still returned 1024 bytes.
1. What does _OFM_APPEND in IFILEMGR_OpenFile() does? Does it write to the end of the file using small chunks until writing is completed? How do you do that? A code snnipet is helpful!!

I think you'll find people are more willing to help if you format large blocks of code with [code] tags. That's pretty tough to read without indentation.

I think you'll find people are more willing to help if you format large blocks of code with [code] tags. That's pretty tough to read without indentation.

This kind of problems are discussed many times. See my comments in the following thread
http://brewforums.qualcomm.com/showthread.php?s=&threadid=4119

This kind of problems are discussed many times. See my comments in the following thread
http://brewforums.qualcomm.com/showthread.php?s=&threadid=4119

Was there a definitive response to the original post. I am seeing similar behavior. I am in San Diego and all of my applications run fine and passed TBT. We are receiving scattered reports from various areas in the US, east coast, south, etc were it seems responses from HTTP are never being returned to the device. I have logs in the web server showing connection attempts and response sizes. Our app uses a 3-and-out approach to downloading data from the server. I can see 3 http requests spaced 20 seconds apart, with the server returning roughly 22k each time, which tells me the device is failing to receive the response.
Is this a network issue? Is a 20-second timeout on an http request considered too short?

Was there a definitive response to the original post. I am seeing similar behavior. I am in San Diego and all of my applications run fine and passed TBT. We are receiving scattered reports from various areas in the US, east coast, south, etc were it seems responses from HTTP are never being returned to the device. I have logs in the web server showing connection attempts and response sizes. Our app uses a 3-and-out approach to downloading data from the server. I can see 3 http requests spaced 20 seconds apart, with the server returning roughly 22k each time, which tells me the device is failing to receive the response.
Is this a network issue? Is a 20-second timeout on an http request considered too short?

I think the problems are different. The problem I had was in getting the basic PPP connection up. You're beyond that stage as evidenced by the fact that the web server is seeing your request. When I was having this problem, we weren't getting as far as you did. As I recall the problem that we had had something to do with authentication. Good luck!

I think the problems are different. The problem I had was in getting the basic PPP connection up. You're beyond that stage as evidenced by the fact that the web server is seeing your request. When I was having this problem, we weren't getting as far as you did. As I recall the problem that we had had something to do with authentication. Good luck!

Was JUST able to reproduce on one phone.
Looks like an ISOURCE_ERROR is being thrown when reading the response.
The app works fine on many phones, even same version of the phone works.
Seems to be somewhat network related from what I can tell... :(

Was JUST able to reproduce on one phone.
Looks like an ISOURCE_ERROR is being thrown when reading the response.
The app works fine on many phones, even same version of the phone works.
Seems to be somewhat network related from what I can tell... :(

mzichao wrote:Whenever I connect to my server, it says
got response
message code -1287
no response
What does that mean? I know my web server is up and running.
Thank you.
Hi, I met the same problem, how did you solve it?

mzichao wrote:Whenever I connect to my server, it says
got response
message code -1287
no response
What does that mean? I know my web server is up and running.
Thank you.
Hi, I met the same problem, how did you solve it?