The embodiment of this application discloses a data transmission method, a terminal and a storage medium. The transmission interface of the terminal in the embodiment of this application includes a plurality of module interfaces. In data transmission, the terminal first receives an interface opening instruction corresponding to the interface of the target module, which is used to transmit data corresponding to the target module, and then opens an instruction according to the interface. The target module interface is opened so that the target module interface can transmit data; the data transmission instruction is received; and the data of the target module corresponding to the target module interface is transmitted according to the data transmission instruction and the target module interface. This scheme can only transmit the data corresponding to the module that has opened the interface, but not the data of the module that has not opened the other interface, so it can reduce the probability of interface blocking.
【技术实现步骤摘要】
一种数据传输方法、终端和存储介质
本申请涉及数据处理领域,具体涉及一种数据传输方法、终端和存储介质。
技术介绍
目前移动终端中广泛使用通用串行总线(USB,UniversalSerialBus)接口,通过USB接口实现来进行充电,与其他设备之间的数据传输等,USB是一个外部总线标准,用于规范电脑与外部设备的连接和通讯。一般,USB采用四线电缆,其中两根是用来传送数据的串行通道,另两根为下游设备提供电源,对于任何已经成功连接且相互识别的外设,将以双方设备均能够支持的最高速率传输数据。在现有技术中,移动终端经常使用到USB接口来进行与电脑连接进行调试数据传输,但是,当某一模块出现问题时,所有模块的调试数据都会通过USB传输至电脑,调试内容往往数据量大,输出时,电脑在短时间将会有接收到大量数据,会造成USB接口阻塞。
技术实现思路
本申请实施例提供一种数据传输方法、终端和存储介质,可以降低接口阻塞的概率。本申请实施例提供一种数据传输方法,包括:接收与目标模块接口对应的接口打开指令,所述目标模块接口用于传输与目标模块相对应的数据;根据所述接口打开指令打开所述目标模块接口,以使 ...
【技术保护点】
1.一种数据传输方法,其特征在于,所述方法应用于终端,所述终端的传输接口包括多个模块接口,包括:接收与目标模块接口对应的接口打开指令,所述目标模块接口用于传输与目标模块相对应的数据;根据所述接口打开指令打开所述目标模块接口,以使得所述目标模块接口可以传输数据;接收数据传输指令;根据所述数据传输指令以及所述目标模块接口传输与所述目标模块相对应的数据。
【技术特征摘要】
1.一种数据传输方法,其特征在于,所述方法应用于终端,所述终端的传输接口包括多个模块接口,包括:接收与目标模块接口对应的接口打开指令,所述目标模块接口用于传输与目标模块相对应的数据;根据所述接口打开指令打开所述目标模块接口,以使得所述目标模块接口可以传输数据;接收数据传输指令;根据所述数据传输指令以及所述目标模块接口传输与所述目标模块相对应的数据。2.根据权利要求1所述的方法,其特征在于,所述接收与目标模块接口对应的接口打开指令之前,所述方法还包括:为所述终端中的各个模块分别设置一个模块接口。3.根据权利要求2所述的方法,其特征在于,所述为所述终端中的各个模块分别设置一个模块接口之后,所述方法还包括:将所述终端中各个模块所对应的模块接口设置为关闭状态。4.根据权利要求2所述的方法,其特征在于,所述为所述终端中的各个模块分别设置一个模块接口之后,所述方法还包括:对所述模块接口分别进行加密处理。5.根据权利要求4所述的方法,其特征在于,所述根据所述接口打开指令打开与所述目标模块接口,包括:对所述目标模块接口进行解密处理,得到解密后的目标模块接口;根据所述接口打开指令打开与所述接口调整指令相对应的解密后的目标模块接口。6.根据权利要求1至5中任一项所述的方法,其特征在于,所述根据所述数据传输指令...
【专利技术属性】
技术研发人员:俞斌,杨维琴,
申请(专利权)人:惠州TCL移动通信有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。