Welcome![Sign In][Sign Up]
Location:
Search - sms pdu java

Search list

[SMSSerial_SMS

Description: This serial client in JAVA allows sending, reading and writing of SMS via a serial COM port. The tool uses the PDU SMS format. IRDA drivers are included. The functionality can be implemented into applications for remote alerting or SMS authentification. -This serial client in Java allows sending, reading and writing of SMS via a serial COM port. The tool uses the PDU SMS format. IRDA drivers ar e included. The functionality can be implement ed into applications for remote alerting or SMS authentification.
Platform: | Size: 267890 | Author: firmament | Hits:

[J2MESMS扩展配置.rar

Description:

1、将jre文件夹复制到你本机所在的JDK下覆盖掉全部jre文件夹

2、将lib文件夹复制到你项目所在的lib,添加对应lib


import org.smslib.IOutboundMessageNotification;
import org.smslib.Library;
import org.smslib.MessageEncodings;
import org.smslib.MessageProtocols;
import org.smslib.OutboundMessage;
import org.smslib.Service;
import org.smslib.modem.SerialModemGateway;
import java.util.List;


public class SendSms {
    public SendSms() {
    }


    public void sendSMS(String[] phoneNumber) throws Exception {
        Service srv;
        OutboundMessage msg;

        OutboundNotification outboundNotification = new OutboundNotification();

        srv = new Service();
        SerialModemGateway gateway = new SerialModemGateway("modem.com1",
                "COM1", 9600, null, null);
        gateway.setInbound(true);
        gateway.setOutbound(true);
        gateway.setSimPin("0000");
        gateway.setOutboundNotification(outboundNotification);
        gateway.setProtocol(MessageProtocols.PDU);
        srv.addGateway(gateway);

        try {
            srv.startService();

            for (int i = 0; i < phoneNumber.length; i++) {
                msg = new OutboundMessage(phoneNumber[i], "您有会议待处理,请登陆查看!");
                msg.setEncoding(MessageEncodings.ENCUCS2);
                srv.sendMessage(msg);

            }

        } finally {
            srv.stopService();
        }
    }

    public class OutboundNotification implements IOutboundMessageNotification {
        public void process(String gatewayId, OutboundMessage msg) {
            System.out.println("Outbound handler called from Gateway: " +
                               gatewayId);
            System.out.println(msg);
        }
    }


    public static void main(String args[]) {
        SendSms app = new SendSms();
        try {
            app.doIt();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
 


Platform: | Size: 1040178 | Author: idhuanghao | Hits:

[SMSSerial_SMS

Description: This serial client in JAVA allows sending, reading and writing of SMS via a serial COM port. The tool uses the PDU SMS format. IRDA drivers are included. The functionality can be implemented into applications for remote alerting or SMS authentification. -This serial client in Java allows sending, reading and writing of SMS via a serial COM port. The tool uses the PDU SMS format. IRDA drivers ar e included. The functionality can be implement ed into applications for remote alerting or SMS authentification.
Platform: | Size: 267264 | Author: | Hits:

[JSP/Javasmslib-java

Description: 基于java开发的一套短信应用框架,包括了串口参数设置,text和pdu编码,线程调度和服务接口-Developed a set of java-based SMS application framework, including the serial port parameter settings, text and PDU encoding, thread scheduling and service interface
Platform: | Size: 985088 | Author: ziyoung | Hits:

[CommunicationJAVASMS

Description: JAVA短信群发,java串口通信(利用PDU方式进行短信群发) -JAVA SMS group sending, java serial communication (using the PDU way Short Message), java serial communication (using the PDU way Short Message)
Platform: | Size: 19379200 | Author: 牛凯 | Hits:

[JSP/JavaPDU-encoding-and-decoding

Description: 短信收发PDU encoding and decoding-Send and receive SMS PDU encoding and decoding
Platform: | Size: 2048 | Author: zchangz | Hits:

[SMSSMS

Description: 一个用Java实现的信息源码,实现PDU编码,数据库访问,收发等功能-messages application including encode ,database access, sending or receive info etc.
Platform: | Size: 815104 | Author: bac | Hits:

CodeBus www.codebus.net