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.org2010-2-25 22:38:54 org.smslib.helper.Logger logInfo信息: Version: 3.4.52010-2-25 22:38:54 org.smslib.helper.Logger logInfo信息: JRE Version: 1.5.0_122010-2-25 22:38:54 org.smslib.helper.Logger logInfo信息: JRE Impl Version: 1.5.0_12-b042010-2-25 22:38:54 org.smslib.helper.Logger logInfo信息: O/S: Windows Vista / x86 / 6.12010-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 @96002010-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===============================================================================1 楼 sosyi 2010-08-31 这个问题解决了吗? 我也遇到了!