Improve the speed of 4G transmission bin package

This commit is contained in:
wgzAIIT 2023-05-30 20:11:43 +08:00
parent 788eb53f39
commit c6af847c73
3 changed files with 5 additions and 1 deletions

View File

@ -154,7 +154,9 @@ static inline int SerialDevIntRead(struct SerialHardwareDevice *serial_dev, stru
CriticalAreaUnLock(lock);
#ifndef TOOL_USING_OTA
MdelayKTask(20);
#endif
*read_data = get_char;
read_data++;

View File

@ -610,7 +610,8 @@ send_ready_again:
goto send_ready_again;
}
printf("start receive ota file.\n");
/* step2: start receive bin file */
/* step2: start receive bin file,first wait for 5s*/
PrivTaskDelay(5000);
ret = ota_data_recv(adapter);
if (0 != ret)
{

View File

@ -376,6 +376,7 @@ void* server_thread(void* p)
printf("pthread = %d\n",fd);
sleep(5);
ota_start_signal(fd);
sleep(5);
while(1)
{
ret = ota_file_send(fd);