forked from xuos/xiuos
Improve the speed of 4G transmission bin package
This commit is contained in:
parent
788eb53f39
commit
c6af847c73
|
@ -154,7 +154,9 @@ static inline int SerialDevIntRead(struct SerialHardwareDevice *serial_dev, stru
|
||||||
|
|
||||||
CriticalAreaUnLock(lock);
|
CriticalAreaUnLock(lock);
|
||||||
|
|
||||||
|
#ifndef TOOL_USING_OTA
|
||||||
MdelayKTask(20);
|
MdelayKTask(20);
|
||||||
|
#endif
|
||||||
|
|
||||||
*read_data = get_char;
|
*read_data = get_char;
|
||||||
read_data++;
|
read_data++;
|
||||||
|
|
|
@ -610,7 +610,8 @@ send_ready_again:
|
||||||
goto send_ready_again;
|
goto send_ready_again;
|
||||||
}
|
}
|
||||||
printf("start receive ota file.\n");
|
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);
|
ret = ota_data_recv(adapter);
|
||||||
if (0 != ret)
|
if (0 != ret)
|
||||||
{
|
{
|
||||||
|
|
|
@ -376,6 +376,7 @@ void* server_thread(void* p)
|
||||||
printf("pthread = %d\n",fd);
|
printf("pthread = %d\n",fd);
|
||||||
sleep(5);
|
sleep(5);
|
||||||
ota_start_signal(fd);
|
ota_start_signal(fd);
|
||||||
|
sleep(5);
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
ret = ota_file_send(fd);
|
ret = ota_file_send(fd);
|
||||||
|
|
Loading…
Reference in New Issue