gdb --args gnokii --phone 1 --sendsms xxxnumberxxx GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/gnokii...done. (gdb) run Starting program: /usr/bin/gnokii --phone 1 --sendsms xxxnumberxxxx [Thread debugging using libthread_db enabled] GNOKII Version 0.6.31git LOG: debug mask is 0x1 Config read from file /root/.gnokiirc. phone instance config: model = 6210 port = /dev/ttyS0 connection = serial initlength = default serial_baudrate = 38400 serial_write_usleep = -1 handshake = software require_dcd = 0 smsc_timeout = 10 rfcomm_channel = 0 sm_retry = 0 Connecting Serial device: opening device /dev/ttyS0 Serial device: setting speed to 115200 Serial device: setting RTS to low and DTR to low Getting model... Message sent: 0x1b / 0x0006 00 01 00 03 01 32 | 2 [Received Ack of type 1b, seq: 0] [Sending Ack of type 1b, seq: 2] Message received: 0x1b / 0x0037 01 1c 00 04 00 56 20 30 35 2e 30 31 0a 31 34 2d | V 05.01 14- 30 33 2d 30 31 0a 4e 50 45 2d 33 0a 28 63 29 20 | 03-01 NPE-3 (c) 4e 4d 50 2e 00 58 3f 0d 00 00 00 ff 00 00 00 ff | NMP. X? 00 00 01 50 00 00 00 | P Received message type 1b Received model NPE-3 Message sent: 0x40 / 0x0004 00 01 64 01 | d [Received Ack of type 40, seq: 1] [Sending Ack of type 40, seq: 3] Message received: 0x40 / 0x000c 01 01 64 02 01 4c 0d 01 01 01 1b 58 | d L X Received message type 40 Unknown security command Message: Extended commands enabled. Message sent: 0x02 / 0x0006 00 01 00 33 64 01 | 3d [Received Ack of type 02, seq: 2] [Sending Ack of type 02, seq: 4] Message received: 0x02 / 0x0022 01 24 00 34 01 f1 00 00 00 00 00 00 00 00 00 00 | $ 4 00 00 00 00 00 07 91 53 91 26 01 00 00 00 00 00 | S & 00 00 | Received message type 02 SMSC Received 1 Please enter SMS text. End your input with : teste de envio de sms- . =====> ENTER gn_sms_send() enc_chars: 25 ext_chars: 0 total: 22 size of the input string: 25 bytes number of characters in the input string: 25 chars =====> ENTER sms_send_single() General Data Coding Default Alphabet size: 22 offset: 0 encoded size: 22 rawsms length: 25 rawsms user data length: 22 dcs: 0x00 Length: 0x19 user_data_length: 0x16 ValidityIndicator: 2 user_data: F4F29C5E0691CBA0B2DB9E7E83C865D0BC3D6F295C0A Input is 25 bytes long SMS is 22 octets long Sending Message sent: 0x02 / 0x0040 00 01 00 01 02 00 07 91 53 91 26 01 00 00 00 00 | S & 00 00 11 00 00 00 19 09 81 19 06 53 94 f0 00 00 | S 00 00 00 a9 00 00 00 00 00 00 f4 f2 9c 5e 06 91 | ^ cb a0 b2 db 9e 7e 83 c8 65 d0 bc 3d 6f 29 5c 0a | ~ e =o)\ SM_Block: exiting the retry loop SMS Send failed (Command timed out.) Serial device: closing device Program exited with code 013. (gdb) backtrace No stack. (gdb)