zoukankan      html  css  js  c++  java
  • gnokii.exe

    http://www.gnokii.org/download/gnokii

    Administor@20100710-1626 ~
    $ echo  的d | gnokii.exe --sendsms
    15560281111
    0891683110701605F011000B815165207839F10008AA 08 00E7 009A 0084 0064
    (Win平台 汉字短信 失败)


    [root@bogon ~]# echo  "的d" | gnokii --config /etc/gnokiirc  --sendsms 15560281111
    0891683110701605F011000B815165207839F10008AA 04 7684 0064  (linux平台 汉字短信 成功)

    ++++++++++++++++++++++++++++++++++++++++++++++++

    linux平台 能够成功发送 汉字短信


    [root@bogon ~]# echo  "的d" | gnokii --config /etc/gnokiirc  --sendsms 15560281111

    GNOKII Version 0.6.20
    LOG: debug mask is 0x1
    Config read from file /etc/gnokiirc.
    phone instance config:
    model: AT
    port_device: /dev/ttyUSB0
    connection_type: 0
    init_length: 0
    serial_baudrate: 9600
    serial_write_usleep: -1
    hardware_handshake: 0
    require_dcd: 0
    smsc_timeout: 100
    connect_script:
    disconnect_script:
    rfcomm_cn: 1
    sm_retry: off
    Initializing AT capable mobile phone ...
    Serial device: opening device /dev/ttyUSB0
    Serial device: setting RTS to high and DTR to high
    Message sent: 0x00 / 0x0004
    41 54 5a 0d                                     | ATZ            
    write: [ATZ]
    read : [ATZOK]
    Message received: 0x00 / 0x000a
    02 41 54 5a 0d 0d 0a 4f 4b 0d                   |  ATZ   OK      
    Received message type 00
    Message sent: 0x00 / 0x0005
    41 54 45 31 0d                                  | ATE1           
    write: [ATE1]
    read : [ATE1OK]
    Message received: 0x00 / 0x000b
    02 41 54 45 31 0d 0d 0a 4f 4b 0d                |  ATE1   OK     
    Received message type 00
    Message sent: 0x00 / 0x000a
    41 54 2b 43 4d 45 45 3d 31 0d                   | AT+CMEE=1      
    write: [AT+CMEE=1]
    read : [AT+CMEE=1OK]
    Message received: 0x00 / 0x0010
    02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d |  AT+CMEE=1   OK
    Received message type 00
    Message sent: 0x06 / 0x0008
    41 54 2b 43 47 4d 4d 0d                         | AT+CGMM        
    write: [AT+CGMM]
    read : [AT+CGMM MULTIBAND  900E  1800 OK]
    Message received: 0x06 / 0x0029
    02 41 54 2b 43 47 4d 4d 0d 0d 0a 20 4d 55 4c 54 |  AT+CGMM    MULT
    49 42 41 4e 44 20 20 39 30 30 45 20 20 31 38 30 | IBAND  900E  180
    30 20 0d 0a 0d 0a 4f 4b 0d                      | 0     OK       
    Received message type 06
    Message sent: 0x06 / 0x0008
    41 54 2b 43 47 4d 49 0d                         | AT+CGMI        
    write: [AT+CGMI]
    read : [AT+CGMI WAVECOM MODEMOK]
    Message received: 0x06 / 0x0020
    02 41 54 2b 43 47 4d 49 0d 0d 0a 20 57 41 56 45 |  AT+CGMI    WAVE
    43 4f 4d 20 4d 4f 44 45 4d 0d 0a 0d 0a 4f 4b 0d | COM MODEM    OK
    Received message type 06
    Message sent: 0x61 / 0x0009
    41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?       
    write: [AT+CSCS?]
    read : [AT+CSCS?+CSCS: "PCCP437"OK]
    Message received: 0x61 / 0x0023
    02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
    53 3a 20 22 50 43 43 50 34 33 37 22 0d 0a 0d 0a | S: "PCCP437"   
    4f 4b 0d                                        | OK             
    Received message type 61
    Initialisation completed
    Message sent: 0x23 / 0x0009
    41 54 2b 43 53 43 41 3f 0d                      | AT+CSCA?       
    write: [AT+CSCA?]
    read : [AT+CSCA?+CSCA: "+8613010761500",145OK]
    Message received: 0x23 / 0x002e
    02 41 54 2b 43 53 43 41 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCA?   +CSC
    41 3a 20 22 2b 38 36 31 33 30 31 30 37 36 31 35 | A: "+86130107615
    30 30 22 2c 31 34 35 0d 0a 0d 0a 4f 4b 0d       | 00",145    OK  
    Received message type 23
    General Data Coding
    dcs: 0x8
    Length: 0x4
    user_data_length: 0x4
    ValidityIndicator: 2
    user_data: 76840064
    Sending
    Message sent: 0x63 / 0x000a
    41 54 2b 43 4d 47 46 3d 30 0d                   | AT+CMGF=0      
    write: [AT+CMGF=0]
    read : [AT+CMGF=0OK]
    Message received: 0x63 / 0x0010
    02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d |  AT+CMGF=0   OK
    Received message type 63
    PDU mode set
    Sending initial sequence
    Message sent: 0x64 / 0x000b
    41 54 2b 43 4d 47 53 3d 31 38 0d                | AT+CMGS=18     
    write: [AT+CMGS=18]
    read : [AT+CMGS=18> ]
    Message received: 0x64 / 0x000f
    01 41 54 2b 43 4d 47 53 3d 31 38 0d 0d 0a 3e    |  AT+CMGS=18   >
    Received message type 64
    Got response 0
    Sending frame: 0891683110701605F011000B815165207839F10008AA0476840064
    Message sent: 0x21 / 0x0037
    30 38 39 31 36 38 33 31 31 30 37 30 31 36 30 35 | 0891683110701605
    46 30 31 31 30 30 30 42 38 31 35 31 36 35 32 30 | F011000B81516520
    37 38 33 39 46 31 30 30 30 38 41 41 30 34 37 36 | 7839F10008AA0476
    38 34 30 30 36 34 1a                            | 840064         
    write: [0891683110701605F011000B815165207839F10008AA0476840064^Z]
    read : [0891683110701605F011000B815165207839F10008AA0476840064^Z+CMGS: 152OK]
    Message received: 0x21 / 0x004b
    02 30 38 39 31 36 38 33 31 31 30 37 30 31 36 30 |  089168311070160
    35 46 30 31 31 30 30 30 42 38 31 35 31 36 35 32 | 5F011000B8151652
    30 37 38 33 39 46 31 30 30 30 38 41 41 30 34 37 | 07839F10008AA047
    36 38 34 30 30 36 34 1a 0d 0a 2b 43 4d 47 53 3a | 6840064   +CMGS:
    20 31 35 32 0d 0a 0d 0a 4f 4b 0d                |  152    OK     
    Received message type 21
    Message sent (reference: 152)
    Send succeeded!
    Serial device: closing device


    ++++++++++++++++++++++++++++++++++++++++++++++++++++

    windows平台





      141  gnokii.exe  --phone logging --identify
      142  gnokii.exe  --phone fake --identify
      144  gnokii.exe --sendsms 15560281111

      149  cygcheck -p iconv\.exe
      150  gcc dls_sendmsg.c -o dls_sendmsg.exe

      153  echo $LANG
      154  dls_sendmsg.exe 15560281111 啊啊555 overover

      157  echo $LANG
      159  echo  "的" | gnokii.exe --sendsms 15560281111
      160  gnokii.exe --dialvoice  15560281111
      161  gnokii.exe --sendsms 15560281111

    <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
    阅读(1163) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~
    评论热议
  • 相关阅读:
    JavaScript 19 数组(二)
    JavaScript 19 数组(一)
    JavaScript 18 字符串(三)
    JavaScript 18 字符串(二)
    JavaScript 18 字符串(一)
    History 5 : Silk Roads / Mongols / Ottoman and Mughal Empires
    History : Pictures of History
    001 markdown基本语法
    c#知识结构图
    c#知识结构图
  • 原文地址:https://www.cnblogs.com/ztguang/p/12647184.html
Copyright © 2011-2022 走看看