jSMSServer Application
***
*** PLEASE READ THE "CHANGES.TXT" FILE FOR LATEST PROGRAM AND CONFIGURATION CHANGES / ADDITIONS.
***
Welcome!
jSMSServer is a graphical user interface application, which uses jSMSEngine API package, and may be used for sending and receiving SMS messages from your mobile phone or GSM modem. Although given as a sample app, it can be used right from the start as a quick way to start your SMS processing, if you don't want to mess around with the API. It is highly configurable, and have two interfaces by which you can communicate with it and send or receive messages without a single line of code. On the other hand, you may use it as a point of reference for your own implementations.
*** General Information ***
jSMSServer will act as a standalone application which will periodically query your GSM device to get new incoming messages, and will dispatch messages outgoing messages given to it by you. To do something usefull with jSMSServer, you must have a way to get and process the incoming messages that jSMSServer reads from the GSM device, and to pass jSMSServer with messages you need to be dispatched. There are two ways to do that:
1) jSMSServer has a database (jdbc) link. Once enabled, jSMSServer will put all received messages in a table called "incoming" and will dispatch all messages found in table "outgoing".
2) jSMSServer can read from and write to XML files. If the XML link is enabled, all incoming messages read by your GSM device will be put in a directory as XML files, whereas another directory will be scanned for XML files (put there by you) and will dispatch them.
*** Installation ***
The installation is straight-forward. Copy the jSMSServer.jar in a directory of its own. Since jSMSServer is based on jSMSEngine API, you should download and install properly Java Communications API and Java Activation Framework. Also, take care so that "jSMSEngine.jar" (the API package) is in your classpath or "ext" directories.
jSMSServer should run without trouble.
*** Configuration ***
The configuration file is "jSMSServer.conf" (should be placed in the same directory). In this file, you may find a number of configuration parameters, which you may alter to suit your needs. These are:
general.gui: Either "yes" or "no". "Yes" enabled the graphical interface of jSMSServer. "No" forces it to run in console/text mode.
general.raw_in_log: A valid filename (incl. path) which will act as a raw log for incoming messages. May be blank.
general.raw_out_log: A valid filename (incl. path) which will act as a raw log for outgoing messages. May be blank.
phone.manufacturer: Your phone's manufacturer, e.g. Nokia, Siemens, etc.
phone.model: You phone modem, e.g. 6310i, C55, etc.
phone.interval: A number (representing seconds) which determines the time that jSMSServer sleeps between two processing cycles. Each processing cycle will query the GSM device for incoming messages, and send any messages waiting to be dispatched. Do not set this value too low, recommended values are from 15 seconds and up.
phone.delete_after_processing: One of the values "yes" and "no". A "yes" means that incoming messages will be deleted from GSM device's memory after having been read from jSMSServer. A "no" means that messages will be left in GSM device's memory, and will be re-processed on the next processing cycle.
phone.phone_book: The full path name of the XML file which contains the phonebook. May be blank.
phone.xml_in_queue: The directory which will serve as a queue for XML files representing the incoming messages received by jSMSServer. May be blank.
phone.xml_out_queue: The directory which will serve as a queue for XML files, which will be created by you. This directory will be scanned from jSMSServer, and the XML files will be sent through your GSM device.
phone.operation_mode: Should have one of the values "pdu" and "ascii". This denoted the operation mode in which jSMSServer is working. It is recommended to leave it to "pdu" value, since all devices support the PDU operation (whereas ASCII is optional and implemented in newer devices), and because some features require the PDU operation (now and in future versions where Smart Messaging will be implemented).
phone.smsc_number: The SMSC (message center) number, in international format (for example, I use +3097100000 here in Greece / COSMOTE). You may leave this setting blank. If you leave it blank, the SMSC number already stored in the device will be used. This option is used *only* when in PDU mode.
phone.message_encoding: The encoding for every outgoing messages. Each message dispatched by jSMSServer (both from XML or database links) will be forced to have this encoding. You should define it with one of the values "7bit", "8bit" or "unicode". Default is 7bit. This indication is useful only when working in PDU mode.
phone.sim_pin: The SIM PIN number of your GSM device. Optional - if you want jSMSServer to automatically log-in to your GSM device.
phone.forward_number: If set to a valid phone number, all incoming messages will be automatically forwarded to this phone.
database.enabled: One of the values "yes" and "no". A value of "yes" means that the database link is enabled.
database.type: The type of the database. Currently one of the values "sql92" and "mysql". If you are going to use a different database than the ones above, it may be necessary to review the class CDatabase.java, because it may be possible that some sql statements need re-writing.
database.url: The url of the database.
database.driver: The driver class of the database.
database.username: The username of the database. Depends on actual RDBMS implementation.
database.password: The password of the database. Depends on actual RDBMS implementation.
serial.port: The PC serial port connected to the mobile phone eg. com1.
serial.baud: The baud rate of modem interface on the phone. 19200 is a good starting value.
You may also review the conf file given with jSMSServer as an example.
*** Database Link ***
If you enable the database link (by setting all necessary database.xxx configuration values in jSMSServer.conf), jSMSServer will perform the following tasks on every processing cycle:
1) It will store every SMS message it receives from you GSM device to the table "sms_in".
2) It will query the table "sms_out" for new records, and will send the information from these records as SMS. It will also save messages sent through its main processing loop in this table.
The structure of the "sms_in" table is:
originator char(32) the originator's phone number.
message_date datetime the date/time of the SMS message.
text char(160) the actual text of the SMS message.
The "incoming" table is a "write-only" table as far as jSMSServer is concerned. You may wish to add a key field (autonumber, sequence field, etc. depending on your actual database). It is your responsibility to read this table, process its messages, and delete them if you don't need them.
The structure of the "sms_out" table is:
id number the id of the SMS message.
recipient char(32) the recipient's phone number.
text char(160) the actual text of the SMS message.
dispatch_date datetime the dispatch date.
When you want to send an SMS, just insert a record and fill in the above fields. "id" is the key of the table - it is your responsibility to care for its uniqueness. Also, remember to set "dispatch_date" to null. During each processing cycle, jSMSServer will query the "outgoing" table for rows having "dispatch_date" null, and will dispatch these messages. After sucessfull dispatch, jSMSServer will update the "dispatch_date" with the date/time of the dispatch, otherwise it will leave it blank and will try to re-dispatch it during the next processing cycle.
You may also look at the sample Foxpro database given with jSMSServer as an example.
*** XML
没有合适的资源?快使用搜索试试~ 我知道了~
sms.rar_java sms_java 短信_sms_sms java
共101个文件
html:42个
java:37个
jar:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 123 浏览量
2022-09-14
15:22:49
上传
评论
收藏 414KB RAR 举报
温馨提示
开源的手机短信开发包!包括例子程序和比较详细的文档,还有开发者的网站!
资源推荐
资源详情
资源评论
收起资源包目录
sms.rar_java sms_java 短信_sms_sms java (101个子文件)
$ 1B
$ 1B
build.bat 1KB
build.bat 251B
jSMSServer.conf 4KB
stylesheet.css 1KB
rxtxSerial.dll 75KB
inherit.gif 57B
index-all.html 85KB
CService.html 63KB
CATHandler.html 32KB
CMessage.html 29KB
COutgoingMessage.html 25KB
CPhoneBook.html 24KB
CSerialDriver.html 23KB
CPhoneBook.CParser.html 22KB
CDeviceInfo.html 21KB
constant-values.html 20KB
CIncomingMessage.html 20KB
CGSMAlphabets.html 17KB
CATHandler_SonyEricsson.html 17KB
CStatusReportMessage.html 16KB
overview-summary.html 15KB
CService.CReceiveThread.html 15KB
CPhoneBook.CPhoneBookGroupEntry.html 15KB
CATHandler_Wavecom.html 14KB
CATHandler_Siemens.html 14KB
CATHandler_Nokia.html 14KB
CPhoneBook.CPhoneBookEntry.html 14KB
CDeviceInfo.CStatistics.html 14KB
package-summary.html 12KB
jSMSEngineException.html 11KB
NotConnectedException.html 10KB
CannotDisableIndicationsException.html 10KB
CUtils.html 10KB
NoPduSupportException.html 10KB
package-tree.html 10KB
InvalidPinException.html 10KB
NoResponseException.html 10KB
AlreadyConnectedException.html 10KB
NoPinException.html 10KB
overview-tree.html 10KB
serialized-form.html 10KB
help-doc.html 9KB
CSmsMessageListener.html 9KB
deprecated-list.html 6KB
package-frame.html 4KB
allclasses-frame.html 4KB
allclasses-noframe.html 3KB
index.html 1KB
jSMSEngine.jar 62KB
jSMSServer.jar 60KB
RXTXcomm.jar 58KB
RXTXcomm.jar 58KB
CService.java 26KB
CMainWindow.java 18KB
CMainThread.java 18KB
CSettings.java 12KB
CATHandler.java 11KB
CPhoneBook.java 10KB
COutgoingMessage.java 9KB
CGSMAlphabets.java 9KB
CDatabase.java 8KB
CIncomingMessage.java 7KB
CConstants.java 7KB
CSerialDriver.java 7KB
CATHandler_SonyEricsson.java 6KB
CMessage.java 6KB
CDeviceInfo.java 5KB
ReadMessagesAsync_Old.java 4KB
ReadMessagesAsync.java 4KB
jSMSServer.java 4KB
CStatusReportMessage.java 3KB
SendMessageWithPorts.java 3KB
ReadMessages.java 3KB
SendFlashMessage.java 3KB
SendMessage.java 3KB
CUserThread.java 2KB
CUtils.java 2KB
CATHandler_Wavecom.java 2KB
CATHandler_Siemens.java 2KB
jSMSEngineException.java 2KB
CATHandler_Nokia.java 2KB
NotConnectedException.java 2KB
CannotDisableIndicationsException.java 1KB
AlreadyConnectedException.java 1KB
NoPduSupportException.java 1KB
InvalidPinException.java 1KB
NoPinException.java 1KB
CSmsMessageListener.java 1KB
NoResponseException.java 1KB
jSMSEngine.mf 94B
jSMSServer.mf 81B
package-list 16B
librxtxSerial.so 114KB
LICENSE.txt 18KB
README.txt 9KB
CHANGES.txt 5KB
www.pudn.com.txt 218B
Phonebook.xml 2KB
共 101 条
- 1
- 2
资源评论
刘良运
- 粉丝: 66
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 111111111111111111
- Screenshot_2024-04-30-21-47-24-26.jpg
- Cpp1.cpp1111111111
- 利用ERP流程操作的整个订单流程.ppt
- 最新二开版本源码博客论坛源码,UI很漂亮,可切换皮肤界面.rar
- ModStartBlog现代化个人博客系统 v5.2.0源码.rar
- 带posix库的mingw编译器
- SoraAI是一款功能强大的AI助手,由OpenAI开发,以其出色的语音识别技术、广泛的知识库和高度的人工智能特性而备受瞩目
- Thinkphp开发大气响应式个人博客青春博客网站源码.rar
- 最新PHP博客网站程序源码 ThinkPHP.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功