title: Raspberry PI and USB modem with E173 + Gammu misconfigured or?
body: <p>I am attempting to take a E173 (E173L) usb dongle to communicate with the Raspberry Pi and send an SMS. The goal is to be able to send an alert once I receive an email from a certain party. However I am only able to have the PI notice its existence, but not play fair by gammu to send sms using the dongle. It appears the dongle is working, I believe it is misconfigured. I'm also trying to wrap my head around what gammu is spitting out in the log file. At wits end.</p>
  <p>I am not sure if I should be working with the wvdial.conf, but have adjusted it as follows:</p>
  <pre><code>[Dialer Defaults]
  Init1 = ATZ
  Init2 = ATQ0 V1 E1 S0=0 &amp;C1 &amp;D2
  Stupid Mode = 1
  Modem Type = Analog Modem
  ; Phone = &lt;Target Phone Number&gt;
  ISDN = 0
  ; Password = &lt;Your Password&gt;
  New PPPD = yes
  ; Username = &lt;Your Login Name&gt;
  Modem = /dev/ttyUSB1
  Baud = 9600
  </code></pre>
  <p>gammu monitor:</p>
  <pre><code>SIM phonebook        :   0 used, 250 free
  Own numbers          :   1 used,   3 free
  Battery level        : 0 percent
  Charge state         : powered from battery
  Signal strength      : -95 dBm
  Network level        : 27 percent
  SIM SMS status       : 0 used, 0 unread, 30 locations
  Network state        : requesting network
  Packet network state : requesting network
  GPRS                 : detached
  </code></pre>
  <p>I have managed to put the modem/dongle into its modem state.</p>
  <p>lsusb:</p>
  <pre><code>Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  Bus 001 Device 004: ID 12d1:1001 Huawei Technologies Co., Ltd. E161/E169/E620/E800 HSDPA Modem
  Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  </code></pre>
  <p>I'm not certain but 12d1:1001 seems to be modem, 12d1:14fe was storage mode, and originally I thought 12d1:1506 was network mode</p>
  <p>Here is the entirety of the gammu log file</p>
  <pre><code>Wed 2022/06/22 08:07:34: [Gammu            - 1.42.0]
  Wed 2022/06/22 08:07:34: [Connection       - &quot;at115200&quot;]
  Wed 2022/06/22 08:07:34: [Connection index - 0]
  Wed 2022/06/22 08:07:34: [Model type       - &quot;&quot;]
  Wed 2022/06/22 08:07:34: [Device           - &quot;/dev/ttyUSB2&quot;]
  Wed 2022/06/22 08:07:34: [Running on       - Linux, kernel 5.15.32-v8+ (#1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022)]
  Wed 2022/06/22 08:07:34: Serial device: DTR is up, RTS is up, CAR is down, CTS is down
  Wed 2022/06/22 08:07:34: Setting speed to 115200
  Wed 2022/06/22 08:07:34: [Module           - &quot;auto&quot;]
  Wed 2022/06/22 08:07:34: Escaping SMS mode
  Wed 2022/06/22 08:07:34: SENDING frame type 0x00/length 0x02/2
  Wed 2022/06/22 08:07:34: 1B |0D                                                          ..              
  Wed 2022/06/22 08:07:35: Sending simple AT command to wake up some devices
  Wed 2022/06/22 08:07:35: SENDING frame type 0x00/length 0x03/3
  Wed 2022/06/22 08:07:35: 41A|54T|0D                                                      AT.             
  Wed 2022/06/22 08:07:35: 1 &quot;AT&quot;
  Wed 2022/06/22 08:07:35: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:35: Checking line: OK
  Wed 2022/06/22 08:07:35: AT reply state: 1
  Wed 2022/06/22 08:07:35: RECEIVED frame type 0x00/length 0x09/9
  Wed 2022/06/22 08:07:35: 41A|54T|0D |0D |0A |4FO|4BK|0D |0A                              AT...OK..       
  Wed 2022/06/22 08:07:35: Enabling echo
  Wed 2022/06/22 08:07:35: SENDING frame type 0x00/length 0x05/5
  Wed 2022/06/22 08:07:35: 41A|54T|45E|311|0D                                              ATE1.           
  Wed 2022/06/22 08:07:35: 1 &quot;ATE1&quot;
  Wed 2022/06/22 08:07:35: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:35: Checking line: OK
  Wed 2022/06/22 08:07:35: AT reply state: 1
  Wed 2022/06/22 08:07:35: RECEIVED frame type 0x00/length 0x0B/11
  Wed 2022/06/22 08:07:35: 41A|54T|45E|311|0D |0D |0A |4FO|4BK|0D |0A                      ATE1...OK..     
  Wed 2022/06/22 08:07:35: Trying Motorola mode switch
  Wed 2022/06/22 08:07:35: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:35: 41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D                          AT+MODE=2.      
  Wed 2022/06/22 08:07:36: 1 &quot;AT+MODE=2&quot;
  Wed 2022/06/22 08:07:36: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:36: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:36: AT reply state: 3
  Wed 2022/06/22 08:07:36: RECEIVED frame type 0x00/length 0x21/33
  Wed 2022/06/22 08:07:36: 41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D |0D |0A |43C|4FO|4DM|4DM AT+MODE=2...COMM
  Wed 2022/06/22 08:07:36: 41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T|0D  AND NOT SUPPORT.
  Wed 2022/06/22 08:07:36: 0A                                                              .               
  Wed 2022/06/22 08:07:36: Seems not to be supported
  Wed 2022/06/22 08:07:36: Enabling CME errors
  Wed 2022/06/22 08:07:36: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:36: 41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D                          AT+CMEE=1.      
  Wed 2022/06/22 08:07:36: 1 &quot;AT+CMEE=1&quot;
  Wed 2022/06/22 08:07:36: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:36: Checking line: OK
  Wed 2022/06/22 08:07:36: AT reply state: 1
  Wed 2022/06/22 08:07:36: RECEIVED frame type 0x00/length 0x10/16
  Wed 2022/06/22 08:07:36: 41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D |0D |0A |4FO|4BK|0D |0A  AT+CMEE=1...OK..
  Wed 2022/06/22 08:07:36: SENDING frame type 0x00/length 0x09/9
  Wed 2022/06/22 08:07:36: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D                              AT+CSCS?.       
  Wed 2022/06/22 08:07:37: 1 &quot;AT+CSCS?&quot;
  Wed 2022/06/22 08:07:37: 2 &quot;+CSCS: &quot;IRA&quot;&quot;
  Wed 2022/06/22 08:07:37: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:37: Checking line: OK
  Wed 2022/06/22 08:07:37: AT reply state: 1
  Wed 2022/06/22 08:07:37: RECEIVED frame type 0x00/length 0x1F/31
  Wed 2022/06/22 08:07:37: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
  Wed 2022/06/22 08:07:37: 3A:|20 |22&quot;|49I|52R|41A|22&quot;|0D |0A |0D |0A |4FO|4BK|0D |0A      : &quot;IRA&quot;....OK.. 
  Wed 2022/06/22 08:07:37: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:37: 41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D                          AT+CSCS=?.      
  Wed 2022/06/22 08:07:37: 1 &quot;AT+CSCS=?&quot;
  Wed 2022/06/22 08:07:37: 2 &quot;+CSCS: (&quot;IRA&quot;,&quot;UCS2&quot;,&quot;GSM&quot;)&quot;
  Wed 2022/06/22 08:07:37: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:37: Checking line: OK
  Wed 2022/06/22 08:07:37: AT reply state: 1
  Wed 2022/06/22 08:07:37: RECEIVED frame type 0x00/length 0x2F/47
  Wed 2022/06/22 08:07:37: 41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D |0D |0A |2B+|43C|53S|43C AT+CSCS=?...+CSC
  Wed 2022/06/22 08:07:37: 53S|3A:|20 |28(|22&quot;|49I|52R|41A|22&quot;|2C,|22&quot;|55U|43C|53S|322|22&quot; S: (&quot;IRA&quot;,&quot;UCS2&quot;
  Wed 2022/06/22 08:07:37: 2C,|22&quot;|47G|53S|4DM|22&quot;|29)|0D |0A |0D |0A |4FO|4BK|0D |0A      ,&quot;GSM&quot;)....OK.. 
  Wed 2022/06/22 08:07:37: Chosen GSM as normal charset
  Wed 2022/06/22 08:07:37: Chosen UCS2 as unicode charset
  Wed 2022/06/22 08:07:37: SENDING frame type 0x00/length 0x0E/14
  Wed 2022/06/22 08:07:37: 41A|54T|2B+|43C|53S|43C|53S|3D=|22&quot;|47G|53S|4DM|22&quot;|0D          AT+CSCS=&quot;GSM&quot;.  
  Wed 2022/06/22 08:07:37: 1 &quot;AT+CSCS=&quot;GSM&quot;&quot;
  Wed 2022/06/22 08:07:37: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:37: Checking line: OK
  Wed 2022/06/22 08:07:37: AT reply state: 1
  Wed 2022/06/22 08:07:37: RECEIVED frame type 0x00/length 0x14/20
  Wed 2022/06/22 08:07:37: 41A|54T|2B+|43C|53S|43C|53S|3D=|22&quot;|47G|53S|4DM|22&quot;|0D |0D |0A  AT+CSCS=&quot;GSM&quot;...
  Wed 2022/06/22 08:07:37: 4FO|4BK|0D |0A                                                  OK..            
  Wed 2022/06/22 08:07:37: SENDING frame type 0x00/length 0x09/9
  Wed 2022/06/22 08:07:37: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D                              AT+CSCS?.       
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CSCS?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;+CSCS: &quot;GSM&quot;&quot;
  Wed 2022/06/22 08:07:38: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x1F/31
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
  Wed 2022/06/22 08:07:38: 3A:|20 |22&quot;|47G|53S|4DM|22&quot;|0D |0A |0D |0A |4FO|4BK|0D |0A      : &quot;GSM&quot;....OK.. 
  Wed 2022/06/22 08:07:38: Getting model
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x08/8
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|4DM|0D                                  AT+CGMM.        
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CGMM&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;E173L&quot;
  Wed 2022/06/22 08:07:38: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x17/23
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|4DM|0D |0D |0A |45E|311|377|333|4CL|0D  AT+CGMM...E173L.
  Wed 2022/06/22 08:07:38: 0A |0D |0A |4FO|4BK|0D |0A                                      ...OK..         
  Wed 2022/06/22 08:07:38: Unknown model, but it should still work
  Wed 2022/06/22 08:07:38: [Model name: `E173L']
  Wed 2022/06/22 08:07:38: [Model data: `']
  Wed 2022/06/22 08:07:38: [Model data: `unknown']
  Wed 2022/06/22 08:07:38: [Connected model  - &quot;E173L&quot;]
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x08/8
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|49I|0D                                  AT+CGMI.        
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CGMI&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;huawei&quot;
  Wed 2022/06/22 08:07:38: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x18/24
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|49I|0D |0D |0A |68h|75u|61a|77w|65e|69i AT+CGMI...huawei
  Wed 2022/06/22 08:07:38: 0D |0A |0D |0A |4FO|4BK|0D |0A                                  ....OK..        
  Wed 2022/06/22 08:07:38: Manufacturer info received
  Wed 2022/06/22 08:07:38: [Manufacturer: Huawei]
  Wed 2022/06/22 08:07:38: Checking for OBEX support
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0B/11
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D                      AT+CPROT=?.     
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CPROT=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x22/34
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D |0D |0A |43C|4FO|4DM AT+CPROT=?...COM
  Wed 2022/06/22 08:07:38: 4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T MAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: 0D |0A                                                          ..              
  Wed 2022/06/22 08:07:38: Checking for SYNCML/OBEX support
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0C/12
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D                  AT+SYNCML=?.    
  Wed 2022/06/22 08:07:38: 1 &quot;AT+SYNCML=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x23/35
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D |0D |0A |43C|4FO AT+SYNCML=?...CO
  Wed 2022/06/22 08:07:38: 4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R MMAND NOT SUPPOR
  Wed 2022/06/22 08:07:38: 54T|0D |0A                                                      T..             
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0D/13
  Wed 2022/06/22 08:07:38: 41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D              AT$TSSPCSW=?.   
  Wed 2022/06/22 08:07:38: 1 &quot;AT$TSSPCSW=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x24/36
  Wed 2022/06/22 08:07:38: 41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D |0D |0A |43C AT$TSSPCSW=?...C
  Wed 2022/06/22 08:07:38: 4FO|4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO OMMAND NOT SUPPO
  Wed 2022/06/22 08:07:38: 52R|54T|0D |0A                                                  RT..            
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|48H|55U|50P|3D=|3F?|0D                          AT+CHUP=?.      
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CHUP=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x10/16
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|48H|55U|50P|3D=|3F?|0D |0D |0A |4FO|4BK|0D |0A  AT+CHUP=?...OK..
  Wed 2022/06/22 08:07:38: [Module           - &quot;A2D|iPAQ|at|M20|S25|MC35|TC35|C35i|S65|S300|5110|5130|5190|5210|6110|6130|6150|6190|6210|6250|6310|6310i|6510|7110|8210|8250|8290|8310|8390|8850|8855|8890|8910|9110|9210&quot;]
  Wed 2022/06/22 08:07:38: Escaping SMS mode
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x02/2
  Wed 2022/06/22 08:07:38: 1B |0D                                                          ..              
  Wed 2022/06/22 08:07:38: Sending simple AT command to wake up some devices
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x03/3
  Wed 2022/06/22 08:07:38: 41A|54T|0D                                                      AT.             
  Wed 2022/06/22 08:07:38: 1 &quot;AT&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x09/9
  Wed 2022/06/22 08:07:38: 41A|54T|0D |0D |0A |4FO|4BK|0D |0A                              AT...OK..       
  Wed 2022/06/22 08:07:38: Enabling echo
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x05/5
  Wed 2022/06/22 08:07:38: 41A|54T|45E|311|0D                                              ATE1.           
  Wed 2022/06/22 08:07:38: 1 &quot;ATE1&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x0B/11
  Wed 2022/06/22 08:07:38: 41A|54T|45E|311|0D |0D |0A |4FO|4BK|0D |0A                      ATE1...OK..     
  Wed 2022/06/22 08:07:38: Trying Motorola mode switch
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D                          AT+MODE=2.      
  Wed 2022/06/22 08:07:38: 1 &quot;AT+MODE=2&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x21/33
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D |0D |0A |43C|4FO|4DM|4DM AT+MODE=2...COMM
  Wed 2022/06/22 08:07:38: 41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T|0D  AND NOT SUPPORT.
  Wed 2022/06/22 08:07:38: 0A                                                              .               
  Wed 2022/06/22 08:07:38: Seems not to be supported
  Wed 2022/06/22 08:07:38: Enabling CME errors
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D                          AT+CMEE=1.      
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CMEE=1&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x10/16
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D |0D |0A |4FO|4BK|0D |0A  AT+CMEE=1...OK..
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x09/9
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D                              AT+CSCS?.       
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CSCS?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;+CSCS: &quot;GSM&quot;&quot;
  Wed 2022/06/22 08:07:38: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x1F/31
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
  Wed 2022/06/22 08:07:38: 3A:|20 |22&quot;|47G|53S|4DM|22&quot;|0D |0A |0D |0A |4FO|4BK|0D |0A      : &quot;GSM&quot;....OK.. 
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D                          AT+CSCS=?.      
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CSCS=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;+CSCS: (&quot;IRA&quot;,&quot;UCS2&quot;,&quot;GSM&quot;)&quot;
  Wed 2022/06/22 08:07:38: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x2F/47
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D |0D |0A |2B+|43C|53S|43C AT+CSCS=?...+CSC
  Wed 2022/06/22 08:07:38: 53S|3A:|20 |28(|22&quot;|49I|52R|41A|22&quot;|2C,|22&quot;|55U|43C|53S|322|22&quot; S: (&quot;IRA&quot;,&quot;UCS2&quot;
  Wed 2022/06/22 08:07:38: 2C,|22&quot;|47G|53S|4DM|22&quot;|29)|0D |0A |0D |0A |4FO|4BK|0D |0A      ,&quot;GSM&quot;)....OK.. 
  Wed 2022/06/22 08:07:38: Chosen GSM as normal charset
  Wed 2022/06/22 08:07:38: Chosen UCS2 as unicode charset
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x08/8
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|49I|0D                                  AT+CGMI.        
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CGMI&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;huawei&quot;
  Wed 2022/06/22 08:07:38: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x18/24
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|49I|0D |0D |0A |68h|75u|61a|77w|65e|69i AT+CGMI...huawei
  Wed 2022/06/22 08:07:38: 0D |0A |0D |0A |4FO|4BK|0D |0A                                  ....OK..        
  Wed 2022/06/22 08:07:38: Manufacturer info received
  Wed 2022/06/22 08:07:38: [Manufacturer: Huawei]
  Wed 2022/06/22 08:07:38: Checking for OBEX support
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0B/11
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D                      AT+CPROT=?.     
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CPROT=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x22/34
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D |0D |0A |43C|4FO|4DM AT+CPROT=?...COM
  Wed 2022/06/22 08:07:38: 4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T MAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: 0D |0A                                                          ..              
  Wed 2022/06/22 08:07:38: Checking for SYNCML/OBEX support
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0C/12
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D                  AT+SYNCML=?.    
  Wed 2022/06/22 08:07:38: 1 &quot;AT+SYNCML=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x23/35
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D |0D |0A |43C|4FO AT+SYNCML=?...CO
  Wed 2022/06/22 08:07:38: 4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R MMAND NOT SUPPOR
  Wed 2022/06/22 08:07:38: 54T|0D |0A                                                      T..             
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0D/13
  Wed 2022/06/22 08:07:38: 41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D              AT$TSSPCSW=?.   
  Wed 2022/06/22 08:07:38: 1 &quot;AT$TSSPCSW=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x24/36
  Wed 2022/06/22 08:07:38: 41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D |0D |0A |43C AT$TSSPCSW=?...C
  Wed 2022/06/22 08:07:38: 4FO|4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO OMMAND NOT SUPPO
  Wed 2022/06/22 08:07:38: 52R|54T|0D |0A                                                  RT..            
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|48H|55U|50P|3D=|3F?|0D                          AT+CHUP=?.      
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CHUP=?&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x10/16
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|48H|55U|50P|3D=|3F?|0D |0D |0A |4FO|4BK|0D |0A  AT+CHUP=?...OK..
  Wed 2022/06/22 08:07:38: Setting date &amp; time
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x1F/31
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|43C|4CL|4BK|3D=|22&quot;|322|322|2F/|300|366|2F/|322 AT+CCLK=&quot;22/06/2
  Wed 2022/06/22 08:07:38: 322|2C,|300|388|3A:|300|377|3A:|333|388|2B+|300|311|22&quot;|0D      2,08:07:38+01&quot;. 
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CCLK=&quot;22/06/22,08:07:38+01&quot;&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;COMMAND NOT SUPPORT&quot;
  Wed 2022/06/22 08:07:38: Checking line: COMMAND NOT SUPPORT
  Wed 2022/06/22 08:07:38: AT reply state: 3
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x36/54
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|43C|4CL|4BK|3D=|22&quot;|322|322|2F/|300|366|2F/|322 AT+CCLK=&quot;22/06/2
  Wed 2022/06/22 08:07:38: 322|2C,|300|388|3A:|300|377|3A:|333|388|2B+|300|311|22&quot;|0D |0D  2,08:07:38+01&quot;..
  Wed 2022/06/22 08:07:38: 0A |43C|4FO|4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P .COMMAND NOT SUP
  Wed 2022/06/22 08:07:38: 50P|4FO|52R|54T|0D |0A                                          PORT..          
  Wed 2022/06/22 08:07:38: Getting firmware versions
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x08/8
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|52R|0D                                  AT+CGMR.        
  Wed 2022/06/22 08:07:38: 1 &quot;AT+CGMR&quot;
  Wed 2022/06/22 08:07:38: 2 &quot;21.106.04.00.982&quot;
  Wed 2022/06/22 08:07:38: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:38: Checking line: OK
  Wed 2022/06/22 08:07:38: AT reply state: 1
  Wed 2022/06/22 08:07:38: RECEIVED frame type 0x00/length 0x22/34
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|47G|4DM|52R|0D |0D |0A |322|311|2E.|311|300|366 AT+CGMR...21.106
  Wed 2022/06/22 08:07:38: 2E.|300|344|2E.|300|300|2E.|399|388|322|0D |0A |0D |0A |4FO|4BK .04.00.982....OK
  Wed 2022/06/22 08:07:38: 0D |0A                                                          ..              
  Wed 2022/06/22 08:07:38: Received firmware version: &quot;21.106.04.00.982&quot;
  Wed 2022/06/22 08:07:38: Number version is &quot;21.106040&quot;
  Wed 2022/06/22 08:07:38: [Firmware version - &quot;21.106.04.00.982&quot;]
  Wed 2022/06/22 08:07:38: Set AT phone power on
  Wed 2022/06/22 08:07:38: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:38: 41A|54T|2B+|43C|46F|55U|4EN|3D=|311|0D                          AT+CFUN=1.      
  Wed 2022/06/22 08:07:39: 1 &quot;AT+CFUN=1&quot;
  Wed 2022/06/22 08:07:39: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:39: Checking line: OK
  Wed 2022/06/22 08:07:39: AT reply state: 1
  Wed 2022/06/22 08:07:39: RECEIVED frame type 0x00/length 0x10/16
  Wed 2022/06/22 08:07:39: 41A|54T|2B+|43C|46F|55U|4EN|3D=|311|0D |0D |0A |4FO|4BK|0D |0A  AT+CFUN=1...OK..
  Wed 2022/06/22 08:07:39: [Connected]
  Wed 2022/06/22 08:07:39: Checking used: UDH len 0, UsedBytes 0, FreeText 160, UsedText 0, FreeBytes 140
  Wed 2022/06/22 08:07:39: Adding text
  Wed 2022/06/22 08:07:39: Copy 160 (max 4)
  Wed 2022/06/22 08:07:39: Default text, length 4 4
  Wed 2022/06/22 08:07:39: Text added
  Wed 2022/06/22 08:07:39: Checking at the end: UDH len 0, UsedBytes 4, FreeText 156, UsedText 4, FreeBytes 136
  Wed 2022/06/22 08:07:39: 4 4
  Wed 2022/06/22 08:07:39: Entering GSM_GetSMSC
  Wed 2022/06/22 08:07:39: Getting SMSC
  Wed 2022/06/22 08:07:39: SENDING frame type 0x00/length 0x09/9
  Wed 2022/06/22 08:07:39: 41A|54T|2B+|43C|53S|43C|41A|3F?|0D                              AT+CSCA?.       
  Wed 2022/06/22 08:07:39: 1 &quot;AT+CSCA?&quot;
  Wed 2022/06/22 08:07:39: 2 &quot;+CSCA: &quot;+1XXXXXX&quot;,145&quot;
  Wed 2022/06/22 08:07:39: 3 &quot;OK&quot;
  Wed 2022/06/22 08:07:39: Checking line: OK
  Wed 2022/06/22 08:07:39: AT reply state: 1
  Wed 2022/06/22 08:07:39: RECEIVED frame type 0x00/length 0x2C/44
  Wed 2022/06/22 08:07:39: 41A|54T|2B+|43C|53S|43C|41A|3F?|0D |0D |0A |2B+|43C|53S|43C|41A AT+CSCA?...+CSCA
  Wed 2022/06/22 08:07:39: 3A:|20 |22&quot;|2B+|311|333|311|322|333|311|344|399|388|311|300|22&quot; : &quot;+1XXXXXX&quot;
  Wed 2022/06/22 08:07:39: 2C,|311|344|355|0D |0A |0D |0A |4FO|4BK|0D |0A                  ,145....OK..    
  Wed 2022/06/22 08:07:39: SMSC info received
  Wed 2022/06/22 08:07:39: Parsing +CSCA: &quot;+XXXXXXX&quot;,145 with +CSCA: @p, @i
  Wed 2022/06/22 08:07:39: Grabbed string from reply: &quot;+XXXXXXXX&quot; (parsed 14 bytes)
  Wed 2022/06/22 08:07:39: Parsed phone string &quot;+XXXXXX&quot;
  Wed 2022/06/22 08:07:39: Phone string decoded as &quot;+XXXXXXX&quot;
  Wed 2022/06/22 08:07:39: Parsed int 145
  Wed 2022/06/22 08:07:39: Leaving GSM_GetSMSC
  Wed 2022/06/22 08:07:39: Entering GSM_SendSMS
  Wed 2022/06/22 08:07:39: Trying SMS PDU mode
  Wed 2022/06/22 08:07:39: SENDING frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:07:39: 41A|54T|2B+|43C|4DM|47G|46F|3D=|300|0D                          AT+CMGF=0.      
  Wed 2022/06/22 08:07:39: 1 &quot;AT+CMGF=0&quot;
  Wed 2022/06/22 08:07:39: 2 &quot;OK&quot;
  Wed 2022/06/22 08:07:39: Checking line: OK
  Wed 2022/06/22 08:07:39: AT reply state: 1
  Wed 2022/06/22 08:07:39: RECEIVED frame type 0x00/length 0x10/16
  Wed 2022/06/22 08:07:39: 41A|54T|2B+|43C|4DM|47G|46F|3D=|300|0D |0D |0A |4FO|4BK|0D |0A  AT+CMGF=0...OK..
  Wed 2022/06/22 08:07:39: SMS Submit
  Wed 2022/06/22 08:07:39: Recipient number &quot;+1XXXXXXXX&quot;
  Wed 2022/06/22 08:07:39: SMSC number &quot;+1XXXXXXX&quot;
  Wed 2022/06/22 08:07:39: SMS class -1
  Wed 2022/06/22 08:07:39: SMS validity ff
  Wed 2022/06/22 08:07:39: TPMR: 00 0
  Wed 2022/06/22 08:07:39: 7 bit SMS, length 4, 4
  Wed 2022/06/22 08:07:39: test
  Wed 2022/06/22 08:07:39: Waiting for modem prompt
  Wed 2022/06/22 08:07:39: SENDING frame type 0x00/length 0x0B/11
  Wed 2022/06/22 08:07:39: 41A|54T|2B+|43C|4DM|47G|53S|3D=|311|388|0D                      AT+CMGS=18.     
  Wed 2022/06/22 08:07:39: 1 &quot;AT+CMGS=18&quot;
  Wed 2022/06/22 08:07:39: 2 &quot;&gt; &quot;
  Wed 2022/06/22 08:07:39: Checking line: &gt; 
  Wed 2022/06/22 08:07:39: AT reply state: 7
  Wed 2022/06/22 08:07:39: RECEIVED frame type 0x00/length 0x0F/15
  Wed 2022/06/22 08:07:39: 41A|54T|2B+|43C|4DM|47G|53S|3D=|311|388|0D |0D |0A |3E&gt;|20      AT+CMGS=18...&gt;  
  Wed 2022/06/22 08:07:39: Sending SMS
  Wed 2022/06/22 08:07:39: SENDING frame type 0x00/length 0x34/52
  Wed 2022/06/22 08:07:39: 300|377|399|311|333|311|322|311|311|333|399|344|311|388|46F|300 07913121139418F0
  Wed 2022/06/22 08:07:39: 311|311|300|300|300|42B|399|311|377|311|333|377|399|388|333|355 11000B9171379835
  Wed 2022/06/22 08:07:39: 311|355|46F|377|300|300|300|300|46F|46F|300|344|46F|344|46F|322 15F70000FF04F4F2
  Wed 2022/06/22 08:07:39: 399|43C|300|45E                                                 9C0E            
  Wed 2022/06/22 08:07:39: SENDING frame type 0x00/length 0x01/1
  Wed 2022/06/22 08:07:39: 1A                                                              .               
  Wed 2022/06/22 08:07:39: Leaving GSM_SendSMS
  Wed 2022/06/22 08:08:07: 1 &quot;^MODE: 3,3&quot;
  Wed 2022/06/22 08:08:07: Checking line: ^MODE: 3,3
  Wed 2022/06/22 08:08:07: AT reply state: 4
  Wed 2022/06/22 08:08:07: RECEIVED frame type 0x00/length 0x0C/12
  Wed 2022/06/22 08:08:07: 5E^|4DM|4FO|44D|45E|3A:|20 |333|2C,|333|0D |0A                  ^MODE: 3,3..    
  Wed 2022/06/22 08:08:07: 1 &quot;^RSSI: 7&quot;
  Wed 2022/06/22 08:08:07: Checking line: ^RSSI: 7
  Wed 2022/06/22 08:08:07: AT reply state: 4
  Wed 2022/06/22 08:08:07: RECEIVED frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:08:07: 5E^|52R|53S|53S|49I|3A:|20 |377|0D |0A                          ^RSSI: 7..      
  Wed 2022/06/22 08:08:08: 1 &quot;^RSSI: 8&quot;
  Wed 2022/06/22 08:08:08: Checking line: ^RSSI: 8
  Wed 2022/06/22 08:08:08: AT reply state: 4
  Wed 2022/06/22 08:08:08: RECEIVED frame type 0x00/length 0x0A/10
  Wed 2022/06/22 08:08:08: 5E^|52R|53S|53S|49I|3A:|20 |388|0D |0A                          ^RSSI: 8..      
  Wed 2022/06/22 08:08:09: 1 &quot;^SRVST: 1&quot;
  Wed 2022/06/22 08:08:09: Checking line: ^SRVST: 1
  Wed 2022/06/22 08:08:09: AT reply state: 4
  Wed 2022/06/22 08:08:09: RECEIVED frame type 0x00/length 0x0B/11
  Wed 2022/06/22 08:08:09: 5E^|53S|52R|56V|53S|54T|3A:|20 |311|0D |0A                      ^SRVST: 1..     
  Wed 2022/06/22 08:08:09: 1 &quot;AT+CMGS=18&quot;
  Wed 2022/06/22 08:08:09: 2 &quot;&gt; 07913121139418F011000B917137983515F70000FF04F4F29C0E&quot;
  Wed 2022/06/22 08:08:09: 3 &quot;+CMS ERROR: 500&quot;
  Wed 2022/06/22 08:08:09: Checking line: +CMS ERROR: 500
  Wed 2022/06/22 08:08:09: AT reply state: 5
  Wed 2022/06/22 08:08:09: RECEIVED frame type 0x00/length 0x5F/95
  Wed 2022/06/22 08:08:09: 41A|54T|2B+|43C|4DM|47G|53S|3D=|311|388|0D |0D |0A |3E&gt;|20 |300 AT+CMGS=18...&gt; 0
  Wed 2022/06/22 08:08:09: 377|399|311|333|311|322|311|311|333|399|344|311|388|46F|300|311 7913121139418F01
  Wed 2022/06/22 08:08:09: 311|300|300|300|42B|399|311|377|311|333|377|399|388|333|355|311 1000B91713798351
  Wed 2022/06/22 08:08:09: 355|46F|377|300|300|300|300|46F|46F|300|344|46F|344|46F|322|399 5F70000FF04F4F29
  Wed 2022/06/22 08:08:09: 43C|300|45E|1A |0D |0A |0D |0A |0D |0A |0D |0A |0D |0A |2B+|43C C0E...........+C
  Wed 2022/06/22 08:08:09: 4DM|53S|20 |45E|52R|52R|4FO|52R|3A:|20 |355|300|300|0D |0A      MS ERROR: 500.. 
  Wed 2022/06/22 08:08:09: Error 500
  Wed 2022/06/22 08:08:09: Sent SMS on device: &quot;/dev/ttyUSB2&quot;
  Wed 2022/06/22 08:08:09: CMS Error 500: &quot;unknown error&quot;
  Wed 2022/06/22 08:08:09: [Terminating]
  Wed 2022/06/22 08:08:09: [Closing]
  </code></pre>
  <p>Any help would be appreciated, I will make some attempts to recreate this and share the results.</p>