@@ -0,0 +1,1525 @@
+// SMSLib for Java v3%0A// A Java API library for sending and receiving SMS via a GSM modem%0A// or other supported gateways.%0A// Web Site: http://www.smslib.org%0A//%0A// Copyright (C) 2002-2012, Thanasis Delenikas, Athens/GREECE.%0A// SMSLib is distributed under the terms of the Apache License version 2.0%0A//%0A// Licensed under the Apache License, Version 2.0 (the %22License%22);%0A// you may not use this file except in compliance with the License.%0A// You may obtain a copy of the License at%0A//%0A// http://www.apache.org/licenses/LICENSE-2.0%0A//%0A// Unless required by applicable law or agreed to in writing, software%0A// distributed under the License is distributed on an %22AS IS%22 BASIS,%0A// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A// See the License for the specific language governing permissions and%0A// limitations under the License.%0A%0Apackage org.smslib.modem.athandler;%0A%0Aimport java.io.IOException;%0Aimport org.smslib.GatewayException;%0Aimport org.smslib.TimeoutException;%0Aimport org.smslib.modem.ModemGateway;%0A%0A/**%0A * AT Handler for Huawei E220 modems.%0A */%0A%0Apublic class ATHandler_Huawei_E220 extends ATHandler_Huawei %7B%0A%0A%09public ATHandler_Huawei_E220(ModemGateway myGateway) %7B%0A%09%09super(myGateway);%0A%09%7D%0A%0A%09@Override%0A%09public void init() throws TimeoutException, GatewayException, IOException, InterruptedException%0A%09%7B%0A%09%09super.init();%0A%09%09getModemDriver().write(%22AT+CSCA?%5Cr%22);%0A%09%09String smsc = getModemDriver().getResponse();%0A%09%09getModemDriver().write(%22AT+CSCA=%22 + smsc + %22%5Cr%22);%0A%09%09getModemDriver().getResponse();%0A%09%7D%0A%7D%0A

Add Huawei E220 AT Handler