亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
综合自拍亚洲综合图不卡区| 韩国一区二区三区| 在线不卡中文字幕| 久久成人免费网| 国产欧美日韩另类视频免费观看| 丁香一区二区三区| 亚洲精品久久久蜜桃| 69堂精品视频| 国产福利一区在线| 亚洲同性同志一二三专区| 欧美亚洲动漫制服丝袜| 天天操天天综合网| 国产亚洲欧美色| 色综合天天综合网国产成人综合天| 亚洲国产中文字幕在线视频综合| 欧美一区二区三区公司| 国产精品一区二区x88av| 综合色天天鬼久久鬼色| 欧美日韩中文国产| 韩国一区二区三区| 亚洲免费三区一区二区| 91精品国产综合久久香蕉麻豆| 国产乱人伦精品一区二区在线观看 | 欧美精品v日韩精品v韩国精品v| 免费观看成人av| 国产精品沙发午睡系列990531| 欧美性猛片aaaaaaa做受| 久久超级碰视频| 亚洲视频免费观看| 91精品国产免费| av电影在线观看一区| 肉色丝袜一区二区| 国产精品美女久久久久久| 6080午夜不卡| www.日本不卡| 麻豆国产精品视频| 最新中文字幕一区二区三区| 欧美精品vⅰdeose4hd| 粉嫩13p一区二区三区| 亚洲成人一区二区| 欧美国产一区在线| 91精品欧美一区二区三区综合在 | 国产精品羞羞答答xxdd| 一区二区三区国产豹纹内裤在线| 日韩美女在线视频| 色综合久久88色综合天天6| 久草在线在线精品观看| 亚洲国产视频直播| 国产亚洲视频系列| 欧美日韩国产bt| jizzjizzjizz欧美| 久久国产三级精品| 亚洲一区在线观看免费| 国产三级欧美三级日产三级99| 欧美日韩中文字幕一区二区| 成人aa视频在线观看| 美美哒免费高清在线观看视频一区二区 | 视频一区欧美日韩| 中文字幕一区二区三区蜜月| 日韩欧美区一区二| 欧美日韩中文字幕精品| 91香蕉视频mp4| 国产麻豆精品在线观看| 日本欧美肥老太交大片| 一色屋精品亚洲香蕉网站| 欧美精品一区二区高清在线观看| 欧美性生交片4| 不卡视频一二三四| 国产精品夜夜嗨| 久久99久久99小草精品免视看| 亚洲一线二线三线久久久| 中文字幕不卡的av| 欧美精品一区二区三区一线天视频| 欧美电影一区二区| 欧美性xxxxx极品少妇| 99这里只有精品| 国产成人综合网站| 狠狠网亚洲精品| 日本成人在线一区| 亚洲国产另类av| 亚洲综合网站在线观看| 亚洲欧洲精品天堂一级 | 日韩理论片中文av| 国产福利精品一区| 蜜臀va亚洲va欧美va天堂| 亚洲一二三区在线观看| 亚洲视频资源在线| 国产精品青草综合久久久久99| 久久一日本道色综合| 日韩欧美中文字幕公布| 欧美精品第一页| 欧美精品粉嫩高潮一区二区| 欧美日韩亚洲国产综合| 欧美午夜电影在线播放| 在线观看国产91| 欧美影视一区在线| 91黄色在线观看| 色乱码一区二区三区88| 91蝌蚪porny成人天涯| 91玉足脚交白嫩脚丫在线播放| 成人av在线播放网站| av综合在线播放| 99re这里都是精品| 99精品国产91久久久久久 | 成人激情黄色小说| proumb性欧美在线观看| heyzo一本久久综合| 成人av影视在线观看| 97精品久久久久中文字幕 | 欧美三电影在线| 欧美日韩情趣电影| 91精品国产手机| 欧美一区二区三区免费在线看| 日韩欧美一区二区三区在线| 日韩欧美国产一区在线观看| 日韩欧美国产综合| 久久综合丝袜日本网| 国产女人水真多18毛片18精品视频| 国产精品丝袜久久久久久app| 国产精品全国免费观看高清| 综合久久国产九一剧情麻豆| 亚洲美女在线国产| 午夜视频久久久久久| 美脚の诱脚舐め脚责91| 国产一区二三区| 国产清纯白嫩初高生在线观看91| 亚洲国产岛国毛片在线| 亚洲欧洲成人自拍| 一区二区三区国产精华| 视频一区二区国产| 久久国产免费看| 岛国av在线一区| 91免费看视频| 欧美日本一区二区在线观看| 日韩欧美一级精品久久| 久久久精品中文字幕麻豆发布| 中国色在线观看另类| 尤物在线观看一区| 奇米色777欧美一区二区| 国产乱子伦视频一区二区三区| 97精品国产露脸对白| 69久久夜色精品国产69蝌蚪网| 精品美女在线观看| 国产精品的网站| 午夜电影一区二区| 国产综合一区二区| 色综合中文字幕国产| 日韩一级在线观看| 国产精品素人一区二区| 午夜欧美一区二区三区在线播放| 韩国成人精品a∨在线观看| 95精品视频在线| 91精品国产一区二区| 中文字幕国产一区二区| 亚洲国产精品久久人人爱| 精品一区二区三区免费毛片爱| 成人高清av在线| 在线不卡中文字幕播放| 日本一区二区成人在线| 午夜欧美一区二区三区在线播放| 韩国精品一区二区| 91高清视频在线| 久久亚洲影视婷婷| 亚洲va天堂va国产va久| 国产ts人妖一区二区| 欧美另类videos死尸| 国产欧美中文在线| 婷婷综合五月天| 成人av电影免费在线播放| 91精品国产91久久久久久最新毛片 | 久久伊人中文字幕| 亚洲线精品一区二区三区| 国产成人精品免费视频网站| 欧美午夜精品一区二区蜜桃| 国产欧美日韩综合| 爽好久久久欧美精品| 99久久精品一区二区| 日韩三级视频在线看| 亚洲精品免费在线播放| 久久精品国产亚洲一区二区三区| 91免费看`日韩一区二区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 欧美一区三区四区| 亚洲免费观看高清在线观看| 国产一区二区在线免费观看| 欧美午夜精品一区二区三区| 中文字幕不卡三区| 免费精品视频在线| 在线观看不卡视频| 中文字幕av资源一区| 黄页视频在线91| 6080亚洲精品一区二区| 一区二区三区精品| 成人免费视频网站在线观看| 欧美va亚洲va香蕉在线| 亚洲成年人网站在线观看| 99re8在线精品视频免费播放| 久久丝袜美腿综合| 日本不卡中文字幕| 欧美色精品天天在线观看视频|