亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sms.java

?? 手機短信編程的源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
      showText(SMSTools.getSMSText(pdu)+ "\n");      pdu = "0791947101670000040485080039004010412121854024D737DB7C0EBBCF2E69D8BD6603C865D739DD22975DE3771B747DB3CDE7B0FB0C";      showText(SMSTools.getSMSText(pdu)+ "\n");    } // if    else if (cmd.equals("read SMS")) {      showText("read and decode all SMS from SIM\n\n");      try {        Port.open();        if (Msg.test() == false) {          showText("ERROR: Can't connect to mobile phone\n");        } // if      } // try      catch (Exception e) {showText("Error: Exception in read SIM: " + e);}      try {        n = Msg.getNoOfSMS();        showText("No. of stored SMS in SIM: " + Integer.toString(n) + "\n");        index = Msg.getIndexOfSMS();          // get a index list of stored SMS        n = -1;        do {          n++;          if (index[n] != 0) {          // found a guilty index for a SMS            i = index[n];            s = Msg.getSMS(i);            s = SMSTools.getSMSText(s);            showText("SMS No. " + index[n] + ": " + s + "\n");          } // if        } while (index[n] != 0);        Port.close();      }  // try      catch (Exception e) {        showText("Exception in Main: " + e);      }  // catch    } // else if    else if (cmd.equals("read ME Info")) {      showText("Get some information about the connected mobile phone\n\n");      try {        Port.open();        showText("Battery Status:      " + Msg.getBatteryStatus() + "\n");  // get battery status from ME        showText("Signal Quality:      " + Msg.getSignalQuality() + "\n");  // get signal quality from ME        Port.close();      }  // try      catch (Exception e) {        showText("Error: Exception in read ME Info: " + e);      }  // catch    } // else if    else if (cmd.equals("send SMS")) {      showText("send some SMS and eMails\n\n");      try {        Port.open();        Msg.sendSMS(EMAILDIALNO, TOA_NATIONAL, EMAILADR + "Testmail, PC send time: " + getFormatedDateTime());        Msg.sendSMS(SMSDIALNO, TOA_INTERNATIONAL, "Test-SMS, PC send time: " + getFormatedDateTime());        Msg.sendSMS(EMAILDIALNO, TOA_NATIONAL, EMAILADR + " Testmail");        Port.close();      }  // try      catch (Exception e) {        showText("Exception in Main: " + e);      }  // catch    } // else if    else if (cmd.equals("invest Runtime")) {      showText("Investigate run time of a SMS within the GSM network\n\n");      try {        Port.open();        showText("Delete all SMS from SIM\n");        Msg.deleteAllSMS();        sendtime = getLongTime();        sendtext = "Testmail for run time, PC send time: " + getFormatedDateTime();        receivetext ="";        loopbreak = false;        Msg.sendSMS (SMSDIALNO, TOA_NATIONAL, sendtext);    // send a SMS to the sending mobile phone        do {          Thread.sleep(500);                            // wait 500 msec          receivetime = getLongTime();          deltatime = (receivetime - sendtime)/1000;    // deltatime is in seconds          index = Msg.getIndexOfSMS();                  // get a index list of stored SMS          n = -1;          do {            n++;            if (index[n] != 0) {                        // found a guilty index for a SMS              receivetext = SMSTools.getSMSText(Msg.getSMS(index[n]));              i = receivetext.indexOf(SMSTEXTSIGN);              receivetext = receivetext.substring(i+1, receivetext.length());              if (sendtext.compareTo(receivetext) == 0) {                loopbreak = true;                             // received the same SMS as sended                break;              } // if            } // if          } while (index[n] != 0);          if (deltatime >= TIMEOUT) loopbreak = true;        } while (loopbreak == false);        if (deltatime >= TIMEOUT) showText("timeout of " + TIMEOUT + " s reached\n");        else  showText("actual run time of a SMS = " + deltatime + " s\n");        Port.close();      }  // try      catch (Exception e) {        showText("Exception in Main: " + e);      }  // catch    } // else if    else if (cmd.equals("AT Cmd.")) {      showText("send some AT commands and display the received raw data\n\n");      try {        Port.open();        showText("Mobile Phone Modell: " + Port.sendAT ("AT+CGMM"));  // get Modellinformation from ME        showText("Connection Status:   " + Port.sendAT ("AT+CREG?")); // get connection status to GSM net from ME        Port.close();      }  // try      catch (Exception e) {        showText("Error: Exception in AT Cmd.: " + e);      }  // catch    } // else if    else if (cmd.equals("Parse")) {      showText("parse received SMS, parsing is switched automatically off in " + TIMEOUT/1000 + " s\n\n");      loopbreak = false;      starttime = getLongTime();      try {        Port.open();        Msg.deleteAllSMS();        do {          showText("Delete all SMS from SIM\n");          index = Msg.getIndexOfSMS();                  // get a index list of stored SMS          n = -1;          do {            n++;            if (index[n] != 0) {                        // found a guilty index for a SMS              receivetext = SMSTools.getSMSText(Msg.getSMS(index[n]));              i = receivetext.indexOf(" ");              originateno = receivetext.substring(0, i);              i = receivetext.indexOf(SMSTEXTSIGN);              receivetext = receivetext.substring(i+1, receivetext.length());              showText("received SMS from: " + originateno + ", content: " + receivetext + "\n");              if (receivetext.indexOf(".on") == 0) {                showText("found command in SMS: .on\n");              } // if              else if (receivetext.indexOf(".off") == 0) {                showText("found command in SMS: .off\n");              } // else if              else if (receivetext.indexOf("get time") == 0) {                showText("found command in SMS: get time\n");                showText("send local time to the sender\n");                Msg.sendSMS(SMSDIALNO, TOA_INTERNATIONAL, "PC send time: " + getFormatedDateTime());              } // else if              else if (receivetext.indexOf("exit") == 0) {                showText("found command in SMS: exit\n");                loopbreak = true;              } // else if              else {    // unknown command                showText("no command found in SMS\n");                showText("send help information to the sender\n");                Msg.sendSMS(SMSDIALNO, TOA_INTERNATIONAL, "possible commands: .on, .off, get time, exit");              } // else            } // if          } while (index[n] != 0);          Msg.deleteAllSMS();          Thread.sleep(1000);                            // wait 1 sec          showText("time: " + getFormatedDateTime() + "\n\n");          deltatime = getLongTime() - starttime;           // deltatime is in milliseconds          if (deltatime >= TIMEOUT) loopbreak = true;        } while (loopbreak == false);        if (deltatime >= TIMEOUT) showText("timeout of " + TIMEOUT/1000 + " s reached");        Port.close();      }  // try      catch (Exception e) {        showText("Error: Exception in parsing SMS: " + e);      }  // catch    } // else if    else if (cmd.equals("create PDUs")) {      showText("creates PDUs for sending PDUs from a simple microcontroller to the mobile phone\n\n");      String dialno4SMS, dialno4Email, emailadr, message = new String();      dialno4SMS   = "01751082323";    // dialing number for SMS transmission, this is the number of the phone you want to send the SMS      dialno4Email = "8000";           // dialing number for eMail transmission, this is the number you have to dial if you want to convert a SMS into a e-Mail      emailadr     = "wolfgang.rankl@de.gi-de.de";   // eMail adress      message      = "et's geht's des glump";        // message to the receiver, maximal length is 160 characters      SMS.showText("Dialing Number for SMS:   " + dialno4SMS   + "\n");      SMS.showText("Dialing Number for EMail: " + dialno4Email + "\n");      SMS.showText("Email Adress:             " + emailadr     + "\n");      SMS.showText("Message:                  " + message      + "\n");      SMSTools smstools = new SMSTools();      byte[] pdu_byte = SMSTools.getPDUPart(dialno4SMS, TOA_INTERNATIONAL, message);  // build PDU for SMS      char[] pdu_char = SMSTools.toHexString(pdu_byte);      pdu = SMSTools.convertCharArray2String(pdu_char);      SMS.showText("PDU for SMS:              " + pdu          + "\n");      pdu_byte = SMSTools.getPDUPart(dialno4Email, TOA_NATIONAL, message);     // build PDU for eMail      pdu_char = SMSTools.toHexString(pdu_byte);      pdu = SMSTools.convertCharArray2String(pdu_char);      SMS.showText("PDU for EMail:            " + pdu          + "\n");    } // else if    else if (cmd.equals("Exit")) {      showText("\tExit Button pressed\n");      showText("Stop Program GUI\n");      System.exit(0);    } // else if    showText("-------------------------------------------\n");  } // actionPerformed /** main  *  @param args there will be no arguments for the main  */  public static void main(String [] args){    //--- build the GUI    SMS sms = new SMS();    sms.setLocation(0, 0);    sms.pack();    sms.setTitle("SMS Transceiver");    sms.setVisible(true);    showText("Start Program SMS Transceiver\n\n");  } // main} // class

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区美女| 国产成人啪免费观看软件| 韩国毛片一区二区三区| 91蝌蚪国产九色| 精品国产在天天线2019| 亚洲免费观看高清完整版在线观看熊 | 国产麻豆精品theporn| 日本久久电影网| 欧美国产精品中文字幕| 久草在线在线精品观看| 欧美视频一区二区在线观看| 国产精品网站导航| 极品少妇xxxx偷拍精品少妇| 这里只有精品视频在线观看| 亚洲欧美国产三级| fc2成人免费人成在线观看播放| 精品免费视频一区二区| 日日欢夜夜爽一区| 51久久夜色精品国产麻豆| 亚洲一区二区欧美激情| 91视频一区二区三区| 中文字幕巨乱亚洲| 国产精品一区二区在线观看不卡 | 欧美撒尿777hd撒尿| 亚洲欧美中日韩| av电影天堂一区二区在线| 日本一区二区三区电影| 国产成人在线色| 久久久蜜桃精品| 国产精品123区| 中文字幕精品三区| 波多野结衣欧美| 国产精品成人免费精品自在线观看 | 日韩不卡一二三区| 日韩一区二区免费高清| 精品在线亚洲视频| 久久麻豆一区二区| 成人永久看片免费视频天堂| 欧美国产1区2区| 成人av影院在线| 亚洲精品乱码久久久久久黑人| av在线播放不卡| 亚洲精品国产高清久久伦理二区| 91美女精品福利| 午夜精品久久久久久| 欧美成人乱码一区二区三区| 国产精品资源网| 中文字幕中文在线不卡住| 在线观看亚洲一区| 日本怡春院一区二区| 欧美精品一区二区三| 国产精品亚洲午夜一区二区三区| 国产精品麻豆久久久| 在线亚洲一区二区| 丝瓜av网站精品一区二区| 精品久久久久久无| 99在线热播精品免费| 性做久久久久久免费观看| 精品国产91洋老外米糕| 国产a久久麻豆| 亚洲午夜免费电影| 欧美va亚洲va| 91免费看视频| 蜜臀av性久久久久蜜臀aⅴ流畅 | 香蕉久久夜色精品国产使用方法| 欧美成va人片在线观看| 91色.com| 国产一区二三区| 亚洲一级二级三级在线免费观看| 精品国产一区久久| 91国偷自产一区二区三区观看| 美女免费视频一区| 亚洲老司机在线| www日韩大片| 欧美日韩精品久久久| 国产福利精品一区| 日本中文一区二区三区| 国产精品久久久久久久久免费桃花 | 国产精品国产a| 日韩无一区二区| 91网站视频在线观看| 国产精品一级片| 日韩av在线免费观看不卡| 中文字幕在线免费不卡| 久久久不卡网国产精品一区| 欧美日韩一区三区| av一区二区不卡| 国产美女av一区二区三区| 午夜电影一区二区三区| 亚洲日本一区二区| 欧美激情资源网| 欧美大片在线观看| 777久久久精品| 欧美视频第二页| 91看片淫黄大片一级在线观看| 韩国精品一区二区| 久久99精品视频| 日韩高清在线一区| 亚洲影视在线观看| 悠悠色在线精品| 亚洲视频一二三区| **欧美大码日韩| 亚洲欧美中日韩| 一区免费观看视频| 欧美激情中文不卡| 国产欧美精品国产国产专区| 精品国产91久久久久久久妲己| 欧美精品第1页| 91精品久久久久久久91蜜桃| 欧美日韩久久一区| 在线观看91精品国产麻豆| 欧美系列一区二区| 欧美精品日韩精品| 91精品国产综合久久久蜜臀图片| 欧美日韩国产中文| 欧美一区二区在线视频| 欧美一区二区免费视频| 欧美一级高清大全免费观看| 91精品国产高清一区二区三区 | 久久久精品影视| 国产清纯白嫩初高生在线观看91 | 欧美国产一区在线| 国产精品黄色在线观看| 亚洲欧洲综合另类在线| 亚洲综合色成人| 日韩黄色片在线观看| 免费在线观看精品| 国产一区二区三区四区五区美女 | 欧美日韩三级一区| 欧美一区二区三区的| 日韩欧美色综合网站| 久久婷婷成人综合色| 国产精品成人一区二区艾草 | 欧美日韩精品一区二区三区蜜桃| 欧美视频日韩视频在线观看| 欧美一区二区三区公司| 国产清纯美女被跳蛋高潮一区二区久久w| 国产精品午夜久久| 亚洲一区二区三区四区在线免费观看| 午夜天堂影视香蕉久久| 久久99精品久久久久久国产越南 | 国产乱妇无码大片在线观看| 99国产精品国产精品久久| 欧美日韩第一区日日骚| 国产亚洲精品免费| 亚洲一区二区三区美女| 精品影院一区二区久久久| jizzjizzjizz欧美| 欧美日韩久久不卡| 中文字幕久久午夜不卡| 婷婷综合五月天| 国产成人无遮挡在线视频| 在线视频亚洲一区| 久久精品男人天堂av| 亚洲一区二区三区国产| 国产成人免费视频一区| 欧美日韩国产小视频在线观看| 精品国产乱码久久久久久久| 亚洲人妖av一区二区| 久久se这里有精品| 欧美色爱综合网| 欧美高清在线一区| 热久久国产精品| 色婷婷久久一区二区三区麻豆| 日韩视频免费观看高清在线视频| 国产精品青草久久| 紧缚捆绑精品一区二区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 欧美xxxx在线观看| 天天av天天翘天天综合网| 99riav久久精品riav| 久久久蜜桃精品| 婷婷综合久久一区二区三区| 99久久国产综合精品女不卡| 久久免费美女视频| 青青草伊人久久| 色又黄又爽网站www久久| 久久久天堂av| 久久国产麻豆精品| 欧美精品一二三四| 亚洲精品va在线观看| 成人午夜免费av| 久久亚洲一级片| 日韩国产一二三区| 欧美日韩一区久久| 亚洲国产日韩在线一区模特| 99国产一区二区三精品乱码| 欧美国产乱子伦| 国产成a人无v码亚洲福利| 日韩美女视频一区二区在线观看| 亚洲电影视频在线| 欧美天堂一区二区三区| 一级中文字幕一区二区| 一本久道久久综合中文字幕 | 首页国产丝袜综合| 欧美另类z0zxhd电影| 三级在线观看一区二区| 91精品国产综合久久久久久久| 亚洲一区二区三区在线播放| 91在线看国产|