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 PDF

Info

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
Application number
CN 01134814
Other languages
Chinese (zh)
Other versions
CN1419199A (en
Inventor
郭锦诚
Original Assignee
Lite On Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lite On Technology Corp filed Critical Lite On Technology Corp
Priority to CN 01134814 priority Critical patent/CN1200359C/en
Publication of CN1419199A publication Critical patent/CN1419199A/en
Application granted granted Critical
Publication of CN1200359C publication Critical patent/CN1200359C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention is a coding and recognition method and system for wireless peripheral equipment transmission protocol, which uses amplitude shift keying Modulation (ASK Modulation) technology and uses single frequency as coding mode and retransmission method, in the wireless system with the first data transmission unit, the second data transmission unit and one data receiving unit, continuously transmits the packet twice in the transmission period of one packet, and uses four times of the sum of the transmission time of two different packets as the basis for transmitting one packet data, thus, the effect of operating two data transmission units simultaneously and identifying two different data packets by the single data receiving unit can be achieved, and the specific effect of reducing the cost of the wireless module can be achieved.

Description

单频式无线外围设备传输协议的编码与识别方法及其系统Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol

技术领域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 wireless transmission module 101, and the second data transmission unit 20 (such as a keyboard) transmits data at a carrier frequency F2 through a wireless transmission module 201 Data, at the receiving end, that is, the data receiving unit 30 , receives the carrier frequencies F1 and F2 by the wireless receiving module 301 . Therefore, the first data transmission unit 10 and the second data transmission unit 20 must use different radio frequency modules due to different carrier frequencies (F1 and F2), that is, the designs of the wireless transmission modules 101 and 201 are different; , the receiving end, that is, the data receiving unit 30 must adopt two sets of different frequency hopping techniques in software design. Therefore, in terms of design, using this existing technology, the company must spend relatively high R&D costs on hardware and software design and production, and these R&D costs and production costs are reflected in product prices accordingly.

因此,如何将类似无线电脑键盘与鼠标等外围装置,以相同的方式加以传输,亦即,运用相同的传输协议,来达到以单一频率即可共同运用在电脑外围的无线产品的目的,成为研发设计的重点。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 data transmission unit 40 , a second data transmission unit 50 and a data receiving unit 60 . The first data transmission unit 40 and the second data transmission unit 50 respectively have a wireless transmission module 401 and 501, these two modules are the same module in structure, can be radio frequency (RF) or infrared (IR) transmission module, its Commonly using the same carrier frequency F30, the data receiving unit 60 has a wireless receiving module 601, which only needs to receive a single carrier frequency F3. Therefore, the system of the present invention can realize simple design, and only need to use a single frequency at the transmitting end or the receiving end to achieve the purpose of wireless transmission.

接着,以下将介绍本发明实际上如何达到单一频率即可让两种不同的无线外围设备运用相同频率,亦即,本发明的传输协议的编码与识别方法。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 bit 1 becomes the part with pulse width Tb in SASK(t), and the part of bit 11 becomes the signal SASK(t). The part that becomes double Tb, and the part where the bit is 0, has no output. Therefore, the present invention can achieve the effect of saving power in the part of the wireless module.

其次,再依据TDM的方式来做外围设备(如“图2”中的第一数据传送单元40与第二数据传送单元50)的时钟划分,详述如下:Secondly, the clock division of the peripheral equipment (such as the first data transmission unit 40 and the second data transmission unit 50 in "FIG. 2") is done according to the TDM method, and the details are as follows:

请参考“图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),其包含了:Byte 1 is the packet command (packet command), which contains:

元件类型(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),此识别码的部分稍后将介绍。Byte 2 is the movement data in the X direction of the mouse, and if it is a negative direction, it is expressed in the form of 2's complement. If the "set" (Set) bit is 1, it is the identification code (Identity, ID) of the component, and the part of this identification code will be introduced later.

字节3为鼠标Y方向的运动数据,如为兔方向,则以2的补数(complement)形式表示。Byte 3 is the movement data in the Y direction of the mouse, if it is in the direction of the rabbit, it is expressed in the form of 2's complement.

字节4为鼠标命令,包含了鼠标的其他相关命令的部分:Byte 4 is the mouse command, which includes other related commands of the mouse:

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)包是否有错。Byte 5 is a checksum (Checksum), which is used to check whether there is an error in the packet.

接着,再看键盘的包数据结构,请参考“图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),其包含了:Byte 1 is the packet command (packet command), which contains:

元件类型(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)。Byte 2 is the keyboard code (Key Number), which outputs the key code on the keyboard. If the "set" bit is 1, then this byte is the identification code (Identity, ID) of the component.

字节3为检查码(Checksum),用以检查(detect)包是否有错。Byte 3 is a checksum (Checksum), used to check (detect) whether there is an error in the packet.

接着,即必须定义每个包的开始与结束码以及每个比特的编码,请参考“图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 data transmission unit 40, the second data transmission unit 50 and the data receiving unit 60, an identification key (ID Key) 402, 502 and 602 is added respectively, and these identification keys are used to set the respective corresponding data transmission units With the data receiving unit, its content will be recorded in the data packet.

识别键的按键程序,可设定为先按下第一数据传送单元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 data transmission unit 40 and the second data transmission unit 50, and then press the identification key 602 of the data receiving unit 60 to set a new identification code.

请回头参考“图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 data transmission unit 40 and the second data transmission unit 50), the first byte The "set" bit is "1". At this time, the data content sent by the mouse is shown in "Figure 14", which is the same as in "Figure 12". The data of the mouse occupies five bytes (Byte), and each byte There are eight bits of data, and the data content of each byte is detailed as follows:

字节1为包命令(packet command),其包含了:元件类型(device type)、序列号(Sequence number)、低电量(Battery Low)与设定(Set)等比特的数据内容与“图12”相同,不再赘述。Byte 1 is the packet command (packet command), which includes: device type (device type), serial number (Sequence number), low battery (Battery Low) and setting (Set) and other bits of data content and "Figure 12 "Same, no more details.

倒数(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, byte 2 is changed to the identification code (Identity, ID) of the component, which is generated randomly.

字节3为检查码(Checksum)。Byte 3 is a checksum (Checksum).

字节4为检查码的2的补数,用以确保此包内容不会出错。Byte 4 is the 2's complement of the check code to ensure that the contents of the packet are error-free.

字节5同样为检查码(Checksum)。Byte 5 is also a checksum (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”相同,不再赘述。Byte 1 is the packet command (packet command), which includes: device type (device type), serial number (Sequence number), low battery (Battery Low) and setting (Set) and other bits of data content and "Figure 13 "Same, no more details.

倒数(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)。Byte 2 is changed to the new identification code (Identity, ID) of the component.

字节3为检查码(Checksum)。Byte 3 is a checksum (Checksum).

Claims (14)

1.一种单频式无线外围设备传输协议的编码与识别方法,其特征在于是运用振幅移位键控调制并设定一单一频率作为具有一第一数据传送单元、一第二数据传送单元与一数据接收单元的无线系统的载频,以做一数字数据的传送,包含下列步骤:1. A coding and identification method for a single-frequency wireless peripheral device transmission protocol, characterized in that it uses amplitude shift keying modulation and sets a single frequency as having a first data transmission unit and a second data transmission unit The carrier frequency of the wireless system with a data receiving unit, in order to do the transmission of a digital data, comprises the following steps: 设定该第一数据传送单元的第一数据包与第一识别包及该第二数据传送单元的第二数据包与第二识别包的传送时间,并依一重传法于传送一次包数据时间内重复传送包两次;Set the transmission time of the first data packet and the first identification packet of the first data transmission unit and the second data packet and the second identification packet of the second data transmission unit, and transmit a packet data time according to a retransmission method Repeat the transmission packet twice within; 设定该第一数据传送单元的该第一数据包与该第二数据传送单元的该第二数据包的数据编码内容,并依据该第一传送单元与该第二数据传送单元的传送率设定数据包的各字段内容;Setting the data encoding content of the first data packet of the first data transmission unit and the second data packet of the second data transmission unit, and setting the transmission rate of the first data transmission unit and the second data transmission unit Determine the contents of each field of the data packet; 设定第一传送单元的第一识别包与第二传送单元的第二识别包,用以分别作为该第一数据传送单元与该第二数据传送单元的识别,并依据该第一传送单元与该第二数据传送单元的传送率设定数据包的各字内容;及Setting the first identification packet of the first transmission unit and the second identification packet of the second transmission unit as the identification of the first data transmission unit and the second data transmission unit respectively, and according to the first transmission unit and the second data transmission unit the content of each word of the transmission rate setting data packet of the second data transmission unit; and 设定一识别键,平时该通讯系统是为一数据编码状态,当按下该识别键时是为一数据识别状态,当该通讯系统于该数据编码状态时传送该第一数据包与该第二数据包,当该通讯系统于该数据识别状态时传送该第一识别包与该第二识别包。Set an identification key, usually the communication system is in a data encoding state, when the identification key is pressed, it is in a data identification state, when the communication system is in the data encoding state, the first data packet and the second data packet are transmitted Two data packets, for sending the first identification packet and the second identification packet when the communication system is in the data identification state. 2.如权利要求1所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的第一数据传送单元是为一无线键盘且该第二数据传送单元是为一无线鼠标,并且,该第一数据包是为一键盘数据包而该第二数据包是为一鼠标数据包,以及,该第一识别包是为一键盘识别包而该第二识别包是为一鼠标识别包。2. The encoding and identification method of the wireless peripheral device transmission protocol as claimed in claim 1, wherein the first data transmission unit is a wireless keyboard and the second data transmission unit is a wireless mouse, and , the first data packet is a keyboard data packet and the second data packet is a mouse data packet, and the first identification packet is a keyboard identification packet and the second identification packet is a mouse identification packet . 3.如权利要求1所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的单一频率的发射装置是为射频及红外线发射装置,两者择其一。3. The encoding and identification method of the transmission protocol of wireless peripheral equipment as claimed in claim 1, characterized in that the single-frequency transmitting device is a radio frequency or an infrared transmitting device, one of which is selected. 4.如权利要求1所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的重传法是于传送一次该第一数据包时间T1中,于第一次传送该第一数据包后,间隔A时间再传送该第一数据包一次,且该时间T1是大于或等于(4A+4B)时间;并于传送一次该第二数据包时间T3中,于第一次传送该第二数据包后,间隔(A+2B)时间再传送该第二数据包一次,且该时间T3是大于或等于(4A+4B)时间;其中,时间A是为传送该第二数据包的时间,时间B是为传送该第一数据包的时间。4. The encoding and identification method of wireless peripheral equipment transmission protocol as claimed in claim 1, characterized in that the retransmission method is to transmit the first data packet for the first time during the time T1 of transmitting the first data packet. After the data packet, transmit the first data packet again at interval A, and the time T1 is greater than or equal to (4A+4B) time; After the second data packet, transmit the second data packet again at an interval of (A+2B), and the time T3 is greater than or equal to (4A+4B) time; wherein, time A is for transmitting the second data packet Time, time B is the time for transmitting the first data packet. 5.如权利要求1所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的重传法是于传送一次该第一识别包时间T1中,于第一次传送该第一识别包后,间隔A时间再传送该第一识别包一次,且该时间T1是大于或等于(4A+4B)时间;并于传送一次该乡二识别包时间T3中,于第一次传送该第二识别包后,间隔(A+2B)时间再传送该第二识别包一次,且该时间T3是大于或等于(4A+4B)时间;其中,时间A是为传送该第二识别包的时间,时间B是为传送该第一识别包的时间。5. The encoding and identification method of wireless peripheral equipment transmission protocol as claimed in claim 1, characterized in that the retransmission method is to transmit the first identification packet for the first time during the time T1 of transmitting the first identification packet. After identifying the packet, transmit the first identification packet again at interval A, and the time T1 is greater than or equal to (4A+4B) time; After the second identification packet, transmit the second identification packet once at an interval of (A+2B), and the time T3 is greater than or equal to (4A+4B) time; wherein, time A is for transmitting the second identification packet Time, time B is the time for transmitting the first identification packet. 6.如权利要求2所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的鼠标数据包是为包括五个字节的数据结构,各字节的组成与字段内容是为:6. the coding and the identification method of wireless peripheral equipment transmission protocol as claimed in claim 2, it is characterized in that described mouse data packet is to comprise the data structure of five bytes, and the composition and field content of each byte are for : 第一字节是为包命令,其包括:一元件类型字段,用以辨认数据传送单元的类型;一数据包的序列号字段,用以辨认每个不同的该鼠标数据包的序列号;一电量状态字段,用以指示该无线鼠标的电池状态;一设定状态字段,用以指示更新识别码的传输状态;一中间键状态字段,用以指示该无线鼠标的中间键按压状态;一右键状态字段,用以指示该无线鼠标的右键按压状态;以及,一左键状态字段,用以指示该无线鼠标的左键按压状态;其中,该元件类型字段为二个比特,余者为一个比特;The first byte is a packet command, which includes: an element type field, used to identify the type of data transfer unit; a sequence number field of a data packet, used to identify the sequence number of each different mouse data packet; A power status field is used to indicate the battery status of the wireless mouse; a setting status field is used to indicate the transmission status of the update identification code; a middle button status field is used to indicate the pressing status of the middle button of the wireless mouse; a right button A state field is used to indicate the right button press status of the wireless mouse; and a left button status field is used to indicate the left button press status of the wireless mouse; wherein, the component type field is two bits, and the rest is one bit ; 第二字节是为该无线鼠标的X方向的运动数据,负方向并以2的补数形式表示;The second byte is the motion data of the wireless mouse in the X direction, and the negative direction is expressed in the form of 2's complement; 第三字节是为该无线鼠标的Y方向的运动数据,负方向并以2的补数形式表示;The third byte is the motion data of the wireless mouse in the Y direction, and the negative direction is expressed in the form of 2's complement; 第四字节是为该无线鼠标的命令,其包括:-X方向运动的标示字段;一Y方向运动的标示字段;一第五键状态字段,用以指示该无线鼠标的第五键按压状态;一第四键状态字段,用以指示该无线鼠标的第四键按压状态;以及,一Z方向的运动数据字段,用以记录该无线鼠标Z方向的运动数据;其中,该Z方向的运动数据字段是为三个比特,其余为一个比特;及The 4th byte is the order of this wireless mouse, and it comprises: - the mark field of X direction motion; One mark field of Y direction motion; One fifth key state field, in order to indicate the fifth key pressing state of this wireless mouse ; A fourth key state field, used to indicate the fourth key press state of the wireless mouse; and, a motion data field in the Z direction, used to record the motion data in the Z direction of the wireless mouse; wherein, the motion in the Z direction The data field is three bits, and the rest are one bit; and 第五字节是为检查码,用以检查该鼠标数据包的错误状态。The fifth byte is a check code for checking the error status of the mouse data packet. 7.如权利要求2所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的键盘数据包是为包括三个字节的数据结构,各字节的组成与字段内容是为:7. the coding and the identification method of wireless peripheral equipment transmission protocol as claimed in claim 2, it is characterized in that described keyboard data packet is to comprise the data structure of three bytes, and the composition and field content of each byte are for : 第一字节是为包命令,其包括:一元件类型字段,用以辨认数据传送单元的类型;一数据包的序列号字段,用以辨认每个不同的该鼠标数据包的序列号;一电量状态字段,用以指示该无线鼠标的电池状态;一设定状态字段,用以指示更新识别码的传输状态;一建立码或者中断编码指标字段,用以指示该键的敲击状态;一键盘结束状态的指标字段,用以指示该无线键盘是否仍在操作;其中,该元件类型字段为二个比特,其余为一个比特;The first byte is a packet command, which includes: an element type field, used to identify the type of data transfer unit; a sequence number field of a data packet, used to identify the sequence number of each different mouse data packet; A power status field is used to indicate the battery status of the wireless mouse; a setting status field is used to indicate the transmission status of the update identification code; a setup code or interrupt code indicator field is used to indicate the knocking status of the key; The indicator field of the keyboard end state is used to indicate whether the wireless keyboard is still in operation; wherein, the element type field is two bits, and the rest is one bit; 第二字节是为该无线键盘的键盘码,用以记录该无线键盘的按键数据;及The second byte is the keyboard code of the wireless keyboard, which is used to record the key data of the wireless keyboard; and 第三字节是为检查码,用以检查该键盘数据包的错误状态。The third byte is a check code, which is used to check the error status of the keyboard data packet. 8.如权利要求2所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的鼠标数据包与该键盘数据包是包含一比特“0”、比特“1”、包开始与包结束数据,并以振幅移位键控调制技术控制该比特“0”、比特“1”、包开始数据与包结束数据的时间长度。8. the coding and identification method of wireless peripheral device transmission protocol as claimed in claim 2 is characterized in that described mouse data packet and this keyboard data packet are to comprise a bit " 0 ", bit " 1 ", packet start and Packet end data, and use amplitude shift keying modulation technology to control the time length of the bit "0", bit "1", packet start data and packet end data. 9.如权利要求8所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的比特“0”的时间长度是为30微秒高电位30微秒低电位;该比特“1”的时间长度是为时间长度是为40微秒高电值40微秒低电位;该包开始数据的时间长度是为55微秒高电位55微秒低电位;以及,该包结束数据的时间长度是为70微秒高电位70微秒低电位。9. The encoding and identification method of wireless peripheral equipment transmission protocol as claimed in claim 8, characterized in that the time length of said bit "0" is 30 microseconds high potential and 30 microseconds low potential; the bit "1" "The length of time is the time length is 40 microseconds high electric value 40 microseconds low electric potential; the time length of the beginning data of this packet is 55 microseconds high electric potential and 55 microseconds low electric potential; and, the time of the end data of this packet The length is 70 µs high potential and 70 µs low potential. 10.如权利要求2所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的鼠标识别包是为包括五个字节的数据结构,各字节的组成与字段内容是为:10. the coding of wireless peripheral device transmission protocol and identification method as claimed in claim 2, it is characterized in that described mouse identification bag is to comprise the data structure of five bytes, and the composition of each byte and field content are for : 第一字节是为包命令,其包括:一元件类型字段,用以辨认数据传送单元的类型;一数据包的序列号字段,用以辨认每个不同的该鼠标数据包的序列号;一电量状态字段,用以指示该无线鼠标的电池状态;一设定状态字段,用以指示更新识别码的传输状态;一倒数字段,用以对该数据识别状态倒数计时,并于计时结束停止该数据识别状态;其中,该元件类型字段是为二个比特,该倒数字段是为三个比特,其余为一个比特;The first byte is a packet command, which includes: an element type field, used to identify the type of data transfer unit; a sequence number field of a data packet, used to identify the sequence number of each different mouse data packet; A power status field is used to indicate the battery status of the wireless mouse; a setting status field is used to indicate the transmission status of the updated identification code; a countdown field is used to count down the data identification status and stop the mouse at the end of the timing. Data identification status; wherein, the element type field is two bits, the reciprocal field is three bits, and the rest is one bit; 第二字节是为该无线鼠标的识别码,并以随机的方式产生;The second byte is the identification code of the wireless mouse, which is generated randomly; 第三字节是为一检查码:The third byte is a check code: 第四字节是为该检查码的2的补数:及The fourth byte is the 2's complement for the checksum: and 第五字节是为该检查码。The fifth byte is for the check code. 11.如权利要求2所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的键盘识别包是为包括三个字节的数据结构,各字节的组成与字段内容是为:11. the coding of wireless peripheral device transmission protocol and identification method as claimed in claim 2, it is characterized in that described keyboard identification bag is to comprise the data structure of three bytes, and the composition of each byte and field content are for : 第一字节是为包命令,其包括:一元件类型字段,用以辨认数据传送单元的类型;一数据包的序列号字段,用以辨认每个不同的该鼠标数据包的序列号;一电量状态字段,用以指示该无线鼠标的电池状态;一设定状态字段,用以指示更新识别码的传输状态;一倒数字段,用以对该数据识别状态倒数计时,并于计时结束停止该数据识别状态;其中,该元件类型字段是为二个比特,该倒数字段是为三个比特,其余为一个比特;The first byte is a packet command, which includes: an element type field, used to identify the type of data transfer unit; a sequence number field of a data packet, used to identify the sequence number of each different mouse data packet; A power status field is used to indicate the battery status of the wireless mouse; a setting status field is used to indicate the transmission status of the updated identification code; a countdown field is used to count down the data identification status and stop the mouse at the end of the timing. Data identification status; wherein, the element type field is two bits, the reciprocal field is three bits, and the rest is one bit; 第二字节是为该无线键盘的识别码,并以随机的方式产生;及The second byte is the identification code of the wireless keyboard and is randomly generated; and 第二字节是为一检查码。The second byte is a check code. 12.如权利要求2所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的鼠标识别包与该键盘识别包是包含一比特“0”、比特“1”、包开始与包结束数据,并以振幅移位键控调制技术控制该比特“0”、比特“1”、包开始数据与包结束数据的时间长度。12. The coding and identification method of wireless peripheral equipment transmission protocol as claimed in claim 2, is characterized in that described mouse identification bag and this keyboard identification bag are to comprise a bit " 0 ", bit " 1 ", bag start and Packet end data, and use amplitude shift keying modulation technology to control the time length of the bit "0", bit "1", packet start data and packet end data. 13.如权利要求12所述的无线外围设备传输协议的编码与识别方法,其特征在于所述的比特“0”的时间长度是为30微秒高电位30微秒低电位;该比特“1”的时间长度是为时间长度录为40微秒高电位40微秒低电位;该包开始数据的时间长度是为55微秒高电位55微秒低电位;以及,该包结束数据的时间长度是为70微秒高电位70微秒低电位。13. The encoding and identification method of wireless peripheral equipment transmission protocol as claimed in claim 12, characterized in that the time length of said bit "0" is 30 microseconds high potential and 30 microseconds low potential; the bit "1" "The length of time is recorded as 40 microseconds high potential and 40 microseconds low potential for the length of time; the time length of the start data of the packet is 55 microseconds high potential and 55 microseconds low potential; and, the time length of the end data of the packet It is 70 microseconds high potential and 70 microseconds low potential. 14.一种单频式无线外围设备传输协议的编码与识别的系统,是运用振幅移位键控调制技术控制该系统传送的数据包的比特传送时间,并运用一重传法将系统的数据包传递两次,包含:14. A single-frequency wireless peripheral equipment transmission protocol encoding and identification system, which uses amplitude shift keying modulation technology to control the bit transmission time of the data packets transmitted by the system, and uses a retransmission method to transfer the data packets of the system passed twice, containing: 一第一数据传送单元,是具有一第一识别键以作为一第一识别包的设定,并具有一第一无线传输单元用以传送一第一数据包,每次传送该第一数据包与第一识别包的时间是为(4A+4B);A first data transmission unit has a first identification key as the setting of a first identification package, and has a first wireless transmission unit for transmitting a first data package, and transmits the first data package each time The time with the first identification packet is (4A+4B); 一第二数据传送单元,是具有一第二识别键以作为一第二识别包的设定,并具有一第二无线传输单元用以传送一第二数据包,每次传送该第二数据包与第二识别包的时间是为(4A+4B);及A second data transmission unit has a second identification key as the setting of a second identification package, and has a second wireless transmission unit for transmitting a second data package, and transmits the second data package each time The time with the second identification packet is (4A+4B); and 一数据接收单元,是具有一第三数据接收单元,用以接收该第一数据包、第一识别包、第二数据包与第二识别包;A data receiving unit having a third data receiving unit for receiving the first data packet, the first identification packet, the second data packet and the second identification packet; 其中,B是为传送该第一数据包或该第一识别包的时间,A是为传送该第二数据包或该第二识别包的时间。Wherein, B is the time for transmitting the first data packet or the first identification packet, and A is the time for transmitting the second data packet or the second identification packet.
CN 01134814 2001-11-14 2001-11-14 Coding and identification method and system of single-frequency wireless peripheral equipment transmission protocol Expired - Fee Related CN1200359C (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101419514B (en) * 2007-10-26 2010-10-13 无锡华润矽科微电子有限公司 Wireless mouse communication method

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