Open Ken-Kok opened 8 years ago
It seems like this bug is now the opposite - it stays on forever.
I'll have to take a look at the send text message firmware structure and make some corrections
Ok, this bug is a little bit more complicated than I originally anticipated.
In 2215feaf6c00a66345336eff5aa52095233e19a3, I did a little bit of testing with my logic analyzer, and found that the UART_Write_Buffer firmware only seems to send the first message on the actual UART bus. I confirmed via debugging that the firmware does infact make it the whole way to the end of the function, each time claiming that it sends information (but certainly does not).
Now, the weird part. If I set a breakpoint somewhere inside the SendTextMessage() function, on one of the UART_Write_Buffer() calls, then I can restart after the break and have it send some of the information.
This makes me think the issue is timing. Repeated calls to the UART_Write_Buffer function seem to make things overflow and fall out of the buffer I guess?
Right now, the SIM800 turns off in less than 2 seconds after turning on. I believe this is some kind of logical bug with the SendTextMessage() firmware