cancel
Showing results for 
Search instead for 
Did you mean: 

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

Moughit
Associate III

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
Moughit
Associate III

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

View solution in original post

1 REPLY 1
Moughit
Associate III

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