CN109727438A - A kind of method that sequence number interacts between remote controler and host - Google Patents

A kind of method that sequence number interacts between remote controler and host Download PDF

Info

Publication number
CN109727438A
CN109727438A CN201811598327.8A CN201811598327A CN109727438A CN 109727438 A CN109727438 A CN 109727438A CN 201811598327 A CN201811598327 A CN 201811598327A CN 109727438 A CN109727438 A CN 109727438A
Authority
CN
China
Prior art keywords
remote controler
host
sequence number
signal
interacts
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
CN201811598327.8A
Other languages
Chinese (zh)
Other versions
CN109727438B (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.)
ZHEJIANG SHEEN TECHNOLOGY Co Ltd
Original Assignee
ZHEJIANG SHEEN TECHNOLOGY Co 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 ZHEJIANG SHEEN TECHNOLOGY Co Ltd filed Critical ZHEJIANG SHEEN TECHNOLOGY Co Ltd
Priority to CN201811598327.8A priority Critical patent/CN109727438B/en
Publication of CN109727438A publication Critical patent/CN109727438A/en
Application granted granted Critical
Publication of CN109727438B publication Critical patent/CN109727438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of control methods.Purpose is to provide a kind of method that sequence number interacts between remote controler and host, to realize that remote controler and host carry out information exchange correspondingly, so that solving remote controler is possible to the case where operating multiple main frames simultaneously.Technical solution is: a kind of method that sequence number interacts between remote controler and host, sequentially includes the following steps: burning one 16 different bit sequence numbers in the 1) chip of each remote controler, also burning one 16 different bit sequence numbers in the chip of each host;2) remote controler is sent with " 0x03 " order with code signal to host, and host stores the sequence number of remote controler after receiving, then returning to remote controler with code signal by the new sequence number order with " 0x83 " composition;3) what remote controler received that host sends back to sends a command signal and gives host acknowledgement successful matching with code signal after carrying out respective stored.

Description

A kind of method that sequence number interacts between remote controler and host
Technical field
The present invention relates to a kind of control method, the method that specifically sequence number interacts between remote controler and host.
Background technique
With the fast development of building cause and the speed-raising of scientific and technological progress, the various electronic products using remote control control are not It is disconnected to emerge in large numbers.When realizing one-to-one correspondence control between remote controler and host, need remote controler that unique sequence numbers are first sent to host, Host stores the sequence number of remote controler after receiving;When then working normally, host compares the sequence number of remote controller signal, To deserved upper just reception information and handle.Above-mentioned mode there are one the disadvantage is that: same remote controler and multiple main frames pairing Afterwards, a possibility that operating multiple main frames simultaneously there are a remote controler.This just brings certain accident potential.
Summary of the invention
The purpose of the present invention is overcoming deficiency existing for above-mentioned background technique, sequence between a kind of remote controler and host is provided Number interactive method, to realize that remote controler and host carry out information exchange correspondingly, so that solving remote controler is possible to same When operation multiple main frames the case where.
Present invention provide the technical scheme that
A kind of method that sequence number interacts between remote controler and host, sequentially includes the following steps:
1) burning one 16 different bit sequence numbers in the chip of each remote controler, also burning one in the chip of each host A 16 different bit sequence numbers;
2) remote controler is sent with " 0x03 " order with code signal to host, host receive after by the sequence number of remote controler It is stored, then returning to remote controler with code signal by the new sequence number order with " 0x83 " composition;
3) what remote controler received that host sends back to sends a command signal to host after carrying out respective stored with code signal Confirm successful matching;
4) when normal communication, remote controler sends a signal to host, and host examines the signal received and the sequence number of storage It tests, after fitting through, then carries out the processing of signal.
In the step 3), remote controler only handles first signal from host, and what subsequent other hosts were sent matches code Signal is disregarded.
The remote controler is all made of A7105 radio-frequency module with host and is communicated;The A7105 radio-frequency module side of being configured to receive Formula or sending method, a moment can only use one mode.
In the step 2), remote controler, which sends the format with code signal, is:
Wherein the content of command byte filling is 0x03.
In the step 2), host response is to the format of remote controler information:
Wherein the content of command byte filling is 0x83.
In the step 3), the format that remote controler sends command signal is:
Wherein the content of command byte filling is 0x01.
Before code, remote controler is in transmission state, and mainboard is in reception state.
The beneficial effects of the present invention are:
1, the present invention forms new sequence number as common communication by the way that the sequence number of remote controler and host to be combined with each other Identifier.To realize remote controler and the one-to-one control of host, eliminates a remote controler while operating multiple main frames Possibility eliminates accident potential.
2, remote controler and host can be matched flexibly, and after successful matching, pairing before ceases to be in force automatically.
Detailed description of the invention
Fig. 1 is the schematic diagram that remote controler is transported to code signal to host in the present invention.
Fig. 2 is that host sends out pairing signal to the schematic diagram of remote controler in the present invention.
Fig. 3 is that remote controler is transported to the schematic diagram for recognizing signal to host in the present invention.
Fig. 4 is normal operating condition schematic diagram in the present invention.
Specific embodiment
With reference to embodiments, the invention will be further described.
The present invention is carried out according to following steps:
One, the burning sequence number inside remote controller chip
The chip (recommend select auspicious Sa R7F0C001) of remote controler is in burning program, the address portion 0x3bfe in the chip Burned 16 bit sequence number.
Programming method is as follows:
Sequence number is manually entered, and after a piece of chip of burning, the increased amount of sequence number is controlled by the value of increment control algorithm.
Citing: starting sequence number inputs 0x0000, and increment control algorithm inputs 0x01, and initial address inputs 0x3bfe.
Start burning, after 0x0000 is burnt to first chip interior 0x3bfe, sequence number increases to 0x0001;
0x0001 is burnt to second chip interior 0x3bfe by burning again, and sequence number increases to 0x0002;
It circuits sequentially, when Serial No. 0xfffe, burning is completed;
If need to continue burning, in order to avoid 0xffff, sequence number manually re-enters 0x0000.
2, the burning sequence number inside host chip
When host chip (preferably auspicious Sa R7F0C905) burning program, burned 16 bit sequence in the address portion 0xbbfe in the chip Number.
Programming method is as follows:
Sequence number is manually entered, and after a piece of chip of burning, the increased amount of sequence number is controlled by the value of increment control algorithm.
Citing: starting sequence number inputs 0x0000, and increment control algorithm inputs 0x01, and initial address inputs 0xbbfe.
Start burning, after 0x0000 is burnt to first chip interior 0xbbfe, sequence number increases to 0x0001;
0x0001 is burnt to second chip interior 0xbbfe by burning again, and sequence number increases to 0x0002;
It circuits sequentially, when Serial No. 0xfffe, burning is completed;
If need to continue burning, in order to avoid 0xffff, sequence number manually re-enters 0x0000.
Two, remote controler and host are all made of A7105 radio-frequency module and are communicated (existing normal mode).
A7105 radio-frequency module is configured to receive mode or sending method, and a moment can only use one mode.
Remote controler needs sequence number consistent with host, could normal pairing work.
These are the prior art.
Three, remote controler and host match code process:
1) remote controler communicates the format for sending information to mainboard:
2) format of the host response to remote controler information:
3) match code
Remote controler single-chip microcontroller at the time of initialization, 16 bit sequences of burning is read out from the address chip interior 0x3bfe Number, and most-significant byte and least-significant byte are splitted into, then remote controler sequence number most-significant byte and remote controler sequence number least-significant byte are stored to remote controler In the temporary storage of single-chip microcontroller.16 bit sequence number of host is read out from the EEPROM inside single-chip microcontroller (if do not matched before Code is crossed, then reading is 0xffff), and most-significant byte and least-significant byte are splitted into, then by host sequence most-significant byte and host sequence number low 8 Position storage is into the temporary storage of remote controler single-chip microcontroller.
Host SCM at the time of initialization, 16 bit sequence numbers of burning is read out from the address chip interior 0xbbfe, And most-significant byte and least-significant byte are splitted into, host SCM then is arrived into low 8 storages of host sequence most-significant byte and remote controler sequence number Temporary storage in.Read out from the EEPROM inside single-chip microcontroller 16 bit sequence number of remote controler (if not matching code before, Then reading is 0xffff), and most-significant byte and least-significant byte are splitted into, then by remote controler sequence number most-significant byte and remote controler sequence number least-significant byte It stores in the temporary storage of host SCM.
4) with before code, remote controler is in transmission state, and mainboard is in reception state.
When needing with code, the command byte curriculum offering in temporary storage is 0x03 by remote controler, is then sent, After being sent, remote controler enters reception state.
Mainboard receives the information, and the order in information is 0x03, then by high 8 of remote controler sequence number in information and distant Control device sequence number least-significant byte extracts, and inserts high 8 of the remote controler sequence number and remote controler sequence number of mainboard temporary storage In least-significant byte.In this way, just containing the sequence number of remote controler and the sequence number of mainboard in mainboard temporary storage.Host will order Byte content is changed to 0x83, and subsequently into the state of transmission, information is sent.After being sent, host enters reception state. Wait the confirmation signal that remote controler is sent in 3 seconds.The confirmation signal that remote controler is sent is not received after 3 seconds, then again from EEPROM In read out before 16 bit sequence number of remote controler (if not matching code before, reading be 0xffff) that stores, and split into high by 8 Position and least-significant byte, are then stored in the temporary storage of host SCM.
Remote controler distribute with code information enter reception state under at most wait 1 second;In 1 second, if receiving the life of host The information for being 0x83 is enabled, then the sequence number most-significant byte of host and host sequence least-significant byte is extracted, is stored in remote controler In EEPROM, while inserting host sequence number in remote controler temporary storage high 8 and being gone with host sequence least-significant byte, in this way, The sequence number of remote controler and the sequence number of mainboard are just contained in remote controler temporary storage, are then returned to transmission state.It is distant Command byte content is changed to 0x01 by control device, indicates the sequence number for acknowledging receipt of host and stored, and information is sent out It goes.More than 1 second, then this was abandoned with code.
Host receives the information of remote controler, if command context is 0x01, extracts in remote controler temporary storage Mainboard sequence number most-significant byte, mainboard sequence number least-significant byte, remote controler sequence number most-significant byte, remote controler sequence number least-significant byte, and and host The sequence number of same position is matched in temporary storage;If exact matching, then by remote controler sequence number most-significant byte, remote control Device sequence number least-significant byte is stored into EEPROM.
It is completed with code.
The information received later, host will check remote controler sequence number and host sequence number, and exact matching could handle distant Control the information of device.

Claims (7)

1. a kind of method that sequence number interacts between remote controler and host, sequentially includes the following steps:
1) one different 16 bit sequence number of burning in the chip of each remote controler, also burning one in the chip of each host 16 different bit sequence numbers;
2) remote controler is sent with " 0x03 " order with code signal to host, and host carries out the sequence number of remote controler after receiving Storage, then will returning to remote controler with code signal with " 0x83 " order;
3) what remote controler received that host sends back to sends a command signal to host acknowledgement after carrying out respective stored with code signal Successful matching;
4) when normal communication, remote controler sends a signal to host, host by the sequence number verification of the signal received and storage, After passing through, then carry out the processing of signal.
2. the method that sequence number interacts between remote controler according to claim 1 and host, it is characterised in that: the step 3) in, remote controler only handles first signal from host, and what subsequent other hosts were sent disregards with code signal.
3. the method that sequence number interacts between remote controler according to claim 2 and host, it is characterised in that: the remote control Device is all made of A7105 radio-frequency module with host and is communicated;A7105 radio-frequency module is configured to receive mode or sending method, One moment can only use one mode.
4. the method that sequence number interacts between remote controler according to claim 3 and host, it is characterised in that: the step 2) in, remote controler, which sends the format with code signal, is:
Wherein the content of command byte filling is 0x03.
5. the method that sequence number interacts between remote controler according to claim 4 and host, it is characterised in that: the step 2) in, host response is to the format of remote controler information:
Wherein the content of command byte filling is 0x83.
6. the method that sequence number interacts between remote controler according to claim 5 and host, it is characterised in that: the step 3) in, the format that remote controler sends command signal is:
Wherein the content of command byte filling is 0x01.
7. the method that sequence number interacts between remote controler according to claim 6 and host, it is characterised in that: before matching code, Remote controler is in transmission state, and mainboard is in reception state.
CN201811598327.8A 2018-12-26 2018-12-26 Method for serial number interaction between remote controller and host Active CN109727438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811598327.8A CN109727438B (en) 2018-12-26 2018-12-26 Method for serial number interaction between remote controller and host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811598327.8A CN109727438B (en) 2018-12-26 2018-12-26 Method for serial number interaction between remote controller and host

Publications (2)

Publication Number Publication Date
CN109727438A true CN109727438A (en) 2019-05-07
CN109727438B CN109727438B (en) 2021-06-22

Family

ID=66297235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811598327.8A Active CN109727438B (en) 2018-12-26 2018-12-26 Method for serial number interaction between remote controller and host

Country Status (1)

Country Link
CN (1) CN109727438B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2414437Y (en) * 2000-04-05 2001-01-10 刘云峰 Reprogrammable universal remote controller
CN1372404A (en) * 2002-03-27 2002-10-02 北京长信嘉信息技术有限公司 Control of information electric appliances in digital domestic network and intervisiting method thereof
US20040201491A1 (en) * 2002-04-24 2004-10-14 Linsong Weng Lamp set remote control system
CN1936917A (en) * 2006-10-23 2007-03-28 北京飞天诚信科技有限公司 Method and apparatus for host machine and smart card to conduct information interaction
US20090201126A1 (en) * 2008-02-11 2009-08-13 Sanyo Electric Co., Ltd. Electronic device provided with theft prevention function, and method for preventing theft of electronic devices
CN102750812A (en) * 2012-06-05 2012-10-24 深圳市镭润科技有限公司 Method for matching reception device and remote controller, reception device and remote controller
US20140020009A1 (en) * 2012-06-25 2014-01-16 Lg Electronics Inc. Apparatus and method for processing an interactive service
CN104168109A (en) * 2014-09-11 2014-11-26 合肥晟泰克汽车电子有限公司 Method and device for achieving remote controller protocol encrypted based on AES
CN104361741A (en) * 2014-12-08 2015-02-18 上海斐讯数据通信技术有限公司 Remote control system and method
US20150371530A1 (en) * 2014-12-30 2015-12-24 Smk Electronics Corporation Remote controller having one shot automatic mapping of learned function
CN105374186A (en) * 2015-11-05 2016-03-02 嘉兴礼海电气科技有限公司 Novel RF remote control code matching method
CN105825656A (en) * 2016-05-27 2016-08-03 珠海格力电器股份有限公司 Electric appliance control method and device, air conditioner and remote control
CN109015656A (en) * 2018-09-07 2018-12-18 东南大学 Communication of Muti-robot System system based on 2.4G radio frequency chip

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2414437Y (en) * 2000-04-05 2001-01-10 刘云峰 Reprogrammable universal remote controller
CN1372404A (en) * 2002-03-27 2002-10-02 北京长信嘉信息技术有限公司 Control of information electric appliances in digital domestic network and intervisiting method thereof
US20040201491A1 (en) * 2002-04-24 2004-10-14 Linsong Weng Lamp set remote control system
CN1936917A (en) * 2006-10-23 2007-03-28 北京飞天诚信科技有限公司 Method and apparatus for host machine and smart card to conduct information interaction
US20090201126A1 (en) * 2008-02-11 2009-08-13 Sanyo Electric Co., Ltd. Electronic device provided with theft prevention function, and method for preventing theft of electronic devices
CN102750812A (en) * 2012-06-05 2012-10-24 深圳市镭润科技有限公司 Method for matching reception device and remote controller, reception device and remote controller
US20140020009A1 (en) * 2012-06-25 2014-01-16 Lg Electronics Inc. Apparatus and method for processing an interactive service
CN104168109A (en) * 2014-09-11 2014-11-26 合肥晟泰克汽车电子有限公司 Method and device for achieving remote controller protocol encrypted based on AES
CN104361741A (en) * 2014-12-08 2015-02-18 上海斐讯数据通信技术有限公司 Remote control system and method
US20150371530A1 (en) * 2014-12-30 2015-12-24 Smk Electronics Corporation Remote controller having one shot automatic mapping of learned function
CN105374186A (en) * 2015-11-05 2016-03-02 嘉兴礼海电气科技有限公司 Novel RF remote control code matching method
CN105825656A (en) * 2016-05-27 2016-08-03 珠海格力电器股份有限公司 Electric appliance control method and device, air conditioner and remote control
CN109015656A (en) * 2018-09-07 2018-12-18 东南大学 Communication of Muti-robot System system based on 2.4G radio frequency chip

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐振峰 等: "2.4GHz无线收发芯片A7105及其应用", 《电子设计工程》 *

Also Published As

Publication number Publication date
CN109727438B (en) 2021-06-22

Similar Documents

Publication Publication Date Title
CN105045626A (en) Program burning method, burning device and controller
US11750872B2 (en) System and method for configuring controlling device functionality
CN103222227B (en) System and method for wireless re-rogramming of memory in a communication system
CN101995196B (en) Wireless blasting system and communication method thereof
CN109696097A (en) Digital electric detonator chip and control method based on dual-wire bus
CN102244595B (en) Communication method of household electrical appliance
CN105547062A (en) Initiation controller of electronic detonator and control method thereof
US20170201295A1 (en) Wireless communication device and apparatus for electric power tool
CN106643358B (en) A kind of electric detonator detonation system and its control method based on near-field communication
CN102542758B (en) Radio frequency (RF) communication device and control method, remote controller, controlled device and household appliance
CN101114161A (en) Safe type intelligent electric detonator control system and control method thereof
CN114071439B (en) Bluetooth remote controller and multi-device pairing method, device and storage medium
CN104598285A (en) Burning method and burning system
CN101464674A (en) Programmable electronic detonator control chip and its control flow
CN103743295A (en) Control method for realizing networking detonation of electronic detonator with single headset
CN104361741A (en) Remote control system and method
WO2015109417A1 (en) Electronic detonator blasting management system and blasting construction method
CN107690759A (en) The monitoring method of optical module, optical mode block system and optical module
CN101655337A (en) Safe priming method of digital primer
CN111811327A (en) Universal detonation control platform and detonation control method
CN109727438A (en) A kind of method that sequence number interacts between remote controler and host
CN1988537A (en) Data transmission protocol
CN110120147A (en) Wireless communication is to code method and system, reception device, emitter, medium
CN211824093U (en) Electronic detonator exploder based on android system
CN103810103A (en) Method and system for debugging electronic device

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