Solved
This topic has been closed for replies.
Posted on October 06, 2017 at 15:09
After 3 days i found a solution (or walkabout) for future reference.
/* Infinite loop */
/* USER CODE BEGIN WHILE */ while (1) { HAL_UART_Receive_DMA(&huart1, Received, 8); //start of listeningHAL_Delay(1);
if (ramka==1){ //przekierowanie rozkazu do funkcji switch(bufor[1]){ case 4:{ stany(); break; } } } ramka=0; /* USER CODE END WHILE */
i found out that when i send every 1 second order by hand it sometimes miss one or more answers, but if i send it quicker for example 5 times a sec it works perfectly. I figured that maybe there is some problem with time of creating answer so if i put a delay just outside of interrupt it might work..
And it did
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.