手机上的J2ME SMS服务器 [英] J2ME SMS Server on mobile phone
问题描述
是否可以在移动设备上使用j2me应用程序来充当"SMS网关",该网关将处理传入的消息,通过GPRS在数据库上进行查询并回复用户?
Is it possible to have a j2me app on a mobile to act as a "SMS gateway" that will handle incommming messages, do a query on a database via GPRS and reply the user back?
推荐答案
在所有支持JSR 120的J2ME手机(即大多数手机)上,这都是完全可能的.但是,正如Wonil所说,您不能仅处理任何传入的SMS消息.它必须是发送到您的应用正在监听的端口号上的SMS(如Wonil所述,使用服务器连接).
This is entirely possible on any J2ME handset that supports JSR 120 (i.e.: most of them). However as Wonil said, you can't just process ANY incoming SMS message. It has to be an SMS sent to a port number on which your app is listening (using a server connection as Wonil explained).
除非该应用程序已签名(因为发送SMS和网络访问权限通常需要确认),否则它不会是自动的.
It wouldn't be automatic unless the app was signed (as confirmation is generally required for sending SMS and network access).
另一种方法是使用USB电缆/蓝牙/IR将手机连接到PC,使用手机作为调制解调器打开串行连接,并编写程序以使用AT + CGML收听新的SMS,如此处.这将允许处理任何传入的SMS(不需要端口号),并且没有任何烦人的确认提示.
Another approach is to tether your phone to a PC using a USB cable/bluetooth/IR, open a serial connection using the phone as a modem, and write a program to listen for new SMSs using AT+CGML as described here. This would allow ANY incoming SMS to be processed (no port number required), and without any annoying confirmation prompts.
HTH
这篇关于手机上的J2ME SMS服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!