我需要知道如何使用 AT 命令而不是 Java Wireless Messaging API (WMA) 将 SMS 发送到特定端口。
谁有一个好的例子吗?
问候,
佩德罗
最佳答案
GSM 07.05可能就是你所追求的。从第一章开始,“范围:”
This Global System for Mobile communications Technical Specification (GTS) defines three interface protocols for control of SMS functions within a GSM mobile telephone from a remote terminal via an asynchronous interface.
[…]
Clause 3 defines a character-based interfaced based on “AT” commands (“Text Mode”). This mode is suitable for unintelligent terminals or terminal emulators, and for application software built on command structures like those defined in V.25ter. Some of the commands defined in clause 3 will also be useful for implementations of clause 2 and/or clause 4, for example enabling an indication of incoming SMS messages.
剩下的只是与串行端口(或 TCP 连接,如果是通过终端服务器连接的较大 GSM 调制解调器群)进行通信,在这种情况下,您还想看看 Java Communications API .
关于java - 如何使用 AT 命令代替 Java Wireless Messaging API (WMA),将 SMS 发送到 PORT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5512000/