CN114978429B - Wireless transmitting and receiving method for door and window control - Google Patents
Wireless transmitting and receiving method for door and window control Download PDFInfo
- Publication number
- CN114978429B CN114978429B CN202210582066.0A CN202210582066A CN114978429B CN 114978429 B CN114978429 B CN 114978429B CN 202210582066 A CN202210582066 A CN 202210582066A CN 114978429 B CN114978429 B CN 114978429B
- Authority
- CN
- China
- Prior art keywords
- code
- bit
- synchronous
- calculation
- address
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000001360 synchronised effect Effects 0.000 claims abstract description 59
- 238000012795 verification Methods 0.000 claims abstract description 43
- 230000005540 biological transmission Effects 0.000 claims abstract description 37
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000005096 rolling process Methods 0.000 description 9
- 239000000284 extract Substances 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000035515 penetration Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/12—Transmitting and receiving encryption devices synchronised or initially set up in a particular manner
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/126—Applying verification of the received information the source of the received data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/06—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
- H04L9/0618—Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/088—Usage controlling of secret information, e.g. techniques for restricting cryptographic keys to pre-authorized uses, different access levels, validity of crypto-period, different key- or password length, or different strong and weak cryptographic algorithms
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Lock And Its Accessories (AREA)
Abstract
Description
技术领域technical field
本发明涉及的是一种无线通讯技术领域数据发射接收方法,特别是一种同时对同步码和同步加密计算码进行校验的门窗控制的无线发射接收方法。The invention relates to a data transmission and reception method in the technical field of wireless communication, in particular to a wireless transmission and reception method for door and window control which simultaneously checks a synchronization code and a synchronization encryption calculation code.
背景技术Background technique
由于315MHz和433MHz无线收发系统传输距离远、数据传输可靠、穿墙性能好、功耗低及成本低廉,在电动门窗无线控制系统中得到了广泛的应用。The 315MHz and 433MHz wireless transceiver systems are widely used in wireless control systems for electric doors and windows due to their long transmission distance, reliable data transmission, good wall penetration performance, low power consumption and low cost.
目前,市场上的315MHz和433MHz无线控制系统大都采用1527固定编码进行数据传输。1527编码是固定编码格式,地址码、控制码位数固定,这就决定这一编码格式地址码的容量是有限的。由于1527固定编码是标准的编码格式,所以采用这一编码的不同厂商的发射器和接收器具有通用性。因此,目前市场上的产品广泛采用了这种固定编码格式。At present, most of the 315MHz and 433MHz wireless control systems on the market use 1527 fixed codes for data transmission. 1527 encoding is a fixed encoding format, and the number of address codes and control codes is fixed, which determines that the address code capacity of this encoding format is limited. Since the 1527 fixed code is a standard code format, transmitters and receivers of different manufacturers using this code are universal. Therefore, this fixed encoding format is widely used in products currently on the market.
由于采用固定编码格式的地址码容量有限,随着市场上产品量越来越大,小范围内产品的地址码出现重码的概率大大增加。不同用户之间,可能会出现相互串码的情况,这就有可能导致严重的安全事故。此外,由于固定编码的地址码位数有限,且编码标准统一,使得这种编码方式易于被暴力破解和易于被他人暗中拷贝,这同样会导致严重的安全事故。Due to the limited capacity of the address codes using the fixed encoding format, as the volume of products on the market increases, the probability of duplicate address codes for products within a small range increases greatly. Between different users, there may be a situation of stringing codes with each other, which may lead to serious security accidents. In addition, due to the limited number of fixed-coded address codes and uniform coding standards, this coding method is easy to be cracked by violence and secretly copied by others, which will also lead to serious security accidents.
为了避免固定码存在的以上缺陷,很多厂家也采用了滚动编码格式。采用滚码格式,使得产品的安全性得到了大幅的提高,但目前的滚码无法兼容之前的固定码产品,大大降低了其在市场上的受欢迎程度。此外,目前的滚动编码,由于编码加密的密码固定,且由人工管理,存在密码易于泄漏和易于被他人暗中拷贝的风险。In order to avoid the above defects of the fixed code, many manufacturers have also adopted the rolling code format. The use of the rolling code format has greatly improved the security of the product, but the current rolling code is not compatible with the previous fixed code products, which greatly reduces its popularity in the market. In addition, in the current rolling code, since the password for encoding and encryption is fixed and manually managed, there is a risk that the password is easy to leak and be secretly copied by others.
发明内容Contents of the invention
本发明针对现有技术的不足,提出一种门窗控制的无线发射接收方法,适用于由一个发射终端和一个接收终端组成的基于433MHz或315MHz的电动门窗无线控制系统,实现了兼容市场通用的1527固定编码产品;同时,通过引入采用随机密码的滚动编码方式,大大提高数据无线收发的安全性。Aiming at the deficiencies in the prior art, the present invention proposes a wireless transmission and reception method for door and window control, which is suitable for a 433MHz or 315MHz electric door and window wireless control system composed of a transmitting terminal and a receiving terminal, and realizes compatibility with the 1527 common in the market. Fixed coding products; at the same time, by introducing a rolling coding method using random passwords, the security of wireless data transmission and reception is greatly improved.
本发明是通过以下技术方案来实现的,本发明包括以下步骤:S1、发射终端生成20位地址码、4位控制码和20位同步码;S2、发射终端对20位同步码加1后,通过20位同步加密计算码进行同步加密计算,生成加密同步码;S3、发射终端根据校验计算码对20位同步码和20位同步加密计算码组成的40位数据进行校验计算,得到4位校验码;S4、发射终端将由20位地址码、4位控制码、20位加密同步码和4位校验码组成的48位传输数据,通过无线电向外发射;S5、接收终端从接收到的48位传输数据中,取出20位地址码和4位控制码,并对地址码进行验证对比;S6、接收终端根据同步加密计算码对接收到的20位加密同步码进行解密得到20位当前同步码;S7、接收终端将解密计算得到的当前同步码与前一次控制操作时的同步码进行对比;S8、接收终端根据校验计算码对20位当前同步码和20位同步加密计算码进行校验计算,得到当前校验码;S9、接收终端将校验计算得到的当前校验码与接收到的4位校验码进行对比;S10、接收终端根据地址码、同步码和校验码的验证对比结果,确定当前控制操作是否有效,若有效则执行控制操作,并保存当前同步码。The present invention is realized through the following technical solutions, and the present invention includes the following steps: S1, the transmitting terminal generates a 20-bit address code, a 4-bit control code and a 20-bit synchronization code; S2, after the transmitting terminal adds 1 to the 20-bit synchronization code, Synchronous encryption calculation is performed through the 20-bit synchronous encryption calculation code to generate an encrypted synchronization code; S3, the transmitting terminal performs check calculation on the 40-bit data composed of the 20-bit synchronization code and the 20-bit synchronization encryption calculation code according to the check calculation code, and obtains 4 1-digit check code; S4, the transmitting terminal transmits the 48-bit transmission data composed of 20-bit address code, 4-bit control code, 20-bit encrypted synchronization code and 4-bit check code through radio; S5, the receiving terminal receives From the received 48-bit transmission data, take out the 20-bit address code and 4-bit control code, and verify and compare the address code; S6. The receiving terminal decrypts the received 20-bit encrypted synchronization code according to the synchronous encryption calculation code to obtain 20 bits Current synchronization code; S7, the receiving terminal compares the current synchronization code obtained by decryption calculation with the synchronization code during the previous control operation; S8, the receiving terminal calculates the 20-bit current synchronization code and the 20-bit synchronization encryption calculation code according to the verification calculation code Perform verification calculation to obtain the current verification code; S9. The receiving terminal compares the current verification code obtained by the verification calculation with the received 4-digit verification code; S10. Verify and compare the results of the codes to determine whether the current control operation is valid, and if it is valid, execute the control operation and save the current synchronization code.
进一步地,在上述步骤S1中20位地址码和4位控制码采用1527固定编码格式,构成发射数据的编码低24位;20位同步码在发射终端进行每一次控制操作时由0至1048576逐渐增加。Further, in the above step S1, the 20-bit address code and the 4-bit control code adopt a 1527 fixed encoding format to form the lower 24 bits of the encoding of the transmitted data; the 20-bit synchronization code gradually changes from 0 to 1048576 when the transmitting terminal performs each control operation. Increase.
更进一步地,在上述步骤S5中48位传输数据中,由高到低排列顺序为:4位校验码、20位加密同步码、4位控制码、20位地址码;通过无线电向外发射时,是通过433MHz或315MHz的无线电。Furthermore, among the 48-bit transmission data in the above step S5, the sequence from high to low is: 4-bit check code, 20-bit encrypted synchronization code, 4-bit control code, 20-bit address code; , via a 433MHz or 315MHz radio.
更进一步地,在上述步骤S5中,地址码的验证对比是把接收到的20位地址码与接收终端中所保存的地址码进行比对,若比对一致,则表明接收到的地址码是有效地址码;在步骤S7中,在对同步码进行对比时,当前同步码须大于前一次控制操作时的同步码,当前控制操作方为有效;在步骤S9中,在对校验码进行对比时,当前校验码与接收到的校验码对比结果一致,当前控制操作方为有效。Furthermore, in the above step S5, the verification comparison of the address code is to compare the received 20-bit address code with the address code stored in the receiving terminal, if the comparison is consistent, it indicates that the received address code is Effective address code; in step S7, when comparing the synchronization code, the current synchronization code must be greater than the synchronization code during the previous control operation, and the current control operation is valid; in step S9, comparing the check code When the current check code is consistent with the received check code, the current control operation is valid.
更进一步地,在上述步骤S2、S6中的同步加密计算码,以及在步骤S3、S8中所述的校验计算码均由发射终端和接收终端通过匹配学习得到,由所述发射终端首次上电时随机生成。Furthermore, the synchronous encryption calculation codes in the above steps S2 and S6, and the verification calculation codes in the steps S3 and S8 are all obtained by the transmitting terminal and the receiving terminal through matching learning, and the transmitting terminal uploads the code for the first time. Randomly generated when powered on.
本发明还包括一种发射终端和接收终端的匹配学习方法,包括以下步骤:S1、发射终端生成20位地址码、4位学习码;S2、发射终端首次上电生成24位随机码;S3、取随机码高20位作为同步加密计算码,取低4位作为校验计算码;S4、发射终端将由20位地址码、4位学习码、20位同步加密计算码和4位校验计算码组成的48位传输数据,通过无线电向外发射;S5、接收终端外部触发进入匹配学习状态;S6、接收终端从接收到的无线传输数据中,取出20位地址码和4位学习码并分别进行验证对比;S7、接收终端从接收到的无线传输数据中,取出20位同步加密计算码和4位校验计算码;The present invention also includes a matching learning method for a transmitting terminal and a receiving terminal, comprising the following steps: S1. The transmitting terminal generates a 20-digit address code and a 4-digit learning code; S2. The transmitting terminal generates a 24-digit random code when powered on for the first time; S3. Take the upper 20 bits of the random code as the synchronous encryption calculation code, and take the lower 4 bits as the verification calculation code; S4, the transmitting terminal will use a 20-digit address code, a 4-digit learning code, a 20-digit synchronous encryption calculation code and a 4-digit verification calculation code The composed 48-bit transmission data is sent out through radio; S5, the receiving terminal is triggered externally to enter the matching learning state; S6, the receiving terminal takes out the 20-bit address code and 4-bit learning code from the received wireless transmission data and performs Verification comparison; S7. The receiving terminal extracts a 20-digit synchronous encryption calculation code and a 4-digit verification calculation code from the received wireless transmission data;
S8、收终端将接收到的地址码、加密计算码和校验计算码保存,用于正常控制操作时的地址比对、同步码解密计算和校验计算。S8. The receiving terminal saves the received address code, encrypted calculation code and check calculation code for address comparison, synchronization code decryption calculation and check calculation during normal control operation.
进一步地,在上述匹配学习方法的步骤S1中,4位学习码的具体数值是约定的用于发射终端进行匹配学习的指定数值;在步骤S2中,随机码生仅在发射终端首次生电时生成并保存,在以后的任何控制操作中,该随机码不再改变。Further, in step S1 of the above-mentioned matching learning method, the specific value of the 4-digit learning code is an agreed specified value for the transmitting terminal to perform matching learning; in step S2, the random code is generated only when the transmitting terminal is powered on for the first time. Generate and save, the random code will not be changed in any subsequent control operation.
更进一步地,在上述匹配学习方法的步骤S4中,发射的48位传输数据由高到低排列顺序为:4位校验计算码、20位同步加密计算码、4位学习码、20位地址码;通过无线电向外发射时,是通过433MHz或315MHz的无线电。Furthermore, in step S4 of the above-mentioned matching learning method, the transmitted 48-bit transmission data is arranged in the order from high to low: 4-bit verification calculation code, 20-bit synchronous encryption calculation code, 4-bit learning code, 20-bit address code; when it is transmitted by radio, it is through 433MHz or 315MHz radio.
更进一步地,在上述匹配学习方法的步骤S5中,接收终端外部触发进入匹配学习是通过外部触发按钮方式来实现的。Furthermore, in step S5 of the above matching learning method, the external trigger of the receiving terminal to enter the matching learning is realized by means of an external trigger button.
更进一步地,在上述匹配学习方法的步骤S6中,20位地址码的验证对比是把取出的地址码与接收终端中所保存的地址码进行比对,若所取出的地址码并未存在,则表明当前匹配学习操作有效;4位学习码的验证对比是把取出4位学习码与代表匹配学习操作的指定数值对比,若一致,则表明当前匹配学习操作有效。Furthermore, in the step S6 of the above-mentioned matching learning method, the verification comparison of the 20-digit address code is to compare the extracted address code with the address code stored in the receiving terminal, if the extracted address code does not exist, It indicates that the current matching learning operation is valid; the verification comparison of the 4-digit learning code is to compare the extracted 4-digit learning code with the specified value representing the matching learning operation. If they are consistent, it indicates that the current matching learning operation is valid.
与现有技术相比,本发明具有如下有益效果为:本发明采用24位固定码和24位滚动码的组合方式,形成48位的数据编码,通过基于433MHz或315MHz的无线收发系统进行数据传输,实现了电动门窗的无线控制。所传输的48位数据中,低24位数据采用了1527固定编码格式,对地址码和控制码进行编码,实现了与市场原有的固定码产品兼容;而高24位数据则是由20位的加密同步码和4位校验码组成的滚动编码数据。在滚动编码中,通过引入随机生成的20位同步加密计算码和4位校验计算码,对20位同步码进行加密,同时对同步码和同步加密计算码进行校验,从而大大提高了数据传输的安全性。Compared with the prior art, the present invention has the following beneficial effects: the present invention uses a combination of 24-bit fixed codes and 24-bit rolling codes to form 48-bit data encoding, and transmits data through a wireless transceiver system based on 433MHz or 315MHz , to realize the wireless control of electric doors and windows. Among the transmitted 48-bit data, the lower 24-bit data adopts the 1527 fixed encoding format to encode the address code and control code to achieve compatibility with the original fixed-code products in the market; while the upper 24-bit data is composed of 20-bit Rolling encoded data consisting of encrypted synchronization code and 4-digit check code. In rolling coding, by introducing a randomly generated 20-digit synchronous encryption calculation code and a 4-digit verification calculation code, the 20-digit synchronization code is encrypted, and at the same time the synchronization code and the synchronization encryption calculation code are verified, thereby greatly improving the data quality. Transmission Security.
附图说明Description of drawings
图1是本发明实施例中一种门窗控制的无线发射接收方法正常控制操作的流程图;Fig. 1 is a flow chart of the normal control operation of a wireless transmission and reception method for door and window control in an embodiment of the present invention;
图2是本发明实施例中发射终端和接收终端匹配学习的流程图。Fig. 2 is a flowchart of matching learning between a transmitting terminal and a receiving terminal in an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解,此处所描述的具体实施例仅是用于解释本发明,而非对本发明的限定。此外,还需说明的是,为了便于描述,附图中所示仅表达出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described here are only used to explain the present invention, rather than limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings show only some but not all structures related to the present invention.
本发明中一种门窗控制的无线发射接收方法正常控制操作的流程如图1所示,该方法通过由一个发射终端和一个接收终端组成的基于433MHz或315MHz无线传输的电动门窗无线控制系统来执行,具体包括如下步骤:The normal control operation flow of a wireless transmission and reception method for door and window control in the present invention is shown in Figure 1. The method is executed by a wireless control system for electric doors and windows based on 433MHz or 315MHz wireless transmission composed of a transmitting terminal and a receiving terminal. , including the following steps:
步骤S1、发射终端生成20位地址码、4位控制码和20位同步码。Step S1, the transmitting terminal generates a 20-bit address code, a 4-bit control code and a 20-bit synchronization code.
其中,20位地址码和4位控制码采用了1527固定编码格式,与市场通用的固定编码产品兼容。Among them, the 20-digit address code and the 4-digit control code adopt the 1527 fixed coding format, which is compatible with the fixed coding products commonly used in the market.
步骤S2、发射终端对20位同步码加1后,通过20位同步加密计算码进行同步加密计算,生成加密同步码。Step S2: After adding 1 to the 20-bit synchronization code, the transmitting terminal performs synchronization encryption calculation through the 20-bit synchronization encryption calculation code to generate an encryption synchronization code.
其中,同步码共20位,发射终端进行每一次控制操作同步码,由0至1048576逐渐增加。同步码加密计算所采用的同步加密计算码共20位,由所述发射终端首次上电时随机生成。同步码经过加密计算后,生成20位的加密同步码。Among them, the synchronization code has a total of 20 bits, and the synchronization code is gradually increased from 0 to 1048576 for each control operation performed by the transmitting terminal. The synchronization encryption calculation code used in the synchronization code encryption calculation has a total of 20 bits, and is randomly generated when the transmitting terminal is powered on for the first time. After the synchronization code is encrypted and calculated, a 20-digit encrypted synchronization code is generated.
步骤S3、发射终端根据校验计算码对20位同步码和20位同步加密计算码组成的40位数据进行校验计算,得到4位校验码。Step S3 , the transmitting terminal performs check calculation on the 40-bit data composed of the 20-bit synchronization code and the 20-bit synchronization encryption calculation code according to the check calculation code to obtain a 4-digit check code.
其中,对同步码和同步加密计算码进行校验计算所采用的4位校验计算码,由所述发射终端首次上电时随机生成。Wherein, the 4-digit verification calculation code used for the verification calculation of the synchronization code and the synchronization encryption calculation code is randomly generated when the transmitting terminal is powered on for the first time.
步骤S4、发射终端将由20位地址码、4位控制码、20位加密同步码和4位校验码组成的48位传输数据,通过无线电向外发射。Step S4, the transmitting terminal transmits the 48-bit transmission data composed of 20-bit address code, 4-bit control code, 20-bit encrypted synchronization code and 4-bit check code to the outside through radio.
其中,所发射的48位数据编码中,由高到低排列顺序为:4位校验码、20位加密同步码、4位控制码、20位地址码。Among them, among the transmitted 48-bit data codes, the sequence from high to low is: 4-bit check code, 20-bit encrypted synchronization code, 4-bit control code, and 20-bit address code.
步骤S5、接收终端从接收到的48位传输数据中,取出20位地址码和4位控制码,并对地址码进行验证对比。Step S5, the receiving terminal extracts the 20-bit address code and the 4-bit control code from the received 48-bit transmission data, and verifies and compares the address codes.
步骤S6、接收终端根据同步加密计算码对接收到的20位加密同步码进行解密得到20位当前同步码。Step S6, the receiving terminal decrypts the received 20-digit encrypted synchronization code according to the synchronization encrypted calculation code to obtain a 20-digit current synchronization code.
其中,加密同步码进行解密计算所采用的同步加密计算码,是由发射终端和接收终端通过匹配学习得到,是由所述发射终端首次上电时随机生成。Wherein, the synchronous encryption calculation code used for the decryption calculation of the encrypted synchronization code is obtained through matching learning between the transmitting terminal and the receiving terminal, and is randomly generated when the transmitting terminal is powered on for the first time.
步骤S7、接收终端将解密计算得到的当前同步码与前一次控制操作时的同步码进行对比。Step S7, the receiving terminal compares the current synchronization code obtained through decryption and calculation with the synchronization code in the previous control operation.
其中,当前同步码须大于前一次控制操作时的同步码,当前控制操作方为有效。接收终端首次上电时,其所保存的前一次控制操作的同步码初始值取为0。Wherein, the current synchronization code must be greater than the synchronization code of the previous control operation, and the current control operation is valid. When the receiving terminal is powered on for the first time, the initial value of the synchronization code of the previous control operation saved by it is set to 0.
步骤S8、接收终端根据校验计算码对20位当前同步码和20位同步加密计算码进行校验计算,得到当前校验码。Step S8, the receiving terminal performs check calculation on the 20-digit current synchronization code and the 20-digit synchronization encrypted calculation code according to the check calculation code to obtain the current check code.
其中,校验计算所采用的校验计算码,是由发射终端和接收终端通过匹配学习得到,是由所述发射终端首次上电时随机生成。Wherein, the check calculation code used in the check calculation is obtained through matching learning between the transmitting terminal and the receiving terminal, and is randomly generated when the transmitting terminal is powered on for the first time.
步骤S9、接收终端将校验计算得到的当前校验码与接收到的4位校验码进行对比。In step S9, the receiving terminal compares the current check code obtained through check calculation with the received 4-digit check code.
其中,当前校验码与接收到的校验码对比结果一致,当前控制操作方为有效。Wherein, the comparison result of the current check code and the received check code is consistent, and the current control operation is valid.
步骤S10、接收终端根据地址码、同步码和校验码的验证对比结果,确定当前控制操作是否有效,若有效则执行控制操作,并保存当前同步码。Step S10, the receiving terminal determines whether the current control operation is valid according to the verification and comparison results of the address code, synchronization code and check code, and if valid, executes the control operation and saves the current synchronization code.
其中,地址码的验证对比操作,是将接收到的20位地址码与所述接收终端中所保存的地址码进行比对,若比对一致,则表明接收到的地址码是有效地址码。Wherein, the verification and comparison operation of the address code is to compare the received 20-digit address code with the address code stored in the receiving terminal. If the comparison is consistent, it indicates that the received address code is a valid address code.
其中,通过地址码、同步码和校验码的验证对比,而表明所述接收终端接收到的操作码对应的控制操作有效,执行对的控制操作。Wherein, by verifying and comparing the address code, the synchronization code and the check code, it is shown that the control operation corresponding to the operation code received by the receiving terminal is valid, and the corresponding control operation is executed.
其中,若当前的控制操作有效,则将当前同步码作为前一次控制操作的同步码保存到所述接收终端中,以便下一次控制操作时,用于同步码的有效性验证。Wherein, if the current control operation is valid, the current synchronization code is stored in the receiving terminal as the synchronization code of the previous control operation, so as to be used for verification of the validity of the synchronization code during the next control operation.
本无线发射接收方法正常控制操作的技术方案,通过基于433MHz或315MHz的无线收发系统所传输的48位数据中,低24位数据采用了1527固定编码格式,对地址码和控制码进行编码,实现了与市场原有的固定码产品兼容;而高24位数据则是由20位的加密同步码和4位校验码组成的滚动编码数据,且在对20位同步码进行加密处理的同时,对同步码和同步加密计算码进行校验,这样,大大降低了系统的重码率,提高了系统数据传输的安全性。In the technical scheme of the normal control operation of the wireless transmission and reception method, among the 48-bit data transmitted by the wireless transceiver system based on 433MHz or 315MHz, the lower 24-bit data adopts a 1527 fixed encoding format, and the address code and the control code are encoded to realize In order to be compatible with the original fixed code products in the market; while the high 24-bit data is rolling coded data composed of a 20-digit encrypted synchronization code and a 4-digit check code, and while encrypting the 20-digit synchronization code, The synchronization code and the synchronization encrypted calculation code are verified, thus greatly reducing the repetition rate of the system and improving the security of the system data transmission.
本发明中发射终端和接收终端匹配学习方法的流程图如图2所示,该方法通过由一个发射终端和一个接收终端组成的基于433MHz或315MHz无线传输的电动门窗无线控制系统来执行,具体包括如下步骤:The flow chart of the matching learning method between the transmitting terminal and the receiving terminal in the present invention is shown in Figure 2. The method is implemented by a wireless control system for electric doors and windows based on 433MHz or 315MHz wireless transmission composed of a transmitting terminal and a receiving terminal, specifically including Follow the steps below:
步骤S1、发射终端生成20位地址码、4位学习码。Step S1, the transmitting terminal generates a 20-digit address code and a 4-digit learning code.
其中,4位学习码的具体数值,是约定的用于发射终端进行匹配学习的指定数值。Wherein, the specific value of the 4-digit learning code is an agreed specified value for the transmitting terminal to perform matching learning.
步骤S2、发射终端首次上电生成24位随机码。Step S2, the transmitting terminal is powered on for the first time to generate a 24-bit random code.
其中,随机码生仅在所述发射终端首次生电时生成并保存,在以后的任何控制操作中,该随机码不再改变。Wherein, the random code is generated and saved only when the transmitting terminal is powered on for the first time, and the random code will not be changed in any subsequent control operations.
步骤S3、取随机码高20位作为同步加密计算码,取低4位作为校验计算码。Step S3, take the upper 20 bits of the random code as the synchronous encryption calculation code, and take the lower 4 bits as the check calculation code.
其中,发射终端取得同步加密计算码和校验计算码后,进行保存,在以后的任何控制操作中,同步加密计算码和校验计算码不再改变。Wherein, after the transmitting terminal obtains the synchronous encryption calculation code and the verification calculation code, it is stored, and in any subsequent control operation, the synchronous encryption calculation code and the verification calculation code will not be changed.
步骤S4、发射终端将由20位地址码、4位学习码、20位同步加密计算码和4位校验计算码组成的48位传输数据,通过无线电向外发射。Step S4, the transmitting terminal transmits the 48-bit transmission data composed of 20-digit address code, 4-digit learning code, 20-digit synchronous encryption calculation code and 4-digit verification calculation code to the outside through radio.
其中,所发射的48位数据编码中,由高到低排列顺序为:4位校验计算码、20位同步加密计算码、4位学习码、20位地址码。Among them, among the transmitted 48-bit data codes, the sequence from high to low is: 4-bit verification calculation code, 20-bit synchronous encryption calculation code, 4-bit learning code, and 20-bit address code.
步骤S5、接收终端外部触发进入匹配学习状态。Step S5, receiving the external trigger of the terminal to enter the matching learning state.
其中,在进行匹配学习操作前,接收终端需通按钮等外部触发方式,触发接收终端进行匹配学习状态。Wherein, before performing the matching learning operation, the receiving terminal needs to use an external trigger such as a button to trigger the receiving terminal to enter the matching learning state.
步骤S6、接收终端从接收到的无线传输数据中,取出20位地址码和4位学习码并分别进行验证对比。Step S6, the receiving terminal extracts the 20-digit address code and the 4-digit learning code from the received wireless transmission data, and performs verification and comparison respectively.
其中,取出的地址码与所述接收终端中所保存的地址码进行比对,若所取出的地址码并未存在,则表明当前匹配学习操作有效;对取出4位学习码与代表匹配学习操作的指定数值对比,若一致,则表明当前匹配学习操作有效。Wherein, the address code taken out is compared with the address code stored in the receiving terminal, if the address code taken out does not exist, it indicates that the current matching learning operation is valid; for taking out the 4-digit learning code and representing the matching learning operation If the specified value is consistent, it indicates that the current matching learning operation is valid.
步骤S7、接收终端从接收到的无线传输数据中,取出20位同步加密计算码和4位校验计算码。Step S7, the receiving terminal extracts a 20-bit synchronous encryption calculation code and a 4-digit verification calculation code from the received wireless transmission data.
步骤S8、收终端将接收到的地址码、加密计算码和校验计算码保存,用于正常控制操作时的地址比对、同步码解密计算和校验计算。Step S8, the receiving terminal saves the received address code, encrypted calculation code and check calculation code for address comparison, synchronization code decryption calculation and check calculation during normal control operation.
本发射终端和接收终端匹配学习的技术方案,利用特定的匹配学习操作,将同步加密计算码和校验计算码,从发射终端发射传输给接收终端,避免了在频繁的正常控制操作中出现同步加密计算码和校验计算码泄漏的风险;另一方面,20位同步加密计算码和4位校验计算码,由发射终端首次上电时随机生成,从而避免了同步加密计算码和校验计算码人为泄漏的风险。因此,从同步加密计算码和校验计算码生成和管理角度看,数据传输的安全性得到了大大提高。The technical scheme of matching learning between the transmitting terminal and the receiving terminal uses a specific matching learning operation to transmit the synchronous encryption calculation code and the check calculation code from the transmitting terminal to the receiving terminal, avoiding synchronization in frequent normal control operations The risk of leakage of encryption calculation code and verification calculation code; on the other hand, the 20-digit synchronous encryption calculation code and 4-digit verification calculation code are randomly generated when the transmitting terminal is powered on for the first time, thus avoiding the need for synchronous encryption calculation code and verification code. The risk of artificial leakage of computing code. Therefore, from the perspective of synchronous encryption calculation code and check calculation code generation and management perspective, the security of data transmission has been greatly improved.
注意,上述仅为本发明的较佳实施例及所运用的技术原理。本领域技术人员会理解,本发明不限于以上所述的特定实施例,对本领域技术人员而言能够进行各种明显的重新调整、变化和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多的其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described above, and various obvious readjustments, changes and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope of the invention is determined by the scope of the appended claims.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210582066.0A CN114978429B (en) | 2022-05-26 | 2022-05-26 | Wireless transmitting and receiving method for door and window control |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210582066.0A CN114978429B (en) | 2022-05-26 | 2022-05-26 | Wireless transmitting and receiving method for door and window control |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114978429A CN114978429A (en) | 2022-08-30 |
CN114978429B true CN114978429B (en) | 2023-06-30 |
Family
ID=82955576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210582066.0A Active CN114978429B (en) | 2022-05-26 | 2022-05-26 | Wireless transmitting and receiving method for door and window control |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114978429B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5369706A (en) * | 1993-11-05 | 1994-11-29 | United Technologies Automotive, Inc. | Resynchronizing transmitters to receivers for secure vehicle entry using cryptography or rolling code |
CN103366476A (en) * | 2013-07-03 | 2013-10-23 | 郑玉龙 | Wireless remote control 626 alarm |
CN107492175A (en) * | 2017-08-25 | 2017-12-19 | 深圳市光域物联科技有限公司 | Visible ray safety door latch, system and method for unlocking |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA1258884A (en) * | 1985-11-07 | 1989-08-29 | Craig F. Szczutkowski | Method and apparatus for transceiving cryptographically encoded digital data |
CN101866534B (en) * | 2010-01-29 | 2013-03-13 | 中南大学 | Automobile remote-control key-free door control identity authentication method |
CN104464057A (en) * | 2014-12-17 | 2015-03-25 | 江苏合智同创电子科技有限公司 | Hopping encoding method for car entrance guard system |
CN105376003A (en) * | 2015-10-12 | 2016-03-02 | 四川九鼎智远知识产权运营有限公司 | Audio communication control code encryption method and encryption system |
CN107331142A (en) * | 2017-08-07 | 2017-11-07 | 普诚创智(成都)科技有限公司 | Remote control coding/decoding system |
CN107749795B (en) * | 2017-10-13 | 2021-03-30 | 车展交通器材(台山)有限公司 | Automobile remote control method based on rolling code secondary encryption |
CN110148292A (en) * | 2019-06-28 | 2019-08-20 | 湖南纳雷科技有限公司 | A kind of wireless remote control decoding method and coding and decoding device |
-
2022
- 2022-05-26 CN CN202210582066.0A patent/CN114978429B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5369706A (en) * | 1993-11-05 | 1994-11-29 | United Technologies Automotive, Inc. | Resynchronizing transmitters to receivers for secure vehicle entry using cryptography or rolling code |
CN103366476A (en) * | 2013-07-03 | 2013-10-23 | 郑玉龙 | Wireless remote control 626 alarm |
CN107492175A (en) * | 2017-08-25 | 2017-12-19 | 深圳市光域物联科技有限公司 | Visible ray safety door latch, system and method for unlocking |
Also Published As
Publication number | Publication date |
---|---|
CN114978429A (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111837165B (en) | Safety system for movable barrier operator | |
CN101866534B (en) | Automobile remote-control key-free door control identity authentication method | |
CN106056713B (en) | A kind of remote-authorization method of coded lock | |
US20180159831A1 (en) | Pairwise temporal key creation for secure networks | |
CN110830396B (en) | A kind of IMSI privacy protection method and device based on physical layer key | |
CN111669730B (en) | Physical layer key generation method and updating method for one-to-one proximity communication | |
CN107914665B (en) | Vehicle remote safety remote control system and remote control method | |
US20170072875A1 (en) | Data communication method for vehicle, electronic control unit and system thereof | |
CN105978684B (en) | Safe communication system and method based on open Limited Feedback and dynamic matrix coding | |
CN104219252A (en) | Coding error correction based secret key forward direction consistency calibration method | |
CN107231215B (en) | A Secure Transmission Method Based on Polar Codes in Parallel Channels | |
CN105187203B (en) | Shared key method for building up based on received signal strength between a kind of wireless device | |
CN116669022A (en) | Data safety transmission method for wireless communication system | |
AU2010284792B2 (en) | Method and apparatus for reducing overhead for integrity check of data in wireless communication system | |
CN108155996B (en) | Smart home security communication method based on family channel | |
CN111294353B (en) | An IMSI/SUPI physical layer key protection method without channel estimation | |
CN114978429B (en) | Wireless transmitting and receiving method for door and window control | |
US7624271B2 (en) | Communications security | |
CN102664710A (en) | Data integrity protection method for wireless channel | |
CN106535178B (en) | Access layer and Non-Access Stratum key safety insulating device and its method | |
US7774677B2 (en) | Method and device for transmitting information with verification of unintentional and intentional transmission errors | |
CN104883359B (en) | Safety of physical layer information transferring method based on relevant coding with ARQ combined codings | |
CN107749795B (en) | Automobile remote control method based on rolling code secondary encryption | |
CN108449333A (en) | Smart Home System Based on Family Channel Security Communication Protocol | |
WO2022251558A1 (en) | Security system for a moveable barrier operator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |