WO2020133397A1 - Display method based on data transmission, and electronic device and computer-readable storage medium - Google Patents

Display method based on data transmission, and electronic device and computer-readable storage medium Download PDF

Info

Publication number
WO2020133397A1
WO2020133397A1 PCT/CN2018/125551 CN2018125551W WO2020133397A1 WO 2020133397 A1 WO2020133397 A1 WO 2020133397A1 CN 2018125551 W CN2018125551 W CN 2018125551W WO 2020133397 A1 WO2020133397 A1 WO 2020133397A1
Authority
WO
WIPO (PCT)
Prior art keywords
target device
electronic device
icon
data transmission
orientation
Prior art date
Application number
PCT/CN2018/125551
Other languages
French (fr)
Chinese (zh)
Inventor
潘英强
Original Assignee
深圳市柔宇科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市柔宇科技有限公司 filed Critical 深圳市柔宇科技有限公司
Priority to CN201880097594.9A priority Critical patent/CN113169985A/en
Priority to PCT/CN2018/125551 priority patent/WO2020133397A1/en
Publication of WO2020133397A1 publication Critical patent/WO2020133397A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

A display method based on data transmission, and an electronic device and a computer-readable storage medium. The display method is implemented in the electronic device. The electronic device comprises a display screen. The display method comprises: detecting the orientation of a target device relative to the electronic device (S103), wherein the target device has been in short-distance wireless communication connection with the electronic device; according to the orientation, determining a direction, corresponding to the orientation, in the display screen (S105); detecting whether data transmission is performed with the target device (S107); and when data transmission is performed with the target device, controlling, according to the direction and the performed data transmission, the display of a motion icon on the display screen and controlling the motion icon to move in the display screen in the direction along with the performed data transmission (S109). This method can present, to a user, relevant information of the current data transmission, thereby improving the user experience.

Description

基于数据传输的显示方法、电子设备及计算机可读存储介质Display method based on data transmission, electronic device and computer-readable storage medium 技术领域Technical field
本发明涉通信技术领域,尤其涉及基于数据传输的显示方法、电子设备及计算机可读存储介质。The present invention relates to the field of communication technologies, and in particular, to a display method based on data transmission, an electronic device, and a computer-readable storage medium.
背景技术Background technique
随着电子通信技术的发展,越来越多的制造商越来越注重电子设备的用户体验。例如,电子设备的便携性,操作便捷性,人机友好交互等。然而,目前的电子设备在数据传输时由于传输界面基本采用固定的图标,令用户体验较差。With the development of electronic communication technology, more and more manufacturers pay more attention to the user experience of electronic devices. For example, the portability of electronic devices, the convenience of operation, human-computer friendly interaction and so on. However, the current electronic devices basically use fixed icons during data transmission, which results in a poor user experience.
发明内容Summary of the invention
本发明的主要目的在于提供一种基于数据传输的显示方法及使用该显示方法的电子设备,以提供数据传输过程给用户带来较佳的用户体验。The main purpose of the present invention is to provide a display method based on data transmission and an electronic device using the display method, so as to provide a better user experience for the user during the data transmission process.
为实现上述目的,本发明提供了一种基于数据传输的显示方法。该显示方法执行于电子设备中,该电子设备包括显示屏。该显示方法包括:检测目标设备相对所述电子设备的方位,其中,所述目标设备已与所述电子设备近距离无线通信连接;根据所述方位确定所述方位对应于所述显示屏中的方向;检测是否与所述目标设备进行数据传输;当与所述目标设备进行数据传输时,根据所述方向和所述进行的数据传输控制在显示屏上显示运动图标并控制所述运动图标在所述显示屏中随所进行的数据传输沿所述方向移动。To achieve the above object, the present invention provides a display method based on data transmission. The display method is executed in an electronic device, and the electronic device includes a display screen. The display method includes: detecting the orientation of the target device relative to the electronic device, wherein the target device has been connected to the electronic device in short-range wireless communication; and determining that the orientation corresponds to the position in the display screen according to the orientation Direction; detect whether data transmission is performed with the target device; when data transmission is performed with the target device, according to the direction and the data transmission performed, control to display a motion icon on the display screen and control the motion icon at The data transmission in the display screen moves along the direction.
为实现上述目的,本发明还提供了一种电子设备。该电子设备包括显示屏、处理器、存储器,该存储器用于存储计算机可执行程序,该处理器用于执行该程序以实现上述方法。To achieve the above object, the present invention also provides an electronic device. The electronic device includes a display screen, a processor, and a memory. The memory is used to store a computer executable program, and the processor is used to execute the program to implement the above method.
为实现上述目的,本发明还提供了一种计算机可读介质。该计算机可读介质存储有计算机可执行程序,所述计算机可执行程序被执行以实现上述显示方法。To achieve the above object, the present invention also provides a computer-readable medium. The computer-readable medium stores a computer-executable program, which is executed to implement the above-mentioned display method.
本发明提供一种基于数据传输的显示方法、电子设备及计算机可读介质,可以根据电子设备相对目标设备的方位以及传输的数据相关参数,向用户呈现当前传输的数据的状况,提高用户体验。The invention provides a display method based on data transmission, an electronic device and a computer-readable medium, which can present the status of the currently transmitted data to the user according to the position of the electronic device relative to the target device and the relevant parameters of the transmitted data, thereby improving the user experience.
附图说明BRIEF DESCRIPTION
图1为本发明提供的第一实施例提供的基于数据传输的显示方法流程示意图。FIG. 1 is a schematic flowchart of a data transmission-based display method provided by a first embodiment provided by the present invention.
图2为本发明提供的第一实施例提供的步骤S109子流程示意图。FIG. 2 is a schematic diagram of the sub-flow of step S109 provided by the first embodiment provided by the present invention.
图3为本发明提供的第二实施例提供的显示方法的部分流程示意图。FIG. 3 is a partial schematic flowchart of a display method provided by a second embodiment provided by the present invention.
图4为本发明提供的第三实施例提供的显示方法的部分流程示意图。FIG. 4 is a partial flow diagram of a display method provided by a third embodiment provided by the present invention.
图5为本发明提供的第一实施例提供的步骤S103子流程示意图。FIG. 5 is a schematic flowchart of step S103 provided by the first embodiment provided by the present invention.
图6a~图6b为使用的基于数据传输的显示方法的电子设备进行数据传输时的示意图。6a to 6b are schematic diagrams when an electronic device using a display method based on data transmission performs data transmission.
图7为本发明提供的第二实施例提供的步骤S103子流程示意图。7 is a schematic diagram of a sub-flow of step S103 provided by the second embodiment provided by the present invention.
图8为本发明提供的第三实施例提供的步骤S103子流程示意图。FIG. 8 is a schematic flowchart of step S103 provided by a third embodiment provided by the present invention.
图9a~9b为本发明提供的第四实施例部分流程示意图。9a to 9b are schematic flowcharts of part of the fourth embodiment provided by the present invention.
图10为本发明提供的一种电子设备的结构框图示意图。10 is a schematic structural block diagram of an electronic device provided by the present invention.
图11为本发明提供的一种计算机可读介质的示意图。11 is a schematic diagram of a computer-readable medium provided by the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional characteristics and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the drawings.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present invention.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above drawings are used to distinguish similar objects without using To describe a specific order or sequence. It should be understood that the data so used can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than what is illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, processes, methods, systems, products or devices that contain a series of steps or units are not necessarily limited to those clearly listed Those steps or units, but may include other steps or units not explicitly listed or inherent to these processes, methods, products, or equipment.
需要说明的是,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。It should be noted that the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only, and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated . Thus, the features defined as "first" and "second" may include at least one of the features explicitly or implicitly. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary skilled in the art to achieve, when the combination of technical solutions contradicts each other or cannot be achieved, it should be considered that the combination of such technical solutions does not exist , Nor within the scope of protection required by the present invention.
本发明中的电子设备可包含其它功能诸如个人数字助理5(PDA)和/或使携式多媒体播放器(PMP)功能的使携式通信设备,诸如电子纸、电子书、车载显示器、平板电脑、智能手机、智能手表、智能手环等。使携式电子设备的示例 性实施例包括但不限于搭载iOS@Android@Windows Phone@者其它操作系统的使携式电子设备。电子设备通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。The electronic device in the present invention may include other functions such as a personal digital assistant 5 (PDA) and/or a portable multimedia device (PMP) function-enabled portable communication device, such as e-paper, e-book, car display, tablet computer , Smart phones, smart watches, smart bracelets, etc. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices equipped with iOS@Android@WindowsPhone@other operating systems. Electronic devices usually support multiple applications, such as one or more of the following: drawing applications, rendering applications, word processing applications, web page creation applications, disk editing applications, spreadsheet applications, game applications , Phone apps, video conferencing apps, email apps, instant messaging apps, exercise support apps, photo management apps, digital camera apps, digital video camera apps, web browsing apps, digital music players Applications, and/or digital video player applications.
本发明提供一种基于数据传输的显示方法、计算机可读存储介质、以及电子设备,可以根据传输的数据相关参数显示相应的运动图标,向用户呈现当前数据传输相关信息,提高用户体验。The invention provides a display method based on data transmission, a computer-readable storage medium, and an electronic device, which can display a corresponding motion icon according to the data-related parameters transmitted, present the user with current data transmission-related information, and improve the user experience.
请参看图1,图1为本发明第一实施方式提供的基于数据传输的显示方法。该显示方法应用于电子设备100。当电子设备100向另一个电子设备200传输数据时,控制电子设备100显示可视化界面以形象地向用户展现数据传输的相关信息。以下将另一电子设备200统称为目标设备200。在一些可行的实施例中,电子设备100为腕带式电子设备。优选地,电子设备10为整体可弯曲柔性电子设备。电子设备100包括显示屏10和近距离无线通信模块20。近距离无线通信模块20包括但不限于WIFI模块、蓝牙模块、NFC模块等。该显示方法包括下面步骤。Please refer to FIG. 1, which is a data transmission-based display method provided by the first embodiment of the present invention. This display method is applied to the electronic device 100. When the electronic device 100 transmits data to another electronic device 200, the electronic device 100 is controlled to display a visual interface to visually present information related to data transmission to the user. Hereinafter, another electronic device 200 is collectively referred to as a target device 200. In some feasible embodiments, the electronic device 100 is a wristband electronic device. Preferably, the electronic device 10 is an integrally bendable flexible electronic device. The electronic device 100 includes a display screen 10 and a short-range wireless communication module 20. The short-range wireless communication module 20 includes but is not limited to a WIFI module, a Bluetooth module, an NFC module, and the like. The display method includes the following steps.
步骤S103,检测目标设备相对电子设备的方位,其中,目标设备200已与电子设备100近距离无线通信连接。在该步骤,目标设备200与电子设备100已近距离无线通信连接应该理解为电子设备100和目标设备200双方已经通过了身份鉴权,并已建立了电子设备100和目标设备200的近距离无线通信通道。即电子设备100和目标设备200已具备双方进行数据传输的条件。在本实施例中,目标设备200为所述电子设备100许可进行数据传输的授权设备。所述鉴权标签为身份安全标识或者身份标识,所述电子设备或者目标设备存储有所述身份标识或者身份安全标识。Step S103: Detect the orientation of the target device relative to the electronic device, where the target device 200 has been connected to the electronic device 100 in short-range wireless communication. In this step, the target device 200 and the electronic device 100 have a short-range wireless communication connection. It should be understood that both the electronic device 100 and the target device 200 have passed identity authentication and have established the short-range wireless communication between the electronic device 100 and the target device 200. Communication channel. That is, the electronic device 100 and the target device 200 already have the conditions for data transmission by both parties. In this embodiment, the target device 200 is an authorized device that allows the electronic device 100 to perform data transmission. The authentication label is an identity security identity or identity identity, and the electronic device or target device stores the identity identity or identity safety identity.
步骤S105,根据该方位确定该方位对应于显示屏10中的方向N(如图6a和图6b所示)。在该步骤中,该方向为以显示屏10的中心为原点超向目标设备200的方位,从而得出在显示屏20中的方向。例如,方位为位于电子设备100右上方45度角方向,则对应于显示屏10上的方向为从显示屏10的中心沿与水平线呈45度角向显示屏10的右上方延伸;方位为位于电子设备100右下方45度角方向,则对应于显示屏10上的方向N为从显示屏10的中心沿与水平线呈45度角向显示屏10的右下方延伸。In step S105, it is determined that the orientation corresponds to the direction N in the display screen 10 according to the orientation (as shown in FIGS. 6a and 6b). In this step, the direction is the orientation over the target device 200 with the center of the display screen 10 as the origin, thereby obtaining the direction in the display screen 20. For example, if the orientation is located at a 45-degree angle to the upper right of the electronic device 100, the direction corresponding to the display screen 10 extends from the center of the display screen 10 to the upper right of the display screen 10 at a 45-degree angle to the horizontal line; The 45-degree angle direction of the lower right of the electronic device 100 corresponds to the direction N on the display screen 10 extending from the center of the display screen 10 to the lower right of the display screen 10 at a 45-degree angle to the horizontal line.
步骤S107,检测是否与目标设备200进行数据传输。在步骤S107中,传输的数据包括文件、图片、文字信息等。若电子设备100与目标设备200进行数据传输,执行步骤S109;反之执行S107。In step S107, it is detected whether data transmission is performed with the target device 200. In step S107, the transmitted data includes files, pictures, text information, and the like. If the electronic device 100 performs data transmission with the target device 200, step S109 is executed; otherwise, S107 is executed.
步骤S109,当与目标设备200进行数据传输时,根据该方向和进行的数据传输控制在显示屏10上显示运动图标F并控制所述运动图标F在所述显示屏中随所进行的数据传输沿述方向N移动(如图6a和图6b所示)。Step S109, when performing data transmission with the target device 200, display a motion icon F on the display screen 10 according to the direction and the data transmission control and control the motion icon F to follow the data transmission edge in the display screen The direction N moves (as shown in Figures 6a and 6b).
步骤S111,判断数据传输是否结束。若数据传输结束,执行步骤S113;反之执行步骤S111。In step S111, it is determined whether the data transmission is ended. If the data transmission ends, step S113 is executed; otherwise, step S111 is executed.
步骤S113,关闭运动图标F。Step S113, closing the sport icon F.
上述实施例中,可以根据传输的数据相关参数,如所需传输的数据量、通信信号强度、完成进度等显示相应的运动图标,向用户呈现当前数据传输相关信息,提高用户体验。In the above embodiment, the corresponding motion icon may be displayed according to the data-related parameters transmitted, such as the amount of data to be transmitted, the strength of the communication signal, the progress of completion, etc., to present the current data transmission-related information to the user, thereby improving the user experience.
请结合参看图2,其为步骤S109在一实施方式中的子流程的示意图。具体地,步骤S109包括下面步骤:Please refer to FIG. 2, which is a schematic diagram of the sub-flow of step S109 in an embodiment. Specifically, step S109 includes the following steps:
步骤S201,识别所述进行的数据传输的类型,该数据传输的类型包括发送数据给目标设备100和从目标设备200接收数据。Step S201: Identify the type of data transmission performed. The type of data transmission includes sending data to the target device 100 and receiving data from the target device 200.
步骤S203,根据所识别到的数据传输的类型控制该运动图标F的移动方向(如图6a和图6b所示)。在该步骤中,若所识别到的数据传输的类型为发送数据给目标设备200,控制运动图标F朝向目标设备200移动。若所识别到的数据传输的类型为从目标设备200接收数据,控制运动图标F朝背离所述目标设备的方向移动。具体地,多个运动图标F从显示屏10的初始位置S朝所述目标设备200的方向移动或朝背离目标设备200的方向移动。每一运动图标F与初始位置S之间的距离越来越大。其中,初始位置S终位于运动图标F的移动方向N上。在一些可行的实施例中,若所识别到的数据传输的类型为发送数据给目标设备200,多个运动图标F呈直线状移动。若所识别到的数据传输的类型为从目标设备200接收数据,多个运动图标F呈沿着两个半圆移动。具体地,每一运动图标F与显示屏10上的基准位置J的距离均相等,其中,基准位置J始终位于运动图标F的移动方向上,且初始位置S和基准位置J之间的距离保持不变。In step S203, the movement direction of the motion icon F is controlled according to the recognized type of data transmission (as shown in FIGS. 6a and 6b). In this step, if the identified type of data transmission is to send data to the target device 200, the movement icon F is controlled to move toward the target device 200. If the recognized type of data transmission is to receive data from the target device 200, the movement icon F is controlled to move away from the target device. Specifically, the plurality of motion icons F move from the initial position S of the display screen 10 toward the target device 200 or away from the target device 200. The distance between each motion icon F and the initial position S becomes larger and larger. Among them, the initial position S is finally located in the moving direction N of the motion icon F. In some feasible embodiments, if the identified type of data transmission is to send data to the target device 200, the plurality of motion icons F move in a straight line. If the recognized type of data transmission is to receive data from the target device 200, the plurality of motion icons F move along two semicircles. Specifically, the distance between each motion icon F and the reference position J on the display screen 10 is equal, where the reference position J is always located in the moving direction of the motion icon F, and the distance between the initial position S and the reference position J remains constant.
在本实施例中,运动图标F为泡泡型。可以理解地,运动图标F根据实际需要设置为任意图形,例如,星星、图片、表示数据类型的图形等。此外,用户可以根据实际需求更换或者设置。例如,运动图标F的形状可以根据正在传输的数据的文件类型,该数据传输的文件类型包括文字文件、图片等。在本实施例中,多个运动图标F呈直线状移动,在一些可行的实施例中,多个运动图标可以按照其他形状排列,沿方向N呈正弦波曲线状移动。In this embodiment, the motion icon F is a bubble type. Understandably, the motion icon F is set to any graphic according to actual needs, for example, stars, pictures, graphics representing data types, and the like. In addition, users can replace or set according to actual needs. For example, the shape of the motion icon F may be based on the file type of the data being transmitted, and the file type of the data transmission includes text files, pictures, and the like. In this embodiment, the plurality of motion icons F move in a straight line. In some feasible embodiments, the plurality of motion icons may be arranged in other shapes and move in a sine wave curve along the direction N.
请结合参看图3,在一些可行的实施例中,该显示方法还包括下面步骤。Please refer to FIG. 3 in combination. In some feasible embodiments, the display method further includes the following steps.
步骤S301,显示进程图标T。该进行图标T与运动图标F同时显示于显示屏10(如图6a和图6b所示)。该进程图标T用于表示进行的数据传输的完成进度。在本实施例中,进程图标呈圆形。在其他实施例中,进程图标T还可以设 置为任意形状。运动图标F位于进程图标T的外部,且初始位置S设置位于进程图标T的边缘。进程图标T以基准位置J为中心。初始位置S与进程图标T的中心位置之间的距离始终保持不变。可以理解地,进程图标T可以根据实际需要设置为任意图形,例如,星星、图片、表示数据类型的图形等。此外,用户可以根据实际需求更换或者设置。当电子设备100从目标设备200接收数据时,多个运动图标F依次从初始位置S分别对称地沿着进程图标T的外周缘移动朝向背离目标设备200的方向移动。当电子设备100向目标设备200发送数据时,多个运动图标F依次从初始位置S朝向目标设备200移动。In step S301, the progress icon T is displayed. The progress icon T and the motion icon F are simultaneously displayed on the display screen 10 (as shown in FIGS. 6a and 6b). The progress icon T is used to indicate the completion progress of the ongoing data transmission. In this embodiment, the progress icon is circular. In other embodiments, the progress icon T can also be set to any shape. The motion icon F is located outside the process icon T, and the initial position S is set at the edge of the process icon T. The process icon T is centered on the reference position J. The distance between the initial position S and the center position of the process icon T always remains the same. Understandably, the process icon T can be set to any graphic according to actual needs, for example, stars, pictures, graphics representing data types, and so on. In addition, users can replace or set according to actual needs. When the electronic device 100 receives data from the target device 200, the plurality of motion icons F sequentially move symmetrically along the outer periphery of the progress icon T from the initial position S toward the direction away from the target device 200, respectively. When the electronic device 100 transmits data to the target device 200, the plurality of motion icons F sequentially move from the initial position S toward the target device 200.
步骤S303,获取进行的数据传输的完成进度。Step S303: Acquire the completion progress of the ongoing data transmission.
步骤S305,根据完成的进度控制进程图标T逐渐增大。在本实施例中,进程图标T逐渐增大,初始位置S与进程图标T的中心位置之间的距离越来越大,初始位置S越来越靠近目标设备200。In step S305, the progress control icon T is gradually increased according to the completed progress. In this embodiment, the process icon T gradually increases, the distance between the initial position S and the center position of the process icon T becomes larger, and the initial position S becomes closer to the target device 200.
步骤S307,关闭进程图标T。该进程图标T与运动图标F同时关闭。Step S307, the process icon T is closed. The progress icon T and the motion icon F are closed at the same time.
请参看图4,在一些可行的实施例中,该显示方法还包括下面步骤。Please refer to FIG. 4. In some feasible embodiments, the display method further includes the following steps.
步骤S401,获取所需传送的数据量。Step S401: Acquire the amount of data to be transferred.
步骤S403,根据所需传送的数据量确定在进行数据传输时所需显示的运动图标F的数量。具体地,所需传送的数据量为正在传输的数据的数据量,例如,一份文件数据的数据量。In step S403, the number of motion icons F to be displayed during data transmission is determined according to the amount of data to be transferred. Specifically, the amount of data required to be transferred is the amount of data being transferred, for example, the amount of data of a file.
步骤S405,检测所需传送的数据量是否发生变化。In step S405, it is detected whether the amount of data to be transmitted has changed.
步骤S407,当所需传送的数据量发生变化时,根据所需传送的数据量重新控制运动图标F的数量。其中,运动图标F的数量与数据量大小成正比。Step S407, when the amount of data to be transferred changes, the number of motion icons F is re-controlled according to the amount of data to be transferred. Among them, the number of motion icons F is proportional to the amount of data.
步骤S409,获取通信信号强度。Step S409: Acquire the communication signal strength.
步骤S411,根据所获取到的通信信号强度控制所述运动图标的移动速度。Step S411: Control the moving speed of the motion icon according to the acquired communication signal strength.
步骤S413,检测该通信信号强度是否发生变化。Step S413: Detect whether the communication signal strength has changed.
步骤S415,当该通信信号强度发生变化时,根据该通信信号强度重新控制运动图标F的移动速度。其中,该移动速度与通信信号强度成正比。In step S415, when the communication signal strength changes, the movement speed of the motion icon F is re-controlled according to the communication signal strength. Among them, the moving speed is proportional to the strength of the communication signal.
上述实施例提供的显示方法,可以随着传输数据的相关参数变化而相应地变化从而可以真实地呈现出传输数据的传输状况,给用户带来更佳的体验感。The display method provided in the above embodiments can be changed accordingly as the relevant parameters of the transmission data change, so that the transmission status of the transmission data can be truly presented, which brings a better experience to the user.
请结合参看图5,其为第一实施例的步骤S103的子流程示意图在一些可行的实施例中,步骤S103具体包括下面步骤。Please refer to FIG. 5, which is a schematic diagram of the sub-flow of step S103 in the first embodiment. In some feasible embodiments, step S103 specifically includes the following steps.
步骤S501,接收目标设备200发送的目标设备200的方位。在该步骤中,目标设备200可通过目标设备200中的GPS装置60或者方向传感器70获取方位。其中,当目标设备200与电子设备100建立了近距离无线通信连接时,目标设备200发送目标设备200的方位给电子设备100。Step S501: Receive the orientation of the target device 200 sent by the target device 200. In this step, the target device 200 may acquire the orientation through the GPS device 60 or the direction sensor 70 in the target device 200. Wherein, when the target device 200 establishes a short-range wireless communication connection with the electronic device 100, the target device 200 sends the orientation of the target device 200 to the electronic device 100.
步骤S503,获取电子设备100的方位。在该步骤中,电子设备100可通过电子设备100中的GPS装置60或者方向传感器70获取方位。其中,当目标设 备200与电子设备100建立了近距离无线通信连接时,目标设备200发送目标设备200的方位给电子设备100。Step S503: Acquire the orientation of the electronic device 100. In this step, the electronic device 100 can obtain the orientation through the GPS device 60 or the direction sensor 70 in the electronic device 100. Wherein, when the target device 200 establishes a short-range wireless communication connection with the electronic device 100, the target device 200 sends the orientation of the target device 200 to the electronic device 100.
步骤S505,根据目标设备200的方位和电子设备100的方位计算出目标设备200相对电子设备100的方位。In step S505, the orientation of the target device 200 relative to the electronic device 100 is calculated according to the orientation of the target device 200 and the orientation of the electronic device 100.
上述实施例中,电子设备100通过请求目标设备200发送过来的目标设备200的位置信息,从而计算出与目标设备200方位。In the above embodiment, the electronic device 100 calculates the orientation to the target device 200 by requesting the location information of the target device 200 sent from the target device 200.
在一些可行的实施例中,为了让目标设备200也获取到与电子设备100的位置信息,该步骤S103还包括下面步骤:发送电子设备100的方位给目标设备200,以供目标设备200检测电子设备100相对目标设备200的方位,其中,当目标设备200与电子设备100近距离无线通信连接成功时,发送电子设备100的方位给目标设备200。In some feasible embodiments, in order for the target device 200 to also obtain position information with the electronic device 100, the step S103 further includes the following step: sending the position of the electronic device 100 to the target device 200 for the target device 200 to detect the electronic The orientation of the device 100 relative to the target device 200, wherein when the target device 200 and the electronic device 100 are successfully connected in short-range wireless communication, the orientation of the electronic device 100 is sent to the target device 200.
请结合参看图7,其为第二实施例的步骤S103的子流程示意图。在一些可行的实施例中,步骤S103具体包括下面步骤。Please refer to FIG. 7, which is a schematic diagram of the sub-flow of step S103 in the second embodiment. In some feasible embodiments, step S103 specifically includes the following steps.
步骤S701,发射超声波,其中,超声波通过在电子设备100中设置的超声波装置50进行发射。超声波装置50用于接收和发射超声波。其中,当该目标设备与该电子设备近距离无线通信连接成功时,发射该超声波;In step S701, ultrasonic waves are transmitted, wherein the ultrasonic waves are transmitted through the ultrasonic device 50 provided in the electronic device 100. The ultrasonic device 50 is used to receive and transmit ultrasonic waves. Wherein, when the target device and the electronic device are successfully connected in short-range wireless communication, the ultrasonic wave is transmitted;
步骤S703,获取反射回来的超声波。其中,该反射回来的超声波从超声波装置获取。在该步骤中,目标设备200在电子设备100的附近,目标设备200可以将电子设备100的发射超声波进行反射。Step S703: Acquire the reflected ultrasonic waves. Among them, the reflected ultrasonic waves are acquired from the ultrasonic device. In this step, the target device 200 is in the vicinity of the electronic device 100, and the target device 200 can reflect the emitted ultrasonic waves of the electronic device 100.
步骤S705,根据反射回来的超声波的波长获取目标设备200相对电子设备100的方位。在该步骤中,具体包括:根据预设的超声波波长与反射回来的超声波进行比较;若在一个反射方向上的超声波长与预设的超声波波长相匹配,将该反射方向确定目标设备200的方位,从而计算出电子设备100与目标设备的方位。其中,预设的超声波波长可以根据电子设备的材料、形状、近距离无线通信距离进行设置。Step S705: Acquire the orientation of the target device 200 relative to the electronic device 100 according to the wavelength of the reflected ultrasonic wave. In this step, it specifically includes: comparing the preset ultrasound wavelength with the reflected ultrasound; if the ultrasound length in one reflection direction matches the preset ultrasound wavelength, determining the orientation of the target device 200 in the reflection direction To calculate the orientation of the electronic device 100 and the target device. Among them, the preset ultrasonic wavelength can be set according to the material, shape, and short-distance wireless communication distance of the electronic device.
请结合参看图8,其为第三实施例的步骤S103的子步骤的流程示意图。第三实施例的步骤S103的子步骤相对第一和第二实施例的步骤S103的子步骤差异在于:还包括了检测在预设的时间内是否接收到目标设备200发送的目标设备200的方位。当未接收到目标设备200发送的目标设备200的方位才通过超声波检测对方设200相对于电子设备100的方位。具体地,步骤S103具体包括下面步骤。Please refer to FIG. 8, which is a schematic flowchart of the sub-steps of step S103 in the third embodiment. The sub-step of step S103 of the third embodiment differs from the sub-step of step S103 of the first and second embodiments in that it also includes detecting whether the orientation of the target device 200 sent by the target device 200 is received within a preset time . When the orientation of the target device 200 sent by the target device 200 is not received, the orientation of the counterpart device 200 relative to the electronic device 100 is detected by ultrasound. Specifically, step S103 specifically includes the following steps.
步骤S801,检测在预设的时间内是否接收到目标设备200发送的目标设备200的方位。在该步骤中,当目标设备200与电子设备100建立了近距离无线通信连接时,目标设备发送该目标设备方位给该电子设备。若未在预设时间内获取到目标设备200的位置信息,表示目标设备200无法发送方位,执行步骤S807。反之执行步骤803。Step S801: Detect whether the orientation of the target device 200 sent by the target device 200 is received within a preset time. In this step, when the target device 200 establishes a short-range wireless communication connection with the electronic device 100, the target device sends the target device orientation to the electronic device. If the location information of the target device 200 is not acquired within the preset time, it means that the target device 200 cannot send the bearing, and step S807 is executed. Otherwise, step 803 is executed.
步骤S803,获取电子设备100的方位。在该步骤中,电子设备100可通过电子设备100中的GPS装置60或者方向传感器70获取方位。其中,当目标设备200与电子设备100建立了近距离无线通信连接时,目标设备发送该目标设备方位给该电子设备。Step S803: Acquire the orientation of the electronic device 100. In this step, the electronic device 100 can obtain the orientation through the GPS device 60 or the direction sensor 70 in the electronic device 100. When the target device 200 establishes a short-range wireless communication connection with the electronic device 100, the target device sends the target device orientation to the electronic device.
步骤S805,根据目标设备200的方位和电子设备100的方位计算出目标设备200相对电子设备100的方位。In step S805, the orientation of the target device 200 relative to the electronic device 100 is calculated according to the orientation of the target device 200 and the orientation of the electronic device 100.
步骤S807,发射超声波,其中,超声波通过在电子设备100中设置的超声波装置50进行发射。超声波装置50用于接收和发射超声波。其中,当该目标设备与该电子设备近距离无线通信连接成功时,发射该超声波;In step S807, ultrasonic waves are transmitted, wherein the ultrasonic waves are transmitted by the ultrasonic device 50 provided in the electronic device 100. The ultrasonic device 50 is used to receive and transmit ultrasonic waves. Wherein, when the target device and the electronic device are successfully connected in short-range wireless communication, the ultrasonic wave is transmitted;
步骤S809,获取反射回来的超声波。其中,该反射回来的超声波从超声波装置获取。在该步骤中,目标设备200在电子设备100的附近,目标设备200可以将电子设备100的发射超声波进行反射。Step S809: Acquire the reflected ultrasonic waves. Among them, the reflected ultrasonic waves are acquired from the ultrasonic device. In this step, the target device 200 is in the vicinity of the electronic device 100, and the target device 200 can reflect the emitted ultrasonic waves of the electronic device 100.
步骤S811,根据反射回来的超声波的波长获取目标设备200相对电子设备100的方位。在该步骤中,具体包括:根据预设的超声波波长与反射回来的超声波进行比较;若在一个反射方向上的超声波长与预设的超声波波长相匹配,将该反射方向确定目标设备200的方位,从而计算出电子设备100与目标设备的方位。其中,预设的超声波波长可以根据电子设备的材料、形状、近距离无线通信距离进行设置。Step S811: Obtain the orientation of the target device 200 relative to the electronic device 100 according to the wavelength of the reflected ultrasonic wave. In this step, it specifically includes: comparing the preset ultrasound wavelength with the reflected ultrasound; if the ultrasound length in one reflection direction matches the preset ultrasound wavelength, determining the orientation of the target device 200 in the reflection direction To calculate the orientation of the electronic device 100 and the target device. Among them, the preset ultrasonic wavelength can be set according to the material, shape, and short-distance wireless communication distance of the electronic device.
在一些可行的实施例中,电子设备100还可以设置射频信号探头(图未示出)获取各个方向的射频信号;并根据获取到的每个方位上的射频信号强度进行比较得出射频信号强度最强的方向。由于电子设备100和对方电子设备200进行近距离无线通信时,电子设备100朝向对方电子设备200的方向上的射频信号最强。因此,射频信号强度最强的方向即为目标设备200所在的方向。In some feasible embodiments, the electronic device 100 may also set a radio frequency signal probe (not shown) to obtain radio frequency signals in various directions; and compare and obtain the radio frequency signal strength according to the obtained radio frequency signal strength in each position The strongest direction. Since the electronic device 100 and the counterpart electronic device 200 perform short-range wireless communication, the radio frequency signal in the direction of the electronic device 100 toward the counterpart electronic device 200 is the strongest. Therefore, the direction with the strongest RF signal strength is the direction in which the target device 200 is located.
请结合参看图9a,图9a为以近距离无线通信可以为蓝牙或者WIFI为例说明电子设备100与目标设备200建立近距离无线通信连接的方法流程图。在该实施例中,电子设备100为近距离无线通信连接的被请求方。具体地,在步骤S103之前,该显示方法包括下面步骤。Please refer to FIG. 9a in combination. FIG. 9a is a flowchart illustrating a method for establishing a short-range wireless communication connection between the electronic device 100 and the target device 200 by taking the short-range wireless communication as Bluetooth or WIFI as an example. In this embodiment, the electronic device 100 is the requested party of the short-range wireless communication connection. Specifically, before step S103, the display method includes the following steps.
步骤S901,开启近距离无线通信模块20。在该步骤中,电子设备100已具备与对方电子设备200建立近距离无线通信连接的条件。可以理解地,在一些实施例中,近距离无线通信模块20可以默认为已开启,该步骤可以省略。In step S901, the short-range wireless communication module 20 is turned on. In this step, the electronic device 100 already has the conditions for establishing a short-range wireless communication connection with the counterpart electronic device 200. Understandably, in some embodiments, the short-range wireless communication module 20 may be turned on by default, and this step may be omitted.
步骤S903,当检测到目标设备200的通信连接请求时,识别通信连接请求中是否包含鉴权标签。在该步骤中,当电子设备100与目标设备200的距离在近距离无线通信所覆盖的范围内时,目标设备200欲与电子设备100建立连接,目标设备200会发出通信连接请求。近距离无线通信可以为蓝牙或者WIFI。当该通信连接请求包含该鉴权标签时,电子设备100在接收到该通信连接请求时,发送响应信息给目标设备200并与该目标设备200建立了近距离无线通信连接。 该鉴权标签为电子设备100授权给目标设备200的安全标识或者身份标识。In step S903, when a communication connection request of the target device 200 is detected, it is identified whether an authentication tag is included in the communication connection request. In this step, when the distance between the electronic device 100 and the target device 200 is within the range covered by short-range wireless communication, the target device 200 wants to establish a connection with the electronic device 100, and the target device 200 issues a communication connection request. The short-range wireless communication may be Bluetooth or WIFI. When the communication connection request includes the authentication tag, the electronic device 100, when receiving the communication connection request, sends a response message to the target device 200 and establishes a short-range wireless communication connection with the target device 200. The authentication label is a security identification or identity identification authorized by the electronic device 100 to the target device 200.
步骤S905,当该通信连接请求包含该鉴权标签时,响应该通信连接请求发送响应信息给目标设备200并与该目标设备200建立了近距离无线通信连接。在该步骤中,若该通信连接请求包含该鉴权标签,电子设备100识别出目标设备200为电子设备100授权设备。Step S905: When the communication connection request includes the authentication tag, send response information to the target device 200 in response to the communication connection request and establish a short-range wireless communication connection with the target device 200. In this step, if the communication connection request includes the authentication tag, the electronic device 100 recognizes that the target device 200 is an authorized device of the electronic device 100.
请参看图9b,在一些可行的实施例中,电子设备100还可以为近距离无线通信连接的请求方。具体地,在步骤S103之前,该显示方法还包括下面步骤。Referring to FIG. 9b, in some feasible embodiments, the electronic device 100 may also be a requester of a short-range wireless communication connection. Specifically, before step S103, the display method further includes the following steps.
步骤S907,发送通信连接请求给目标设备200以供目标设备200响应该通信连接请求发送响应信息给目标设备。该通信连接请求包括鉴权标签。在该步骤中,当电子设备100与目标设备200的距离在近距离无线通信所覆盖的范围内时,电子设备100欲与目标设备200建立连接,电子设备100发出通信连接请求。目标设备200响应该通信连接请求并根据通信连接请求中的鉴权标签返回相应的响应信息。In step S907, a communication connection request is sent to the target device 200 for the target device 200 to send response information to the target device in response to the communication connection request. The communication connection request includes an authentication tag. In this step, when the distance between the electronic device 100 and the target device 200 is within the range covered by short-range wireless communication, the electronic device 100 wants to establish a connection with the target device 200, and the electronic device 100 issues a communication connection request. The target device 200 responds to the communication connection request and returns corresponding response information according to the authentication tag in the communication connection request.
步骤S909,当获取到目标设备200返回的响应信息时,与目标设备200建立了近距离无线通信连接。可以理解地,当获取到目标设备200返回的响应信息时,电子设备100可视为目标设备200的授权设备。In step S909, when the response information returned by the target device 200 is acquired, a short-range wireless communication connection is established with the target device 200. Understandably, when the response information returned by the target device 200 is acquired, the electronic device 100 may be regarded as an authorized device of the target device 200.
在一些可行的实施例中,当近距离无线通信为NFC时,电子设备100和目标设备200在NFC的辐射距离10cm以内,即,电子设备100和目标设备200基本上靠在一起,电子设备100和目标设备200建立了近距离无线通信连接,且即认为电子设备100和目标设备200是相互授权的用户。In some feasible embodiments, when the short-range wireless communication is NFC, the electronic device 100 and the target device 200 are within 10 cm of the NFC radiation distance, that is, the electronic device 100 and the target device 200 are substantially close together, and the electronic device 100 A short-range wireless communication connection is established with the target device 200, and the electronic device 100 and the target device 200 are considered to be mutually authorized users.
在一些可行的实施例中,为了确保数据传输安全,电子设备100还可以发送包含有鉴权标签的通信连接请求以供目标设备200返回响应信息来完成近距离无线通信连接。具体的,近距离无线通信连接建立方法可参照上述电子设备100和目标设备200通过WIFI或者蓝牙建立近距离无线通信连接的方法。在此不再赘述。In some feasible embodiments, in order to ensure data transmission security, the electronic device 100 may also send a communication connection request containing an authentication tag for the target device 200 to return response information to complete the short-range wireless communication connection. Specifically, for the method for establishing a short-range wireless communication connection, reference may be made to the method for establishing a short-range wireless communication connection between the electronic device 100 and the target device 200 through WIFI or Bluetooth. I will not repeat them here.
在一些可行的实施例中,以上步骤顺序可以变换,例如,步骤S107可以在步骤S103之前。可以理解地,步骤S103中的子步骤S501、S701、S803、S809中的超声波、电子设备100的方位、目标设备200的方位还可以在检测到与目标设备200传输数据时发送。In some feasible embodiments, the order of the above steps may be changed, for example, step S107 may precede step S103. Understandably, the ultrasonic waves in sub-steps S501, S701, S803, and S809 in step S103, the orientation of the electronic device 100, and the orientation of the target device 200 may also be sent when data transmission with the target device 200 is detected.
在一些可行的实施例中,步骤S103中,检测目标设备200相对电子设备100的方位还可以实时检测或者按照预设的时间间隔进行检测。可以理解地,超声波、电子设备100的方位、目标设备200的方位可以按照预设的时间间隔或者实时进行发送或者获取。In some feasible embodiments, in step S103, detecting the orientation of the target device 200 relative to the electronic device 100 may also be detected in real time or at a preset time interval. Understandably, the ultrasonic waves, the orientation of the electronic device 100, and the orientation of the target device 200 may be transmitted or acquired at preset time intervals or in real time.
进一步地,当实时检测目标设备200相对电子设备100的方位,该显示方法还包括如下步骤。Further, when the orientation of the target device 200 relative to the electronic device 100 is detected in real time, the display method further includes the following steps.
根据实时检测的方位判断该目标设备相对该电子设备的方位是否发生变 化;Judging whether the orientation of the target device relative to the electronic device has changed according to the orientation detected in real time;
若发生变化,重新确定该方位对应于该显示屏中的方向以重新控制该运动图标的移动方向。If there is a change, re-determine that the orientation corresponds to the direction in the display screen to re-control the moving direction of the motion icon.
在一些实施例中,也可以是包含所需数据量、传输信号强度、完成进度中的其中一者,或者是任意两者的组合。运动图标F和进程图标T进行相应地变化。In some embodiments, it may also include one of the required data amount, transmission signal strength, completion progress, or any combination of the two. The motion icon F and the progress icon T change accordingly.
请参看图10,图10为第一实施方式的电子设备示意图。电子设备100包括近距离通信模组10、一个或者多个处理器30、以及存储器40、显示屏10、近距离无线通信模块20。近距离无线通信模块20包括但不限于WIFI模块、蓝牙模块、NFC模块等。Please refer to FIG. 10, which is a schematic diagram of an electronic device according to the first embodiment. The electronic device 100 includes a short-range communication module 10, one or more processors 30, a memory 40, a display screen 10, and a short-range wireless communication module 20. The short-range wireless communication module 20 includes but is not limited to a WIFI module, a Bluetooth module, an NFC module, and the like.
部分实施例中,该电子设备100还包括超声波装置50、GPS装置60、方向传感器70。超声波装置50用于收发超声波。GPS装置60和方向传感器70用于获取电子设备100的方位。In some embodiments, the electronic device 100 further includes an ultrasonic device 50, a GPS device 60, and a direction sensor 70. The ultrasonic device 50 is used to transmit and receive ultrasonic waves. The GPS device 60 and the direction sensor 70 are used to obtain the position of the electronic device 100.
存储器40存储有有计算机可执行的基于数据传输的显示程序。一个或者多个处理器30用于执行该显示程序以实现上述基于传输数据的显示方法。The memory 40 stores a computer-executable display program based on data transmission. One or more processors 30 are used to execute the display program to implement the above-mentioned transmission data-based display method.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.
请参看图11,图11为第一实施方式的计算机可读介质300的示意图。计算机可读介质300存储有计算机可执行的基于数据传输的显示程序。计算机可执行程序被执行以实现上述基于传输数据的显示方法。Please refer to FIG. 11, which is a schematic diagram of the computer-readable medium 300 of the first embodiment. The computer-readable medium 300 stores a computer-executable display program based on data transmission. The computer executable program is executed to realize the above-mentioned transmission data-based display method.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某一些步骤可以采用其他顺序或者同时进行。其次,本领技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the sequence of actions described because According to this application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part of a certain embodiment that is not described in detail, you can refer to the related descriptions of other embodiments.
本申请实施例方法中的步骤可以根据实际需要进行顺序调整、合并和删减。The steps in the method of the embodiment of the present application may be adjusted, merged, and deleted sequentially according to actual needs.
本申请提供的显示方法可以在硬件、固件中实施,或者可以作为可以存储在例如CD、ROM、RAM、软盘、硬盘或磁光盘的等计算机可读存储介质中的软件或计算机代码,或者可以作为原始存储在远程记录介质或非瞬时的机器可读介质上、通过网络下载并且存储在本地记录介质中的计算机代码,从而这里描述的方法可以利用通用计算机或特殊处理器或在诸如ASIC或FPGA之类的可编程或专用硬件中以存储在记录介质上的软件来呈现。如本领能够理解的,计算机、处理器、微处理器、控制器或可编程硬件包括存储器组件,例如,RAM、 ROM、闪存等,当计算机、处理器或硬件实施这里描述的处理方法而存取和执行软件或计算机代码时,存储器组件可以存储或接收软件或计算机代码。另外,当通用计算机存取用于实施这里示出的处理的代码时,代码的执行将通用计算机转换为用于执行这里示出的处理的专用计算机。The display method provided in this application can be implemented in hardware or firmware, or can be used as software or computer code that can be stored in a computer-readable storage medium such as CD, ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or can be used as Computer code that was originally stored on a remote recording medium or a non-transitory machine-readable medium, downloaded over a network, and stored in a local recording medium, so that the method described here can utilize a general-purpose computer or a special processor or in a device such as an ASIC or FPGA It is represented by software stored on a recording medium in a class of programmable or dedicated hardware. As can be understood in the art, a computer, processor, microprocessor, controller, or programmable hardware includes memory components, such as RAM, ROM, flash memory, etc., which are accessed when the computer, processor, or hardware implements the processing methods described herein When executing software or computer code, the memory component can store or receive the software or computer code. In addition, when the general-purpose computer accesses the code for implementing the processing shown here, execution of the code converts the general-purpose computer into a dedicated computer for performing the processing shown here.
其中,所述计算机可读存储介质可为固态存储器、存储卡、光碟等。所述计算机可读存储介质存储有程序指令而供计算机调用后执行图1所示的显示方法。Wherein, the computer-readable storage medium may be solid-state memory, memory card, optical disc, etc. The computer readable storage medium stores program instructions for the computer to call to execute the display method shown in FIG. 1.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施例进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领的一般技术人员,依据本申请的思想,在具体实施例及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been described in detail above, and specific examples are used in this article to explain the principles and embodiments of the present application. The descriptions of the above embodiments are only used to help understand the method and the core idea of the present application; A person of ordinary skill in the art, according to the ideas of the present application, may have changes in specific embodiments and application scopes. In summary, the content of this specification should not be construed as limiting the present application.

Claims (25)

  1. 一种基于数据传输的显示方法,所述显示方法执行于电子设备中,所述电子设备包括显示屏,其特征在于,所述方法包括:A display method based on data transmission. The display method is executed in an electronic device. The electronic device includes a display screen. The method is characterized in that the method includes:
    检测目标设备相对所述电子设备的方位,其中,所述目标设备已与所述电子设备建立近距离无线通信连接;Detecting the orientation of the target device relative to the electronic device, wherein the target device has established a short-range wireless communication connection with the electronic device;
    根据所述方位确定所述方位对应于所述显示屏的方向;Determining, according to the orientation, that the orientation corresponds to the direction of the display screen;
    检测是否与所述目标设备进行数据传输;Detect whether data transmission is performed with the target device;
    当与所述目标设备进行数据传输时,根据所述方向和所述进行的数据传输控制在显示屏上显示运动图标并控制所述运动图标在所述显示屏中随所进行的数据传输沿所述方向移动。When performing data transmission with the target device, according to the direction and the ongoing data transmission, control to display a motion icon on the display screen and control the motion icon in the display screen along with the ongoing data transmission along the Direction of movement.
  2. 如权利要求1所述的显示方法,其特征在于,所述检测目标设备相对所述电子设备的方位包括:The display method of claim 1, wherein the detection of the orientation of the target device relative to the electronic device comprises:
    接收所述目标设备发送的目标设备的方位,其中,当所述目标设备与所述电子设备建立了近距离无线通信连接时,或者当所述电子设备与所述目标设备进行数据传输时,所述目标设备发送所述目标设备方位给所述电子设备;Receiving the orientation of the target device sent by the target device, wherein when the target device establishes a short-range wireless communication connection with the electronic device, or when the electronic device performs data transmission with the target device, The target device sends the target device orientation to the electronic device;
    获取所述电子设备的方位;Obtain the position of the electronic device;
    根据所述目标设备的方位和所述电子设备的方位计算出所述目标设备相对所述电子设备的方位。The orientation of the target device relative to the electronic device is calculated according to the orientation of the target device and the orientation of the electronic device.
  3. 如权利要求1所述的显示方法,其特征在于,所述检测目标设备相对所述电子设备的方位包括:The display method of claim 1, wherein the detection of the orientation of the target device relative to the electronic device comprises:
    发射超声波,其中,所述超声波通过在所述电子设备中设置用于发送和接收超声波的超声波装置进行发射,当所述目标设备与所述电子设备近距离无线通信连接成功时或者当所述电子设备与所述目标设备进行数据传输时,发射所述超声波;Transmitting ultrasonic waves, wherein the ultrasonic waves are transmitted by an ultrasonic device provided in the electronic device for transmitting and receiving ultrasonic waves, when the target device and the electronic device are successfully connected in short-range wireless communication or when the electronic The device transmits the ultrasonic wave when performing data transmission with the target device;
    获取反射回来的超声波,其中,所述反射回来的超声波从所述超声波装置获取;Acquiring the reflected ultrasonic wave, wherein the reflected ultrasonic wave is acquired from the ultrasonic device;
    根据反射回来的超声波的波长获取所述目标设备相对所述电子设备的方位。Obtain the orientation of the target device relative to the electronic device according to the wavelength of the reflected ultrasonic wave.
  4. 如权利要求1所述的显示方法,其特征在于,所述检测目标设备相对所述电子设备的方位包括:The display method of claim 1, wherein the detection of the orientation of the target device relative to the electronic device comprises:
    当所述目标设备与所述电子设备建立了近距离无线通信连接时,检测在预设的时间内是否接收到来自目标设备发送的方位,其中,当所述目标设备与所述电子设备建立了近距离无线通信时,或者当所述电子设备与所述目标设备进行数据传输时,所述目标设备发送所述目标设备的方位给所述电子设备;When the target device establishes a short-range wireless communication connection with the electronic device, it is detected whether an orientation sent from the target device is received within a preset time, wherein, when the target device and the electronic device are established During short-range wireless communication, or when the electronic device performs data transmission with the target device, the target device sends the orientation of the target device to the electronic device;
    若在预设时间内接收到所述目标设备的方位,获取所述电子设备的方位;If the orientation of the target device is received within a preset time, acquire the orientation of the electronic device;
    根据所述目标设备的方位和所述电子设备的方位计算出所述目标设备相对所述电子设备的方位。The orientation of the target device relative to the electronic device is calculated according to the orientation of the target device and the orientation of the electronic device.
  5. 如权利要求4所述的显示方法,其特征在于,所述检测目标设备相对所述电子设备的方位包括:The display method of claim 4, wherein the detection target device's orientation relative to the electronic device comprises:
    若在预设时间内未接收到目标设备的方位,发射超声波,其中,所述超声波通过在所述电子设备中设置用于发送和接收超声的超声波装置进行发射,若所述目标设备与所述电子设备建立了近距离无线通信连接时或者若所述电子设备与所述目标设备进行数据传输时,发射所述超声波;If the orientation of the target device is not received within a preset time, an ultrasonic wave is transmitted, wherein the ultrasonic wave is transmitted by an ultrasonic device provided in the electronic device for transmitting and receiving ultrasonic waves, if the target device and the When the electronic device establishes a short-range wireless communication connection or if the electronic device performs data transmission with the target device, the ultrasonic wave is transmitted;
    获取反射回来的超声波,其中,所述反射回来的超声波从所述超声波装置获取;Acquiring the reflected ultrasonic wave, wherein the reflected ultrasonic wave is acquired from the ultrasonic device;
    根据反射回来的超声波的波长获取所述目标设备相对所述电子设备的方位。Obtain the orientation of the target device relative to the electronic device according to the wavelength of the reflected ultrasonic wave.
  6. 如权利要求1所述的显示方法,其特征在于,所述检测目标设备相对所述电子设备的方位具体为:实时检测所述目标设备相对所述电子设备的方位;所述方法还包括:The display method according to claim 1, wherein the detecting the orientation of the target device relative to the electronic device specifically comprises: detecting the orientation of the target device relative to the electronic device in real time; the method further comprises:
    根据实时检测的方位判断所述目标设备相对所述电子设备的方位是否发生变化;Determine whether the orientation of the target device relative to the electronic device changes according to the orientation detected in real time;
    若所述目标设备相对所述电子设备的方位发生变化,重新确定所述方位对应于所述显示屏中的方向以重新控制所述运动图标的移动方向。If the orientation of the target device relative to the electronic device changes, re-determine the orientation corresponding to the orientation in the display screen to re-control the movement direction of the motion icon.
  7. 如权利要求1所述的显示方法,其特征在于,所述显示方法还包括:The display method according to claim 1, wherein the display method further comprises:
    检测与所述目标设备进行数据传输是否结束;Detecting whether the data transmission with the target device ends;
    若检测是否与所述目标设备进行数据传输结束,关闭所述运动图标。If it is detected whether the data transmission with the target device ends, the motion icon is closed.
  8. 如权利要求1所述的显示方法,其特征在于,所述显示运动图标于所述显示屏且所述运动图标在所述显示屏中随所进行的数据传输沿着所述方向移动具体包括:The display method according to claim 1, wherein the displaying of the motion icon on the display screen and the movement of the motion icon in the display screen along the direction along with the data transmission specifically includes:
    识别所述进行的数据传输的类型,所述数据传输的类型包括发送数据给目标设备和自所述目标设备接收数据;以及Identify the type of data transmission performed, which includes sending data to and receiving data from the target device; and
    根据所识别到的数据传输的类型控制所述运动图标的移动方向。The movement direction of the motion icon is controlled according to the recognized type of data transmission.
  9. 如权利要求8所述的显示方法,其特征在于,根据所识别到的数据传输的类型控制所述运动图标的移动方向具体包括:The display method according to claim 8, wherein controlling the moving direction of the motion icon according to the recognized type of data transmission specifically includes:
    若所识别到的数据传输的类型为发送数据给所述目标设备,控制所述运动图标朝向所述目标设备移动;或者If the identified type of data transmission is to send data to the target device, control the movement icon to move toward the target device; or
    若所识别到的数据传输的类型为从所述目标设备接收数据,控制所述运动图标朝背离所述目标设备的方向移动。If the recognized type of data transmission is to receive data from the target device, control the movement icon to move away from the target device.
  10. 如权利要求9所述的显示方法,其特征在于,所述运动图标的数量为多 个,所述若所识别到的数据传输的类型为发送数据给所述目标设备,控制所述运动图标朝向所述目标设备移动具体包括:The display method according to claim 9, wherein the number of the motion icons is multiple, and if the type of data transmission recognized is to send data to the target device, control the direction of the motion icons The target device movement specifically includes:
    若所识别到的数据传输的类型为发送数据给所述目标设备,控制所述多个运动图标逐个从所述显示屏的初始位置朝所述目标设备的方向移动,以使所述每一运动图标与所述初始位置之间的距离越来越大;其中,所述初始位置始终位于所述运动图标的移动方向上。If the recognized type of data transmission is to send data to the target device, control the plurality of motion icons to move from the initial position of the display screen toward the target device one by one, so that each of the motions The distance between the icon and the initial position is getting larger and larger; wherein the initial position is always located in the moving direction of the motion icon.
  11. 如权利要求10所述的显示方法,其特征在于,所述显示方法在显示所述运动图标时还包括:The display method according to claim 10, wherein the display method further comprises:
    显示进程图标,所述进程图标用于表示所述进行的数据传输的完成进度,所述进程图标与所述初始位置之间的相对位置保持不变,所述运动图标位于所述进程图标的外部。A progress icon is displayed, the progress icon is used to indicate the completion progress of the ongoing data transmission, the relative position between the progress icon and the initial position remains unchanged, and the motion icon is located outside the progress icon .
  12. 如权利要求11所述的显示方法,其特征在于,所述进程图标的中心位置位于所述运动图标的移动方向上,且所述中心位置与所述初始位置之间的距离保持不变。The display method according to claim 11, wherein the center position of the progress icon is located in the moving direction of the motion icon, and the distance between the center position and the initial position remains unchanged.
  13. 如权利要求11所述的显示方法,其特征在于,所述方法在显示所述进程图标之后还包括:The display method according to claim 11, wherein after the process icon is displayed, the method further comprises:
    获取所述进行的数据传输的完成进度;Obtaining the completion progress of the data transmission performed;
    根据所述完成进度图标控制所述进程图标的逐渐增大,以使所述进程图标的中心位置与所述初始位置的之间距离越来越大,所述进程图标的中心位置位于所述运动图标的移动方向上。Controlling the gradual increase of the process icon according to the completion progress icon, so that the distance between the center position of the process icon and the initial position becomes larger and larger, and the center position of the process icon is located in the motion The icon moves in the direction.
  14. 如权利要求9所述的显示方法,其特征在于,当所述运动图标的数量为多个时,所述若所识别到的数据传输的类型为从所述目标设备接收数据,控制所述运动图标朝向所述目标设备移动具体包括::The display method according to claim 9, wherein when the number of the motion icons is multiple, the if the type of data transmission recognized is receiving data from the target device, controlling the motion Moving the icon toward the target device specifically includes:
    若所识别到的数据传输的类型为从所述目标设备接收数据,控制所述运动图标逐个从所述显示屏的初始位置朝背离所述目标设备的方向移动,以使所述每一运动图标距离所述初始位置的距离越来越远,所述初始位置始终位于所述运动图标移动的方向上。If the recognized type of data transmission is to receive data from the target device, control the motion icons to move one by one from the initial position of the display screen away from the target device, so that each motion icon The distance from the initial position is getting farther and farther, and the initial position is always located in the moving direction of the motion icon.
  15. 如权利要求14所述的显示方法,其特征在于,所述每一运动图标与所述显示屏上的一个基准位置的距离均相等,其中,所述基准位置始终位于所述运动图标的移动方向上,且所述初始位置和所述基准位置之间的距离保持不变。The display method according to claim 14, wherein the distance between each motion icon and a reference position on the display screen is equal, wherein the reference position is always located in the moving direction of the motion icon And the distance between the initial position and the reference position remains unchanged.
  16. 如权利要求14所述的显示方法,其特征在于,所述显示方法在显示所述运动图标时还包括:The display method according to claim 14, wherein the display method further comprises:
    显示进程图标,所述进程图标用于表示所述进行的数据传输的完成进度,所述进程图标与所述初始位置之间的相对位置保持不变,所述运动图标位于所述进程图标的外部。A progress icon is displayed, the progress icon is used to indicate the completion progress of the ongoing data transmission, the relative position between the progress icon and the initial position remains unchanged, and the motion icon is located outside the progress icon .
  17. 如权利要求16所述的显示方法,其特征在于,所述进程图标的中心位置始终位于所述运动图标的移动方向上,所述进程图标的中心位置与所述初始位置距离保持不变。The display method according to claim 16, wherein the center position of the process icon is always located in the moving direction of the motion icon, and the distance between the center position of the process icon and the initial position remains unchanged.
  18. 如权利要求16所述的显示方法,其特征在于,所述方法在显示所述进程图标之后还包括:The display method according to claim 16, wherein after the process icon is displayed, the method further comprises:
    获取所述进行的数据传输的完成进度;Obtaining the completion progress of the data transmission performed;
    根据所述完成进度控制所述进程图标逐渐增大,以使所述进程图标的中心位置与所述初始位置的距离越来越大,所述进程图标的中心位置始终位于所述运动图标的移动方向上。Controlling the process icon to gradually increase according to the completion progress so that the distance between the center position of the process icon and the initial position becomes larger and larger, and the center position of the process icon is always located in the movement of the motion icon Direction.
  19. 如权利要求1或者9所述的显示方法,其特征在于,所述显示方法在显示运动图标于所述显示屏且所述运动图标在所述显示屏中随所进行的数据传输 沿着所述方向移动之前还包括:The display method according to claim 1 or 9, wherein the display method displays a motion icon on the display screen and the motion icon moves along the direction along with the data transmission in the display screen It also includes:
    获取所需传送的数据量;Obtain the amount of data to be transferred;
    根据所需传送的数据量确定在进行数据传输时所需显示的所述运动图标的数量,其中,所述运动图标的数量与所述数据量大小成正比。The number of the motion icons to be displayed during data transmission is determined according to the amount of data to be transferred, wherein the number of the motion icons is proportional to the size of the data amount.
  20. 如权利要求19所述的显示方法,其特征在于,所述方法还包括:The display method according to claim 19, wherein the method further comprises:
    检测所述所需的发送的数据量是否发生变化;Detecting whether the required amount of transmitted data has changed;
    当所述所需的发送的数据量发生变化时,根据所述数据量重新控制所述运动图标的数量。When the required amount of transmitted data changes, the number of motion icons is re-controlled according to the amount of data.
  21. 如权利要求1或者9所述的显示方法,其特征在于,所述显示方法在显示运动图标于所述显示屏且所述运动图标在所述显示屏中随所进行的数据传输沿着所述方向移动之前还包括:The display method according to claim 1 or 9, wherein the display method displays a motion icon on the display screen and the motion icon is along the direction along with the data transmission in the display screen It also includes:
    获取通信信号强度,Get the communication signal strength,
    根据所获取到的通信信号强度控制所述运动图标的移动速度,其中,所述移动速度与所述通信信号强度成正比。The movement speed of the motion icon is controlled according to the acquired communication signal strength, wherein the movement speed is proportional to the communication signal strength.
  22. 如权利要求21所述显示方法,其特征在于,所述显示方法还包括:The display method according to claim 21, wherein the display method further comprises:
    检测所述通信信号强度是否发生变化;Detecting whether the communication signal strength has changed;
    当所述通信信号强度发生变化时,根据所述通信信号强度重新控制所述运动图标的移动速度。When the communication signal strength changes, the movement speed of the motion icon is re-controlled according to the communication signal strength.
  23. 一种电子设备,所述显示方法执行于电子设备中,所述电子设备包括显示屏、处理器以及存储器,所述存储器存储有计算机可执行的基于数据传输的显示程序,所述处理器用于执行所述显示程序以实现如权利要求1~25所述的任意一项所述的显示方法。An electronic device, the display method is executed in an electronic device, the electronic device includes a display screen, a processor and a memory, the memory stores a computer-executable display program based on data transmission, the processor is used to execute The display program implements the display method according to any one of claims 1-25.
  24. 如权利要求23所述的电子设备,其特征在于,所述电子设备为腕带式电 子设备。The electronic device according to claim 23, wherein the electronic device is a wristband electronic device.
  25. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行的基于数据传输的显示程序,所述显示程序被执行以实现如权利要求1~25所述的任意一项所述的显示方法。A computer-readable storage medium storing a computer-executable display program based on data transmission, the display program being executed to implement any one of claims 1-25 Display method.
PCT/CN2018/125551 2018-12-29 2018-12-29 Display method based on data transmission, and electronic device and computer-readable storage medium WO2020133397A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880097594.9A CN113169985A (en) 2018-12-29 2018-12-29 Display method based on data transmission, electronic device and computer readable storage medium
PCT/CN2018/125551 WO2020133397A1 (en) 2018-12-29 2018-12-29 Display method based on data transmission, and electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/125551 WO2020133397A1 (en) 2018-12-29 2018-12-29 Display method based on data transmission, and electronic device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2020133397A1 true WO2020133397A1 (en) 2020-07-02

Family

ID=71128486

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/125551 WO2020133397A1 (en) 2018-12-29 2018-12-29 Display method based on data transmission, and electronic device and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN113169985A (en)
WO (1) WO2020133397A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120154314A1 (en) * 2010-12-17 2012-06-21 Inventec Appliances (Shanghai) Co. Ltd. Electronic device and communication system having a file transmission function, and a related file transmission method
CN102945131A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Azimuth-based data transmission method and device
CN103678207A (en) * 2012-09-03 2014-03-26 北京千橡网景科技发展有限公司 Object transmission method and device
CN103873637A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Cross-device transmission method and device
CN105681441A (en) * 2016-01-29 2016-06-15 腾讯科技(深圳)有限公司 Data transmission method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110161856A1 (en) * 2009-12-28 2011-06-30 Nokia Corporation Directional animation for communications
CN103248643A (en) * 2012-02-08 2013-08-14 海尔集团公司 File receiving display method and system
FR3030073A1 (en) * 2014-12-15 2016-06-17 Orange DATA TRANSFER ASSIST ON A TOUCH INTERFACE
CN106201217B (en) * 2016-07-27 2019-12-24 青岛海信电器股份有限公司 File transmission method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120154314A1 (en) * 2010-12-17 2012-06-21 Inventec Appliances (Shanghai) Co. Ltd. Electronic device and communication system having a file transmission function, and a related file transmission method
CN103678207A (en) * 2012-09-03 2014-03-26 北京千橡网景科技发展有限公司 Object transmission method and device
CN102945131A (en) * 2012-09-29 2013-02-27 华为技术有限公司 Azimuth-based data transmission method and device
CN103873637A (en) * 2012-12-10 2014-06-18 腾讯科技(深圳)有限公司 Cross-device transmission method and device
CN105681441A (en) * 2016-01-29 2016-06-15 腾讯科技(深圳)有限公司 Data transmission method and apparatus

Also Published As

Publication number Publication date
CN113169985A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
JP6246739B2 (en) Multi-user interface mirror interface navigation
US11782595B2 (en) User terminal device and control method thereof
US8312392B2 (en) User interface gestures and methods for providing file sharing functionality
KR102629258B1 (en) Generating animation overlays in a communication session
KR102423447B1 (en) Electronic device comprising bended display and method for controlling the same
KR102415870B1 (en) Apparatus and method for adaptively changing subject performing operation
JP6228676B2 (en) Connection state prompting method and apparatus
US20170004485A1 (en) Method for payment using short range communication and electronic device therefor
US9703577B2 (en) Automatically executing application using short run indicator on terminal device
KR102257474B1 (en) Method for transmitting and receiving data and Electronic device using the same
KR20150012949A (en) Electronic device
KR20170137445A (en) Method for sharing file and electronic device for the same
KR20160026337A (en) Electronic device and method for processing notification event in electronic device and electronic device thereof
EP3336675A1 (en) Electronic device and input method of electronic device
US10817163B2 (en) Method and device for managing item
EP3575945B1 (en) Information display method and mobile terminal
KR102599479B1 (en) Electronic device, method and system for connecting local communication
CN108806183A (en) Tracking and early warning method and system
WO2020133397A1 (en) Display method based on data transmission, and electronic device and computer-readable storage medium
KR20170065349A (en) Method for providing user information sharing service based on location and server thereof
US20160301795A1 (en) Display device and method of controlling the same
KR20170065347A (en) Method for providing user information sharing service and server thereof
KR20160142126A (en) Mobile terminal and method for controlling the same
KR20150049608A (en) Method for transmitting and receiving data and electronic device thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18944425

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18944425

Country of ref document: EP

Kind code of ref document: A1