说 明 书 应用于多屏共享的近距离方位定位、 文件传输方法及系统 技术领域 Description of the invention for short-distance azimuth positioning, file transmission method and system for multi-screen sharing
本发明涉及一种应用于多屏共享的近距离方位定位、 文件传输方 法及系统。 背景技术 The present invention relates to a close range azimuth positioning, file transfer method and system 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 short-distance azimuth positioning and file transmission method and system for multi-screen sharing, which realizes determining a shared object and transmitting a shared file by touching a trajectory and a pitch angle, thereby achieving an improved operation. Convenience.
其中, 应用于多屏共享的近距离方位定位方法, 包括步驟: A: 确定出各个共享设备相对于当前共享设备在水平面投影的各个方向 和俯仰角度; The short-distance azimuth positioning method applied to multi-screen sharing includes the following steps: A: determining various directions and pitch angles of each shared device projected on a horizontal plane with respect to the current shared device;
B: 确定在当前共享设备屏幕上的触摸轨迹在水平面投影所指的 方向, 以及该屏幕的俯仰角度; B: determining the direction in which the touch trajectory on the current shared device screen is projected in the horizontal plane, and the pitch angle of the screen;
C: 确定与所述触摸轨迹所指方向、 所述屏幕的俯仰角度所匹配 的共享设备, 作为所要通讯的共享设备。 C: A shared device matching the direction indicated by the touch track and the pitch angle of the screen is determined as a shared device to be communicated.
由上, 通过触摸轨迹和俯仰角度便可确定共享对象, 实现便于操 作。 当选择对象时, 只需将当前共享设备指向待选对象, 并在当前共
享设备的屏幕上向其滑动便可, 由此实现操作的便捷。 From above, the shared object can be determined by touching the trajectory and the tilt angle, and the operation is easy. When selecting an object, simply point the current shared device to the candidate object, and at the current total You can slide the device to the screen, which makes it easy to operate.
可选的, 步骤 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;
根据当前共享设备的空间坐标、 其他各个共享设备的空间坐标确 定出各个共享设备相对于当前共享设备在水平面投影的各个方向和 俯仰角度。 The various directions and pitch angles of the respective shared devices projected on the horizontal plane with respect to the current shared device are determined according to the spatial coordinates of the current shared device and the spatial coordinates of the other shared devices.
由上, 通过通讯信号传输的强度对所有共享设备空间坐标的计 算, 实现确定各个共享设备相对于当前共享设备的位置以及当前共享 设备屏幕的俯仰角度。 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 and the pitch angle of the current shared device screen.
可选的, 步骤 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;
根据当前共享设备的空间坐标、 其他各个共享设备的空间坐标确 定出各个共享设备相对于当前共享设备在水平面投影的各个方向和 俯仰角度。 The various directions and pitch angles of the respective shared devices projected on the horizontal plane with respect to the current shared device are determined according to the spatial coordinates of the current shared device and the spatial coordinates of the other shared devices.
由上, 通过图像信息获取所有共享设备空间坐标, 实现确定各个 共享设备相对于当前共享设备的位置以及当前共享设备屏幕的俯仰 角度。 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 and the pitch angle of the current shared device screen are determined.
可选的,步骤 C所述与所述屏幕俯仰角度所匹配的共享设备包括: 所述共享设备的俯仰角度与所述屏幕俯仰角度误差最小的共享 设备。 Optionally, the sharing device matched with the screen pitch angle in step C includes: a shared device in which the pitch angle of the shared device and the screen pitch angle have the smallest error.
由上, 通过判断与屏幕俯仰角度所指方向误差最小的共享设备, 实现增加操作的容错性。 From above, the fault tolerance of the increased operation is achieved by judging the shared device having the smallest direction error with the tilt angle of the screen.
可选的, 步骤 A后还包括: 在当前共享设备的触摸屏上, 将各个 其他共享设备的图标根据水平面投影的各个方向在所述触摸轨迹起 点四周对应的方向上进行显示。
可选的, 步骤 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 respective directions of the horizontal plane projection in a direction corresponding to the beginning of the touch track. Optionally, after step A, the method further includes: on the touch screen of the current shared device, the icons of the shared devices that match the tilt angle of the screen are in a direction corresponding to the starting point of the touch track according to various directions of the horizontal plane projection Display.
由上, 通过可视化显示出其他共享设备的图标, 实现对用户操作 的提示, 使得用户选择时更为直观。 From the above, the icons of other shared devices are visually displayed, and the prompts for the user operations are realized, so that the user selection is more intuitive.
可选的, 当与所述触摸轨迹所指方向、 所述屏幕的俯仰角度所匹 配的共享设备有两个以上时, 还包括: Optionally, when there are two or more shared devices that match the direction indicated by the touch track and the tilt angle of the screen, the method further includes:
确定所述匹配的共享设备到当前共享设备的距离; Determining a distance of the matched shared device to the current shared device;
步骤 C还根据触摸轨迹的不同长度确定对应不同的距离的共享设 备。 Step C also determines shared devices corresponding to different distances according to different lengths of the touch trajectories.
由上, 当在同一俯仰角度存在多个共享设备时, 通过滑动轨迹选 择处于不同的距离的共享设备, 实现增加选择的准确性。 From above, when there are multiple shared devices at the same pitch angle, the shared devices at different distances are selected by the sliding track, thereby achieving an increase in the accuracy of the selection.
应用于多屏共享的文件传输方法, 包括步骤: A file transfer method applied to a multi-screen share, including the steps:
A: 确定出各个共享设备相对于当前共享设备在水平面投影的各 个方向和俯仰角度; A: determining the directions and pitch angles of the respective shared devices projected on the horizontal plane with respect to the current shared device;
B: 确定在当前共享设备屏幕上的触摸轨迹在水平面投影所指的 方向, 以及该屏幕的俯仰角度; B: determining the direction in which the touch trajectory on the current shared device screen is projected in the horizontal plane, and the pitch angle of the screen;
C: 确定所述触摸轨迹所指方向和所述俯仰角度所匹配的共享设 备, 将触摸轨迹起点对应的所选文件传输到该匹配的共享设备。 C: determining a shared device that matches the direction indicated by the touch track and the pitch angle, and transmits the selected file corresponding to the start point of the touch track to the matched shared device.
由上, 通过触摸轨迹和俯仰角度实现确定共享对象并传输共享文 件, 实现便于操作。 当选择对象时和选择文件进行传输时, 只需将当 前共享设备指向待选择对象, 并在当前共享设备的屏幕上向其滑动便 可, 节省操作时间。 From above, the shared object is determined by the touch trajectory and the tilt angle, and the shared file is transmitted, thereby facilitating the operation. When selecting an object and selecting a file for transmission, simply point the current shared device to the object to be selected and slide it on the screen of the currently shared device to save operating time.
可选的, 步骤 A后还包括: 在当前共享设备的触摸屏上, 将与所 述屏幕俯仰角度所相匹配的各个共享设备的图标根据水平面投影的 各个方向在所述触摸轨迹起点四周对应的方向上进行显示。 Optionally, after step A, the method further includes: on a touch screen of the current shared device, the icon of each shared device that matches the pitch angle of the screen is in a direction corresponding to each direction of the starting point of the touch track according to each direction of the horizontal plane projection Displayed on.
由上, 通过可视化显示出其他共享设备的图标, 实现操作的便利 性。 From above, the icons of other shared devices are visually displayed to facilitate the operation.
可选的, 与所述触摸轨迹所指方向、 所述屏幕的俯仰角度所匹配
的共享设备有两个以上时, 还包括: Optionally, matching the direction indicated by the touch track and the pitch angle of the screen When there are more than two shared devices, it also includes:
确定所述匹配的共享设备到当前共享设备的距离; Determining a distance of the matched shared device to the current shared device;
步骤 C还根据触摸轨迹的不同长度确定对应不同的距离的共享设 备。 Step C also determines shared devices corresponding to different distances according to different lengths of the touch trajectories.
由上, 当在同一俯仰角度存在多个共享设备时, 通过滑动轨迹选 择处于不同的距离的共享设备, 实现增加选择的准确性。 From above, when there are multiple shared devices at the same pitch angle, the shared devices at different distances are selected by the sliding track, thereby achieving an increase in the accuracy of the selection.
本申请还提供一种实现共享设备的近距离方位定位方法和文件 传输方法的系统, 包括: 空间坐标接收单元, 用于接收共享设备的空 间坐标; The present application further provides a system for implementing a short-range azimuth positioning method and a file transmission method for a shared device, including: a spatial coordinate receiving unit, configured to receive spatial coordinates of the shared device;
坐标系转换单元, 用于根据所述各个共享设备的空间坐标确定其 他共享设备相对于当前共享设备在水平面的各个方向和俯仰角度; 触摸轨迹采集单元, 用于采集触摸轨迹, 该触摸轨迹起点对应为 所选文件; a coordinate system conversion unit, configured to determine, according to spatial coordinates of each shared device, various directions and pitch angles of other shared devices in a horizontal plane with respect to the current shared device; and a touch track collecting unit configured to collect a touch track, where the touch track starting point corresponds to For the selected file;
重力感应器, 用于确定当前共享设备所呈现的俯仰角度; 投影单元, 用于确定所述触摸轨迹在水平面的投影方向; 共享设备识别单元, 用于依据触摸轨迹在当前共享设备屏幕上的 水平面投影所指的方向以及当前共享设备的俯仰角度, 确定所匹配的 共享设备; a gravity sensor, configured to determine a pitch angle presented by the current shared device; a projection unit configured to determine a projection direction of the touch track in a horizontal plane; a shared device identification unit configured to display a horizontal plane on the current shared device screen according to the touch track Determining the matching shared device by the direction indicated by the projection and the pitch angle of the currently shared device;
共享文件传输单元, 用于向所匹配的共享设备传输所选文件。 由上, 通过触摸轨迹和俯仰角度实现确定共享对象并传输共享文 件, 实现便于操作。 当选择对象时和选择文件进行传输时, 只需将当 前共享设备指向待选择对象, 并在当前共享设备的屏幕上向其滑动便 可, 节省操作时间。 附图说明 A shared file transfer unit that transfers the selected file to the matched shared device. From above, the shared object is determined by the touch trajectory and the tilt angle, and the shared file is transmitted, thereby facilitating the operation. When selecting an object and selecting a file for transmission, simply point the current shared device to the object to be selected and 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为本发明系统结构示意图。
具体实施方式 4 is a schematic structural view of a system of the present invention. detailed description
下面结合附图 1-4对本发明所述应用于多屏共享的近距离方位定 位、传输方法及系统的具体实施方式进行详细的说明。其中, 本例中, 发起共享的当前共享设备为具有触摸屏的移动终端, 如 PAD等平板 电脑、 手提电脑、 手机等。 同处于无线网络中的共享设备还包括具有 无线互联功能的定点设备,即位置相对固定的无线终端,如台式电脑、 电视、 打印机、 无线路由器、 或仅用于定位功能的装置如微型基站、 信号发射器等。 The detailed description of the short-range azimuth positioning, transmission method and system for multi-screen sharing according to the present invention will be described in detail below with reference to FIGS. In this example, the current shared device that initiates the sharing 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 中同样安装有对应的无 线收发模块。 可依据无线信号传输的衰减程度计算出信号传输的距 离, 例如依据接收信号的强度指示 (RSSI, Received Signal Strength Indicator )公式 PR=PT/Sn, 可分别计算出上述三个定点设备与该 PAD 的距离 Sa、 Sb和 Sc。 其中, PR表示接收方无线信号的接收功率, Ρτ 表示发送方无线信号的发射功率, S表示无线信号收发装置之间的距 离, η为传播因数, 空气中 η取值可为 3。 FIG. 3 is a schematic diagram showing the position of the PAD and the pointing device. In this embodiment, The spatial coordinates of the three fixed-point devices are a (Xa, Ya, Za), b (Xb, Yb, Zb) and c (Xc, Yc, Zc), and infrared, Bluetooth, WIFI are installed on the three fixed-point devices. Or wireless transceiver modules such as ultrasound. Correspondingly, a corresponding wireless transceiver module is also installed in the PAD. The distance of the signal transmission can be calculated according to the degree of attenuation of the wireless signal transmission. For example, according to the Received Signal Strength Indicator (RSSI) formula P R = P T /S n , the above three fixed point devices can be separately calculated. The distances of the PADs S a , S b and S c . Wherein P R represents the received power of the wireless signal of the receiver, τ represents the transmission power of the wireless signal of the sender, S represents the distance between the wireless signal transmitting and receiving devices, η is the propagation factor, and the value of η in the air may be 3.
步骤 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的空间坐标为 (Χ,Υ,Ζ) , 那么依据投影以及勾股定 理可得出下列计算式: Assuming that the spatial coordinates of the PAD are (Χ, Υ, Ζ), then the following formula can be derived according to the projection and the Pythagorean rule:
Sa=^X-Xa)2 +(Y-Ya)2 +(Z-za)2、S a =^XX a ) 2 +(YY a ) 2 +(Zz a ) 2 ,
Sc= x-xcy +(Y-Ycy+(z-zcy。 Sc= xx c y +(YY c y + (zz c y.
由上 D的空间坐标(χ,γ,ζ) 的表 a table of spatial coordinates (χ, γ, ζ) by D
达 Da
6 6
替换页 (细则第 26条)
Aj_― S¾ 一 Sfl 一 2— Cj22— ^3 Replacement page (Article 26) Aj_― S3⁄4 a S fl -2—Cj22—^3
A2 = Sc 一 Sb — 一 C22 一 3 A2 = S c - Sb - one C22 - 3
A3— 一 Cg 12 Cg 2 ^一 Cg g A3—one Cg 12 Cg 2 ^ one Cg g
Cl2 C13 — ¾ ya - y¾ 一¾ Cl2 C 13 — 3⁄4 y a - y3⁄4 a 3⁄4
= 一 xc b - yc - zc = one x c b - y c - z c
c3i C32 C3S — xa c - ya Zc C3i C 32 C 3S — x ac - y a Zc
该步骤的计算可由 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 technologies, 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 the horizontal direction and the tilt angle of each of the other shared devices relative to the PAD according to the horizontal coordinate of the other shared devices in the network with respect to 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, according to the obtained spatial coordinates, the direction in which the respective shared devices in the horizontal plane take the PAD as an origin is determined.
其中, 各个共享设备的空间坐标进行坐标系转换时, 以该 PAD 的空间坐标(Χ,Υ,Ζ )为原点, 则空间坐标为 (Xi/ ^Z! ) 的共享设备 Wherein, when the coordinate coordinates of the spatial coordinates of each shared device are converted, the spatial coordinates (Χi, Υ, Ζ) of the PAD are taken as the origin, and the shared device with the spatial coordinate is (Xi/^Z!)
替换页 (细则第 26条)
相对于该 PAD变换后的坐标为 (ΧΛΥ ,Ζ ) , 其中,
Xr X; Yi' =Yi- Y;
Z Z , 进而根据坐标和三角函数即可计算出在水平 面投影时的相对角度, 即在水平面的方向。 同理, 根据空间坐标可计 算出相对于水平面的俯仰角度, 不再赘述。 Replacement page (Article 26) The coordinates after the transformation with respect to the PAD are (ΧΛΥ , Ζ ) , where Xr X; Yi' =Yi- Y; ZZ , and then according to the coordinates and trigonometric functions, the relative angle when projecting in the horizontal plane, that is, the direction in the horizontal plane, can be calculated. Similarly, the pitch angle with respect to the horizontal plane can be calculated according to the spatial coordinates, and will not be described again.
可见, 上述空间坐标以及据此计算出的水平面方向、 俯仰角度, 与该 PAD朝向无关, 即, 对于各个共享设备定位时, 始终是以空间 坐标为参照进行定位的, 即不随该 PAD屏幕的旋转或俯仰而发生变 化, 以便于后续以手指在该 PAD直线触摸轨迹确定被选对象时, 无 论该 PAD屏幕如何放置, 直线触摸轨迹始终是指向作为被选对象的 共享设备时该共享设备被选择。 It can be seen that the above-mentioned spatial coordinates and the calculated horizontal plane direction and pitch angle are independent of the PAD orientation, that is, when positioning for each shared device, the positioning is always performed with reference to the spatial coordinates, that is, without the rotation of the PAD screen. Or changing in pitch, so that when the selected object is determined with the finger in the PAD linear touch trajectory, the shared device is selected when the linear touch trajectory always points to the shared device as the selected object regardless of how the PAD screen is placed.
另外, 对于上述方向的计算, 可将各个共享设备均投影到水平面 上进行计算, 以及将后文所述的用户在该 PAD上的触摸轨迹的方向 的计算也可投影到水平面上。 In addition, for the calculation of the above directions, each shared device can be projected onto the horizontal plane for calculation, and the calculation of the direction of the touch trajectory of the user on the PAD described later can also be projected onto the horizontal plane.
步骤 S40: 用户手指在该 PAD触摸屏上以直线滑动, 由于该 PAD 中内置上述方向传感器,因此,其可根据方向传感器标定的参考方向, 确定出用户的直线触摸轨迹在水平面投影所指的方向。 同时, 根据该 PAD内置的重力感应器, 判断出该 PAD屏幕的俯仰角度。 Step S40: The user's finger slides in a straight line on the PAD touch screen. Since the direction sensor is built in the PAD, the direction of the user's linear touch track in the horizontal plane projection can be determined according to the reference direction of the direction sensor calibration. At the same time, according to the built-in gravity sensor of the PAD, the pitch angle of the PAD screen is determined.
步骤 S50: 以与所确定的触摸轨迹水平投影所指方向、 该 PAD屏 幕的俯仰角度这两个参数所匹配的共享设备作为用户所选择的共享 设备, 即所选对象, 并向所选对象传输共享文件。 Step S50: The shared device matched by the two parameters of the determined direction of the touch trajectory horizontal projection and the pitch angle of the PAD screen is used as a shared device selected by the user, that is, the selected object, and transmitted to the selected object. shared documents.
例如, 用户对该 PAD显示的一文件进行点击 (表示选中该文件) 并保持触摸状态, 而后朝向电脑方向快速滑动手指, 则该 PAD根据 快速滑动手指的触摸轨迹水平投影所指方向和该 PAD屏幕的俯仰角 度确定出在该方向和该俯仰角度的电脑作为所选对象, 将所述文件向 该电脑发送。 为了区分出滑动手指对应的是在该 PAD 内移动文件, 还是将文件要向外发送, 可以设定手指滑动的速度, 当达到一定速度 时(即上述快速滑动手指) , 则视为是要将点选的文件向外发送, 否 则仅视为是该 PAD内移动所点选的文件。 For example, if the user clicks on a file displayed by the PAD (indicating that the file is selected) and maintains the touch state, and then quickly slides the finger toward the computer direction, the PAD horizontally projects the pointed direction and the PAD screen according to the touch track of the fast sliding finger. The pitch angle determines the computer in the direction and the pitch angle 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 finger is swiped quickly), 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所在高度。 当用户选择电脑时, 需 PAD向上方 (正角度)倾 斜, 在 PAD屏幕上朝向电脑所在方向进行直线滑动, 所述 PAD内置 的重力感应器确定出其相对于水平面的仰角角度, 进而确定所选对象 为电脑; 反之, 当用户选择手机时, 需 PAD向下方 (负角度)倾斜, 在 PAD屏幕上朝向手机所在方向进行直线滑动。 For example, the computer and the mobile phone that share the device as the receiver share the horizontal projection in the same direction. And the height of the computer is higher than the height of the PAD, and the height of the phone is lower than the height of the PAD. When the user selects the computer, the PAD is tilted upward (positive angle), and the PAD screen is linearly slid toward the direction of the computer. The built-in gravity sensor of the PAD determines its elevation angle with respect to the horizontal plane, thereby determining the selected The object is a computer; conversely, when the user selects the mobile phone, the PAD needs to be tilted downward (negative angle) to slide straight in the direction of the mobile phone on the PAD screen.
另外, 还可以在用户点选一文件并保持触摸状态时, 将上述各个 共享设备的图标在该 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. Each shared device that matches the pitch angle of the screen may be displayed around the file in conjunction with the horizontal projection angle, preferably around the PAD screen, centering on the selected file. When the touch slide ends, the icons of the respective shared devices shown above are hidden.
对于与所述触摸轨迹所指方向、 所述屏幕的俯仰角度所匹配的共 享设备有两个以上时, 则进一步确定所述匹配的共享设备到当前共享 设备的距离, 并设定相应的触摸轨迹长度对应不同的距离, 从而可以 进一步根据触摸轨迹的不同长度确定对应不同的距离的共享设备进 行匹配。 还可设置不同的共享设备图标在相应长度的位置进行显示。 If there are more than two shared devices that match the direction indicated by the touch track and the tilt angle of the screen, the distance between the matched shared device and the current shared device is further determined, and the corresponding touch track is set. The lengths correspond to different distances, so that the sharing devices corresponding to different distances can be further determined according to different lengths of the touch trajectories for matching. You can also set different shared device icons to display at the corresponding length.
另外, 为了增加容错性, 所述 PAD 的俯仰角度可以有一定的偏 差, 且俯仰角度偏差可以根据相邻高度的共享设备构成的角度大小进 行调整。 例如, 目前家中较流行壁挂电视, 其悬挂高度较高。 而家用 电脑一般放置于电脑桌, 高度较低(默认为电视与电脑的高度均高于 PAD所在高度, 且水平投影方向相同) 。 由此, 以 PAD的俯仰角度 相邻最接近的共享设备作为被选对象。 In addition, in order to increase the fault tolerance, the pitch angle of the PAD may have a certain deviation, and the pitch angle deviation may be adjusted according to the angle formed by the shared device of the adjacent height. For example, at present, the more popular wall-mounted TVs in the home have higher suspension heights. The home computer is usually placed on the computer desk, and the height is low (the default is that the height of the TV and the computer are higher than the height of the PAD, and the horizontal projection direction is the same). Thus, the closest shared device with the pitch angle of the PAD is selected as the selected object.
需要补充说明的是, 为了提高选择的精确性, 当存在多个共享设 备临近放置时, 计算出的水平投影、 俯仰角度差别很小, 在误差范围 内难以判断用户选择的是哪个, 则可显示相应的所涉及的各个共享设 备图标, 需由用户进行手动选择。 如, 该 PAD弹出对话菜单, 将所 涉及的共享设备图标进行显示, 通过用户触摸该图标进行选择。 It should be added that, in order to improve the accuracy of the selection, when there are multiple shared devices placed adjacently, the calculated horizontal projection and pitch angle difference are small, and it is difficult to determine which one the user selects within the error range, and then display The corresponding shared device icons involved need to be manually selected by the user. For example, the PAD pops up a dialog menu, and displays the shared device icon involved, and the user selects the icon by touching the icon.
下面对实现共享设备的近距离方位定位方法和文件传输方法的
系统进行描述, 如图 4所示, 系统包括: The following is a method for implementing a close-range azimuth positioning method and a file transmission method for a shared device. The system is described. As shown in Figure 4, the system includes:
空间坐标接收单元 11 ,用于接收定点设备所测算的当前共享设备 以及其他共享设备的空间坐标。 The spatial coordinate receiving unit 11 is configured to receive spatial coordinates of the current shared device and other shared devices measured by the pointing device.
坐标系转换单元 12 , 与空间坐标接收单元 11连接, 用于以当前 共享设备的空间坐标为原点, 将其他共享设备的空间坐标进行坐标系 转换, 以确定其他共享设备相对于当前共享设备在水平面的方向和俯 仰角度。 The coordinate system conversion unit 12 is connected to the spatial coordinate receiving unit 11 and is configured to perform 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. Direction and pitch angle.
存储单元 18, 与坐标系转换单元 12连接, 用于存储转换后所有 共享设备的空间坐标。 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 other shared devices onto the horizontal plane according to the spatial coordinates after the coordinate system is converted, 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 a touch track of the user.
重力感应器 18,用于采集用户控制当前共享设备所呈现的俯仰角 度。 A gravity sensor 18 is provided for the user to control the pitch angle exhibited by the current shared device.
所述投影单元 13还触摸轨迹采集单元 14连接, 用于将触摸轨迹 投影到水平面上。 The projection unit 13 is also connected to the trajectory acquisition unit 14 for projecting the touch trajectory onto 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 or tilts the screen in the horizontal plane, the determined spatial directions of the other shared devices and the user touch trajectory are relatively unchanged.
共享设备识别单元 16, 与触摸轨迹采集单元 14、 投影单元 13和 重力感应器 18 连接, 用于依据触摸轨迹在水平面投影所指的方向以 及当前共享设备的俯仰角度, 确定出所匹配的共享设备。 The shared device identification unit 16, which is connected to the touch track acquisition unit 14, the projection unit 13, and the gravity sensor 18, is configured to determine the matched shared device according to the direction in which the touch track is projected in the horizontal plane and the pitch angle of the current shared device.
其中, 共享设备识别单元 16 包括触摸速度判断模块、 俯仰角度 容错模块和触摸轨迹计算模块 (未图示) 。 The shared device identification unit 16 includes a touch speed determination module, a pitch angle fault tolerance module, and a touch trajectory 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 shared devices only when the touch slide speed reaches the preset speed. The starting point of the touch track corresponds to the selected file.
所述俯仰角度容错模块用于纠正俯仰角度的偏差角度。 具体来 说, 当前共享设备与待选共享设备存在角度偏差时, 俯仰角度所指方 向相邻最接近的方向上的共享设备作为被选对象。 The pitch angle fault tolerance module is used to correct the deviation angle of the pitch angle. Specifically, when there is an angular deviation between the current shared device and the candidate shared device, the shared device in the direction closest to the direction indicated by the pitch angle is selected as the selected object.
对于同一个俯仰角度具有两台以上的共享设备时, 触摸轨迹计算 模块用于计算触摸轨迹长度,依据不同长度值对应的不同位置的共享 设备为所匹配。 若与触摸轨迹长度相匹配的共享设备图标为多个(即 投影方向近似) 时, 触发显示单元。 When there are two or more shared devices with the same pitch angle, the touch track calculation module is used to calculate the touch track length, and the shared devices according to different length values are matched. The display unit is triggered if there are multiple shared device icons matching the length of the touch track (ie, the projection direction is approximate).
显示单元(未图示) , 分别与触摸轨迹采集单元 14、 重力感应器 Display unit (not shown), respectively with touch track acquisition unit 14, gravity sensor
18和共享设备识别单元 16连接, 用于依据触摸点触发显示其他各个 共享设备的图标; 以及当两台以上共享设备的俯仰角度差别很小切投 影方向近似时, 显示所述的两台以上的共享设备的图标。 18 is connected to the shared device identification unit 16 for triggering display of icons of other shared devices according to the touch point; and when the pitch angle difference between the two or more shared devices is small, the projection direction is approximated, and the two or more devices are displayed. Icon for sharing devices.
共享文件传输单元 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.