I'm pretty stumped.
My present diagnostics:
smsd logfile for a send message:2020-04-16 14:10:34,5, smsd: SMS To: s2732. Moved file /var/spool/sms/outgoing/testmessage3 to /var/spool/sms/checked
2020-04-16 14:10:34,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/testmessage3
2020-04-16 14:10:34,6, GSM1: Sending SMS from to s2732
2020-04-16 14:10:34,6, GSM1: Checking if modem is ready
2020-04-16 14:10:34,7, GSM1: -> AT
2020-04-16 14:10:34,7, GSM1: Command is sent, waiting for the answer. (5)
2020-04-16 14:10:34,7, GSM1: <- OK
2020-04-16 14:10:34,6, GSM1: Pre-initializing modem
2020-04-16 14:10:34,7, GSM1: -> ATE0
2020-04-16 14:10:34,7, GSM1: Command is sent, waiting for the answer. (10)
2020-04-16 14:10:34,7, GSM1: <- OK
2020-04-16 14:10:34,7, GSM1: -> AT+CMEE=1;+CREG=2
2020-04-16 14:10:34,7, GSM1: Command is sent, waiting for the answer. (10)
2020-04-16 14:10:34,7, GSM1: <- OK
2020-04-16 14:10:34,6, GSM1: Checking if modem needs PIN
2020-04-16 14:10:34,7, GSM1: -> AT+CPIN?
2020-04-16 14:10:34,7, GSM1: Command is sent, waiting for the answer. (10)
2020-04-16 14:10:34,7, GSM1: <- +CPIN: READY OK
2020-04-16 14:10:34,6, GSM1: Initializing modem
2020-04-16 14:10:35,7, GSM1: -> ATE0;+CPMS="ME","ME","ME";+CSCS="GSM";+CSCS?;
2020-04-16 14:10:35,7, GSM1: Command is sent, waiting for the answer. (10)
2020-04-16 14:10:35,7, GSM1: <- +CPMS: 0,23,0,23,0,23 +CSCS: "GSM" OK
2020-04-16 14:10:35,7, GSM1: -> AT+CSQ
2020-04-16 14:10:35,7, GSM1: Command is sent, waiting for the answer. (10)
2020-04-16 14:10:35,7, GSM1: <- +CSQ: 26,99 OK
2020-04-16 14:10:35,6, GSM1: Signal Strength Indicator: (26,99) -61 dBm (Excellent), Bit Error Rate: not known or not detectable
2020-04-16 14:10:35,6, GSM1: Checking if Modem is registered to the network
2020-04-16 14:10:35,7, GSM1: -> AT+CREG?
2020-04-16 14:10:35,7, GSM1: Command is sent, waiting for the answer. (10)
2020-04-16 14:10:35,7, GSM1: <- +CREG: 2,1, FFFE, 323301, 7 OK
2020-04-16 14:10:35,6, GSM1: Modem is registered to the network
2020-04-16 14:10:35,6, GSM1: Selecting PDU mode
2020-04-16 14:10:35,7, GSM1: -> AT+CMGF=0
2020-04-16 14:10:35,7, GSM1: Command is sent, waiting for the answer. (5)
2020-04-16 14:10:35,7, GSM1: <- OK
2020-04-16 14:10:35,7, GSM1: -> AT+CMGS=14
2020-04-16 14:10:35,7, GSM1: Command is sent, waiting for the answer. (10)
2020-04-16 14:10:35,7, GSM1: <- >
2020-04-16 14:10:35,7, GSM1: -> 001100048172230000FF04CDB2BB0E
2020-04-16 14:10:35,7, GSM1: Command is sent, waiting for the answer. (60)
2020-04-16 14:11:35,7, GSM1: Incorrect answer, put_command expected (OK)|(ERROR), timeout occurred. 1.
2020-04-16 14:11:35,7, GSM1: <-
2020-04-16 14:11:35,3, GSM1: The modem answer was not OK:
2020-04-16 14:11:35,5, GSM1: Waiting 10 sec. before retrying
Wireshark Decode of the exchange, from AT+CMGS to the end of the timeout:No. Time Source Destination Protocol Length Info
1 0.000000 host 5.3.1 USB/AT 75 URB_BULK out, AT Command: AT+CMGS=14
Frame 1: 75 bytes on wire (600 bits), 75 bytes captured (600 bits)
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Apr 16, 2020 15:10:35.487572000 BST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1587046235.487572000 seconds
[Time delta from previous captured frame: 0.000000000 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
[Time since reference or first frame: 0.000000000 seconds]
Frame Number: 1
Frame Length: 75 bytes (600 bits)
Capture Length: 75 bytes (600 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: usb:at]
USB URB
[Source: host]
[Destination: 5.3.1]
URB id: 0x00000000d13d9b00
URB type: URB_SUBMIT ('S')
URB transfer type: URB_BULK (0x03)
Endpoint: 0x01, Direction: OUT
0... .... = Direction: OUT (0)
.... 0001 = Endpoint number: 1
Device: 3
URB bus id: 5
Device setup request: not relevant ('-')
Data: present (0)
URB sec: 1587046235
URB usec: 487572
URB status: Operation now in progress (-EINPROGRESS) (-115)
URB length [bytes]: 11
Data length [bytes]: 11
[Response in: 2]
[bInterfaceClass: Unknown (0xffff)]
Unused Setup Header
Interval: 0
Start frame: 0
Copy of Transfer Flags: 0x00000000
Number of ISO descriptors: 0
AT Command: AT+CMGS=14
AT Command: AT+CMGS=14\r
No. Time Source Destination Protocol Length Info
2 0.000144 5.3.1 host USB 64 URB_BULK out
Frame 2: 64 bytes on wire (512 bits), 64 bytes captured (512 bits)
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Apr 16, 2020 15:10:35.487716000 BST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1587046235.487716000 seconds
[Time delta from previous captured frame: 0.000144000 seconds]
[Time delta from previous displayed frame: 0.000144000 seconds]
[Time since reference or first frame: 0.000144000 seconds]
Frame Number: 2
Frame Length: 64 bytes (512 bits)
Capture Length: 64 bytes (512 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: usb]
USB URB
[Source: 5.3.1]
[Destination: host]
URB id: 0x00000000d13d9b00
URB type: URB_COMPLETE ('C')
URB transfer type: URB_BULK (0x03)
Endpoint: 0x01, Direction: OUT
0... .... = Direction: OUT (0)
.... 0001 = Endpoint number: 1
Device: 3
URB bus id: 5
Device setup request: not relevant ('-')
Data: not present ('>')
URB sec: 1587046235
URB usec: 487716
URB status: Success (0)
URB length [bytes]: 11
Data length [bytes]: 0
[Request in: 1]
[Time from request: 0.000144000 seconds]
[bInterfaceClass: Unknown (0xffff)]
Unused Setup Header
Interval: 0
Start frame: 0
Copy of Transfer Flags: 0x00000000
Number of ISO descriptors: 0
No. Time Source Destination Protocol Length Info
3 0.008725 5.3.2 host USB/AT 68 URB_BULK in, AT Command: >
Frame 3: 68 bytes on wire (544 bits), 68 bytes captured (544 bits)
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Apr 16, 2020 15:10:35.496297000 BST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1587046235.496297000 seconds
[Time delta from previous captured frame: 0.008581000 seconds]
[Time delta from previous displayed frame: 0.008581000 seconds]
[Time since reference or first frame: 0.008725000 seconds]
Frame Number: 3
Frame Length: 68 bytes (544 bits)
Capture Length: 68 bytes (544 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: usb:at]
USB URB
[Source: 5.3.2]
[Destination: host]
URB id: 0x00000000d13d9300
URB type: URB_COMPLETE ('C')
URB transfer type: URB_BULK (0x03)
Endpoint: 0x82, Direction: IN
1... .... = Direction: IN (1)
.... 0010 = Endpoint number: 2
Device: 3
URB bus id: 5
Device setup request: not relevant ('-')
Data: present (0)
URB sec: 1587046235
URB usec: 496297
URB status: Success (0)
URB length [bytes]: 4
Data length [bytes]: 4
[bInterfaceClass: Unknown (0xffff)]
Unused Setup Header
Interval: 0
Start frame: 0
Copy of Transfer Flags: 0x00000200
Number of ISO descriptors: 0
AT Command: >
AT Command: \r\n>
No. Time Source Destination Protocol Length Info
4 0.008767 host 5.3.2 USB 64 URB_BULK in
Frame 4: 64 bytes on wire (512 bits), 64 bytes captured (512 bits)
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Apr 16, 2020 15:10:35.496339000 BST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1587046235.496339000 seconds
[Time delta from previous captured frame: 0.000042000 seconds]
[Time delta from previous displayed frame: 0.000042000 seconds]
[Time since reference or first frame: 0.008767000 seconds]
Frame Number: 4
Frame Length: 64 bytes (512 bits)
Capture Length: 64 bytes (512 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: usb]
USB URB
[Source: host]
[Destination: 5.3.2]
URB id: 0x00000000d13d9300
URB type: URB_SUBMIT ('S')
URB transfer type: URB_BULK (0x03)
Endpoint: 0x82, Direction: IN
1... .... = Direction: IN (1)
.... 0010 = Endpoint number: 2
Device: 3
URB bus id: 5
Device setup request: not relevant ('-')
Data: not present ('<')
URB sec: 1587046235
URB usec: 496339
URB status: Operation now in progress (-EINPROGRESS) (-115)
URB length [bytes]: 4096
Data length [bytes]: 0
[bInterfaceClass: Unknown (0xffff)]
Unused Setup Header
Interval: 0
Start frame: 0
Copy of Transfer Flags: 0x00000200
Number of ISO descriptors: 0
No. Time Source Destination Protocol Length Info
5 0.121420 host 5.3.1 USB 95 URB_BULK out
Frame 5: 95 bytes on wire (760 bits), 95 bytes captured (760 bits)
Encapsulation type: USB packets with Linux header and padding (115)
Arrival Time: Apr 16, 2020 15:10:35.608992000 BST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1587046235.608992000 seconds
[Time delta from previous captured frame: 0.112653000 seconds]
[Time delta from previous displayed frame: 0.112653000 seconds]
[Time since reference or first frame: 0.121420000 seconds]
Frame Number: 5
Frame Length: 95 bytes (760 bits)
Capture Length: 95 bytes (760 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: usb]
USB URB
[Source: host]
[Destination: 5.3.1]
URB id: 0x00000000d13d9b00
URB type: URB_SUBMIT ('S')
URB transfer type: URB_BULK (0x03)
Endpoint: 0x01, Direction: OUT
0... .... = Direction: OUT (0)
.... 0001 = Endpoint number: 1
Device: 3
URB bus id: 5
Device setup request: not relevant ('-')
Data: present (0)
URB sec: 1587046235
URB usec: 608992
URB status: Operation now in progress (-EINPROGRESS) (-115)
URB length [bytes]: 31
Data length [bytes]: 31
[bInterfaceClass: Unknown (0xffff)]
Unused Setup Header
Interval: 0
Start frame: 0
Copy of Transfer Flags: 0x00000000
Number of ISO descriptors: 0
Leftover Capture Data: 303031313030303438313732323330303030464630344344...
I don't think I can attach the actual capture file, I'll happily mail it if anyone is interested.
As far as I read the AT spec the exchange should look something like:
Quote
If PDU mode (see AT+CMGF=0)
AT+CMGC=<length> <CR> PDU can be entered <CTRL-Z> / <ESC>
Response(s)
+CMGC: <mr>[, <ackpdu>]
OK
If sending fails
ERROR
+CMS ERROR
I can find no sign of the <CTRL-Z> I expected in the decode, but that may be simply my ignorance.FYI the decodes are captured via a usbmon interface monitoring ttyUSB0
Harry