Home > Archive > Smartphone Developer Forum > December 2005 > SMS interception & GPRS connection
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
SMS interception & GPRS connection
|
|
| djarjar 2005-12-02, 9:36 pm |
| Hi all,
I would like to implement 2 things in my application:
- interception of SMS on WME2003
- GPRS connection management (the idea is just to open a GPRS connection
with a server, to download a file and then to close the connection).
Do you know if it is possible on WME2003 SP & PPC?
If yes, can you just give me some example or some links that can help me?
Many thanks in advance for your help.
| |
| djarjar 2005-12-02, 9:36 pm |
| SmsSetMessageNotification() method seems to do what I want but I haven't
tested it.
"djarjar" wrote:
> Hi all,
>
> I would like to implement 2 things in my application:
> - interception of SMS on WME2003
> - GPRS connection management (the idea is just to open a GPRS connection
> with a server, to download a file and then to close the connection).
>
> Do you know if it is possible on WME2003 SP & PPC?
> If yes, can you just give me some example or some links that can help me?
>
> Many thanks in advance for your help.
>
| |
| djarjar 2005-12-02, 9:36 pm |
| Actually the smartphone always return the error code 0x80004005 when I am
calling SmsClearMessageNotification or SmsSetMessageNotification.
Does anyone has an example or an idea?
Thanks
"djarjar" wrote:
[color=darkred]
> SmsSetMessageNotification() method seems to do what I want but I haven't
> tested it.
>
> "djarjar" wrote:
>
| |
| Peter Foot [MVP] 2005-12-02, 9:36 pm |
| Search the SDK for IMailRuleClient, I think there is a sample app in the SDK
samples too which shows how to implement this - this is the supported way to
do SMS intercept on Windows Mobile 2003 and later.
Connection can be established via the Connection Manager APIs assuming all
the GPRS settings are already setup, you can request connection to the
Internet destination and a connection will be established if not already
available.
Peter
--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net
"djarjar" <djarjar@discussions.microsoft.com> wrote in message
news:A3270554-5674-4E4D-AE43-12C54E9DC555@microsoft.com...
> Hi all,
>
> I would like to implement 2 things in my application:
> - interception of SMS on WME2003
> - GPRS connection management (the idea is just to open a GPRS connection
> with a server, to download a file and then to close the connection).
>
> Do you know if it is possible on WME2003 SP & PPC?
> If yes, can you just give me some example or some links that can help me?
>
> Many thanks in advance for your help.
>
| |
| djarjar 2005-12-02, 9:36 pm |
| Thanks a lot Peter, I will check immediatly this sample app.
"Peter Foot [MVP]" wrote:
> Search the SDK for IMailRuleClient, I think there is a sample app in the SDK
> samples too which shows how to implement this - this is the supported way to
> do SMS intercept on Windows Mobile 2003 and later.
>
> Connection can be established via the Connection Manager APIs assuming all
> the GPRS settings are already setup, you can request connection to the
> Internet destination and a connection will be established if not already
> available.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> http://www.inthehand.com | http://www.peterfoot.net
>
> "djarjar" <djarjar@discussions.microsoft.com> wrote in message
> news:A3270554-5674-4E4D-AE43-12C54E9DC555@microsoft.com...
>
>
>
| |
| djarjar 2005-12-02, 9:36 pm |
| I succeeded in opening the GPRS connection, connecting to the server socket
but the HTTP request seems to be bad formatted because I receive the
following message from the server:
HTTP/1.1 400 Bad Request
Your browser sent a request that this server could not understand.
The request line contained invalid characters following the protocol string.
What is strange is that when I send the same request with IE, it's working.
Do you have any idea?
Here is the request I sent:
HTTPSocket.send("GET /file.txt HTTP/1.1 Host=myserver.com\r\n\r\n",
strlen("GET /file.txt HTTP/1.1 Host=myserver.com\r\n\r\n"));
The request is received by the server (I can trace it on the server side)
but I don't understand what is the problem.
Thanks in advance for your help.
"djarjar" wrote:
> Hi all,
>
> I would like to implement 2 things in my application:
> - interception of SMS on WME2003
> - GPRS connection management (the idea is just to open a GPRS connection
> with a server, to download a file and then to close the connection).
>
> Do you know if it is possible on WME2003 SP & PPC?
> If yes, can you just give me some example or some links that can help me?
>
> Many thanks in advance for your help.
>
| |
| djarjar 2005-12-02, 9:36 pm |
| I found what the problem was. There was a mistake in my HTTP request:
Correction:
GET /file.txt HTTP/1.1\r\nHost:myserver.com\r\n\r\n
"djarjar" wrote:
[color=darkred]
> I succeeded in opening the GPRS connection, connecting to the server socket
> but the HTTP request seems to be bad formatted because I receive the
> following message from the server:
> HTTP/1.1 400 Bad Request
> Your browser sent a request that this server could not understand.
> The request line contained invalid characters following the protocol string.
>
> What is strange is that when I send the same request with IE, it's working.
> Do you have any idea?
>
> Here is the request I sent:
> HTTPSocket.send("GET /file.txt HTTP/1.1 Host=myserver.com\r\n\r\n",
> strlen("GET /file.txt HTTP/1.1 Host=myserver.com\r\n\r\n"));
>
> The request is received by the server (I can trace it on the server side)
> but I don't understand what is the problem.
>
> Thanks in advance for your help.
>
>
>
>
> "djarjar" wrote:
>
|
|
|
|
|