WO2018113377A1 - 一种具有触屏功能的双系统一体机及其通信方法 - Google Patents
一种具有触屏功能的双系统一体机及其通信方法 Download PDFInfo
- Publication number
- WO2018113377A1 WO2018113377A1 PCT/CN2017/104685 CN2017104685W WO2018113377A1 WO 2018113377 A1 WO2018113377 A1 WO 2018113377A1 CN 2017104685 W CN2017104685 W CN 2017104685W WO 2018113377 A1 WO2018113377 A1 WO 2018113377A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- host
- control module
- central control
- usb
- rate
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0002—Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
Definitions
- the invention relates to the field of integrated machines, in particular to a dual system integrated machine with a touch screen function and a communication method thereof.
- the dual system integrated machine especially the dual system integrated machine with touch screen function, is widely used in teaching and conference fields for its convenience, flexibility and powerful functions.
- the existing dual system integrated machine with touch screen function such as an integrated machine with both Android system and PC system
- the communication scheme is: PC system host - touch frame - central control module - Android system host. USB communication between the host and the touch frame of the PC system, serial communication between the touch frame and the central control module, and USB communication between the MCU central control module and the Android system host.
- the communication scheme has the following three problems: 1.
- the touch frame is used as the data transfer between the host of the PC system and the host of the Android system, which reduces the efficiency of the core function touch scanning and touch data processing, and the data of the touch data and the PC system are mixed at the same time. One piece, the processing is complicated, and data errors are easy to occur; 2.
- the data transmission speed is limited by the touch frame and its serial port connection. Because the touch frame requires a large amount of resources to process touch data, and the serial port rate is limited, the maximum transmission rate of the entire communication link data is about 10K, and only small data can be transmitted, and the efficiency is very low; 3.
- the USB end of the touch frame needs to support multiple channels. Switching, when the USB end switches to the channel of the non-PC system, the communication link is interrupted, and the data cannot be transmitted between the PC system host and the Android system host. At this time, the network remote control of the PC system host cannot be used.
- an object of the present invention is to provide a dual system integrated machine with a touch screen function and a communication method thereof, which solves the problem that the communication of the dual system integrated machine is not stable and reliable.
- the present invention provides a dual system integrated machine with a touch screen function, comprising a first host having a first system, a second host having a second system, and a central control module, wherein the central control module passes through the first USB port Connected to the first host, the central control module is connected to the second host through a second USB port.
- the first system is a computer operating system
- the second system is a smart mobile device operating system.
- the method further includes a touch frame, and the central control module is connected to the touch frame through a serial port.
- the central control module communicates with the second host of the first host by using a USB block transfer protocol or a USB interrupt transfer protocol.
- the dual system integrated machine provided by the present invention, data transmission between the first host and the second host does not pass through the touch frame, so when the USB port of the touch frame is switched to another channel, communication between the two hosts is not The effect, so that the network remote control of the first host can be effective at all times.
- the touch frame no longer processes the transmission data between the two hosts, and does not use the same serial port to transmit the touch coordinate data and the control data between the two hosts, so that the probability of data travel is reduced, and the touch data transmission is improved.
- the data link between the two hosts and the central control module is a USB port.
- the internal protocol of USB ensures reliable transmission of data; on the other hand, USB transmission breaks through the low-speed transmission of the serial port.
- the invention also provides a communication method of a dual system integrated machine, comprising the following steps:
- the first host having the first system extracts file data located at the head of the queue from the first cache queue managed by the first system according to the current transmission rate, and sends the file data to the central control module through the USB block transmission channel;
- the central control module adds the received file data to the tail of the queue of the second cache queue that it manages, generates a rate control command according to the occupancy rate of the second cache queue, and passes the rate control command through the USB. Transmitting a transmission channel to the first host;
- the first host adjusts the current transmission rate according to the rate control instruction.
- the method further comprises:
- the central control module sends the file data located at the head of the queue of the second cache queue to the second host having the second system through the USB block transmission channel.
- the first host having the first system extracts file data located at the head of the queue from the first cache queue according to the current transmission rate, and sends the file data to the central control module through the USB block transmission channel.
- ,Also includes:
- the first host sends a file transfer request to the central control module through the USB interrupt transmission channel;
- the central control module forwards the file transfer request to the second host through a USB interrupt transmission channel
- the second host returns an acknowledgement response character to the first host by using the central control module
- the first host After receiving the acknowledgement response character, the first host sends the file information to the central control module through the USB interrupt transmission channel;
- the central control module forwards the file information to the second host through a USB interrupt transmission channel
- the second host returns an acknowledgement response character to the first host by using the central control module.
- the central control module adds the received file data to the tail of the queue of the second cache queue, generates a rate control command according to the occupancy rate of the second cache queue, and interrupts the rate control command by USB.
- the transmission channel is transmitted to the first host, specifically:
- the central control module adds the received file data to the tail of the queue of the second cache queue it manages;
- the central control module determines whether the occupancy rate of the second cache queue is greater than a preset first threshold
- the communication method provided by the present invention caches file data by forming a cache queue in the central control module and the first host, and the central control module controls the first according to the occupancy rate of the second cache queue managed by the central control module.
- the transmission and reception rates between the central control module and the second host are matched, which ensures the safe and reliable data transmission of the entire dual system integrated machine.
- FIG. 1 is a schematic structural view of a dual system integrated machine provided by the prior art.
- FIG. 2 is a schematic structural diagram of a dual system integrated machine with a touch screen function according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart diagram of a communication method of a dual system integrated machine according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of communication of a dual system integrated machine according to an embodiment of the present invention.
- an embodiment of the present invention provides a dual system integrated machine 100 having a touch screen function, including a first host 10 having a first system, a second host 20 having a second system, and a central control module 30, wherein The central control module 30 is connected to the first host 10 through a first USB port 31, and the central control module 30 is connected to the second host 20 through a second USB port 32.
- the dual-system integrated machine 100 further includes a touch frame 40, and the central control module 30 is connected to the touch frame 40 through a serial port 33.
- the first system is a computer operating system, such as an operating system of various series of Windows, or a Unix or Linux operating system, and the present invention is not specifically limited.
- the second system may be an Android system, an IOS system, or the like.
- the operating system of the smart mobile device is not specifically limited in the present invention.
- the central control module 30 can be a micro control unit (MCU) central control module, which provides data transfer, and implements data in the first host 10, the second host 20, and the touch frame. Transfer between 40.
- MCU micro control unit
- the central control module 30 has two USB ports, wherein the first USB port 31 is connected to the first host 10, and the second USB port 32 and the second host 20 are connected.
- the connection that is, the central control module 30 serves as a data transmission bridge between the two hosts, and the data transmission between the two hosts does not need to pass through the touch frame 40, and the touch frame 40 and the central control module 30 Connect through a separate serial port 33.
- the touch frame 40 no longer processes the transmission data between the two hosts, and does not use the same serial port to transmit the touch coordinate data and the control data between the two hosts, so that the data travel probability is reduced, and the touch data transmission is improved. .
- the data link between the two hosts and the central control module 30 is a USB port, and does not pass through the serial port.
- the internal protocol of USB guarantees the reliable transmission of data; on the other hand, the USB transmission breaks through the low-speed transmission of the serial port.
- the measured stable data transmission speed of the present invention reaches 700k/s, which is dozens of times the speed of the original scheme.
- the embodiment of the present invention further provides a communication method, including the following steps:
- the first host having the first system extracts file data located at the head of the queue from the first cache queue managed by the first system according to the current sending rate, and sends the file data to the central control module through the USB block transmission channel.
- the central control module adds the received file data to a second cache team that it manages.
- the queue tail of the column generates a rate control command according to the occupancy rate of the second cache queue, and transmits the rate control command to the first host through the USB interrupt transmission channel.
- the first host adjusts the current sending rate according to the rate control instruction.
- the data transmission between the USB devices can use USB interrupt transmission and USB block transmission, and the USB interrupt transmission can ensure real-time data transmission, and is mainly responsible for transmitting related control commands;
- Block transfers can transfer large blocks of data but do not guarantee real-time performance and are used to transfer file data.
- USB block transmission and the USB interrupt transmission occupy different bandwidths (USB block transmission uses a USB block transmission channel, and USB interrupt transmission uses a USB interrupt transmission channel), and the data transmission of the two does not affect each other, and at the same time,
- the channels are bidirectional and can transmit information at the same time.
- the first host serves as a data sending end, and the first cache queue is managed, and the file information to be sent is inserted into the first cache queue from the tail of the queue in chronological order, and then the first host then proceeds from the queue according to the current sending rate.
- the header extracts a file data and sends it to the central control module through the USB block transmission channel. For example, assuming that the current transmission speed is one file data per second, the first host will extract one file data per second from the queue header.
- the central control module manages a second cache queue, and the file data sent by the first host is inserted from the queue tail of the second cache queue into the second cache file queue. Then, the central control module determines whether the occupancy rate of the second buffer queue is greater than a preset first threshold; if yes, generates a rate control command that reduces the transmission rate, and interrupts the transmission channel by using the rate control command through the USB Transmit to the first host; if not, determine whether the occupancy rate of the second cache queue is less than a preset second threshold; if less, generate a rate control command to increase the transmission rate, and control the rate The command is transmitted to the first host via a USB interrupt transmission channel.
- the central control module detects the current second When the occupancy rate of the cache queue reaches 90%, a rate control command for reducing the transmission rate is generated, and the rate control is performed.
- the command is transmitted to the first host via a USB interrupt transmission channel.
- the central control module detects that the current occupancy rate of the second cache queue reaches 10%, generating a rate control command for increasing the transmission rate, and transmitting the rate control command to the The first host.
- the central control module may generate a rate control command for maintaining the transmission rate to the first host or not generate a rate control instruction, and these solutions are all within the protection scope of the present invention.
- the second host is a receiving end of the file data
- the central control module sends the file data of the queue head located in the second buffer queue to the second system by using a USB block transmission channel.
- the method further includes:
- the first host sends a file transfer request to the central control module through the USB interrupt transmission channel.
- the central control module forwards the file transmission request to the second host by using a USB interrupt transmission channel.
- the file transfer request is transmitted through the USB interrupt transmission channel to ensure real-time transmission.
- the second host returns an acknowledgement response character to the first host by using the central control module.
- the acknowledgement response character is an ACK character, and if the response character returned by the second host is a negative acknowledgement character (NACK), the current transmission process is terminated.
- NACK negative acknowledgement character
- the first host After receiving the acknowledgement response character, the first host sends the file information to the central control module through the USB interrupt transmission channel.
- the central control module forwards the file information to the second host by using a USB interrupt transmission channel.
- the second host returns an acknowledgement response character to the first host by using the central control module.
- the acknowledgement response character is an ACK character, and if the response character returned by the second host is a negative acknowledgement character (NACK), the current transmission process is terminated.
- NACK negative acknowledgement character
- the file data is sent only after the above two confirmations. Send, to ensure the security of data transmission.
- the communication method provided by the embodiment of the present invention caches file data by forming a cache queue in the central control module and the first host, and the central control module according to the second cache queue managed by the central control module
- the occupancy rate is used to control the sending rate of the file data in the first cache queue in the first host, so that the sending and receiving rates between the first host, the central control module, and the second host are matched, thereby ensuring the entire double
- the data transmission of the system all-in-one is safe and reliable.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Information Transfer Systems (AREA)
Abstract
本发明公开了一种具有触屏功能的双系统一体机,包括具有第一系统的第一主机、具有第二系统的第二主机、中控模块,其中,所述中控模块通过第一USB端口与所述第一主机连接,所述中控模块通过第二USB端口与所述第二主机连接。本发明还公开了一种双系统一体机的通信方法,本发明可在双系统一体机内形成快速、安全、可靠的数据传输和通信。
Description
本发明涉及一体机领域,尤其涉及一种具有触屏功能的双系统一体机及其通信方法。
随着技术的发展,双系统一体机,尤其是具有触屏功能的双系统一体机以其使用方便灵活、功能强大等优点越来越广泛地应用于教学以及会议等领域。
对于双系统一体机,其两个系统之间的相互通信是否安全可靠关系到整个一体机的稳定。如图1所示,现有的具有触屏功能的双系统一体机,如同时具有安卓系统和PC系统的一体机而言,其通信方案为:PC系统主机——触摸框——中控模块——安卓系统主机。其中PC系统主机与触摸框之间为USB通信,触摸框与中控模块之间为串口通信,MCU中控模块与安卓系统主机之间为USB通信。
这种通信方案存在如下三点问题:1、触摸框作为PC系统主机与安卓系统主机的数据中转,降低了其核心功能触摸扫描和触摸数据处理的效率,同时触摸数据和PC系统的数据混合在一块,处理复杂,容易出现数据错误;2、数据传输速度受到触摸框及其串口连接的限制。因触摸框需大量资源处理触摸数据,同时串口速率限制,整条通信链路数据最大传输速率在10K左右,只能传输小数据,效率很低;3、触摸框的USB端是需要支持多通道切换的,当USB端切换到非PC系统的通道时,此条通信链路就中断了,PC系统主机与安卓系统主机之间无法传输数据,此时PC系统主机的网络远程集控无法使用。
发明内容
针对上述问题,本发明的目的在于提供一种具有触屏功能的双系统一体机及其通信方法,解决了双系统一体机的通信不够稳定可靠的问题。
本发明提供一种具有触屏功能的双系统一体机,包括具有第一系统的第一主机、具有第二系统的第二主机、中控模块,其中,所述中控模块通过第一USB端口与所述第一主机连接,所述中控模块通过第二USB端口与所述第二主机连接。
优选地,所述第一系统为电脑操作系统,所述第二系统为智能移动设备操作系统。
优选地,还包括触摸框,所述中控模块通过串口与所述触摸框连接。
优选地,所述中控模块通过USB块传输协议或USB中断传输协议与所述第一主机所述第二主机进行通信。
本发明提供的双系统一体机,所述第一主机与第二主机之间的数据传输不经过触摸框,因此在触摸框的USB端口切换到其他通道时,两个主机之间的通信不受影响,从而第一主机的网络远程集控可以时刻有效。此外,所述触摸框不再处理两个主机之间的传输数据,不使用同一串口传输触摸坐标数据和两个主机之间的控制数据,使得数据出差概率降低,提高了触控数据传输。同时,两个主机与中控模块之间的数据链路均为USB端口,一方面,USB内部的协议保证了数据的可靠传输;另一方面,USB传输突破了串口低速的传输
本发明还提供一种双系统一体机的通信方法,包括如下步骤:
具有第一系统的第一主机根据当前发送速率从其管理的第一缓存队列内提取位于队列头部的文件数据,并将所述文件数据通过USB块传输通道发送给中控模块;
所述中控模块将接收到的所述文件数据添加至其管理的第二缓存队列的队列尾部,根据所述第二缓存队列的占用率生成速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机;
所述第一主机根据所述速率控制指令调整所述当前发送速率。
优选地,还包括:
所述中控模块将位于第二缓存队列的队列头部的文件数据通过USB块传输通道发送给具有第二系统的第二主机。
优选地,在所述具有第一系统的第一主机根据当前发送速率从第一缓存队列内提取位于队列头部的文件数据,并将所述文件数据通过USB块传输通道发送给中控模块之前,还包括:
第一主机通过USB中断传输通道向中控模块发送文件传输请求;
所述中控模块通过USB中断传输通道将所述文件传输请求转发给所述第二主机;
所述第二主机通过所述中控模块向所述第一主机返回确认应答字符;
所述第一主机在接收到所述确认应答字符后,通过USB中断传输通道向中控模块发送文件信息;
所述中控模块通过USB中断传输通道将所述文件信息转发给第二主机;
所述第二主机通过所述中控模块向所述第一主机返回确认应答字符。
优选地,所述中控模块将接收到的所述文件数据添加第二缓存队列的队列尾部,根据所述第二缓存队列的占用率生成速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机,具体为:
所述中控模块将接收到的所述文件数据添加至其管理的第二缓存队列的队列尾部;
所述中控模块判断所述第二缓存队列的占用率是否大于预设的第一阈值;
若是,则生成降低发送速率的速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机;
若否,则判断所述第二缓存队列的占用率是否小于预设的第二阈值;
若小于,则生成提升发送速率的速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机。
本发明提供的通信方法,通过在所述中控模块和所述第一主机内形成缓存队列来缓存文件数据,且所述中控模块根据其管理的第二缓存队列的占用率来控制第一主机内的第一缓存队列中的文件数据的发送速率,从而使得第一主机、
中控模块、第二主机三者之间的发送接收速率相匹配,保证了整个双系统一体机的数据传输的安全可靠。
为了更清楚地说明本发明的技术方案,下面将对实施方式中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是现有技术提供的双系统一体机的结构示意图。
图2是本发明实施例提供的具有触屏功能的双系统一体机的结构示意图。
图3是本发明实施例提供的双系统一体机的通信方法的流程示意图。
图4是本发明实施例提供的双系统一体机的通信示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图2,本发明实施例提供一种具有触屏功能的双系统一体机100,包括具有第一系统的第一主机10、具有第二系统的第二主机20以及中控模块30,其中,所述中控模块30通过第一USB端口31与所述第一主机10连接,所述中控模块30通过第二USB端口32与所述第二主机20连接。
在本发明实施例中,所述双系统一体机100还包括触摸框40,且所述中控模块30通过串口33与所述触摸框40连接。
在本发明实施例中,所述第一系统为电脑操作系统,如Windows各个系列的操作系统或者Unix、Linux操作系统等,本发明不做具体限定。
在本发明实施例中,所述第二系统可为安卓系统、IOS系统或者其他适用于
智能移动设备的操作系统,本发明不做具体限定。
在本发明实施例中,所述中控模块30可为微控制单元(Micro Control Unit,MCU)中控模块,其提供数据的中转,实现数据在第一主机10、第二主机20及触摸框40之间的传输。
具体地,在本发明实施例中,所述中控模块30具有两个USB端口,其中,第一USB端口31与所述第一主机10连接,第二USB端口32与所述第二主机20连接,即所述中控模块30作为两个主机之间的数据传输桥梁,两个主机之间的数据传输不需要经过所述触摸框40,而所述触摸框40与所述中控模块30通过独立的串口33进行连接。
本发明实施例基于上述的设计,具有如下优点:
(1)第一主机10与第二主机20之间的数据传输不经过触摸框40。因此在触摸框40的USB端口切换到其他通道时,两个主机之间的通信不受影响,从而第一主机的网络远程集控可以时刻有效。
(2)所述触摸框40不再处理两个主机之间的传输数据,不使用同一串口传输触摸坐标数据和两个主机之间的控制数据,使得数据出差概率降低,提高了触控数据传输。
(3)两个主机与中控模块30之间的数据链路均为USB端口,不经过串口。一方面,USB内部的协议保证了数据的可靠传输;另一方面,USB传输突破了串口低速的传输,本发明实测稳定数据传输速度达700k/s,是原方案速度的数十倍。
请参阅图3,为了保证上述的双系统一体机100的传输可靠性,本发明实施例还提供了一种通信方法,包括如下步骤:
S101,具有第一系统的第一主机根据当前发送速率从其管理的第一缓存队列内提取位于队列头部的文件数据,并将所述文件数据通过USB块传输通道发送给中控模块。
S102,所述中控模块将接收到的所述文件数据添加至其管理的第二缓存队
列的队列尾部,根据所述第二缓存队列的占用率生成速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机。
S103,所述第一主机根据所述速率控制指令调整所述当前发送速率。
在本发明实施例中,USB设备之间的数据传输可使用USB中断传输和USB块传输两种USB传输协议,其中,USB中断传输可保证数据实时性传输,主要负责传输相关控制命令;而USB块传输可传输大块数据但不保证实时性,用来传输文件数据。
在本发明实施例中,USB块传输与USB中断传输占用不同的带宽(USB块传输使用USB块传输通道,而USB中断传输使用USB中断传输通道),二者的数据传输互不影响,同时两条通道都是双向的,可同时互传信息。
在本发明实施例中,为了保证USB块传输通道的稳定可靠,需匹配第一主机、中控模块、第二主机三者之间的发送接收速率。具体地,第一主机作为数据发送端,其管理有第一缓存队列,需要发送的文件信息按照时间先后顺序从队列尾部插入到第一缓存队列中,然后第一主机再根据当前发送速率从队列头部提取出一个文件数据,并通过USB块传输通道发送给中控模块。例如,假设当前发送速度为每秒发送一个文件数据,则所述第一主机将每秒从队列头部提取出一个文件数据。
在本发明实施例中,所述中控模块管理有第二缓存队列,由所述第一主机发送的文件数据从第二缓存队列的队列尾部插入到第二缓存文件队列中。然后,所述中控模块判断所述第二缓存队列的占用率是否大于预设的第一阈值;若是,则生成降低发送速率的速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机;若否,则判断所述第二缓存队列的占用率是否小于预设的第二阈值;若小于,则生成提升发送速率的速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机。
例如,假设所述第二缓存队列的最大缓存数量为10个,所述第一阈值为80%,所述第二阈值为20%,则当所述中控模块在检测到当前所述第二缓存队列的占用率达到90%时,生成降低发送速率的速率控制命令,并将所述速率控制
命令通过USB中断传输通道传输给所述第一主机。当所述中控模块在检测到当前所述第二缓存队列的占用率达到10%时,则生成提升发送速率的速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机。
在本发明实施例中,若所述占用率位于所述第一阈值于所述第二阈值之间,则表明所述此时第一主机、第二主机及中控模块的接收发送速率比较匹配,此时所述中控模块可生成维持发送速率的速率控制命令给所述第一主机或不生成速率控制指令,这些方案均在本发明的保护范围之内。
在本发明实施例中,所述第二主机作为文件数据的接收端,所述中控模块将位于第二缓存队列的队列头部的文件数据通过USB块传输通道发送给具有第二系统的第二主机。
在本发明实施例中,优选地,在步骤S101之前,还包括:
S01,第一主机通过USB中断传输通道向中控模块发送文件传输请求。
S02,所述中控模块通过USB中断传输通道将所述文件传输请求转发给所述第二主机。
在本发明实施例,文件传输请求通过USB中断传输通道传输,保证传输的实时性。
S03,所述第二主机通过所述中控模块向所述第一主机返回确认应答字符。
其中,所述确认应答字符为ACK字符,若第二主机返回的应答字符为否认应答字符(NACK),则终止本次传输流程。
S04,所述第一主机在接收到所述确认应答字符后,通过USB中断传输通道向中控模块发送文件信息。
S05,所述中控模块通过USB中断传输通道将所述文件信息转发给第二主机。
S06,所述第二主机通过所述中控模块向所述第一主机返回确认应答字符。
其中,所述确认应答字符为ACK字符,若第二主机返回的应答字符为否认应答字符(NACK),则终止本次传输流程。
在本发明实施例中,只有在经过上述的两次确认后才会进行文件数据的发
送,保证了数据传输的安全。
综上所述,本发明实施例提供的通信方法,通过在所述中控模块和所述第一主机内形成缓存队列来缓存文件数据,且所述中控模块根据其管理的第二缓存队列的占用率来控制第一主机内的第一缓存队列中的文件数据的发送速率,从而使得第一主机、中控模块、第二主机三者之间的发送接收速率相匹配,保证了整个双系统一体机的数据传输的安全可靠。
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
Claims (8)
- 一种具有触屏功能的双系统一体机,其特征在于,包括具有第一系统的第一主机、具有第二系统的第二主机以及中控模块,其中,所述中控模块通过第一USB端口与所述第一主机连接,所述中控模块通过第二USB端口与所述第二主机连接。
- 根据权利要求1所述的具有触屏功能的双系统一体机,其特征在于,所述第一系统为电脑操作系统,所述第二系统为智能移动设备操作系统。
- 根据权利要求1所述的具有触屏功能的双系统一体机,其特征在于,还包括触摸框,所述中控模块通过串口与所述触摸框连接。
- 根据权利要求1所述的具有触屏功能的双系统一体机,其特征在于,所述中控模块通过USB块传输协议或USB中断传输协议与所述第一主机所述第二主机进行通信。
- 一种如权利要求1至4任意一项所述的双系统一体机的通信方法,其特征在于,包括如下步骤:具有第一系统的第一主机根据当前发送速率从其管理的第一缓存队列内提取位于队列头部的文件数据,并将所述文件数据通过USB块传输通道发送给中控模块;所述中控模块将接收到的所述文件数据添加至其管理的第二缓存队列的队列尾部,根据所述第二缓存队列的占用率生成速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机;所述第一主机根据所述速率控制指令调整所述当前发送速率。
- 根据权利要求5所述的通信方法,其特征在于,还包括:所述中控模块将位于第二缓存队列的队列头部的文件数据通过USB块传输通道发送给具有第二系统的第二主机。
- 根据权利要求5所述的通信方法,其特征在于,在所述具有第一系统的第一主机根据当前发送速率从第一缓存队列内提取位于队列头部的文件数据,并将所述文件数据通过USB块传输通道发送给中控模块之前,还包括:第一主机通过USB中断传输通道向中控模块发送文件传输请求;所述中控模块通过USB中断传输通道将所述文件传输请求转发给所述第二主机;所述第二主机通过所述中控模块向所述第一主机返回确认应答字符;所述第一主机在接收到所述确认应答字符后,通过USB中断传输通道向中控模块发送文件信息;所述中控模块通过USB中断传输通道将所述文件信息转发给第二主机;所述第二主机通过所述中控模块向所述第一主机返回确认应答字符。
- 根据权利要求5所述的通信方法,其特征在于,所述中控模块将接收到的所述文件数据添加第二缓存队列的队列尾部,根据所述第二缓存队列的占用率生成速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机,具体为:所述中控模块将接收到的所述文件数据添加至其管理的第二缓存队列的队列尾部;所述中控模块判断所述第二缓存队列的占用率是否大于预设的第一阈值;若是,则生成降低发送速率的速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机;若否,则判断所述第二缓存队列的占用率是否小于预设的第二阈值;若小于,则生成提升发送速率的速率控制命令,并将所述速率控制命令通过USB中断传输通道传输给所述第一主机。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611184253.4 | 2016-12-20 | ||
| CN201611184253.4A CN106850161A (zh) | 2016-12-20 | 2016-12-20 | 一种具有触屏功能的双系统一体机及其通信方法 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018113377A1 true WO2018113377A1 (zh) | 2018-06-28 |
Family
ID=59139413
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/104685 Ceased WO2018113377A1 (zh) | 2016-12-20 | 2017-09-30 | 一种具有触屏功能的双系统一体机及其通信方法 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106850161A (zh) |
| WO (1) | WO2018113377A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115114214A (zh) * | 2021-03-18 | 2022-09-27 | 广州视源电子科技股份有限公司 | 多系统一体机、文件共享方法和存储介质 |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106850161A (zh) * | 2016-12-20 | 2017-06-13 | 广州视源电子科技股份有限公司 | 一种具有触屏功能的双系统一体机及其通信方法 |
| CN107451086B (zh) * | 2017-07-12 | 2020-04-10 | 广州视源电子科技股份有限公司 | 一种一体机 |
| CN108280020B (zh) * | 2018-01-23 | 2021-09-14 | 广州视源电子科技股份有限公司 | 计算机设备的监控方法、装置、终端及计算机存储介质 |
| CN108958630B (zh) * | 2018-07-06 | 2020-08-14 | 广州视源电子科技股份有限公司 | 书写内容显示方法、装置及电子设备 |
| CN108959153B (zh) * | 2018-08-01 | 2021-04-06 | 广州视源电子科技股份有限公司 | 一种一体机、数据续传的方法、装置、设备和存储介质 |
| CN115705140A (zh) * | 2021-08-10 | 2023-02-17 | 刘启成 | 一种触摸数据控制方法 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203909657U (zh) * | 2013-12-31 | 2014-10-29 | 鸿合科技有限公司 | 一种双系统共享WiFi模块的触摸一体机 |
| CN105808364A (zh) * | 2016-03-15 | 2016-07-27 | 广州视睿电子科技有限公司 | 融合PC系统和android系统的双系统通信方法和系统 |
| CN105844981A (zh) * | 2016-05-30 | 2016-08-10 | 山东融通电子科技有限公司 | 一种交互式触控一体机 |
| CN106850161A (zh) * | 2016-12-20 | 2017-06-13 | 广州视源电子科技股份有限公司 | 一种具有触屏功能的双系统一体机及其通信方法 |
-
2016
- 2016-12-20 CN CN201611184253.4A patent/CN106850161A/zh active Pending
-
2017
- 2017-09-30 WO PCT/CN2017/104685 patent/WO2018113377A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN203909657U (zh) * | 2013-12-31 | 2014-10-29 | 鸿合科技有限公司 | 一种双系统共享WiFi模块的触摸一体机 |
| CN105808364A (zh) * | 2016-03-15 | 2016-07-27 | 广州视睿电子科技有限公司 | 融合PC系统和android系统的双系统通信方法和系统 |
| CN105844981A (zh) * | 2016-05-30 | 2016-08-10 | 山东融通电子科技有限公司 | 一种交互式触控一体机 |
| CN106850161A (zh) * | 2016-12-20 | 2017-06-13 | 广州视源电子科技股份有限公司 | 一种具有触屏功能的双系统一体机及其通信方法 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115114214A (zh) * | 2021-03-18 | 2022-09-27 | 广州视源电子科技股份有限公司 | 多系统一体机、文件共享方法和存储介质 |
| CN115114214B (zh) * | 2021-03-18 | 2024-09-03 | 广州视源电子科技股份有限公司 | 多系统一体机、文件共享方法和存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106850161A (zh) | 2017-06-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2018113377A1 (zh) | 一种具有触屏功能的双系统一体机及其通信方法 | |
| US10868767B2 (en) | Data transmission method and apparatus in optoelectronic hybrid network | |
| EP3570175B1 (en) | Method for implementing nvme over fabrics, terminal, server, and system | |
| WO2015197027A1 (zh) | 一种访问NVMe存储设备的方法和NVMe存储设备 | |
| WO2023284699A1 (zh) | 基于Linux系统的协议栈数据传输方法、计算机设备和存储介质 | |
| US7200641B1 (en) | Method and system for encoding SCSI requests for transmission using TCP/IP | |
| WO2016101288A1 (zh) | 一种远程直接数据存取方法、设备和系统 | |
| US7640378B2 (en) | Method and apparatus for improving the performance of USB mass storage devices in the presence of long transmission delays | |
| WO2012106934A1 (zh) | Pci快速通道设备、链路能量管理方法及系统 | |
| US11593033B2 (en) | Electronic device for communicating with host and operating method of the electronic device | |
| CN113190482B (zh) | 一种ipmi通信方法、用于ipmi通信的发送系统及接收系统 | |
| CN116670636A (zh) | 数据存取方法、装置和存储介质 | |
| US9436412B2 (en) | Preemptive connection switching for serial attached small computer system interface systems | |
| CN105808364B (zh) | 融合PC系统和android系统的双系统通信方法和系统 | |
| CN105487937A (zh) | 一种rdma实现方法和装置 | |
| CN108959153B (zh) | 一种一体机、数据续传的方法、装置、设备和存储介质 | |
| US10785306B1 (en) | Data transmission and network interface controller | |
| WO2025102607A1 (zh) | 一种实时仿真数据传输方法、装置、设备及存储介质 | |
| WO2018113336A1 (zh) | 再生芯片及其触点控制方法 | |
| KR102274930B1 (ko) | 채널 연결 관리 방법 및 장치 | |
| WO2021136099A1 (zh) | 数据传输方法、装置、设备及存储介质 | |
| CN115982090B (zh) | 软硬件协同实现远端内存访问的方法和装置 | |
| CN111857546A (zh) | 用于处理数据的方法、网络适配器和计算机程序产品 | |
| CN108833593A (zh) | 智能设备监控装置及监控方法、系统、设备、计算机介质 | |
| CN105703975A (zh) | 一种网卡及服务器通信的方法和系统 |
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: 17885277 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: 17885277 Country of ref document: EP Kind code of ref document: A1 |