ExTAPI:lineRegister 在线路注册之前返回

发布于 2024-09-12 11:57:20 字数 638 浏览 1 评论 0原文

我正在使用扩展 TAPI 函数 lineRegister 来注册 GPRS 无线电使用 lineSetEquipmentState 打开无线电电源后的网络。在网络实际注册之前,lineRegister 函数已成功返回。

异步 lineRegister 函数首先返回一个正数,表示函数成功。然后,我等待来自 TAPI 的 LINE_REPLY 回调。 “dwParam1”值与 lineRegister 的初始返回值匹配,表明这是对我之前的 lineRegister 调用的异步回复。 dwParam2 值设置为 0,MSDN 表示这表示函数成功。

然后我尝试连接到 GPRS 网络,但连接失败。我已添加代码以在 lineRegister 的 LINE_REPLY 中调用 lineGetRegisterStatus,并且我可以确认无线电尚未注册。当网络注册成功并可用时,有什么方法可以收到通知吗?当有异步 API 和通知系统可用时,必须轮询网络注册似乎很糟糕。

I am using the extended TAPI function lineRegister to register a GPRS radio on the network after powering the radio on using lineSetEquipmentState. The lineRegister function is returning successfully before the network is actually registered.

The asynchronous lineRegister function first returns a positive number indicating the function succeeded. I then wait for a LINE_REPLY callback from TAPI. The 'dwParam1' value matches the initial return value of lineRegister, indicating this is the asynchronous reply to my previous lineRegister call. The dwParam2 value is set to 0, which MSDN says indicates the function succeeded.

I then try to connect to the GPRS network but the connection fails. I have added code to call lineGetRegisterStatus in the LINE_REPLY for lineRegister, and I can confirm the radio is not yet registered. Is there any way to be notified when the network is successfully registered and usable? It seems broken to have to poll for network registration when there is an asynchronous API and notification system available.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幽梦紫曦~ 2024-09-19 11:57:20

TAPI 实施的质量很大程度上取决于 OEM。您可能会发现另一台设备可以按照您期望的方式工作。但是,如果这是您希望使用您的应用程序的应用程序,那么您可能需要进行轮询。

-保罗H

The quality of the TAPI implementation is very OEM dependent. You may find another device where it works the way you expect. But, if this is the one that you expect your application will be used on, then you will probably have to poll.

-PaulH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文