Skip to main content
Moughit
Associate III
April 16, 2020
Solved

Receiving more than 2Ko data from web site by using SIM7000

  • April 16, 2020
  • 1 reply
  • 702 views

Hello,

I'm trying to retrieve received data from web site, but I have almost 8Ko data and I only receive 2Ko. I tried to put it in loop in order to read every 2Ko but it's not working, I always have the only first part. (hope you understand my problem)

Here is my code :

HAL_UART_Transmit(&huart1, (uint8_t*)"AT+SHREAD=0,8236", sizeof "AT+SHREAD=0,8236", 100);

 for(uint8_t i = 0; i < 4; i++)

{

     HAL_UART_Receive(&huart1, (uint8_t*)RxTx_B, 2064, 1000);

     HAL_UART_Transmit(&huart2, (uint8_t*)RxTx_B, sizeof(RxTx_B), 1000);

     freeBuffer(RxTx_B);

}

How can I read all received data at each time ?

    This topic has been closed for replies.
    Best answer by Moughit

    I ended up using UART_DMA_Receive with his functions DMA_Pause, DMA_Resume, DMA_Stop and ‘RxCpltCallback’

    1 reply

    Moughit
    MoughitAuthorBest answer
    Associate III
    June 17, 2020

    I ended up using UART_DMA_Receive with his functions DMA_Pause, DMA_Resume, DMA_Stop and ‘RxCpltCallback’