-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stuck in the blockUntilReady #15
Comments
Hmm, I'm not sure, this sounds like one of those weird problems that just goes away if you jiggle enough wires... |
I have been able to pin it to the function begin. |
Is it a library problem? Try enabling debugging. |
I have put some debug code and this part works... +CME ERROR:58 But from here on..... not working.... |
Ah, damnit, I thought I had some debug code already there. I'm afraid I haven't used the A6 in a year and I don't remember much :/ |
this is is part of the debug dump +CME ERROR:58 Reply OK. OK Reply OK. |
Hmm, looks like maybe your rate isn't being set properly? |
I used Andreas Spiess code and it works. It was set at 115200, so I change yours to that speed and now it works like a charm. mmmm strange.... I have read that SoftwareSerial does not support that speed... but it works... I will do a 48h test soon..... once I get HTTP request to work. :-) |
Hmm, what was that code? |
I see, thanks. Odd that it works at 115200 and not at 9600, but the ESP can do 115200 no problem, as far as I know. |
Now I need to get the HTTP request to work... I need to get data and post data to some sites.. :-) |
There's already a pull request for that (#5), but it needs a bit of cleaning up and review. You can use that if you want, I'd be grateful if you could shape it up into a more tidy PR. |
I replaced the lib that I was using and now it stopped working! strange..... |
It must be something with the local Chilean phone companies. I have tried several libs and code... none connect to the internet.... mmmmmmmm |
Hi, I'd like to ask for your assistance please if you manage to solve this issue: Timed out. Timed out. Already tried different baudrate, the output still the same. Thanks a lot. |
Hi, I have a similar problem. I noticed that the library work perfectly with Arduino Uno or Nano (atm328P CPU) but has some strange problem on Arduino ProMini (168 CPU): sometimes (rarely) it gets out from stucking on blockUntilReady function, but nonetheless it doesn't work anyway (it doesn't intercepts calls or SMS). |
Hmm, maybe it has something to do with the code pausing for too long and breaking the serial's flow? I'm afraid I don't know very much about interrupts and scheduling so serial reads have higher priority, but this sounds like a likely culprit. |
Hi, already working on mine. I didn't change anything in the code, except the pin assignment in my ESP8266 which is D7 and D8 (pin 13 and 15). I also didn't include the country code one the mobile number. The only problem im facing right now is that, it wont display the sms received by the GSM into the serial monitor. |
Since I noticed that the module works perfectly simple starting the softwareserial at 9600 bauds, is there a system to omit all the part of "autosensing" the baud rate and setting it, putting it straight to 9600 (I experimented that is the best speed) and symply waiting for it to reply "OK" to "AT" command? I tried, but I don't know enough your code to put safely my hands on it. |
@giasone70 The library starts with 9600 bauds and tries to see if the modem responds, and only tries 115200 if it doesn't. Have you found that it will actually not respond to the sensing but will respond afterwards? |
unfortunately not... as I said, it usually stucks at blockuntilready. It rarely goes after, but no function actually works... I tried to enable DEBUG, but probably I don't know how to do it, because nothing happens... |
Hmm, does it still happen if you add a 30 second delay before |
Yes. It doesn't go further blockUntilReady.:( |
Ah, that's too bad. I remember having these problems as well, and then at some point it started working. At that point, I released the library, but I didn't do something specific. It seems to have been the module misbehaving. Try a better power supply, as well. |
I thought something like that... but, I realized that, in that case, It won't work neither with the simple SoftwareSerial.h routine. It instead works like a charm that way, perfectly receiving AT commands and responding to them. |
Anyway, how to activate debug mode? |
Just define DEBUG. |
Hi, did you happen to manage to display live message received by the module into the serial monitor? Thanks. |
Yeah, that worked for me with the sample code. |
Sample code works fine, when I run the program the I have this output below. Sending text from the GSM to the number defined is working, the only problem is when im sending a text to the GSM its not displaying below program is just continuing... Reply OK. Reply OK. Reply OK. |
Command doesn't change when text message is received always AT+CLCC OK. |
Are you running the example code to detect incoming SMS? |
YEs Sir, below command from the library was not showing into the serial monitor: // Retrieve the number and locations of all SMS messages. // Retrieve the number and locations of all SMS messages.
} // Return the SMS at index.
} // Delete the SMS at index. // Set the SMS charset.
} // Set the volume for the speaker. level should be a number between 5 and
} // Enable the speaker, rather than the headphones. Pass 0 to route audio through
} |
I'm running your example code from the library you made Sir. |
Here's the exact code I program into the ESP8266: #include <A6lib.h> #ifdef ESP8266 // Instantiate the library with TxPin, RxPin. int unreadSMSLocs[30] = {0}; void setup() {
} void loop() {
} |
Hmm, very odd. Try enabling debugging to see what's going on, I'm afraid I don't have an A6 ready to debug at the moment... |
Debug already define into the .h library Sir: #ifndef A6lib_h #include <Arduino.h> #define DEBUG |
Are you sure |
Yes Sir,. The number that should be define is not the number which is into the GSM right? I'm sure I defines it correctly. Its even sending me text message if I called the GSM, it automatically hangs up. |
It's the sender's number. |
Yes, sender's number. But live sms not displaying :( |
Try changing |
Unfortunately still the same Sir, not displaying. Continues looping the CLCC response. |
I'm afraid I don't know then, sounds like your command is outputting an extra comma and parsing fails. |
If it's regarding the Extra Comma Found, do you have any idea where would it be? In the library or into the IDE code? |
Probably the library, I guess. |
But where using the same library right? :) |
Indeed we are. |
What's the use of D0 0? Should it be wired? A6>ESP8266? |
It's wired to a MOSFET that turns the A6 on and off. In my designs, anyway. |
Im sorry Im new to this, which pin exactly in A6? to ESP8266? |
None, I wired its power to a MOSFET in my design. |
My connection is: A6(PWR) > A6(VCC) Is this enough? |
Yes, that's fine. |
Whats the Extra Comma Found means in the code Sir? |
I have no idea, and I don't have an A6 to test it, I'm sorry. |
Hi. I have an issue with the dial.ino. it gets stuck in the blockUntilReady function.
If I invert the RX and TX lines, then it passes but no data comes to the ESP8266. Signal Strength shows some number like 6845364 and cinfo.number is blank.
How can I tell that the A6 is actually working?
I tired calling it but the call goes to voice mail. I dont have the module to connect the A6 to the serial port of my PC, so I can only use the ESP to validate.
,
The text was updated successfully, but these errors were encountered: