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

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

?? sms.java

?? 手機短信編程的源代碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// SMS Transceiver// SMS Transceiver is a tool for sending and receiving SMS via a//   serial connection between PC and a mobile phone. It establish//   on the basis of a serial line (or IrDA) connection a AT command based//   communication for sending and receiving SMS and SMS-based e-Mails.//// file: SMS.java// uses: SMSTools.java, Msg.java, Port.java//// This program uses the javax.comm Service from Sun to transfer data via the// serial PC port. Tested with JBuilder 6, JDK 1.3.1 on Windows 2000 and// with Nokia 6210 on port COM 1 in German D1 GSM net. Tested also via IrDA// connection with IrCOMM2k and Siemens SL55 (some of the features are not// available on the SL55).//// Third party tested with Siemens ME45 and Siemens S45, Windows XP and Unix.//// The AT commands for mobile telephone are specified in the ETSI standards://   TS 27.005 Data Circuit terminating Equipment (DTE - DCE) interface for//             Short Message Service (SMS) and Cell Broadcast Service (CBS)//   TS 07.07  AT command set for GSM Mobile Equipment (ME)//   TS 27.007 AT command set for 3G User Equipment (UE)//   TS 23.040 coding of PDUs//// Remarks: * Before starting this programm you have to adopt SMSDIALNO, EMAILDIALNO,//            EMAILADR to your personal values.//          * On some GSM networks you have to switch on the SMS to email option first.//            This could be (on some networks) done with a SMS including the command OPEN to the SMSC.//          * It is a good practice to test all AT command to a mobile first with a terminal programm.//          * This tool works only with data coding scheme = 00 (=standard GSM Alphabet).//          * Some SMSC uses non ETSI conform codings or unusual coding parameters,//            this could cause problems with the decoding of the PDUs.//          * SMS Transceifer work in PDU mode of the mobile phone not in text mode. By//            the way text mode is quite simple, but there are many phone which don't//            support it, because its an optional feature.//          * Useful tool for PDU analysing : pduspy.exe (use e.g. Google for retrieving it)//          * Some GSM networks supports for SMS a confirmation of receive. In the//            German D1 GSM net this could be done by *T# at the beginning of the SMS.//          * Statements for debuging are marked by "for debuging".//          * For SMS only you don't need EMAILDIALNO and EMAILADR. This email stuff should//            demonstrate the possibility to send Internet emails from a SMS device.//          * The timing for sending and receiving data over the RS232 is on some//            PC or Unix hardware sometimes quite critical. There are also some mobile phones//            who sends the individual bytes of the response quite irregular, sometimes with//            quite big breks between the individual bytes. The critical places for this//            data communication are marked with [Timing].//          * The "create PDUs functionality" can be used to generate predefined PDU which can//            be send via a simple microcontroller application with AT-commands to a mobile phone.//// Ideas for the next versions:   * UCS2 support (difficult, quite much work)//                                * MMS support (only if a AT command interface is specified by ETSI)//                                * version for PIC microcontrollers (much work, difficult interoperability))//// Warning: This programm deletes all the SMS stored in the mobile phone.//// Release Procedure:   1. find and solve all critical points marked by  "???"//                      2. Test all separate SMS Transceiver functionalities from GUI//                      3. Anonymisize moile phone number and email adress//                      4. Build HTML source code file//                      5. Build source code file in ZIP package with JavaDoc files//// This source code is under GNU General Public License (see www.opensource.org for details).// Please send corrections and ideas for extensions to Wolfgang Rankl (www.wrankl.de).// Copyright 2003-2004 by Wolfgang Rankl, Munich//// 26. July 2004 - V 10, rw: clarification concerning type of address (TOA),//                           add create PDUs functionality, new method: convertCharArray2String//                           5th published version//   4. June 2004 - V 9, rw: fix minor bugs in "read SMS" and "invest runtime",//                           add some console output about port activity for debugging,//                           put all hardware dependant methods into Port.java,//                           add some hints and clarifications for the serial communication,//                           increase robustness of the serial communication,//                           4th published version//  25. May  2004 - V 8, rw: improved GUI, add parse SMS functionality,//                           simplify constructor of SMSTools, fix bug in deleteAllSMS()//                           add a open() method to class Msg (serial connection//                           is now only open during data transmission)//                           test connection via IrDA with IrCOMM2k and Siemens SL55//                           fix bug in parse-functionality//                           3rd published version//  4. Feb.  2004 - V 7, rw: fix some bugs, clarify some ambiguous documentation,//                           add getIndexOfSMS, add testConnection, add getLongTime//                           add getSignalQuality, add getBatteryStatus,//                           add decodeAddressField, adoped deleteSMS, add deleteAllSMS,//                           add GUI, new package Msg.java, improve read() method,//                           rebuild to a more object oriented programm,//                           2nd published version// 28. May   2003 - V 6, rw: source simplifed and reviewed, 1st published version// 15. May   2003 - V 5, rw: improved documentation and clarifications// 24. April 2003 - V 4, rw: code review, optimisation of read(), improved documentation//  9. Jan.  2003 - V 3, rw: add method sendAT(...)// 20. Dec.  2002 - V 2, rw: improved documentation// 19. Dec.  2002 - V 1, rw: initial runnable version//---------------------------------------------------------------------------------------package smspack;import java.awt.*;import java.awt.event.*;import java.util.*;import java.text.*;import javax.swing.*;public class SMS extends JFrame implements ActionListener {  // TOA = type of address (= type of number || numbering plan identifier)  // it is a national dialing number format (0x81, e.g. short number format for net internal calls)  static final boolean TOA_NATIONAL = true;  // TOA = type of address (= type of number || numbering plan identifier)  // it is a international dialing number format (0x91, e.g. usual number format for normal calls)  static final boolean TOA_INTERNATIONAL = false;  static final String SMSTEXTSIGN = ">";            // sign for the begin of the SMS text  static final int TIMEOUT = 2*60*1000;             // timeout [ms] for SMS run time measurement  static final int MAXNOSIMSMS = 20;                // maximal number of stored SMS in SIM  static final String SMSDIALNO = "0175108xxxx";    // dialing number for SMS transmission, this is the number of the phone you want to send the SMS  static final String EMAILDIALNO = "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  static final String EMAILADR = "wolfgang.rankl@xx.xx-xx.de";  // eMail adress  static final String COMPORT = "COM1";             // used COM port for data transmission  public static JTextArea ta = new JTextArea(40, 100);  /** build the GUI with all it components  */  SMS() {    //----- create text area with scroll pane    ta.setTabSize(4);    ta.setFont(new Font("Monospaced", 0, 12));     // Courier, 12 point size    ta.setBackground(new Color(  0,   0,   0));    // black blue    ta.setForeground(new Color(200, 255, 100));    // yellowgreen    getContentPane().add(new JScrollPane(ta), BorderLayout.CENTER);    //----- create panel with buttons    JPanel buttonPanel = new JPanel(new GridLayout(25, 1));    JButton button1 = new JButton("decode PDUs");    button1.addActionListener(this);    buttonPanel.add(button1);    JButton button8 = new JButton("create PDUs");    button8.addActionListener(this);    buttonPanel.add(button8);    JButton button2 = new JButton("read SMS");    button2.addActionListener(this);    buttonPanel.add(button2);    JButton button3 = new JButton("read ME Info");    button3.addActionListener(this);    buttonPanel.add(button3);    JButton button4 = new JButton("send SMS");    button4.addActionListener(this);    buttonPanel.add(button4);    JButton button5 = new JButton("invest Runtime");    button5.addActionListener(this);    buttonPanel.add(button5);    JButton button6 = new JButton("AT Cmd.");    button6.addActionListener(this);    buttonPanel.add(button6);    JButton button7 = new JButton("Parse");    button7.addActionListener(this);    buttonPanel.add(button7);    JButton button9 = new JButton("Exit");    button9.addActionListener(this);    buttonPanel.add(button9);    getContentPane().add(buttonPanel, BorderLayout.EAST);  } // SMS  /** creates a Windows conform formated date and time string   *  @return: data and time string   */  public static String getFormatedDateTime() {    String s;    Date t = new Date();    t.getTime();    s = DateFormat.getDateTimeInstance().format(t);    return s;  } // getFormatedDateTime  /** creates a long value for the time   *  @return: number of milliseconds since January 1, 1970,   */  public static long getLongTime() {    long l;    Date time = new Date();    l = time.getTime();    return l;  } // getLongTime  /** show text in the text window   *  @param text text string to show on the display   */  public static void showText(String text) {    ta.setText(ta.getText() + text);  } // showText  /** show text in the text window   *  @param text char array to show on the display   */  public static void showText(char[] text) {    ta.setText(ta.getText() + text);  } // showText  /** dispatcher which the main parts of the programm   *  @param event event button which is pressed   */  public void actionPerformed(ActionEvent event) {    boolean loopbreak;    int n, i;    int[] index;    long sendtime, starttime, receivetime, deltatime;    String s, pdu, sendtext, receivetext, originateno;    showText("\n-------------------------------------------\n");    String cmd = event.getActionCommand();    if (cmd.equals("decode PDUs")) {      showText("decode some PDUs for demonstration and test\n\n");      pdu = "0791198968004544040C911989684385620000408002804532800FEB721E145E97F331507D5DCEC700";      showText(SMSTools.getSMSText(pdu)+ "\n");      pdu = "0791947101670000040485080039004010313131604020D737DB7C0EBBCF2E69D8BD6603C865D739DD22975DE3771B442DCFE9";      showText(SMSTools.getSMSText(pdu)+ "\n");      pdu = "0791947101670000040C9194617011078800004010023112914016D737DB7C0EBBCF2069D8BD66B340CDBA3B3D4603\n";      showText(SMSTools.getSMSText(pdu) + "\n");      pdu = "0791448720900253040C9144775425208800003021620274900018C2B0B80C22A7C9A03A485D9F83C661361BD42EFF40";

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品小蝌蚪| 最新中文字幕一区二区三区| 国产精品久久久久四虎| 久久97超碰国产精品超碰| 一本色道a无线码一区v| 国产精品灌醉下药二区| aaa亚洲精品| 自拍偷拍亚洲综合| 成人av免费观看| 日韩欧美中文一区| 亚洲mv在线观看| 884aa四虎影成人精品一区| 亚洲精品高清在线观看| 91蜜桃传媒精品久久久一区二区| 精品日韩在线一区| 午夜天堂影视香蕉久久| 欧美久久久久久久久久| 国产精品丝袜久久久久久app| 国产成人综合亚洲网站| 国产亚洲精品7777| 成人91在线观看| 精品一区二区av| 26uuu国产电影一区二区| 狠狠色丁香久久婷婷综| 欧美一级理论片| 国产成人免费网站| 一区二区三区精品视频在线| 欧美卡1卡2卡| 国产精品一区二区无线| 亚洲一区二区精品视频| www国产精品av| 久久91精品国产91久久小草| 国产欧美一区二区精品性色超碰 | 丁香六月综合激情| 一区二区三区加勒比av| 欧美电影免费观看完整版| 国产91高潮流白浆在线麻豆 | 欧美极品xxx| 91精品午夜视频| 成人午夜av在线| 免费一级片91| 亚洲国产美女搞黄色| 国产色婷婷亚洲99精品小说| 欧美日韩你懂得| 日本丰满少妇一区二区三区| 亚洲国产精品一区二区久久| 国产精品女上位| 久久九九久精品国产免费直播| 欧美精品九九99久久| 色呦呦国产精品| 97se狠狠狠综合亚洲狠狠| 成人午夜碰碰视频| 国产99一区视频免费| 国内外成人在线| 国产美女精品一区二区三区| 日韩中文字幕不卡| 中文字幕在线不卡国产视频| 中文字幕第一区第二区| 国产精品水嫩水嫩| 久久久久国产精品麻豆ai换脸| 精品国产一区二区国模嫣然| 91精品国产aⅴ一区二区| 91精品视频网| 日韩欧美一二三| 精品久久一二三区| 色综合久久中文综合久久牛| 亚洲欧美另类图片小说| 国产精品123| 日韩av网站免费在线| 久久精品国产久精国产爱| 精品视频资源站| 久久这里只精品最新地址| 亚洲宅男天堂在线观看无病毒| 国产一区二区在线观看免费| 欧美日韩国产综合一区二区| 亚洲女人的天堂| 亚洲欧洲99久久| 一区二区日韩av| 国产一区二区三区四区在线观看| 五月激情综合色| 国产一区二三区好的| 99在线视频精品| 国产成人免费网站| 色域天天综合网| 精品国产91久久久久久久妲己| 国产精品久久久久久久岛一牛影视| 国产精品乱码妇女bbbb| 日韩不卡免费视频| 91丨porny丨户外露出| 日韩女优av电影| 中文字幕av资源一区| 综合激情网...| 国产一区二区主播在线| 色综合久久中文字幕| 久久精品亚洲精品国产欧美| 亚洲成在线观看| 国产成人精品亚洲777人妖| 99久久婷婷国产综合精品电影| 欧美一二三在线| 亚洲一二三级电影| 成人精品电影在线观看| 久久久99精品久久| 成人精品小蝌蚪| 国产精品久久久久久久久免费桃花| 激情综合色综合久久| 精品欧美一区二区三区精品久久 | 久久日韩粉嫩一区二区三区| 精品一区二区三区在线观看| 26uuu久久综合| 国产成人免费在线| 亚洲黄色免费网站| 欧美日韩成人激情| 国产一区二区在线免费观看| 中文字幕乱码日本亚洲一区二区| 不卡欧美aaaaa| 亚洲综合色噜噜狠狠| 欧美三级韩国三级日本三斤| 丝袜美腿亚洲综合| 中文字幕乱码亚洲精品一区| 欧美视频日韩视频| 国产成人综合在线| 伊人婷婷欧美激情| 久久日韩粉嫩一区二区三区| 91免费小视频| 国产麻豆成人精品| 亚洲成人一二三| 欧美国产激情二区三区 | 欧美一级精品在线| 99久久精品情趣| 日本欧美在线观看| 亚洲人成7777| 国产日韩欧美精品一区| 欧美一区二区免费| 中文在线免费一区三区高中清不卡| 日韩欧美美女一区二区三区| 久久久亚洲综合| 亚洲欧洲成人精品av97| 一区二区三区四区在线播放| 五月婷婷久久综合| 精品国产乱码久久久久久图片| 欧美日韩成人一区| 中国色在线观看另类| 亚洲综合男人的天堂| 免费欧美在线视频| 国产精品人人做人人爽人人添| 在线电影院国产精品| 欧美日韩一卡二卡三卡| 精品国产乱码久久久久久图片 | 菠萝蜜视频在线观看一区| 91蜜桃视频在线| 日韩欧美二区三区| 一区二区三区在线不卡| 极品美女销魂一区二区三区| 色94色欧美sute亚洲线路一ni| 日韩欧美成人激情| 一区二区三区中文在线观看| 麻豆freexxxx性91精品| 久久亚区不卡日本| 欧美一级久久久| 欧美tk—视频vk| 久久久久久久精| 亚洲色欲色欲www| 一区二区三区日韩欧美| 丝袜亚洲精品中文字幕一区| 久久国产精品无码网站| 国产成人综合在线| 色综合亚洲欧洲| 欧美一区二区视频免费观看| 久久亚洲二区三区| 亚洲自拍另类综合| 狠狠色丁香婷婷综合| 91极品美女在线| 久久婷婷一区二区三区| 一级精品视频在线观看宜春院 | 蜜臀91精品一区二区三区 | 久久se精品一区精品二区| 成人av在线网站| 精品国产乱码久久| voyeur盗摄精品| 欧美日韩国产乱码电影| 国产精品毛片a∨一区二区三区| 午夜欧美一区二区三区在线播放| 国产精品一色哟哟哟| 欧美一级夜夜爽| 亚洲一二三四在线观看| 91在线小视频| 2023国产精品自拍| 蓝色福利精品导航| 欧美色中文字幕| 亚洲图片有声小说| 欧美性xxxxxx少妇| 亚洲一区二区三区在线播放| 成人精品视频一区二区三区尤物| 日韩欧美亚洲国产精品字幕久久久| 亚洲精品国久久99热| 色狠狠色狠狠综合| 亚洲综合无码一区二区| 成人免费av网站| 亚洲精品成人精品456| 在线一区二区三区四区五区|