CN1200359C - Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol - Google Patents
Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol Download PDFInfo
- Publication number
- CN1200359C CN1200359C CN 01134814 CN01134814A CN1200359C CN 1200359 C CN1200359 C CN 1200359C CN 01134814 CN01134814 CN 01134814 CN 01134814 A CN01134814 A CN 01134814A CN 1200359 C CN1200359 C CN 1200359C
- Authority
- CN
- China
- Prior art keywords
- data
- packet
- identification
- time
- wireless
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 154
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000002093 peripheral effect Effects 0.000 title claims abstract description 32
- 238000005516 engineering process Methods 0.000 claims abstract description 11
- 230000033001 locomotion Effects 0.000 claims description 12
- 230000000295 complement effect Effects 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 4
- 241000699666 Mus <mouse, genus> Species 0.000 description 34
- 238000010586 diagram Methods 0.000 description 13
- 238000013461 design Methods 0.000 description 10
- 241000699670 Mus sp. Species 0.000 description 6
- 238000012827 research and development Methods 0.000 description 3
- 241000283973 Oryctolagus cuniculus Species 0.000 description 1
Images
Landscapes
- Input From Keyboards Or The Like (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
技术领域technical field
本发明是关于一种编码方法及系统,特别是一种用于无线鼠标与无线键盘的单频式无线外围设备传输协议的编码与识别方法及其系统。The present invention relates to a coding method and system, in particular to a coding and identification method and system for a single-frequency wireless peripheral device transmission protocol used for a wireless mouse and a wireless keyboard.
背景技术Background technique
目前市面上的电脑外围设备,如键盘、鼠标等,大都是以有线的方式做数据传输。有线的电脑键盘及鼠标,使用起来由于受限于线路,所以比较不方便,也无法进行长距离操控键盘及鼠标。Most of the computer peripherals currently on the market, such as keyboards and mice, use wired methods for data transmission. Wired computer keyboards and mice are inconvenient to use because they are limited by the lines, and they cannot be used for long-distance control of the keyboard and mouse.
为了改进有线鼠标与键盘等外围设备的缺点,目前已有无线键盘及鼠标的设计,不过,目前价格上较昂贵。大部分的产品由于为分开设计,所以,单独购买无线鼠标或者键盘,都各有一套无线传送与接收设备。因而,若两种无线设备都加以购买,就会有两套无线传送与接收设备,这两套无线端设备,都各自设计而互不相干,除了费时之外,也相当耗费成本。In order to improve the shortcomings of peripheral devices such as wired mice and keyboards, wireless keyboards and mice have been designed at present, but the prices are relatively expensive at present. Most of the products are designed separately, so if you buy a wireless mouse or keyboard separately, each has a set of wireless transmission and reception equipment. Therefore, if both wireless devices are purchased, there will be two sets of wireless transmitting and receiving devices. These two sets of wireless end devices are designed independently of each other, which is time-consuming and expensive.
另有一种产品则将无线鼠标与无线键盘整合起来,只运用一个接收端,不过,仍然有一些问题存在,例如,无线键盘与无线鼠标所用的传输频率不同,所以,无线传送与接收装置需要有不同的设计,亦即,接收装置需要接收两种不同的频率。请参考“图1”,第一数据传送单元10(例如鼠标)通过无线发送模块101以载频F1传送数据,第二数据传送单元20(例如键盘)则通过无线发送模块201以载频F2传送数据,在接收端,亦即,数据接收单元30,则以无线接收模块301接收由载频F1及F2。因而,第一数据传送单元10与第二数据传送单元20由于载频不同(F1与F2),所以必须使用不同的射频模块,亦即,无线发送模块101与201两组的设计不同;同样地,接收端,亦即,数据接收单元30必须于软件设计上采用两套不同的跳频技术。所以,在设计上,运用此种现有的技术,公司必须花费较高的研发成本针对硬件以及软件上作设计以及生产,这些研发成本与生产成本即相应地反应在产品价格上。Another product integrates a wireless mouse and a wireless keyboard, and only uses one receiving end. However, there are still some problems. Different designs, ie the receiving device needs to receive two different frequencies. Please refer to "Figure 1", the first data transmission unit 10 (such as a mouse) transmits data at a carrier frequency F1 through a
因此,如何将类似无线电脑键盘与鼠标等外围装置,以相同的方式加以传输,亦即,运用相同的传输协议,来达到以单一频率即可共同运用在电脑外围的无线产品的目的,成为研发设计的重点。Therefore, how to transmit peripheral devices such as wireless computer keyboards and mice in the same way, that is, use the same transmission protocol, to achieve the purpose of wireless products that can be used together on the peripheral of the computer with a single frequency has become a research and development issue. The focus of the design.
发明内容Contents of the invention
鉴于以上现有技术的问题,本发明的目的在于提供一种单频式无线外围设备传输协议的编码与识别方法及其系统,运用振幅移位键控调制(Amplitude-Shin keying Modulation,ASK Modulation)与时分复用(Time-Division-Multiplexing,TDM)技术,即可让无线键盘与鼠标等装置在同一频率下传送信息,因此,可大幅降低无线模块(如射频盯或红外线IR)15的成本并可降低无线模块的功率,并且,在软件上不需使用跳频等复杂的技术。In view of the above problems in the prior art, the object of the present invention is to provide a single-frequency wireless peripheral equipment transmission protocol encoding and identification method and system thereof, using amplitude shift keying modulation (Amplitude-Shin keying Modulation, ASK Modulation) With Time-Division-Multiplexing (TDM) technology, devices such as wireless keyboards and mice can transmit information at the same frequency. Therefore, the cost of wireless modules (such as radio frequency or infrared IR)15 can be greatly reduced and The power of the wireless module can be reduced, and there is no need to use complex techniques such as frequency hopping in software.
本发明另有一个目的在于,提供一种单频式无线外围设备传输协议的编码与识别方法及其系统,具有专用的识别码,可达到有效的抗干扰的能力,以达到防止与市售的消费性AV家电产品相互干扰的目的。Another object of the present invention is to provide a single-frequency wireless peripheral equipment transmission protocol encoding and identification method and its system, which has a special identification code and can achieve effective anti-interference ability, so as to prevent interference with commercially available The purpose of mutual interference between consumer AV home appliances.
依据本发明所公开的技术,本发明提供单频式无线外围设备传输协议的编码与识别方法,是运用振幅移位键控调制(ASK Modulation)并设定一单一频率作为具有一第一数据传送单元、一第二数据传送单元与一数据接收单元的无线系统的载频,以做一数字数据的传送,包含下列步骤:设定该第一数据传送单元的第一数据包与第一识别包及该第二数据传送单元的第二数据包与第二识别包的传送时间,并依一重传法于传送一次包数据时间内重复传送包两次;设定该第一数据传送单元的该第一数据包与该第二数据传送单元的该第二数据包的数据编码内容,并依据该第一传送单元与该第二数据传送单元的传送率设定数据包的各字段内容;设定第一传送单元的第一识别包与第二传送单元的第二识别包,用以分别作为该第一数据传送单元与该第二数据传送单元的识别,并依据该第一传送单元与该第二数据传送单元的传送率设定数据包的各字段内容;以及,设定一识别键,平时该通讯系统是为一数据编码状态,当按下该识别键时是为一数据识别状态,当该通讯系统于该数据编码状态时传送该第一数据包与该第二数据包,当该通讯系统于该数据识别状态时传送该第一识别包与该第二识别包。According to the technology disclosed in the present invention, the present invention provides a single-frequency wireless peripheral device transmission protocol encoding and identification method, which is to use amplitude shift key modulation (ASK Modulation) and set a single frequency as a first data transmission The carrier frequency of the wireless system of the unit, a second data transmission unit and a data receiving unit, in order to transmit a digital data, includes the following steps: setting the first data packet and the first identification packet of the first data transmission unit and the transmission time of the second data packet and the second identification packet of the second data transmission unit, and repeat the transmission of the packet twice within the time of transmitting one packet data according to a retransmission method; set the second data packet of the first data transmission unit A data packet and the data encoding content of the second data packet of the second data transmission unit, and set the contents of each field of the data packet according to the transmission rate of the first transmission unit and the second data transmission unit; set the second data transmission unit The first identification packet of a transmission unit and the second identification packet of a second transmission unit are used to identify the first data transmission unit and the second data transmission unit respectively, and according to the first transmission unit and the second The transmission rate of the data transmission unit sets each field content of the data packet; The communication system transmits the first data packet and the second data packet when in the data encoding state, and transmits the first identification packet and the second identification packet when the communication system is in the data identification state.
运用上述的技术,本发明提供一种单频式无线外围设备传输协议的编码与识别系统,该系统包含:一第一数据传送单元,是具有一第一识别键以作为一第一识别包的设定,并具有一第一无线传输单元用以传送一第一数据包;一第二数据传送单元,是具有一第二识别笋以作为一第二识别包的设定,并具有一第二无线传输单元用以传送一第二数据包;以及,—数据接收单元,是具有一第三数据接收单元,用以接收该第一数据包、第一识别包、第二数据包与第二识别包。Using the above-mentioned technology, the present invention provides a coding and identification system of a single-frequency wireless peripheral device transmission protocol, the system includes: a first data transmission unit, which has a first identification key as a first identification packet setting, and having a first wireless transmission unit for transmitting a first data packet; a second data transmission unit, having a second identification shoot as a setting of a second identification packet, and having a second The wireless transmission unit is used to transmit a second data packet; and, the data receiving unit has a third data receiving unit, which is used to receive the first data packet, the first identification packet, the second data packet and the second identification Bag.
附图说明Description of drawings
图1为现有的键盘与鼠标装置分别运用不同的发射频率的示意图;Fig. 1 is the schematic diagram that the existing keyboard and mouse device use different transmitting frequencies respectively;
图2为本发明的单频式无线外围设备传输协议的编码与识别的系统;Fig. 2 is the coding and identification system of the single-frequency wireless peripheral device transmission protocol of the present invention;
图3为ASK调制技术示意图;FIG. 3 is a schematic diagram of ASK modulation technology;
图4为本发明的数据传送单元传送包示意图;FIG. 4 is a schematic diagram of a data transmission unit transmitting packets of the present invention;
图5为本发明的以第一数据传送单元来看的传送包示意图;Fig. 5 is a schematic diagram of the transmission packet viewed from the first data transmission unit of the present invention;
图6为本发明的以第二数据传送单元来看的传送包示意图;6 is a schematic diagram of a transmission packet viewed from a second data transmission unit according to the present invention;
图7为本发明以数据接收单元来看的传送包示意图;Fig. 7 is a schematic diagram of the transmission packet viewed by the data receiving unit in the present invention;
图8A-8E为本发明的比特编码示意图;8A-8E are schematic diagrams of bit coding in the present invention;
图9为本发明的鼠标所传送的数据包示意图;Fig. 9 is a schematic diagram of data packets transmitted by the mouse of the present invention;
图10为本发明的键盘所传送的数据包示意图;Fig. 10 is a schematic diagram of data packets transmitted by the keyboard of the present invention;
图11为本发明增加ID识别的单频式无线外围设备传输协议的编码与识别的系统;Fig. 11 is the coding and identification system of the single-frequency wireless peripheral device transmission protocol with ID identification added in the present invention;
图12为本发明的鼠标数据包的数据结构;Fig. 12 is the data structure of the mouse data packet of the present invention;
图13为本发明的键盘数据包的数据结构;Fig. 13 is the data structure of the keyboard data packet of the present invention;
图14为本发明的鼠标所传送的ID识别数据包示意图;及Fig. 14 is a schematic diagram of the ID identification data packet transmitted by the mouse of the present invention; and
图15为本发明的键盘所传送的ID识别数据包示意图。Fig. 15 is a schematic diagram of the ID identification data packet transmitted by the keyboard of the present invention.
具体实施方式Detailed ways
请参考“图2”,本发明的单频式无线外围设备传输协议的编码与识别的系统。本发明的单频式系统,包含了第一数据传送单元40、第二数据传送单元50与数据接收单元60。第一数据传送单元40与第二数据传送单元50分别拥有一个无线发射模块401与501,这两个模块在架构上为相同的模块,可以是射频(RF)或者红外线(IR)发射模块,其共同运用相同的载频F30数据接收单元60则具有一个无线接收模块601,其只需接收单一载频F3即可。所以,本发明的系统可实现设计简单,不论在发射端或者接收端只需使用单一频率即可达到无线传输的目的。Please refer to "Fig. 2", the coding and identification system of the single-frequency wireless peripheral device transmission protocol of the present invention. The single-frequency system of the present invention includes a first
接着,以下将介绍本发明实际上如何达到单一频率即可让两种不同的无线外围设备运用相同频率,亦即,本发明的传输协议的编码与识别方法。Next, the following will introduce how the present invention actually achieves a single frequency to allow two different wireless peripheral devices to use the same frequency, that is, the encoding and identification method of the transmission protocol of the present invention.
首先,由于运用单一频率,所以,调制技术采用振幅移位键控调制(Amplitude,Shift keying Modulation,以下简称ASK调制),ASK调制的特性在于,以单一频率运作,并可依所需的比特1的长度调制脉宽。如“图3”所示,原来的数字信号x(t)经过ASK周制后成为信号SASK(t),比特1的部分成为SASK(t)中脉宽为Tb的部分,比特11的部分则成为两倍Tb的部分,而比特为0的部分,则没有输出,因而,本发明可在无线模块的部分达到省功率的成效。First of all, due to the use of a single frequency, the modulation technology uses amplitude shift keying modulation (Amplitude, Shift keying Modulation, hereinafter referred to as ASK modulation). The length modulates the pulse width. As shown in "Figure 3", the original digital signal x(t) becomes the signal SASK(t) after undergoing the ASK cycle system, the part of
其次,再依据TDM的方式来做外围设备(如“图2”中的第一数据传送单元40与第二数据传送单元50)的时钟划分,详述如下:Secondly, the clock division of the peripheral equipment (such as the first
请参考“图4”,现设定第一数据传输单元的数据包的时间长为B时间,其中,T1为每次传送一次数据所需耗费的时间,为了不让传送数据出错以及保证包(packet)能完整的被收到,因此,每传送一次数据都重复传送一次数据包,每次重复的问隔时间为T2;第二数据传输单元的数据包的时间长为A时间,传送一次数据包所耗费的时间为T3,同样传送两次,其间隔时间为T4。Please refer to "Fig. 4", the time length of the data packet of the first data transmission unit is now set as B time, wherein, T1 is the time it takes to transmit data once each time, in order to prevent the transmission of data from being wrong and to ensure that the packet ( packet) can be completely received, therefore, every time data is transmitted, the data packet is repeatedly transmitted, and the interval time between each repetition is T2; the time length of the data packet of the second data transmission unit is A time, and the data is transmitted once The time spent by the packet is T3, and it is also transmitted twice with an interval of T4.
不过,若要符合让两个不同的包能同时传送的需求,则必须依序传送包,亦即,需以TDM划分时间。从第一数据传送单元来看,重复传送包的间隔T2必须能容纳A时间,亦即,T2≥A(式1),如“图5”所示。同时,第一数据传送单元每一次传送数据包的时间T1,其连续传送两次包所剩余的时间,必须能容纳连续两次传送第二数据传送单元的数据包的A时间,亦即,T1-(T2+2B)≥T4+2A(式2)。However, in order to meet the requirement that two different packets can be transmitted simultaneously, the packets must be transmitted sequentially, that is, the time must be divided by TDM. From the perspective of the first data transmission unit, the interval T2 of repeatedly transmitting packets must be able to accommodate A time, that is, T2≥A (Formula 1), as shown in "FIG. 5". At the same time, the time T1 for each data packet transmission by the first data transmission unit, and the remaining time for the two consecutive transmissions of the packets, must be able to accommodate the A time for the two consecutive transmissions of the data packets of the second data transmission unit, that is, T1 -(T2+2B)≥T4+2A (Formula 2).
从第二数据传送单元来看,每次重复传送数据包的时时T4则安排能容纳整个第一数据传送单元数据包的大小,亦即,T4≥T2+2B(式3),如“图6”所示。同时,每一次传送数据包的时间T3,其连续传送两次包所剩余的时间,必须能容纳连续整个第一数据传送单元的数据包,亦即,重复两次传送第一数据传送单元的包时间,亦即,T3-(T4+2A)≥T2+2B(式4)。From the perspective of the second data transmission unit, T4 is arranged to accommodate the size of the entire first data transmission unit data packet each time the data packet is repeatedly transmitted, that is, T4≥T2+2B (formula 3), as shown in "Fig. 6 " Shown. At the same time, the time T3 for each data packet transmission, the remaining time for two consecutive packets transmission, must be able to accommodate the data packets of the entire first data transmission unit, that is, repeat the transmission of the first data transmission unit packet twice Time, that is, T3-(T4+2A)≥T2+2B (Equation 4).
综合以上的结果,从式1-4可得,T1≥4(A+B)(式5),以及T3≥4(A+B)(式6)。所以,第一数据传送单元与第二数据传送单元个别所需的传送时间,均为大于或等于各自数据包时间长所相加的四倍即可。所以,只要设定不同数据包的时间长度,即可得出传送一次数据所需的时间长。Based on the above results, it can be obtained from Equations 1-4 that T1≥4(A+B) (Equation 5) and T3≥4(A+B) (Equation 6). Therefore, the respective transmission times required by the first data transmission unit and the second data transmission unit should be greater than or equal to four times the sum of the lengths of the respective data packets. Therefore, as long as the time lengths of different data packets are set, the length of time required to transmit data once can be obtained.
如此的设计,其效应可在接收端看到,请参考“图7”。如果第一数据传送单元与第二数据传送单元两者同时传送数据,则情形将如“图7”所示,数据接收单元所接收到的包数据,由于第一次由第一数据传送单元与第二数据传送单元所传送的包数据发生数据碰撞,所以,数据接收单元将无法辨认此项数据。不过,由于本发明于第一数据传送单元间隔时间T2传送一次包(T2≥A),同样地,于第二数据单元间隔时间T4传送一次包(T4≥B),所以,第一个包(如B)与另一个包(如A)重叠后,将不可能发生第二个重复的包(B’)与另一个重复的包(A′)再重叠,所以,数据接收单元仍然可完整地接收到第二个重复传送的包(B′与A′)。Such a design, its effect can be seen at the receiving end, please refer to "Figure 7". If both the first data transmission unit and the second data transmission unit transmit data at the same time, the situation will be as shown in "Figure 7", the packet data received by the data receiving unit, due to the Data collision occurs in the packet data transmitted by the second data transmitting unit, so the data receiving unit cannot recognize the data. However, since the present invention transmits a packet (T2≥A) at the interval time T2 of the first data transmission unit, and similarly transmits a packet (T4≥B) at the interval time T4 of the second data unit, the first packet ( For example, after B) overlaps with another package (such as A), it is impossible for the second repeated package (B') to overlap with another repeated package (A'), so the data receiving unit can still completely A second retransmitted packet (B' and A') is received.
事实上,由于此种两次重复包传送的设计,让两种不同的数据传送单元所传送的数据,不论在任何时间点传送数据,不论有无发生数据重叠的情形,数据接收单元都可以完整地接收到两种不同的包数据。所以,借由此种TDM的时间划分,本发明在接收端只需设计同7套接收设备即可,亦即,只要数据接收单元能够辨认包的内容即可。In fact, due to the design of two repeated packet transmissions, the data transmitted by two different data transmission units can be completely transmitted by the data receiving unit no matter at any point in time, regardless of whether there is data overlap or not. Two different packet data are received. Therefore, with this TDM time division, the present invention only needs to design the same 7 sets of receiving equipment at the receiving end, that is, as long as the data receiving unit can identify the contents of the packet.
本发明解决了包传送的时间配置问题,接着,以下将介绍本发明实际上处理两种不同的外围设备的技术,亦即,包内容的设计,本发明将以无线鼠标以及无线键盘为具体的实施例。由于鼠标与键盘所传送的数据内容不同,所以,设计的包大小也有所不同,如上所述的A与B,其时间大小可能有所不同,以下将分别述之。The present invention solves the time configuration problem of packet transmission, and then, the technology that the present invention actually handles two different peripheral devices will be introduced below, that is, the design of the packet content, and the present invention will take wireless mouse and wireless keyboard as specific examples Example. Since the data contents transmitted by the mouse and the keyboard are different, the designed packet sizes are also different. The above-mentioned A and B may have different time sizes, which will be described separately below.
先从鼠标的包数据结构来看,请参考“图12”,鼠标的数据占五个字节(Byte),每个字节有八个比特(bit)数据,各个字节的字段数据内容详述如下:From the perspective of the mouse packet data structure, please refer to "Figure 12". The data of the mouse occupies five bytes (Byte), and each byte has eight bits (bit) of data. The field data content of each byte is detailed. as follows:
字节1为包命令(packet command),其包含了:
元件类型(device type):用以辨认数据传送单元的类型,例如鼠标为10;Component type (device type): used to identify the type of data transmission unit, for example, 10 for the mouse;
序列号(Sequence number):用以辨认每个接收包的序列号,例如,重复的包序列号一样,如0与0,或1与1;而邻近两个不同的包,序列号则不同,如一个包的序列号为0,则其邻近的两个不同包则为1,反之亦然。Sequence number (Sequence number): The sequence number used to identify each received packet, for example, the sequence number of repeated packets is the same, such as 0 and 0, or 1 and 1; while two adjacent different packets have different sequence numbers, If a packet has a sequence number of 0, its adjacent two different packets will have a sequence number of 1, and vice versa.
低电量(Battery Low):数据传送单元的电池状态,如可设0为正常状态,1为低电量状态。Low battery (Battery Low): The battery status of the data transmission unit, such as 0 can be set to the normal state, and 1 can be set to the low battery state.
设定(Set):识别码传输状态指示,可设0为一般传输状态,1为识别码设定过程的状态。Set (Set): The identification code transmission status indication, can be set to 0 for the general transmission status, 1 for the status of the identification code setting process.
M:为鼠标中间键(Middle Button)状态,设1为中间键按压。M: It is the middle button of the mouse (Middle Button), set 1 to press the middle button.
R:为鼠标右键(Right Button)状态,设1为右键按压。R: The state of the right button of the mouse (Right Button), set 1 to press the right button.
L:为鼠标左键(Left Button)状态,设1为左键按压。L: It is the state of the left button of the mouse (Left Button), set 1 to press the left button.
字节2为鼠标X方向的运动数据,如为负方向则以2的补数(complement)形式表示。如“设定”(Set)比特为1,则为元件的识别码(Identity,ID),此识别码的部分稍后将介绍。
字节3为鼠标Y方向的运动数据,如为兔方向,则以2的补数(complement)形式表示。
字节4为鼠标命令,包含了鼠标的其他相关命令的部分:
YS:X方向运动的标示(signed)比特。YS: Signed bit for motion in the X direction.
XS:Y方向运动的标示(signed)比特。XS: Signed bit for movement in the Y direction.
Z0-Z3:为鼠标的方向的运动。Z0-Z3: the movement of the direction of the mouse.
B5:为鼠标第五键(5th Button)状态,1为第五键按压。B5: It is the state of the fifth button of the mouse (5th Button), and 1 is the fifth button pressed.
B4:为鼠标第四键(4th Button)状态,1为第四键按压。B4: It is the state of the fourth button of the mouse (4th Button), and 1 is the fourth button pressed.
字节5为检查码(Checksum),用以检查(detect)包是否有错。
接着,再看键盘的包数据结构,请参考“图13”,键盘的数据占三个字节(Byte),每个字节有八个比特(bit)数据,各个字节的字段数据内容详述如下:Next, look at the packet data structure of the keyboard, please refer to "Figure 13". The data of the keyboard occupies three bytes (Byte), and each byte has eight bits of data. as follows:
字节1为包命令(packet command),其包含了:
元件类型(device type):用以辨认数据传送单元的类型,如键盘为01;Component type (device type): used to identify the type of data transmission unit, such as the keyboard is 01;
序列号(Sequence number):用以辨认每个接收包的序列号,例如,重复的包序列号一样,如0与0,或1与1;而邻近两个不同的包,序列号则不同,如一个包的序列号为0,则其邻近的两个不同包则为1,反之亦然。Sequence number (Sequence number): The sequence number used to identify each received packet, for example, the sequence number of repeated packets is the same, such as 0 and 0, or 1 and 1; while two adjacent different packets have different sequence numbers, If a packet has a sequence number of 0, its adjacent two different packets will have a sequence number of 1, and vice versa.
低电量(Battery Low):数据传送单元的电池状态,如可设0为正常状态,1为低电量状态。Low battery (Battery Low): The battery status of the data transmission unit, such as 0 can be set to the normal state, and 1 can be set to the low battery state.
设定(Set):通道传输状态指示,可设0为一般传输状态,1为识别码设定过程的状态。Set (Set): channel transmission status indication, can be set to 0 for the general transmission status, 1 for the status of the identification code setting process.
M/B:表示该键被敲击或移除的指标,M表建立码,B表中断码。M/B: indicates that the key is tapped or removed, M stands for build code, B stands for interrupt code.
End:键盘状态的指标指示,可设0为仍有至少一个键被操作,1为所有按键均放开,亦即,未被操作。End: The indicator indication of the keyboard status, which can be set to 0, indicating that at least one key is still being operated, and 1, indicating that all keys are released, that is, not operated.
字节2为键盘码(Key Number),输出键盘上的按键编码。若“设定”比特为1,则此字节即为元件的识别码(Identity,ID)。
字节3为检查码(Checksum),用以检查(detect)包是否有错。
接着,即必须定义每个包的开始与结束码以及每个比特的编码,请参考“图8A-8E”。再次强调,上述的具体实施例中,鼠标占了40比特的数据量,而键盘占了24比特的数据量。在实作中,鼠标(如标准的PS/2)与键盘的传送率(report rate)约大于或等于每秒40次,亦即,每秒可传送40个包的数据,所以,每个包数据可传送的时间在25毫秒(ms)以内。除此限制外,还必须加上T1≥4(A+B)(式5),与T3≥4(A+B)(式6)的限制,亦即每次包传送时间必须大于或等于鼠标与键盘包时间相加的四倍。在此限制下,可做以下的时间设定,将整个包传送时间设于24毫秒:Next, the start and end codes of each packet and the encoding of each bit must be defined, please refer to "Figures 8A-8E". It is emphasized again that in the above specific embodiment, the mouse occupies 40 bits of data, and the keyboard occupies 24 bits of data. In practice, the report rate of the mouse (such as a standard PS/2) and the keyboard is greater than or equal to 40 times per second, that is, 40 packets of data can be transmitted per second, so each packet Data can be transmitted within 25 milliseconds (ms). In addition to this restriction, the restriction of T1≥4(A+B) (Formula 5) and T3≥4(A+B) (Formula 6) must be added, that is, the transmission time of each packet must be greater than or equal to the mouse Four times the time added to the keyboard package. Under this limitation, the following time settings can be made to set the entire packet transmission time at 24 milliseconds:
比特“0”为30微秒(μs)的高电位与30微秒(μs)的零电位,如“图8A”所示。The bit "0" is a high potential for 30 microseconds (μs) and a zero potential for 30 microseconds (μs), as shown in "FIG. 8A".
比特“1”为40微秒(μs)的高电位与40微秒(μs)的零电位,如“图8B”所示。The bit "1" has a high potential for 40 microseconds (μs) and a zero potential for 40 microseconds (μs), as shown in "FIG. 8B".
包开始为55微秒(μs)的高电位与55微秒(μs)的零电位,如“图8C”所示。The packet starts with a high potential of 55 microseconds (μs) and a zero potential of 55 microseconds (μs), as shown in “FIG. 8C”.
包结束为70微秒(μs)的高电位与70微秒(μs)的零电位,如“图8D”所示。The packet ends with a high potential for 70 microseconds (μs) and a zero potential for 70 microseconds (μs), as shown in “FIG. 8D”.
于是,借由这样的比特区分,整个包结构即如“图8E”所示,从开始到包数据与结束,这些都可以ASK调制方式达成,而且不会有比特辨认错误的问题;此外,无线模块可采用射频(RF)或者红外线(IR)模块。如此设计下的鼠标与键盘包时间长度,可限制在6毫秒之内,即可符合上述的传输限制。Therefore, by virtue of this bit distinction, the entire packet structure is shown in "Figure 8E". From the beginning to the packet data and the end, all of these can be achieved by ASK modulation, and there will be no problem of bit identification errors; in addition, wireless The module can adopt radio frequency (RF) or infrared (IR) module. The length of the mouse and keyboard packet under such a design can be limited within 6 milliseconds, which can meet the above-mentioned transmission limitation.
上述的包内容己大致定义完成,接下来,将更详细地介绍本发明的包数据结构,请参考“图9”,鼠标传送的包数据示意图。每个字节包含了8个比特,由于本发明设定比特“0”与比特“1”的时间长度不同,所以,每个字节的数据内容约在480-320微秒(μs)之间。而鼠标的包数据结构长度约在3.5毫秒(ms),鼠标所送出的包长度约在24ms。The above-mentioned packet content has been roughly defined. Next, the packet data structure of the present invention will be introduced in more detail. Please refer to "Figure 9", a schematic diagram of the packet data transmitted by the mouse. Each byte contains 8 bits. Since the present invention sets the time length of bit "0" and bit "1", the data content of each byte is approximately between 480-320 microseconds (μs). . The packet data structure length of the mouse is about 3.5 milliseconds (ms), and the packet length sent by the mouse is about 24ms.
请参考“图10”,键盘传送的包数据示意图。每个字节包含了8个比特,由于本发明设定比特“0”与比特“1”的时间长度不同,所以,每个字节的数据内容约在480-320微秒(μs>之间。而键盘的包数据结构长度约在2.5毫秒(ms),键盘所送出的包长度约在24ms。Please refer to "Figure 10", the schematic diagram of the packet data transmitted by the keyboard. Each byte has comprised 8 bits, because the present invention sets bit " 0 " and the time length of bit " 1 " is different, so, the data content of each byte is about between 480-320 microseconds (μs> The length of the packet data structure of the keyboard is about 2.5 milliseconds (ms), and the length of the packet sent by the keyboard is about 24ms.
包的定义完成后,尚有一个部分待定义,亦即,本发明是为一无线传输协议,所以,当邻近有相同的产品时,必须要有能相互识别的功能。本发明即通过识别码的设定来达到此项目的。After the definition of the package is completed, there is still a part to be defined, that is, the present invention is a wireless transmission protocol, so when there are identical products nearby, there must be a function that can identify each other. The present invention achieves this project through the setting of the identification code.
请参考“图11”,本发明增加ID识别的单频式无线外围设备传输协议的编码与识别的系统,请参考比较“图2”。在第一数据传送单元40、第二数据传送单元50与数据接收单元60上,分别增加了一个识别键(ID Key)402、502与602,这些识别键用以设定各自对应的数据传送单元与数据接收单元,其内容将会在数据包当中予以记录。Please refer to "Figure 11", the system for encoding and identifying the transmission protocol of the single-frequency wireless peripheral equipment with ID identification added in the present invention, please refer to "Figure 2" for comparison. On the first
识别键的按键程序,可设定为先按下第一数据传送单元40与第二数据传送单元50的识别键402与502,再按下数据接收单元60的识别键602,即可设定新的识别码。The button program of the identification key can be set to first press the identification keys 402 and 502 of the first
请回头参考“图12”与“图13”,在设定的期间,鼠标与键盘(亦即,第一数据传送单元40与第二数据传送单元50)的数据包中,第一字节的“设定”比特为“1”,此时,鼠标所送出的数据内容如“图14”所示,与“图12”相同,鼠标的数据占五个字节(Byte),每个字节有八个比特(bit)数据,各个字节的数据内容详述如下:Please refer back to "Fig. 12" and "Fig. 13". During the setting period, in the data packets of the mouse and the keyboard (that is, the first
字节1为包命令(packet command),其包含了:元件类型(device type)、序列号(Sequence number)、低电量(Battery Low)与设定(Set)等比特的数据内容与“图12”相同,不再赘述。
倒数(count down):包含了三个比特,从7开始倒数,每传送一个包即减1,直到倒数值为0,则表示以后的包都以新的识别码传送信息。Count down: Contains three bits, counting down from 7, and subtracting 1 every time a packet is transmitted, until the countdown is 0, which means that all subsequent packets will transmit information with a new identification code.
字节2此时变更为元件的识别码(Identity,ID),并以随机的方式产生。At this time,
字节3为检查码(Checksum)。
字节4为检查码的2的补数,用以确保此包内容不会出错。
字节5同样为检查码(Checksum)。
键盘所送出的数据内容如“图15”所示,与“图2”相同,键盘的数据占三个字节(Byte),每个字节有八个比特(bit)数据,各个字节的数据内容详述如下:The content of the data sent by the keyboard is shown in "Figure 15", which is the same as "Figure 2". The data of the keyboard occupies three bytes (Byte), and each byte has eight bits of data. The data content is detailed as follows:
字节1为包命令(packet command),其包含了:元件类型(device type)、序列号(Sequence number)、低电量(Battery Low)与设定(Set)等比特的数据内容与“图13”相同,不再赘述。
倒数(count down):包含了三个比特,从7开始倒数,每传送一个包即减1,直到倒数值为0,则表示以后的包都由新的通道传送信息。Count down: Contains three bits, counting down from 7, and subtracting 1 every time a packet is transmitted, until the countdown is 0, which means that the subsequent packets will be transmitted by the new channel.
字节2变更为元件新的识别码(Identity,ID)。
字节3为检查码(Checksum)。
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 01134814 CN1200359C (en) | 2001-11-14 | 2001-11-14 | Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 01134814 CN1200359C (en) | 2001-11-14 | 2001-11-14 | Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1419199A CN1419199A (en) | 2003-05-21 |
CN1200359C true CN1200359C (en) | 2005-05-04 |
Family
ID=4672766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 01134814 Expired - Fee Related CN1200359C (en) | 2001-11-14 | 2001-11-14 | Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1200359C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101419514B (en) * | 2007-10-26 | 2010-10-13 | 无锡华润矽科微电子有限公司 | Wireless mouse communication method |
-
2001
- 2001-11-14 CN CN 01134814 patent/CN1200359C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1419199A (en) | 2003-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1143473C (en) | Wireless communication system for reliable communication between group of apparatuses | |
CN1236579C (en) | Method and apparatus for data recovery in ARQ systems | |
TWI443557B (en) | Method for transmitting touch panel data | |
CN1316833A (en) | Data receiving processing method for communication equipment supporting blue-tooth radio communication | |
FI1929826T9 (en) | Apparatus, method, and computer program product for requesting data rate increases based on the transmission capability of at least one selected additional data unit | |
EP1784950A1 (en) | Method and apparatus for transmitting block ack frame | |
KR20160037204A (en) | Multi-stage amplitude modulation-based methods, apparatuses and systems for coding and decoding visible light signal | |
JP2023500917A (en) | Control information indication method, communication node, and computer readable storage medium | |
WO2019090745A1 (en) | Method for determining harq number, network device, terminal and computer storage medium | |
WO2021197317A1 (en) | Hybrid automatic repeat request ackowledgement feedback method, terminal and network node | |
CN1427549A (en) | Wireless communication apparatus capable of improving connecting rate | |
CN1200359C (en) | Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol | |
CN103186310A (en) | Electronic white board with multiple common-frequency pens | |
TWI657369B (en) | Method for transmitting continuous data and data transmission system | |
CN113518333B (en) | Data transparent transmission method and device, bluetooth device and BLE chip | |
CN104991795B (en) | The firmware upgrade method and device of active capacitance pen | |
CN106788916A (en) | Data transmission method and data transmission device for bus | |
CN1115621C (en) | Method of transmitting data using wireless keyboard carrying trace ball | |
CN1195241A (en) | Data communication method and data communication apparatus | |
US20030128675A1 (en) | System and method for coding and identification in a wireless transmit and receive protocol for single-frequency peripheral devices | |
US9552317B2 (en) | Apparatus and method for operating and switching a single conductor interface | |
GB2396234A (en) | Transmitting and receiving wireless keyboard data | |
TWI413409B (en) | Method for determining and changing radio frequency channel and radio frequency transmitting/receiving system using the same | |
CN110932821B (en) | Control information transmission method, device, equipment and storage medium | |
CN108206732A (en) | Data transmission method, the acquisition methods of resource indication information, terminal and base station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C41 | Transfer of patent application or patent right or utility model | ||
TR01 | Transfer of patent right |
Effective date of registration: 20090206 Address after: Delaware Patentee after: Xuli Co., Ltd. Address before: Taipei city of Taiwan Province Patentee before: Lite-On Technology Corporation |
|
ASS | Succession or assignment of patent right |
Owner name: YUMU TECHNOLOGY CO., LTD. Free format text: FORMER OWNER: GUANGBAO TECHNOLOGY CO., LTD. Effective date: 20090206 |
|
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20050504 Termination date: 20131114 |