CN103532583A - Automatic code matching method for wireless transceivers - Google Patents

Automatic code matching method for wireless transceivers Download PDF

Info

Publication number
CN103532583A
CN103532583A CN201310493934.9A CN201310493934A CN103532583A CN 103532583 A CN103532583 A CN 103532583A CN 201310493934 A CN201310493934 A CN 201310493934A CN 103532583 A CN103532583 A CN 103532583A
Authority
CN
China
Prior art keywords
random
transmitting terminal
code
receiving terminal
instruction
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.)
Granted
Application number
CN201310493934.9A
Other languages
Chinese (zh)
Other versions
CN103532583B (en
Inventor
徐康
胡韬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi English St Microelectronics Ltd
Original Assignee
Wuxi English St Microelectronics Ltd
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 Wuxi English St Microelectronics Ltd filed Critical Wuxi English St Microelectronics Ltd
Priority to CN201310493934.9A priority Critical patent/CN103532583B/en
Publication of CN103532583A publication Critical patent/CN103532583A/en
Application granted granted Critical
Publication of CN103532583B publication Critical patent/CN103532583B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides an automatic code matching method for wireless transceivers. Mainly, a transmitting end and a receiving end are adopted to carry out handshake response mutually so as to ensure mutual connectivity; the transmitting end and the sending end respectively generate random numbers; the respectively generated random numbers are merged according to rules appointed by both parties to generate a unique random code so as to ensure uniqueness of the random code. According to the automatic code matching method, any one pair of wireless transceivers can correspond to each other and do not interfere with each other. In the method, repeated handshake response of the transmitting end and the receiving end reduces an error rate generated by code matching. The transmitting end and the receiving end respectively have the own random numbers, correspond to each other, are not interfered by other wireless devices and also do not interfere other wireless devices.

Description

Wireless transceiver automatically to code method
Technical field
The present invention relates to wireless communication technique, especially a kind of wireless transceiver to code method.
Background technology
Wireless transceiver mainly contains transmitting terminal and receiving terminal (as the remote of wireless mouse/keyboard and dongle), and transmitting terminal is mainly to send data function, and receiving terminal is mainly to receive data function.Thereby affect properties of product for fear of the mutual interference of more than one pair of wireless transmitter phase, so just produced code technology.Code is mainly contained to two kinds of methods, a kind of method is manually to code, this method needs artificial participation after transceiver is produced, manually (as wireless mouse/keyboard is pressed combination button or software approach) is by random code value write non-volatile memory (as EEPROM), and manually to one of them damage in a pair of device after code, another one will can continue to use to code again, will expend extra cost like this, uses underaction.
Another kind method is automatically to code, and transmitting terminal produces identical random code value separately with receiving terminal, and is stored in register, then adopts this random code value to receive and dispatch communication.With manually code is compared, transceiver without extra operation, just can automatically complete mutual communication to code after production, automatically to code method, can reduce widely unnecessary cost, uses simply flexibly, improves the efficiency of work.
How reasonable in design is to realize the wireless transceiver key to code technology automatically to code method automatically.
Summary of the invention
The object of the present invention is to provide a kind of low cost, wireless transceiver rapidly and efficiently automatically to code method, thereby thereby can avoid the mutual interference of more than one pair of wireless transceiver phase to affect properties of product.The technical solution used in the present invention is:
Automatically to a code method, comprise the steps:
Step 1: after transmitting terminal and receiving terminal are started working, intiating radio block configuration separately; Transmitting terminal sends the first instruction, enters wait acknowledge state; If receiving terminal within a certain period of time (Millisecond) is received the first instruction, send and reply, and generate the second random number of N2 byte, otherwise will continue to receive judgement; If transmitting terminal within a certain period of time (Millisecond) is received this answer signal, generate the first random number of N1 byte, otherwise will resend the first instruction; Receiving terminal now generates the second random number of N2 byte;
Step 2: the second instruction sends the first random number generating for transmitting terminal, if receiving terminal within a certain period of time (Millisecond) receive the second instruction, send and reply, and collect the first random number that transmitting terminal sends; Otherwise receiving terminal will be got back to and receive the first command status;
If transmitting terminal within a certain period of time (Millisecond) receives and reply, enter and wait for and receive the 3rd command status, otherwise will get back to transmission the first command status;
Step 3: it is the 3rd random number that receiving terminal be take the compatible rule merging of transmitting terminal and receiving terminal agreement by the first random number and the second random number, and with the 3rd instruction, the 3rd random number is sent to transmitting terminal; If transmitting terminal within a certain period of time (Millisecond) is received the 3rd instruction, collect the 3rd random number; Otherwise will get back to, send the first command status;
Step 4: transmitting terminal, after receiving the 3rd random number, is used with rule identical in step 3 (rule of transmitting terminal and receiving terminal agreement) and judges that whether the 3rd random number is effective, if effectively will send and reply to receiving terminal, and using the 3rd random number as random code; If invalid, will get back to and send the first command status;
If receiving terminal within a certain period of time (Millisecond) receives that receiving terminal is using the 3rd random number as random code from the replying of transmitting terminal; Otherwise receiving terminal will be got back to and receive the first command status;
Step 5: transmitting terminal is deposited random code, revises the configuration of wireless module; Receiving terminal is also deposited random code, revises the configuration of wireless module.
This mainly adopts transmitting terminal and receiving terminal mutually to shake hands and reply to code method automatically, guarantees mutual connectivity, utilizes the random number of each self-generating to merge and produce a unique random code according to the rule of both sides' agreement, guarantees the uniqueness of random code.Can allow arbitrarily a pair of wireless transceiver corresponding one by one, not interfere with each other mutually.
Advantage of the present invention:
1. transmitting terminal and receiving terminal repeatedly shakes hands and replys, the error rate that reduction produces code.
2. transmitting terminal and receiving terminal respectively have self random number, form one to one, are not subject to the interference of other wireless devices, also do not disturb other wireless devices.
3. save hardware and processing expense, reduce production costs.
Accompanying drawing explanation
Fig. 1 is flow chart of the present invention.
Embodiment
Below in conjunction with concrete drawings and Examples, the invention will be further described.
Wireless transceiver mainly contains transmitting terminal and receiving terminal.
As shown in Figure 1: a kind of wireless transceiver automatically to code method, comprise the steps:
1) after transmitting terminal and receiving terminal are started working, intiating radio block configuration separately; Transmitting terminal sends the first instruction, enters wait acknowledge state; If receiving terminal within a certain period of time (Millisecond) is received the first instruction, send and reply, and generate the second random number of N2 byte, otherwise will continue to receive judgement; If transmitting terminal within a certain period of time (Millisecond) is received this answer signal, generate the first random number of N1 byte, otherwise will resend the first instruction.The N1 of a first random number byte can be got 2~3 bytes, and the N2 of a second random number byte can be got 2~3 bytes.
2) the second instruction sends the first random number generating for transmitting terminal, if receiving terminal within a certain period of time (Millisecond) receive the second instruction, send and reply, and collect the first random number that transmitting terminal sends; Otherwise receiving terminal will be got back to and receive the first command status;
If transmitting terminal within a certain period of time (Millisecond) receives and reply, enter and wait for and receive the 3rd command status, otherwise will get back to transmission the first command status.
3) the first random number and the second random number be take to the compatible rule merging of transmitting terminal and receiving terminal agreement is the 3rd random number to receiving terminal, and with the 3rd instruction, the 3rd random number is sent to transmitting terminal; If transmitting terminal within a certain period of time (Millisecond) is received the 3rd instruction, collect the 3rd random number; Otherwise will get back to, send the first command status.
4) transmitting terminal, after receiving the 3rd random number, is used with rule identical in step 3 (rule of transmitting terminal and receiving terminal agreement) and judges that whether the 3rd random number is effective, if effectively will send and reply to receiving terminal, and using the 3rd random number as random code; If invalid, will get back to and send the first command status;
If receiving terminal within a certain period of time (Millisecond) receives that receiving terminal is using the 3rd random number as random code from the replying of transmitting terminal; Otherwise receiving terminal will be got back to and receive the first command status.
5) transmitting terminal and receiving terminal have now had a random code, and two random codes are identical in theory.Transmitting terminal is deposited random code, revises the configuration of wireless module; Receiving terminal is also deposited random code, revises the configuration of wireless module.Now wireless module has identical random code configuration, so far code is completed.

Claims (3)

  1. Wireless transceiver automatically to a code method, it is characterized in that, comprise the steps:
    Step 1: after transmitting terminal and receiving terminal are started working, intiating radio block configuration separately; Transmitting terminal sends the first instruction, enters wait acknowledge state; If receiving terminal is received the first instruction within a certain period of time, send and reply, and generate the second random number of N2 byte, otherwise will continue to receive judgement; If transmitting terminal is received this answer signal within a certain period of time, generate the first random number of N1 byte, otherwise will resend the first instruction;
    Step 2: transmitting terminal sends the first random number generating with the second instruction, if receiving terminal is received the second instruction within a certain period of time, sends and replys, and collect the first random number that transmitting terminal sends; Otherwise receiving terminal will be got back to and receive the first command status;
    If transmitting terminal is received and is replied within a certain period of time, enter and wait for reception the 3rd command status, otherwise will get back to, send the first command status;
    Step 3: it is the 3rd random number that receiving terminal be take the compatible rule merging of transmitting terminal and receiving terminal agreement by the first random number and the second random number, and with the 3rd instruction, the 3rd random number is sent to transmitting terminal; If transmitting terminal is received the 3rd instruction within a certain period of time, collect the 3rd random number; Otherwise will get back to, send the first command status;
    Step 4: transmitting terminal after receiving the 3rd random number, use whether effective with rule judgment the 3rd random number identical in step 3, if effectively will send and reply to receiving terminal, and using the 3rd random number as random code; If invalid, will get back to and send the first command status;
    If receiving terminal receives that receiving terminal is using the 3rd random number as random code from the replying of transmitting terminal within a certain period of time; Otherwise receiving terminal will be got back to and receive the first command status;
    Step 5: transmitting terminal is deposited random code, revises the configuration of wireless module; Receiving terminal is also deposited random code, revises the configuration of wireless module.
  2. Wireless transceiver as claimed in claim 1 automatically to code method, it is characterized in that, the length of described the first random number is 2~3 bytes.
  3. Wireless transceiver as claimed in claim 1 automatically to code method, it is characterized in that, the length of described the second random number is 2~3 bytes.
CN201310493934.9A 2013-10-18 2013-10-18 Automatic code matching method for wireless transceivers Active CN103532583B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310493934.9A CN103532583B (en) 2013-10-18 2013-10-18 Automatic code matching method for wireless transceivers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310493934.9A CN103532583B (en) 2013-10-18 2013-10-18 Automatic code matching method for wireless transceivers

Publications (2)

Publication Number Publication Date
CN103532583A true CN103532583A (en) 2014-01-22
CN103532583B CN103532583B (en) 2015-03-18

Family

ID=49934316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310493934.9A Active CN103532583B (en) 2013-10-18 2013-10-18 Automatic code matching method for wireless transceivers

Country Status (1)

Country Link
CN (1) CN103532583B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105007371A (en) * 2015-06-25 2015-10-28 惠州Tcl移动通信有限公司 Mutual identification processing method and system for mobile terminals based on wireless communication
CN105871422A (en) * 2015-01-22 2016-08-17 科沃斯机器人有限公司 Wireless code matching method used between transmitting end and receiving end and self-moving adsorption system
CN112460813A (en) * 2020-10-29 2021-03-09 华帝股份有限公司 Control method for wireless remote control of gas water heater

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156993A (en) * 2007-10-19 2008-04-09 中山市泰宝电子科技有限公司 An encoding decoding method of electric control toy and its electric control toy
CN101547525A (en) * 2008-03-26 2009-09-30 上海国皓电子有限公司 Method for automatically correcting codes of wireless transceiver
US20130201987A1 (en) * 2010-08-06 2013-08-08 Beijing Qiantang Network Technology Company, Ltd. Service communication method and system for access network apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101156993A (en) * 2007-10-19 2008-04-09 中山市泰宝电子科技有限公司 An encoding decoding method of electric control toy and its electric control toy
CN101547525A (en) * 2008-03-26 2009-09-30 上海国皓电子有限公司 Method for automatically correcting codes of wireless transceiver
US20130201987A1 (en) * 2010-08-06 2013-08-08 Beijing Qiantang Network Technology Company, Ltd. Service communication method and system for access network apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871422A (en) * 2015-01-22 2016-08-17 科沃斯机器人有限公司 Wireless code matching method used between transmitting end and receiving end and self-moving adsorption system
CN105871422B (en) * 2015-01-22 2018-08-24 科沃斯机器人股份有限公司 For wireless between transmitting terminal and receiving terminal to code method and from mobile adsorption system
CN105007371A (en) * 2015-06-25 2015-10-28 惠州Tcl移动通信有限公司 Mutual identification processing method and system for mobile terminals based on wireless communication
CN105007371B (en) * 2015-06-25 2018-12-07 惠州Tcl移动通信有限公司 Mutual identifying processing method and system between mobile terminal based on wireless communication
CN112460813A (en) * 2020-10-29 2021-03-09 华帝股份有限公司 Control method for wireless remote control of gas water heater

Also Published As

Publication number Publication date
CN103532583B (en) 2015-03-18

Similar Documents

Publication Publication Date Title
CN103532583B (en) Automatic code matching method for wireless transceivers
CN101119133A (en) 2.4GHz frequency hopping technique based one-to-many fast synchronization method
CN103561032B (en) The method of Modbus device network communication under ICP/IP protocol
CN101267291A (en) Method, wireless sensor network system and synchronization device for realizing synchronization collection
CN103178964A (en) QR-code-based (quick response code-based) key exchange method for intelligent terminal authentication
CN105101370A (en) Data connection method and device, and WIFI module
CN104410950A (en) Data sharing method, device and system
CN104717762A (en) Pairing method, primary terminal and slave terminal of wireless communication device
WO2008134763B1 (en) Mobile access point for ad hoc network
CN110109380A (en) A kind of time control method, timing control system, gateway and readable storage medium storing program for executing
CN203387692U (en) Wireless gateway equipment capable of data conversion of ZigBee signal with Wi-Fi signal
CN201839449U (en) Body sensor network expanding device with mobile intelligent terminal
CN205453681U (en) Thing networking zigbee radio frequency module
CN103327191B (en) Based on ZigBee-network coherent system and the mobile phone mobile monitor method of voice communication
CN203466832U (en) NFC-based dynamic token system
CN203039729U (en) Information feedback system based on NFC and cloud technology
CN203884002U (en) Wireless multipath data integrated controller
US10212576B2 (en) Near field communication device
CN104202064A (en) Data transmission module and method based on GPRS network
CN205106604U (en) Piece is worn to intelligence and a system is worn to intelligence
CN203720900U (en) Conversion equipment and electronic lock control system
CN103618564A (en) Method for unvarnished transmission of state of input/output (IO) port by using Bluetooth L2CAP (Logical Link Control and Adaptation Layer Protocol) connectionless channel
Kuchta et al. Smart platform for wireless communication-Case study
Chen et al. uSD card: a plug&play solution for mobile device to access wireless sensor networks
CN102724774A (en) Communication module, communication equipment and application method thereof

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model