{{tag>[hardware linux huawei gps mu609]}} =====Huawei MU609 - send SMS using AT commands===== ~~NOTOC~~ ====Documentation===== Read the following documentation for more information: * Huawei MU609 miniPCIe {{::huawei_20mu609_20mini_20pcie_20module_20hardware_20guide-_28v200r001_02_2c_20english_29.pdf|Hardware guide}}. * Huawei MU609 miniPCIe {{:huawei_mu609_hspa_lga_module_at_command_interface_specification-_v100r002_04_english_.pdf|AT command spec.}} * Huawei MU609 miniPCIe {{::huawei_20mu609_20hspa_20lga_20module_20application_20guide-_28v100r002_02_2c_20english_29.pdf|Application guide}}. * **ttyUSB0**: MODEM port: simulated using USB, for AT command interaction and establishing data connection. * **ttyUSB1**: DIAG port: simulated using USB, for DIAG (diagnostic) command interaction (mainly used to debug modules at present). * **ttyUSB2**: PCUI port: simulated using USB, for AT command interaction only. * **ttyUSB3**: GPS NMEA port: simulated using USB, sending unsolicited indications for NMEA positioning data only. * **ttyUSB4**: GPS Control port: simulated using USB, for GPS AT command interaction only. * **eth3**: ECM port: for establishing communication connection. ====Serial connection==== * Connect to the device:screen /dev/ttyUSB0 9600 ====Send SMS using AT commands==== * **optional:** Reset the mobile terminal (MT). Wait for the MT to come back and reconnect:at+cfun=1,1 * **optional:** System configuration, you need to set CS or CS_ONLY, CS = circuit switched. If you want to set up a dataconnection, configure CS_PS. PS = packet switched. If you don't include CS, you will receive an error: ''+CMS ERROR: 500''. at^syscfg=2,2,3FFFFFFF,1,2 * Check if SIM is ready or needs to be unlocked:at^cpin? at^cpin=1234 * Are we registered to the network?AT+COPS? * Configure message format, text mode:at+cmgf=1 * Set text mode parameter (GSM):at+csmp=,,,0 * Set SMS service center number:AT+CSCA="+31653131313" * Set Terminal Equipment (TE) character set:at+cscs="GSM" * Send message to number:at+cmgs="+31612345678" text text