Hi guys, I have a Huwaei modem(E175). I am programatically(via Java) sending commands to the modems serial port (/dev/ttyUSB0) and things seem to be ok except when I started handling the USSD commands, I simply get the response ERROR / NO CARRIER from the modem depending on how I have sent the USSD command(See below for details). I understand that we have data mode and command mode, what I don't understand is how to explicitly switch between the modes. I would also like to know the detailed meaning of NO CARRIER, does it call for my explicit registration into a GSM network, or what is NO CARRIER supposed to mean in this context? Or is their something I am supposed to do before a USSD session, because if its the network, I am able to send SMS with the modem without the NO CARRIER response. Please help, if you know the workaround, I'd appreciate. A section of the outputs of my program are pasted below.
When sending the USSD command using AT+CUSD:
If i try to send USSD using ADT, i get the NO CARRIER response.
When sending the USSD command using AT+CUSD:
Code:
Submitted AT command: AT+CMGF=1
OK
Submitted AT command: AT+CGREG?
+CGREG: 0,1
OK
Submitted AT command: AT+CUSD=1,"*144#"
ERROR
Code:
Successfully opened the serial port /dev/ttyUSB0
Submitted AT command: AT+CMGF=1
OK
Submitted AT command: AT+CGREG?
+CGREG: 0,1
OK
Submitted AT command: ATD*144#
NO CARRIER
Note: *144# is the USSD code used to check balance with my SIM Operator.
Last edited: