nimaltd / gsm_v5

gsm module library for STM32 LL
GNU General Public License v3.0
232 stars 86 forks source link

I cannot receive incoming messages. #28

Closed Topkir closed 3 years ago

Topkir commented 3 years ago

10 22

Hi

It doesn't go into line 360 ​​at all. And It goes to line 351 without entering the 348th and 350th lines. I cannot read incoming messages. When I run it step by step, I see the previous messages in the array, but it never goes into the "gsm_callback_newMsg (char number, gsm_time_t time, char msg)" function.

apie135 commented 3 years ago

same problem

I can not receive a message, too. It goes into the "gsm_callback_newMsg ()" function, but not the brek pointe I put into the function.

nimaltd commented 3 years ago

Hi. All other is working? only new message callback does not work?

ch commented 3 years ago

You should register callback function for usart interrupt. HAL:

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
    if (huart == UART_SIM800) {
        gsm_rxCallback();
    }
}
apie135 commented 3 years ago

3

Is this spelling wrong?

Ekran Alıntısı

read me, it writes like this. "Sim800_RxCallBack ();" where is the reference.

void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) { if (huart == UART_SIM800) { Sim800_RxCallBack(); } }

apie135 commented 3 years ago

@nimaltd Yes I can send message but I cant Receive message only new message callback is not work?

ch commented 3 years ago

@apie135 sorry, gsm_rxCallback :)

Do you use LL or HAL?

apie135 commented 3 years ago

I use LL Library for Usart

apie135 commented 3 years ago

I can Receive message past. Bus new message I cant

nimaltd commented 3 years ago

I changed ATC to previews version. please try again.

apie135 commented 3 years ago

I will retun home today. I am going to try totay. I will give information thankn you

apie135 commented 3 years ago

Hi @nimaltd Doesn't go into "gsm_callback_newMsg" function.

apie135 commented 3 years ago

dfdf

Not resolved

It goes into line 351, without going over the 350th line. Since this many messages are full, he does not receive new messages. I clear the messages for en and then start it. It goes on line 351, but still doesn't enter the function. "gsm_callback_newMsg". As you said, I've installed the previous atc.

nimaltd commented 3 years ago

@apie135 i dont know why. Do you want I connect to your system via anydesk and debug it?

nimaltd commented 3 years ago

@apie135 please clean your project and compile again. Update keil. And try again. It should be works. I am using this library without any problem

apie135 commented 3 years ago

@nimaltd I recompiled the project and had the same problem again. If you have a link, we can do it. Whenever you are available? Thank you. I would be glad if you can connect to my computer.

nimaltd commented 3 years ago

I am available now.

apie135 commented 3 years ago

thank you for your interest. I sent you a mail.

apie135 commented 3 years ago

Hi nimal dou you connect my pc via anydesk