一种共享设备的确定方法和文件传输方法以及系统 技术领域 Method for determining shared device and file transmission method and system
本发明涉及一种应用于多屏共享的共享设备的确定方法和文件 传输方法以及系统。 背景技术 The present invention relates to a method and system for determining a shared device for multi-screen sharing. Background technique
"三网融合" 是指电信网络、 计算机网络和有线电视网络三大网 络通过技术改造, 实现包括语音、 数据、 图像等综合多媒体的通信业 务。 "三网融合" 通过多屏融合实现业务层面、 控制层面和承载层面 的完美融合, 使实现不同共享设备之间的多屏共享。 但现有的共享设 备在在识别共享请求时需要用户准确选择表示其他共享设备的图标, 在操作便捷性方面无法满足用户的需求。 发明内容 "Three-network convergence" refers to the three major networks of telecommunication networks, computer networks and cable television networks that realize comprehensive communication services including voice, data and images through technological transformation. "Three-network convergence" achieves the perfect integration of service level, control layer and bearer level through multi-screen convergence, enabling multi-screen sharing between different shared devices. However, the existing shared device needs to accurately select an icon representing another shared device when identifying the sharing request, and cannot meet the user's needs in terms of operation convenience. Summary of the invention
有鉴于此, 本发明的主要目的在于, 提供一种应用于多屏共享的 共享设备的确定方法和文件传输方法, 通过识别用户的滑动轨迹所指 向的方向便实现确定共享对象并传输共享文件, 实现增加操作的便捷 性。 In view of this, the main object of the present invention is to provide a method for determining a shared device and a file transmission method for multi-screen sharing, which can determine a shared object and transmit a shared file by recognizing the direction pointed by the user's sliding track. Achieve increased ease of operation.
其中, 共享设备的确定方法, 包括步骤: The method for determining a shared device includes the following steps:
A: 确定出各个共享设备相对于当前共享设备在水平面投影的各 个方向; A: determining the directions in which the respective shared devices are projected on the horizontal plane with respect to the currently shared device;
B: 确定在当前共享设备上的触摸轨迹在水平面投影所指的方向; C: 确定所述触摸轨迹所指方向上所匹配的共享设备, 作为所要 通讯的共享设备。 B: determining the direction in which the touch track on the current shared device is projected in the horizontal plane; C: determining the shared device in the direction indicated by the touch track as the shared device to be communicated.
由上, 通过识别用户的滑动轨迹所指向的方向便实现确定共享对 象, 增加操作的便捷性。 当选择对象时, 只需在当前共享设备的屏幕
上向其滑动便可, 节省操作时间。 From above, by identifying the direction pointed by the user's sliding trajectory, the shared object is determined, and the convenience of the operation is increased. When selecting an object, just on the screen of the currently shared device Slide it up to save time.
可选的, 步骤 A包括: Optionally, step A includes:
根据至少三个具有空间坐标的共享设备与当前共享设备通讯信 号的强度确定出当前共享设备的空间坐标; Determining the spatial coordinates of the current shared device according to the strength of at least three shared devices having spatial coordinates and the current shared device communication signal;
根据当前共享设备的空间坐标、 其他各个共享设备的空间坐标确 定出各个共享设备相对于当前共享设备在水平面投影的各个方向。 According to the spatial coordinates of the current shared device and the spatial coordinates of other shared devices, the directions in which the respective shared devices are projected on the horizontal plane with respect to the current shared device are determined.
由上, 通过通讯信号传输的强度对所有共享设备空间坐标的计 算, 实现确定各个共享设备相对于当前共享设备的位置。 From above, the calculation of the spatial coordinates of all the shared devices by the strength of the communication signal transmission determines the position of each shared device relative to the current shared device.
可选的, 步骤 A包括: Optionally, step A includes:
获取包括至少三个具有空间坐标的共享设备与当前共享设备的 图像信息; Obtaining image information including at least three shared devices having spatial coordinates and the current shared device;
根据三个所述共享设备的空间坐标进行图像分析确定出当前共 享设备的空间坐标; Performing image analysis according to the spatial coordinates of the three shared devices to determine the spatial coordinates of the current shared device;
根据当前共享设备的空间坐标、 其他各个共享设备的空间坐标确 定出各个共享设备相对于当前共享设备在水平面投影的各个方向。 According to the spatial coordinates of the current shared device and the spatial coordinates of other shared devices, the directions in which the respective shared devices are projected on the horizontal plane with respect to the current shared device are determined.
由上, 通过图像信息获取所有共享设备空间坐标, 实现确定各个 共享设备相对于当前共享设备的位置。 From above, all shared device space coordinates are obtained by image information, and the position of each shared device relative to the current shared device is determined.
可选的, 步骤 C所述确定所述触摸轨迹所指方向上所匹配的共享 设备包括: Optionally, the determining, by the step C, that the shared device that is in the direction indicated by the touch track includes:
判断与所述触摸轨迹所指方向误差最小的方向上的共享设备作 为所匹配的共享设备。 The shared device in the direction with the smallest direction error indicated by the touch track is judged as the matched shared device.
由上, 通过判断与触摸轨迹所指方向误差最小的共享设备, 实现 增加容错性。 From above, the fault tolerance is achieved by judging the shared device having the smallest error in the direction indicated by the touch track.
可选的, 步骤 A后还包括: 在当前共享设备的触摸屏上, 将上述 各个其他共享设备的图标根据确定出的各个共享设备的方向在所述 触摸轨迹起点四周对应的方向上进行显示。 Optionally, after step A, the method further includes: displaying, on the touch screen of the current shared device, the icons of the other shared devices according to the determined directions of the shared devices in a direction corresponding to the beginning of the touch track.
由上, 通过可视化显示出其他共享设备的图标, 更加直观的显示 各个可作为接收方的共享设备, 实现操作的便捷性。 From the above, the icons of other shared devices are visually displayed, and the shared devices that can be used as recipients are displayed more intuitively, thereby facilitating the operation.
其中, 还包括: 根据初始的触摸轨迹判断出所指方向, 隐藏其他
方向的各个共享设备的图标。 The method further includes: determining the direction according to the initial touch trajectory, hiding other The icon for each shared device in the direction.
由上, 当判断出初始的触摸轨迹,则隐藏起其他方向的共享设备, 使得屏幕呈现更简洁, 也便于用户更准确的选择出该方向的共享设 备。 From above, when the initial touch trajectory is determined, the shared device in other directions is hidden, so that the screen presentation is more concise, and the user can more accurately select the shared device in the direction.
其中,还包括: 触摸轨迹所指方向有两个以上匹配的共享设备时, 仅将所述匹配的共享设备的图标进行显示, 触摸点选择的图标所对应 的共享设备为匹配的共享设备。 The method further includes: when there are more than two matching shared devices in the direction indicated by the touch track, only the icon of the matched shared device is displayed, and the shared device corresponding to the icon selected by the touch point is a matched shared device.
进一步通过图标来区分同一方向的共享设备, 使得操作更准确。 共享设备的文件传输方法, 包括步骤: Further distinguishing the shared devices in the same direction by icons makes the operation more accurate. The file transfer method of the shared device, including the steps:
A: 确定出各个共享设备相对于当前共享设备在水平面投影的各 个方向; A: determining the directions in which the respective shared devices are projected on the horizontal plane with respect to the currently shared device;
B: 确定在当前共享设备上的触摸轨迹在水平面投影所指的方向; B: determining the direction in which the touch trajectory on the current shared device is projected in the horizontal plane;
C: 确定所述触摸轨迹所指方向上所匹配的共享设备, 将触摸轨 迹起点对应的所选文件传输到该匹配的共享设备。 C: determining a shared device that matches the direction indicated by the touch track, and transmitting the selected file corresponding to the start of the touch track to the matched shared device.
由上, 通过识别用户的滑动轨迹所指向的方向便实现确定共享对 象, 实现便于操作。 当选择对象时或选择文件进行传输时, 只需在当 前共享设备的屏幕上向其滑动便可, 节省操作时间。 From above, the identification of the shared object is achieved by recognizing the direction in which the user's sliding trajectory is pointed, and the operation is facilitated. When selecting an object or selecting a file for transmission, simply slide it on the screen of the currently shared device to save operating time.
可选的, 步骤 C所述确定所述触摸轨迹所指方向上所匹配的共享 设备包括: Optionally, the determining, by the step C, that the shared device that is in the direction indicated by the touch track includes:
判断与所述触摸轨迹所指方向误差最小的方向上的共享设备作 为所匹配的共享设备。 The shared device in the direction with the smallest direction error indicated by the touch track is judged as the matched shared device.
由上, 通过判断与触摸轨迹所指方向误差最小的共享设备, 实现 增加操作容错性。 From above, the operation fault tolerance is increased by judging the shared device having the smallest error in the direction indicated by the touch track.
可选的, 还包括: Optionally, it also includes:
根据初始的触摸轨迹判断出所指方向, 隐藏其他方向的各个共享 设备的图标; Determine the direction according to the initial touch trajectory, and hide the icons of the shared devices in other directions;
触摸轨迹所指方向有两个以上匹配的共享设备时, When there are more than two matching shared devices in the direction indicated by the touch track,
仅将所述匹配的共享设备的图标进行显示, 触摸点选择的图标所 对应的共享设备为匹配的共享设备。
由上, 当判断出初始的触摸轨迹,则隐藏起其他方向的共享设备, 使得屏幕呈现更简洁, 也便于用户更准确的选择出该方向的共享设 备。 并且, 进一步通过图标来区分同一方向的共享设备, 使得操作更 准确。 Only the icon of the matched shared device is displayed, and the shared device corresponding to the icon selected by the touch point is a matching shared device. From above, when the initial touch trajectory is determined, the shared device in other directions is hidden, so that the screen presentation is more concise, and the user can more accurately select the shared device in the direction. Moreover, the shared device in the same direction is further distinguished by an icon, so that the operation is more accurate.
本申请还提供一种实现应用于多屏共享的共享设备的确定方法 和文件传输方法的系统, 包括: 空间坐标接收单元, 用于接收共享设 备的空间坐标; The present application further provides a system for determining a method and a file transmission method for a shared device that is applied to a multi-screen sharing, comprising: a spatial coordinate receiving unit, configured to receive spatial coordinates of the shared device;
坐标系转换单元, 用于确定其他共享设备相对于当前共享设备在 水平面的各个方向; a coordinate system conversion unit, configured to determine various directions of other shared devices in a horizontal plane with respect to the current shared device;
触摸轨迹采集单元, 用于采集触摸轨迹, 该触摸轨迹起点对应为 所选文件; a touch track acquisition unit, configured to collect a touch track, where the start point of the touch track corresponds to the selected file;
投影单元, 用于确定所述触摸轨迹在水平面的投影方向; 共享设备识别单元, 用于依据触摸轨迹在当前共享设备屏幕上的 水平面投影所指的方向确定所匹配的共享设备; a projection unit, configured to determine a projection direction of the touch track in a horizontal plane; a shared device identification unit, configured to determine a matched shared device according to a direction indicated by a horizontal projection of the touch track on the current shared device screen;
共享文件传输单元, 用于向所匹配的共享设备传输所选文件。 由上, 通过识别用户的滑动轨迹所指向的方向便实现确定共享对 象, 实现便于操作。 当选择对象时或选择文件进行传输时, 只需在当 前共享设备的屏幕上向其滑动便可, 节省操作时间。 附图说明 A shared file transfer unit that transfers the selected file to the matched shared device. From above, the identification of the shared object is achieved by recognizing the direction in which the user's sliding trajectory is pointed, and the operation is facilitated. When selecting an object or selecting a file for transmission, simply slide it on the screen of the currently shared device to save operating time. DRAWINGS
图 1为本发明多屏共享的文件传输方法的流程图; 1 is a flowchart of a multi-screen shared file transmission method according to the present invention;
图 2为本发明步骤 S20的子流程图; 2 is a sub-flow chart of step S20 of the present invention;
图 3为本发明当前共享设备与定点设备的位置示意图; 3 is a schematic diagram of a location of a current shared device and a pointing device according to the present invention;
图 4为本发明 PAD的显示示意图; Figure 4 is a schematic view showing the display of the PAD of the present invention;
图 5为本发明系统的结构示意图。 具体实施方式 Figure 5 is a schematic view showing the structure of the system of the present invention. detailed description
下面结合附图 1-5对本发明所述应用于被选对象的共享请求识别 方法和识别系统的具体实施方式进行详细的说明。 其中, 本例中, 发
起共享的当前共享设备为具有触摸屏的移动终端, 如 PAD等平板电 脑、 手提电脑、 手机等。 同处于无线网络中的共享设备还包括具有无 线互联功能的定点设备, 即位置相对固定的无线终端, 如台式电脑、 电视、 打印机、 无线路由器、 或仅用于定位功能的装置如微型基站、 信号发射器等。 The specific implementation manner of the sharing request identification method and the identification system applied to the selected object according to the present invention will be described in detail below with reference to FIGS. Among them, in this case, hair The current shared device that is shared is a mobile terminal with a touch screen, such as a tablet computer such as a PAD, a laptop, a mobile phone, and the like. The shared device in the wireless network also includes a fixed-point device with wireless interconnection function, that is, a relatively fixed-position wireless terminal, such as a desktop computer, a television, a printer, a wireless router, or a device for positioning only functions such as a micro base station, a signal. Transmitter, etc.
下面, 以一 PAD 向一电脑发起文件传输为例, 对本发明进行描 述。 Hereinafter, the present invention will be described by taking a PAD to initiate file transfer to a computer as an example.
步骤 S10: 当该 PAD进入上述无线网络内, PAD与定点设备建 立无线连接。 定点设备获取该 PAD的型号, 为该 PAD分配 IP地址 并提供给该 PAD。定点设备将该 PAD的型号和 IP地址存入其属性列 表。 Step S10: When the PAD enters the above wireless network, the PAD establishes a wireless connection with the pointing device. The pointing device acquires the model number of the PAD, assigns an IP address to the PAD and provides it to the PAD. The pointing device stores the model and IP address of the PAD in its attribute list.
定点设备中存储有与其无线连接的所有共享设备的属性列表, 所 述属性列表存储有共享设备的型号、 设备图标、 IP地址和空间坐标, 以及定点设备自身的空间坐标。 其中, 在该 PAD位置发生变化时, 该属性列表会相应的空间坐标的更新。 The pointing device stores a list of attributes of all shared devices wirelessly connected thereto, the attribute list storing the model number of the shared device, the device icon, the IP address and the spatial coordinates, and the spatial coordinates of the pointing device itself. Wherein, when the PAD position changes, the attribute list is updated with corresponding space coordinates.
对于无线连接的建立, 为公知技术, 故不再对无线连接建立的过 程进行赘述。 For the establishment of a wireless connection, which is a well-known technique, the process of establishing a wireless connection will not be described again.
步骤 S20: 以定点设备的空间坐标为基准, 测算出该 PAD的空间 坐标, 并将所述空间坐标添加至定点设备所存储的该 PAD所对应的 属性列表中, 以及将该属性列表与网络内的所有共享设备共享, 以使 网络内的各个共享设备的空间坐标均被其他设备所知。 Step S20: Calculate the spatial coordinates of the PAD based on the spatial coordinates of the pointing device, and add the spatial coordinates to the attribute list corresponding to the PAD stored by the pointing device, and list the attribute and the network. All shared devices are shared so that the spatial coordinates of each shared device within the network are known by other devices.
定点设备的坐标相对固定, 故以定点设备为基准进行该 PAD 空 间坐标的测算。 如图 2所示, 该 PAD的空间坐标的测算步骤包括: 步骤 S201 : 计算至少三个定点设备到该 PAD的距离。 The coordinates of the pointing device are relatively fixed, so the measurement of the PAD space coordinates is performed based on the pointing device. As shown in FIG. 2, the measuring step of the spatial coordinates of the PAD includes: Step S201: Calculate a distance of at least three pointing devices to the PAD.
如图 3所示该 PAD与定点设备的位置示意图, 在本实施例中, 三个定点设备的空间坐标分别为 a ( Xa,Ya,Za ) 、 b ( Xb,Yb,Zb ) 和 c ( Xc,Yc,Zc ) , 在该三个定点设备上安装有红外、 蓝牙、 WIFI 或超 声波等无线收发模块。 相应的, 在所述 PAD 中同样安装有对应的无 线收发模块。 可依据无线信号传输的衰减程度计算出信号传输的距
其 As shown in FIG. 3, the position of the PAD and the pointing device is shown. In this embodiment, the spatial coordinates of the three pointing devices are a (Xa, Ya, Za), b (Xb, Yb, Zb), and c (Xc), respectively. , Yc, Zc), wireless transceiver modules such as infrared, Bluetooth, WIFI or ultrasonic are installed on the three fixed point devices. Correspondingly, a corresponding wireless transceiver module is also installed in the PAD. The distance of signal transmission can be calculated according to the degree of attenuation of wireless signal transmission Its
离,中例如依据接收信号的强度指示 (RSSI, Received Signal Strength Indicator )公式 PR=PT/Sn, 可分别计算出上述三个定点设备与该 PAD 的距离 |一 For example, according to the received signal strength indicator (RSSI, Received Signal Strength Indicator) formula P R = P T /S n , the distance between the above three fixed point devices and the PAD can be separately calculated.
Sa、 S a ,
€€ c Sb和 Sc。 其中, PR表示接收方无线信号的接收功率, Ρτ 表示发送方无线信号的发射功率, S表示无线信号收发装置之间的距 €€ c S b and S c . Wherein, P R represents the reception power receiving wireless signals, Ρ τ represents the emission power of the sender radio signal, S represents the distance between the wireless signal transmitting and receiving means
: S.。【 : S. 【
离, η为传播因数 €€ C, 空气中 η取值可为 3。 From η, the propagation factor is €€ C, and the value of η in the air can be 3.
s s S s s S
步骤 S202:根据上述结果及上述三个定点设备的空间坐标计算该 PAD的空间坐标。 Step S202: Calculate the spatial coordinates of the PAD according to the above result and the spatial coordinates of the above three pointing devices.
假设该 PAD的空间坐标为 ( X, Υ,Ζ ) , 那么依据投影以及勾股定 理可得出下列计算式: Assuming that the spatial coordinates of the PAD are (X, Υ, Ζ), then the following formula can be derived according to the projection and the Pythagorean rule:
Sb= (x - Xb)2 + (Y - Ybf + (Z - zbf 、 和S b = (x - X b ) 2 + (Y - Y b f + (Z - z b f , and
由上述三组计算式便可推导出该 PAD的空间坐标 (Χ,Υ,Ζ ) 的表 达式为: From the above three sets of calculations, the expression of the spatial coordinates (Χ, Υ, Ζ) of the PAD can be derived as follows:
€2.g € 2 .g
该步骤的计算可由 PAD 计算, 也可由定点设备进行计算, 上述 计算信号传输距离所需要的参数及计算 PAD 空间坐标所需要的参数 可通过之前建立的无线连接交互。 The calculation of this step can be calculated by the PAD or by the pointing device. The parameters required to calculate the signal transmission distance and the parameters required to calculate the PAD space coordinates can be exchanged through the previously established wireless connection.
关于该 PAD 坐标的计算, 还可以由其他定位技术实现, 如设置 于屋顶或较高位置上的摄像头获取包括定点设备和该 PAD 的全局图 像, 通过图像分析该 PAD 的位置进行定位。 另外, 通过一个摄像头 获取的图片可获得水平投影的各个共享设备的投影, 通过两个及两个 以上的摄像头, 则可计算出该 PAD的空间坐标。 The calculation of the PAD coordinates can also be implemented by other positioning techniques, such as a camera set on a roof or a higher position to acquire a global image including the pointing device and the PAD, and image the position of the PAD for image positioning. In addition, the image acquired by one camera can obtain the projection of each shared device of horizontal projection, and the spatial coordinates of the PAD can be calculated by two or more cameras.
步骤 203 : 将所述空间坐标添加至定点设备所存储的该 PAD所对 应的属性列表中, 以及将该属性列表与网络内的所有共享设备共享, 以使网络内的各个共享设备的空间坐标均被其他设备所知。 Step 203: Add the space coordinate to the attribute list corresponding to the PAD stored by the pointing device, and share the attribute list with all shared devices in the network, so that the spatial coordinates of each shared device in the network are Known by other devices.
步骤 S30:根据网络内其他各个共享设备相对于该 PAD的水平面 坐标, 以该 PAD为中心, 确定出其他各个共享设备相对于该 PAD的 水平面方向。 Step S30: Determine, according to the horizontal coordinate of the other shared device in the network, the horizontal plane direction of the other shared devices with respect to the PAD, centering on the PAD.
其中, 该 PAD 上设置有方向传感器, 如地磁传感器, 所确定出 的其他各个共享设备的空间方向相对地磁是不变的, 从而, 无论该 PAD在水平面如何旋转屏幕, 由于方向传感器的存在, 该 PAD都可 以正确标定出其他各个共享设备的方向。 Wherein, the PAD is provided with a direction sensor, such as a geomagnetic sensor, and the spatial directions of the other shared devices determined are relatively unchanged, so that regardless of how the PAD rotates the screen in the horizontal plane, due to the presence of the direction sensor, PAD can correctly calibrate the direction of other shared devices.
如图 3所示, 以该 PAD空间坐标为原点, 通过坐标变换, 得出 其他共享设备相对于该 PAD的空间坐标, 并设定一方向为参考方向, 如正北方。 进而才 据得出的空间坐标, 确定出水平面内所述各个共享 设备以该 PAD为原点的所在角度。 As shown in FIG. 3, taking the PAD space coordinate as the origin, the coordinate coordinates of other shared devices relative to the PAD are obtained by coordinate transformation, and a direction is set as a reference direction, such as north. Then, based on the obtained spatial coordinates, the angle at which the respective shared devices in the horizontal plane take the PAD as an origin is determined.
其中, 各个共享设备的空间坐标进行坐标系转换时, 以该 PAD 的空间坐标(Χ,Υ,Ζ )为原点, 则空间坐标为 (X Y Z 的共享设备 相对于该 PAD变换后的坐标为 (ΧΛΥΛΖ^ ) , 其中, Xi^ Xi- X; Yi' =Yi- Y; ZJ ^ ZJ- Z, 进而才艮据坐标和三角函数即可计算出上述角 度。
可见, 上述空间坐标以及据此计算出的角度, 与该 PAD 朝向无 关, 即, 该 PAD在被水平面旋转屏幕时, 对于各个共享设备定位时, 始终是以空间坐标为参照进行定位的, 即不随该 PAD屏幕的旋转而 发生变化, 以便于后续以手指在该 PAD直线触摸轨迹确定被选对象 时, 无论该 PAD屏幕如何放置, 直线触摸轨迹始终是指向作为被选 对象的共享设备时该共享设备被选择。 Wherein, when the coordinate coordinates of the spatial coordinates of each shared device are converted, the spatial coordinates (Χ, Υ, Ζ) of the PAD are taken as the origin, and the spatial coordinates are (the coordinates of the shared device of XYZ with respect to the PAD transformation are (ΧΛΥΛΖ ^ ) , where Xi ^ Xi- X; Yi' =Yi- Y; ZJ ^ ZJ- Z, and then the above angle can be calculated according to the coordinates and the trigonometric function. It can be seen that the above-mentioned spatial coordinates and the angle calculated according to the above are independent of the PAD orientation, that is, when the PAD is rotated by the horizontal plane, when positioning for each shared device, the positioning is always based on the spatial coordinates, that is, does not follow The rotation of the PAD screen changes, so that when the selected object is determined by the finger in the PAD linear touch trajectory, regardless of how the PAD screen is placed, the linear touch trajectory always points to the shared device as the selected object. be chosen.
另外, 对于上述角度的计算, 可将各个共享设备均投影到水平面 上进行上述角度的计算, 以及将后文所述的用户在该 PAD上的触摸 轨迹也投影到水平面上。 In addition, for the calculation of the above angles, each shared device can be projected onto a horizontal plane to perform the above calculation of the angle, and the touch trajectory of the user on the PAD described later is also projected onto the horizontal plane.
步骤 S40: 用户手指在该 PAD触摸屏上以直线滑动, 由于该 PAD 中内置上述方向传感器,因此,其可根据方向传感器标定的参考方向, 确定出用户的直线触摸轨迹在水平面投影所指的方向 (通过该 PAD 平面投影, 此技术为公知技术, 故对该技术不再赘述) 。 Step S40: The user's finger slides in a straight line on the PAD touch screen. Since the above-mentioned direction sensor is built in the PAD, it can determine the direction in which the user's linear touch track is projected in the horizontal plane according to the reference direction of the direction sensor calibration ( Through this PAD planar projection, this technique is a well-known technique, so the technology will not be described again).
步骤 S50: 在所述投影的水平面上, 以所确定的触摸轨迹所指方 向所匹配的共享设备作为用户所选择的共享设备, 即所选对象, 并向 所选的共享对象传输文件。 Step S50: On the horizontal plane of the projection, the shared device that is matched in the direction indicated by the determined touch track is used as the shared device selected by the user, that is, the selected object, and the file is transmitted to the selected shared object.
例如, 用户对该 PAD显示的一文件进行点击 (表示选中该文件) 并保持触摸状态, 而后朝向电脑方向快速滑动手指, 则该 PAD根据 快速滑动手指的触摸轨迹所指方向确定出在该方向的电脑作为所选 对象, 将所述文件向该电脑发送。 为了区分出滑动手指对应的是在该 PAD内移动文件,还是将文件要向外发送,可以设定手指滑动的速度, 当达到一定速度时(即上述快速滑动手指) , 则视为是要将点选的文 件向外发送, 否则仅视为是该 PAD内移动所点选的文件。 For example, if the user clicks on a file displayed by the PAD (indicating that the file is selected) and keeps the touch state, and then quickly slides the finger toward the computer direction, the PAD determines the direction in the direction according to the direction of the touch track of the fast sliding finger. The computer serves as the selected object and sends the file to the computer. In order to distinguish whether the sliding finger corresponds to moving the file within the PAD, or if the file is to be sent out, the speed of the finger sliding can be set. When a certain speed is reached (ie, the above-mentioned quick sliding finger), it is considered to be The selected file is sent out, otherwise it is only regarded as the file selected by the mobile within the PAD.
另外, 还可以在用户点选一文件并保持触摸状态时, 将上述各个 共享设备的图标在该 PAD触摸屏上以上述计算出的各个角度的位置 上进行分别显示, 便于用户可视化操作, 在显示时, 可以以所点选的 文件作为中心, 各个共享设备结合所述角度在该文件周围显示, 较佳 的是在该 PAD屏幕四周进行显示。 当触摸滑动结束后, 再隐藏所显
示的上述各个共享设备的图标。 In addition, when the user clicks on a file and keeps the touch state, the icons of the respective shared devices are separately displayed on the PAD touch screen at the positions of the respective angles calculated above, so that the user can visualize the operation. The selected file may be centered on the selected file, and the shared device is displayed around the file in conjunction with the angle, preferably around the PAD screen. When the touch slide ends, hide the display again. The icons of the above respective shared devices are shown.
另外, 为了增加容错性, 所述触摸轨迹可以有一定的角度偏差, 且角度偏差可以根据相邻方向的共享设备构成的角度大小进行调整。 如图 4所示的该 PAD屏幕, M-N为第一触摸轨迹, M点为点选的文 件, IPAD、 电视方向相邻角度较大, 该角度偏差设定较大, 电脑和 手机相邻角度较小, 则角度偏差设定较小, 或者以所述触摸轨迹的所 指方向相邻最接近的方向上的共享设备作为被选对象。 且为了提高选 中的精确性, 还进一步根据电脑到该 PAD 的距离设定不同的触摸轨 迹, 即以 M为起始点设定选择区域, 将所述选择区域分为不同区间, 本实施例中划分 8个区间, 实际应用中为进一步提高选择的精确性, 还可将区间数量扩展为 16。 以 M为起始点的触摸轨迹的终点 (即终 止触点) 为弧线 A或附近任一点时, 表示被选择对象为电脑。 In addition, in order to increase fault tolerance, the touch trajectory may have a certain angular deviation, and the angular deviation may be adjusted according to an angle formed by a shared device in an adjacent direction. As shown in FIG. 4, the MN is the first touch track, the M point is the selected file, the IPAD and the TV direction are adjacent to each other, and the angle deviation is set larger, and the computer and the mobile phone are adjacent to each other. If the size is small, the angular deviation setting is small, or the shared device in the nearest direction in the direction indicated by the touch track is selected as the selected object. In order to improve the accuracy of the selection, different touch trajectories are further set according to the distance from the computer to the PAD, that is, the selection area is set with M as a starting point, and the selection area is divided into different sections, which is divided in this embodiment. 8 intervals, in order to further improve the accuracy of the selection, the number of intervals can be expanded to 16. When the end point of the touch track starting with M (ie, the terminating contact) is arc A or any point nearby, it indicates that the selected object is a computer.
另外, 需要补充说明的是, 当存在 2个以上图标与触摸轨迹方向 相同或相近时,需用户进行手动选择以增加操作的准确性。举例来说, 如图 4所示, M-E为第二触摸轨迹, E点为第二触摸轨迹的终点。 由 于该方向有 2个设备, 显示两个图标, 则可以在用户刚刚移动手指产 生方向时(移动轨迹未完整) , 即初始的移动轨迹, 将明显不符合该 方向的其他图标隐藏, 而仅显示该方向的电脑图标与手机图标, 为了 将两个图标区分看, 可以如图 4距离轨迹起点不同距离设置, 这样当 触摸点终端 E位于电脑图标或手机图标时,则相应的作为所确定的被 选对象。 下面对应用于多屏共享的共享设备的确定方法和文件传输方法 所涉及的系统进行描述, 如图 5所示, 系统包括: In addition, it should be additionally noted that when there are more than two icons that are the same or similar to the direction of the touch track, the user needs to manually select to increase the accuracy of the operation. For example, as shown in FIG. 4, M-E is the second touch trajectory, and E point is the end point of the second touch trajectory. Since there are 2 devices in the direction and two icons are displayed, when the user just moves the finger to generate the direction (the moving track is not complete), that is, the initial moving track, other icons that obviously do not match the direction are hidden, and only the display is displayed. The computer icon and the mobile phone icon in the direction, in order to distinguish the two icons, can be set at different distances from the starting point of the trajectory as shown in Fig. 4, so that when the touch point terminal E is located at the computer icon or the mobile phone icon, the corresponding one is determined as the determined Select the object. The following describes the system for determining the shared device for multi-screen sharing and the system involved in the file transmission method. As shown in FIG. 5, the system includes:
空间坐标接收单元 1 1,用于接收定点设备测算的当前共享设备以 及其他共享设备的空间坐标。 The spatial coordinate receiving unit 1 1 is configured to receive the spatial coordinates of the current shared device and other shared devices measured by the pointing device.
坐标系转换单元 12, 与空间坐标接收单元 11连接, 用于以当前 共享设备的空间坐标为原点, 将其他共享设备的空间坐标进行坐标系 转换, 以确定其他共享设备相对于当前共享设备在水平面的方向。
存储单元 18, 与坐标系转换单元 12连接, 用于存储转换后所有 共享设备的空间坐标。 The coordinate system conversion unit 12 is connected to the spatial coordinate receiving unit 11 for performing coordinate system conversion on the spatial coordinates of the other shared device by using the spatial coordinates of the current shared device as an origin to determine that other shared devices are in a horizontal plane with respect to the current shared device. The direction. The storage unit 18 is connected to the coordinate system conversion unit 12 for storing the spatial coordinates of all the shared devices after the conversion.
另外, 所述存储单元 18 还用于存储所有共享设备的型号、 设备 图标和 IP地址。 In addition, the storage unit 18 is further configured to store the model, device icon and IP address of all shared devices.
投影单元 13, 与坐标系转换单元 12连接, 用于依据空间坐标将 表示所有共享设备投影到水平面上排列, 确定出其他共享设备相对于 当前共享设备在水平面投影的各个方向。 The projection unit 13 is connected to the coordinate system conversion unit 12 for projecting all the shared devices onto the horizontal plane according to the spatial coordinates, and determining the directions in which the other shared devices are projected on the horizontal plane with respect to the current shared device.
触摸轨迹采集单元 14, 用于采集用户触摸指令。 The touch track acquisition unit 14 is configured to collect user touch commands.
所述投影单元 13还与触摸轨迹采集单元 14连接, 用于将触摸轨 迹投影到水平面。 The projection unit 13 is also coupled to the touch track acquisition unit 14 for projecting the touch track to a horizontal plane.
方向传感器 15, 与投影单元 13连接, 用于确定当前共享设备的 参考方向。 具体来说, 无论该当前共享设备在水平面如何旋转屏幕, 所确定出的其他各个共享设备的空间方向和用户触摸轨迹均是相对 地磁不变。 A direction sensor 15, connected to the projection unit 13, is used to determine the reference direction of the currently shared device. Specifically, regardless of how the current shared device rotates the screen in the horizontal plane, the spatial directions of the other shared devices and the user touch trajectory determined are relatively unchanged.
共享设备识别单元 16, 与投影单元 13连接, 用于确定触摸轨迹 所指方向的所匹配的共享设备。 The shared device identification unit 16, which is coupled to the projection unit 13, is configured to determine the matched shared device in the direction indicated by the touch track.
其中, 共享设备识别单元 16 包括触摸速度判断模块、 触摸轨迹 容错模块和触摸轨迹计算模块 (未图示) 。 The shared device identification unit 16 includes a touch speed determination module, a touch track fault tolerance module, and a touch track calculation module (not shown).
所述触摸速度判断模块用于判断用户触摸滑动速度。 具体来说, 只有当触摸滑动速度达到预设速度时才认为是用于选择其他共享设 备, 所述触摸轨迹起点对应所选择的文件。 The touch speed determination module is configured to determine a user touch sliding speed. Specifically, it is considered to be used to select other sharing devices only when the touch sliding speed reaches the preset speed, and the touch track starting point corresponds to the selected file.
所述触摸轨迹容错模块用于纠正触摸轨迹的角度。 具体来说, 触 摸轨迹与共享设备存在角度偏差时, 以触摸轨迹结束点为弧线上任一 点时便认为是所匹配的共享设备。 The touch track fault tolerance module is used to correct the angle of the touch track. Specifically, when there is an angular deviation between the touch track and the shared device, the touch track end point is regarded as the matched shared device when it is any point on the arc.
触摸轨迹计算模块用于计算触摸轨迹结束点与共享设备的距离, 当出现两个共享设备的距离与触摸轨迹结束点距离相同或近似时, 触 发显示单元。 The touch track calculation module is configured to calculate the distance between the touch track end point and the shared device, and trigger the display unit when the distance between the two shared devices is the same or similar to the touch track end point distance.
显示单元 (未图示) , 分别与触摸轨迹采集单元 14 和共享设备 识别单元 16连接, 用于依据触摸点触发显示其他各个共享设备的图
标。 Display units (not shown) are respectively connected to the touch track collection unit 14 and the shared device identification unit 16, and are configured to trigger display of other shared devices according to the touch point. Standard.
共享文件传输单元 17, 与共享设备识别单元 16连接, 用于向确 定的匹配共享设备进行文件传输。 The shared file transfer unit 17 is connected to the shared device identification unit 16 for file transfer to the determined matching shared device.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 总之, 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the present invention. In general, any modifications, equivalent substitutions, improvements, etc., which are included in the spirit and principles of the present invention, should be included in the present invention. Within the scope of protection of the invention.