Title.
#include <SoftwareSerial.h>
SoftwareSerial mySerial(7, 8); // RX, TX
void setup() {
Serial.begin(19200);
mySerial.begin(19200);
mySerial.write("AT+QAUDCH=1");
}
void loop() {
if (mySerial.available()) {
Serial.write(mySerial.read());
}
if (Serial.available()) {
mySerial.write(Serial.read());
}
}
I can call, Ican text, I can answer but no sound and other's don't hear anything. I have aworking pair of headphones and a mic. Yesterday when I got called and had the same headphones plugged in - I could hear the 8bit music but ever since then nothing.
I've tried setting Carriage return & Both NL & CR, doesn't work.
some results:
AT+CHFA=?
+CHFA: (0 = NORMAL_AUDIO, 1 = AUX_AUDIO)
AT+CHFA?
+CHFA: 0
AT+CHFA=1
ERROR
AT+CHFA=1\r
ERROR
However, this code - AT commands for gsm shield with audio ยท GitHub
has some startup commands. There is a command AT+QAUDCH=1. In some SIM900 documentations I saw this command is used to change audio channels, while some other documentations show AT+CHFA = 1. In my case both don't work. However, when I run this code, the command AT+QAUDCH=1 returns OK but I still cannot hear anything! I tried adding another AT+QAUDCH=1 in the array just to see if it's gonna return an OK - well, it returned an ERROR which is even stranger!
First day I managed to receive a call I had sound come out of the same headphones. Now there is no sound. Microphone also doesn't work. Many of the listed commands don't work either, just return ERROR.
I'm really frustrated now, haven't made any progress the last 2 days..