gpt4 book ai didi

c++ - Windows Mobile WAP 唤醒

转载 作者:太空宇宙 更新时间:2023-11-04 12:28:38 28 4
gpt4 key购买 nike

谁能给我指导,或者更好的 - 一个工作示例,在 Windows Mobile 中使用“WAP 唤醒”功能?

我正在尝试按照 http://msdn.microsoft.com/en-us/library/aa919167.aspx 的指示进行操作.不幸的是,他们只给出了解决方案的开始。

第 1 步:注册您的应用程序以监听来自特定端口的 SMS 消息。

第 2 步:向该端口发送 SMS 消息

第三步:应用打开并向应用监听类窗口发送消息

第 4 步:接收该消息并冒泡一个事件

我对第 2-4 步一无所知。这些步骤是否正确?

最佳答案

我自己没有做过,但我在类似的领域工作过。

有两种发送 WAP 短信的方法(基本上是二进制 Wireless Datagram Protocol (WDP) 格式的二进制短信)

  1. 通过电话使用 WAP api .
  2. 使用 SMS 网关。

SMS 网关允许您从 Internet 发送 SMS 消息。如果您在 Web 上搜索 SMS 网关,您应该会找到很多。选择一个支持发送二进制 SMS 消息的。

作为 WDP header 的一部分,您必须指定一个端口号,这是他们继续使用的端口号。

在发送短信之前,您需要与您的手机提供商核实他们是否支持二进制短信,并非所有手机网络都支持。

其余部分几乎都在 Microsoft Example 之后:

  1. Create the registry setting.
  2. A WDP SMS messages arrives at the WDP layer on port WDPport1.
  3. The WDP layer checks if the application is registered with the WDP layer on Port Number WDPport1. In this case, no application is registered.
  4. The application checks the registry to determine if any application is registered for WDP messages on Port WDPport1., The application finds that Chess.exe application is registered.
  5. If Chess.exe is loaded, the application launches Chess.exe.
  6. The chess application opens "ListenerWnd" Listener Window Class.
  7. "ListenerWnd" receives a message with DWORD value
  8. Chess.exe recognizes this message as an indication that a WDP message is awaiting on port WDPport1 and registers WDPport1 as it's own with the WDP layer.
  9. Chess.exe receives and processes the awaiting WDP message.
  10. Chess.exe closes.

关于c++ - Windows Mobile WAP 唤醒,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/415879/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com