Java串口编程----使用SMSLib发送手机短信

完整日志:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/F:/eclipse-3.2/workspace/javacomm/lib/slf4j-jdk14-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/F:/eclipse-3.2/workspace/javacomm/lib/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/F:/eclipse-3.2/workspace/javacomm/lib/slf4j-jcl-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
2010-2-25 22:38:54 org.smslib.helper.Logger logInfo
信息: SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
2010-2-25 22:38:54 org.smslib.helper.Logger logInfo
信息: Version: 3.4.5
2010-2-25 22:38:54 org.smslib.helper.Logger logInfo
信息: JRE Version: 1.5.0_12
2010-2-25 22:38:54 org.smslib.helper.Logger logInfo
信息: JRE Impl Version: 1.5.0_12-b04
2010-2-25 22:38:54 org.smslib.helper.Logger logInfo
信息: O/S: Windows Vista / x86 / 6.1
2010-2-25 22:38:54 org.smslib.helper.Logger logInfo
信息: GTW: SMS: Starting gateway, using Generic AT Handler.
2010-2-25 22:38:54 org.smslib.helper.Logger logInfo
信息: GTW: SMS: Opening: COM5 @9600
2010-2-25 22:39:03 org.smslib.helper.Logger logInfo
信息: GTW: SMS: GSM: Registered to foreign network (roaming).
2010-2-25 22:39:03 org.smslib.helper.Logger logInfo
信息: GTW: SMS: MEM: Storage Locations Found: 
2010-2-25 22:39:03 org.smslib.helper.Logger logWarn
警告: GTW: SMS: Retrying the detection of CNMI, modem busy?
2010-2-25 22:39:06 org.smslib.helper.Logger logWarn
警告: GTW: SMS: CNMI detection failed, proceeding with defaults.
2010-2-25 22:39:12 org.smslib.helper.Logger logWarn
警告: GTW: SMS: Callback indications were *not* set succesfully!
2010-2-25 22:39:12 org.smslib.helper.Logger logInfo
信息: GTW: SMS: Gateway started.
Modem connected.

===============================================================================
<< OutboundMessage >>
-------------------------------------------------------------------------------
 Gateway Id: SMS
 Message Id: 0
 Encoding: UCS2 (Unicode)
 Date: Thu Feb 25 22:39:12 CST 2010
 SMSC Ref No: 24
 Recipient: 158********
 Dispatch Date: Thu Feb 25 22:39:19 CST 2010
 Message Status: SENT
 Failure Cause: NO_ERROR
 Validity Period (Hours): -1
 Status Report: false
 Source / Destination Ports: -1 / -1
 Flash SMS: false
 Text: 试试不用USB而用蓝牙能不能发送
 PDU data: 8BD58BD54E0D7528005500530042800C752884DD725980FD4E0D80FD53D19001
===============================================================================

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值