Data processing method and device, electronic equipment and storage medium

The invention discloses a data processing method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: receiving a sleep instruction, and judging whether a retention data packet exists in a data sending queue or not, wherein the retention data p...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: YAN FUQIANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a data processing method and device, electronic equipment and a computer readable storage medium, and the method comprises the steps: receiving a sleep instruction, and judging whether a retention data packet exists in a data sending queue or not, wherein the retention data packet is a data packet to be sent to the upper computer; if yes, sending the data packets in the data sending queue to an upper computer so as to reduce the number of the detained data packets; and after all the data packets in the data sending queue are sent, controlling the data equipment to enter a dormant state. Therefore, according to the data processing method provided by the invention, the robustness and the stability of entering and exiting the low-power-consumption mode of the data equipment are improved. 本申请公开了一种数据处理方法、装置及一种电子设备和计算机可读存储介质,该方法包括:接收休眠指令,判断数据发送队列中是否存在滞留数据包;其中,滞留数据包为待发送至上位机的数据包;若是,则将数据发送队列中的数据包发送至上位机,以减少滞留数据包的数量;在数据发送队列中的数据包全部发送完成后,控制数据设备进入休眠状态。由此可见,本申请提供的数据处理方法,提高了数据设备进入和退出低功耗模式的健壮性和稳定性。