CN109727438B - Method for serial number interaction between remote controller and host - Google Patents

Method for serial number interaction between remote controller and host Download PDF

Info

Publication number
CN109727438B
CN109727438B CN201811598327.8A CN201811598327A CN109727438B CN 109727438 B CN109727438 B CN 109727438B CN 201811598327 A CN201811598327 A CN 201811598327A CN 109727438 B CN109727438 B CN 109727438B
Authority
CN
China
Prior art keywords
remote controller
serial number
host
signal
host computer
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
Application number
CN201811598327.8A
Other languages
Chinese (zh)
Other versions
CN109727438A (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

Images

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The present invention relates to a control method. The method aims to realize the one-to-one correspondence of the remote controller and the host computer for information interaction, thereby solving the problem that the remote controller can operate a plurality of host computers simultaneously. The technical scheme is as follows: a method for serial number interaction between a remote controller and a host computer is carried out according to the following steps: 1) burning a different 16-bit serial number in a chip of each remote controller, and burning a different 16-bit serial number in a chip of each host; 2) the remote controller sends a code matching signal with a command of '0 x 03' to the host computer, the host computer stores the serial number of the remote controller after receiving the code matching signal, and then the code matching signal with a new serial number command consisting of '0 x 83' is sent to the remote controller; 3) the remote controller receives the matching code signal sent back by the host computer, and sends an instruction signal to the host computer to confirm the successful matching after carrying out corresponding storage.

Description

Method for serial number interaction between remote controller and host
Technical Field
The invention relates to a control method, in particular to a method for serial number interaction between a remote controller and a host.
Background
With the rapid development of construction industry and the increasing speed of scientific and technological progress, various electronic products controlled by remote controllers are continuously emerging. When the remote controller and the host machine realize one-to-one corresponding control, the remote controller is required to firstly send the unique serial number to the host machine, and the host machine stores the serial number of the remote controller after receiving the unique serial number; then when the remote controller works normally, the host compares the serial number of the remote controller signal, and receives and processes the information only if the serial number corresponds to the serial number. One disadvantage of the above approach is: after the same remote controller is paired with a plurality of hosts, the possibility exists that one remote controller can simultaneously operate a plurality of hosts. This brings about a certain accident risk.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned shortcomings in the prior art, and provides a method for serial number interaction between a remote controller and a host, so as to implement one-to-one information interaction between the remote controller and the host, thereby solving the problem that the remote controller may operate multiple hosts simultaneously.
The technical scheme provided by the invention is as follows:
a method for serial number interaction between a remote controller and a host computer is carried out according to the following steps:
1) burning a different 16-bit serial number in a chip of each remote controller, and burning a different 16-bit serial number in a chip of each host;
2) the remote controller sends a code matching signal with a command of '0 x 03' to the host computer, the host computer stores the serial number of the remote controller after receiving the code matching signal, and then the code matching signal with a new serial number command consisting of '0 x 83' is sent to the remote controller;
3) the remote controller receives the code matching signal sent back by the host computer, and sends an instruction signal to the host computer to confirm successful matching after corresponding storage;
4) during normal communication, the remote controller sends a signal to the host, the host checks the received signal and the stored serial number, and after the matching is passed, the signal is processed.
In the step 3), the remote controller only processes the first signal from the host, and the subsequent code matching signals sent by other hosts are not processed.
The remote controller and the host machine are communicated by adopting an A7105 radio frequency module; the A7105 radio frequency module is set to a receiving mode or a transmitting mode, and only one mode can be used at one time.
In step 2), the format of the code allocation signal sent by the remote controller is as follows:
Figure GDA0001971488180000021
wherein the command byte is filled with 0x 03.
In the step 2), the format of the information replied to the remote controller by the host is as follows:
Figure GDA0001971488180000022
wherein the command byte is filled with 0x 83.
In the step 3), the format of the command signal sent by the remote controller is as follows:
Figure GDA0001971488180000023
wherein the command byte is filled with 0x 01.
Before the code is matched, the remote controller is in a sending state, and the mainboard is in a receiving state.
The invention has the beneficial effects that:
1. the invention combines the serial numbers of the remote controller and the host to form a new serial number as the identification number of the common communication. Therefore, one-to-one control of the remote controller and the host is realized, the possibility that one remote controller operates a plurality of hosts at the same time is eliminated, and the accident potential is eliminated.
2. The remote controller and the host can be flexibly paired, and after the pairing is successful, the former pairing is automatically disabled.
Drawings
FIG. 1 is a diagram illustrating a remote controller transmitting a code signal to a host according to the present invention.
Fig. 2 is a schematic diagram of the host sending a pairing signal to the remote controller in the present invention.
FIG. 3 is a diagram illustrating a remote controller sending an acknowledgement signal to a host according to the present invention.
Fig. 4 is a schematic view of a normal use state of the present invention.
Detailed Description
The present invention will be further described with reference to the following examples.
The invention is carried out according to the following steps:
firstly, burning serial number in remote controller chip
When a chip (preferably Ryssa R7F0C001) of the remote controller is in a burning program, a 16-bit serial number is burnt into a 0x3bfe address in the chip.
The programming method comprises the following steps:
the serial number is manually input, and after a chip is burned, the increment of the serial number is controlled by an increment control value.
Examples are: the start sequence number input is 0x0000, the increment control input is 0x01, and the start address input is 0x3 bfe.
Starting burning, namely after 0x0000 is burnt into 0x3bfe in the first chip, increasing the serial number to 0x 0001;
burning again, wherein 0x0001 is burnt into 0x3bfe inside the second chip, and the serial number is increased to 0x 0002;
sequentially circulating until the serial number is 0xfffe, and completing burning;
if the burning is required to be continued, the serial number is manually re-input to 0x0000 in order to avoid 0 xffff.
2. Burning serial number in host chip
When a host chip (preferably a rassa R7F0C905) burns a program, a 16-bit serial number is burnt in a 0xbbfe address in the chip.
The programming method comprises the following steps:
the serial number is manually input, and after a chip is burned, the increment of the serial number is controlled by an increment control value.
Examples are: the start sequence number input is 0x0000, the increment control input is 0x01, and the start address input is 0 xbbfe.
Starting burning, namely after 0x0000 is burnt into 0xbbfe inside the first chip, increasing the serial number to 0x 0001;
burning again, wherein 0x0001 is burnt into 0xbbfe inside the second chip, and the serial number is increased to 0x 0002;
sequentially circulating until the serial number is 0xfffe, and completing burning;
if the burning is required to be continued, the serial number is manually re-input to 0x0000 in order to avoid 0 xffff.
And secondly, the remote controller and the host adopt an A7105 radio frequency module for communication (in the conventional mode).
The A7105 radio frequency module is set to a receiving mode or a transmitting mode, and only one mode can be used at one time.
The remote controller and the host computer need to be consistent in serial number to be normally paired and operated.
These are prior art.
Thirdly, code matching process of the remote controller and the host:
1) the format of the information sent by the remote controller to the mainboard in a communication way is as follows:
Figure GDA0001971488180000041
2) the format of the information replied to the remote controller by the host:
Figure GDA0001971488180000042
3) code matching
When the remote controller single chip microcomputer is initialized, a burnt 16-bit serial number is read from a 0x3bfe address in the chip, the serial number is disassembled into a high 8 bit and a low 8 bit, and then the high 8 bit and the low 8 bit of the serial number of the remote controller are stored in a temporary memory of the remote controller single chip microcomputer. The host 16-bit sequence number (if no code is allocated before, the read-out is 0xffff) is read from the EEPROM in the singlechip, and is split into high 8 bits and low 8 bits, and then the high 8 bits and the low 8 bits of the host serial number are stored in a temporary memory of the singlechip of the remote controller.
When the host single chip microcomputer is initialized, a burned 16-bit serial number is read from a 0xbbfe address in the chip, the serial number is disassembled into a high 8 bit and a low 8 bit, and then the high 8 bit of the host serial number and the low 8 bit of the remote controller serial number are stored in a temporary memory of the host single chip microcomputer. The method comprises the steps of reading a sequence number of a 16-bit remote controller (if a code is not configured before, the sequence number is 0xffff) from an EEPROM in the single chip microcomputer, splitting the sequence number into a high 8-bit sequence and a low 8-bit sequence, and storing the high 8-bit sequence number and the low 8-bit sequence number of the remote controller into a temporary memory of a host single chip microcomputer.
4) Before the code is matched, the remote controller is in a sending state, and the mainboard is in a receiving state.
When the code matching is needed, the remote controller sets the command byte content in the temporary memory to be 0x03, then sends out, and after the sending is finished, the remote controller enters a receiving state.
When the mainboard receives the information and the command in the information is 0x03, the upper 8 bits of the remote controller serial number and the lower 8 bits of the remote controller serial number in the information are extracted and filled into the upper 8 bits of the remote controller serial number and the lower 8 bits of the remote controller serial number in the mainboard temporary memory. Thus, the motherboard temporary memory contains the serial number of the remote controller and the serial number of the motherboard. The host changes the command byte content to 0x83 and then enters the send state to send the message out. After the transmission is finished, the host enters a receiving state. Waiting for the confirmation signal from the remote controller within 3 seconds. And if the confirmation signal sent by the remote controller is not received after 3 seconds, reading the previously stored 16-bit sequence number of the remote controller (if the code is not configured previously, the reading is 0xffff) from the EEPROM, splitting the sequence number into an upper 8 bit and a lower 8 bit, and storing the sequence number into a temporary memory of the host singlechip.
The remote controller waits for 1 second at most when sending the configuration code information and entering a receiving state; within 1 second, if the command of the host is 0x83, the high 8 bits of the serial number of the host and the low 8 bits of the serial number of the host are extracted and stored in the EEPROM of the remote controller, and the high 8 bits of the serial number of the host and the low 8 bits of the serial number of the host are simultaneously filled in the temporary storage of the remote controller, so that the temporary storage of the remote controller contains the serial number of the remote controller and the serial number of the mainboard, and then the sending state is recovered. The remote changes the command byte content to 0x01 indicating that the host's serial number was acknowledged as received and stored, and sends the message. And if the time exceeds 1 second, the code matching is abandoned.
The host computer receives the information of the remote controller, if the command content is 0x01, the high 8 bits of the mainboard serial number, the low 8 bits of the mainboard serial number, the high 8 bits of the remote controller serial number and the low 8 bits of the remote controller serial number in the temporary storage of the remote controller are extracted and matched with the serial number at the same position in the temporary storage of the host computer; and if the serial numbers are completely matched, storing the high 8 bits of the serial number of the remote controller and the low 8 bits of the serial number of the remote controller into the EEPROM.
And completing code matching.
In the information received later, the host computer checks the serial number of the remote controller and the serial number of the host computer, and the information of the remote controller can be processed only after the serial numbers of the remote controller and the host computer are completely matched.

Claims (1)

1. A method for serial number interaction between a remote controller and a host computer is carried out according to the following steps:
1) burning a different 16-bit serial number in a chip of each remote controller, and burning a different 16-bit serial number in a chip of each host;
2) the remote controller sends a code matching signal with a command of '0 x 03' to the host computer, the host computer stores the serial number of the remote controller after receiving the code matching signal, and then the code matching signal with the command of '0 x 83' is sent back to the remote controller;
3) the remote controller receives the code matching signal sent back by the host computer, and sends an instruction signal to the host computer to confirm successful matching after corresponding storage;
4) during normal communication, the remote controller sends a signal to the host, and the host checks the received signal and the stored serial number, and processes the signal after the matching is passed;
in the step 3), the remote controller only processes the first signal from the host, and the subsequent code matching signals sent by other hosts are not processed;
the remote controller and the host machine are communicated by adopting an A7105 radio frequency module; a7105 radio frequency module is set to receiving mode or transmitting mode, only one mode can be used at a time;
in step 2), the format of the code allocation signal sent by the remote controller is as follows:
Figure FDA0002445141860000011
wherein the command byte is filled with 0x 03;
in the step 2), the format of the information replied to the remote controller by the host is as follows:
Figure FDA0002445141860000012
wherein the command byte is filled with 0x 83;
in the step 3), the format of the command signal sent by the remote controller is as follows:
Figure FDA0002445141860000021
wherein the command byte is filled with 0x 01;
before the code is matched, the remote controller is in a sending state, and the mainboard is in a receiving 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 CN109727438A (en) 2019-05-07
CN109727438B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750812A (en) * 2012-06-05 2012-10-24 深圳市镭润科技有限公司 Method for matching reception device and remote controller, reception device and remote controller
CN104361741A (en) * 2014-12-08 2015-02-18 上海斐讯数据通信技术有限公司 Remote control system and method
CN109015656A (en) * 2018-09-07 2018-12-18 东南大学 Communication of Muti-robot System system based on 2.4G radio frequency chip

Family Cites Families (10)

* 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
CN100414556C (en) * 2006-10-23 2008-08-27 北京飞天诚信科技有限公司 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
JP6174691B2 (en) * 2012-06-25 2017-08-02 エルジー エレクトロニクス インコーポレイティド Apparatus and method for processing interactive services
CN104168109A (en) * 2014-09-11 2014-11-26 合肥晟泰克汽车电子有限公司 Method and device for achieving remote controller protocol encrypted based on AES
US9373250B2 (en) * 2014-12-30 2016-06-21 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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750812A (en) * 2012-06-05 2012-10-24 深圳市镭润科技有限公司 Method for matching reception device and remote controller, reception device and remote controller
CN104361741A (en) * 2014-12-08 2015-02-18 上海斐讯数据通信技术有限公司 Remote control system and method
CN109015656A (en) * 2018-09-07 2018-12-18 东南大学 Communication of Muti-robot System system based on 2.4G radio frequency chip

Also Published As

Publication number Publication date
CN109727438A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
US6249877B1 (en) Method and apparatus for recovering data for a file in a plurality of equipments
US9373250B2 (en) Remote controller having one shot automatic mapping of learned function
EP0282926B1 (en) Id system and method of writing data in an id system
CA1313398C (en) Radio communication system
US20170201295A1 (en) Wireless communication device and apparatus for electric power tool
CN104598285A (en) Burning method and burning system
SG179374A1 (en) Ic card, mobile electronic device and data processing method in ic card
CN106775880A (en) The programming device and method of a kind of EEPROM data
CN109727438B (en) Method for serial number interaction between remote controller and host
CN101464846B (en) Data card read-write method, interface control method and apparatus
CN103839398A (en) Remote controller key value information processing method, control apparatus and remote controller
CN114993123A (en) Method and system for realizing rapid online detection of electronic detonator
JP6815767B2 (en) In-vehicle communication device
CN108415711B (en) Method for burning MAC address on line
US11586174B2 (en) Controller, storage medium, and wireless communication device
CN110757449A (en) Demonstrator-to-lower controller communication method, computer readable storage medium and robot
EP0403067A3 (en) Method for transmitting commands excluded from a predefined command set
JP7397402B2 (en) Electronic information storage medium, data transmission method, and program
CN221040009U (en) Setting device
US20210157764A1 (en) Data conversion device and data conversion system
US20170060785A1 (en) Electronic device and data exchange method including protocol indicative of modes of operation
TWI818822B (en) Data setting method of four-external-wire motor control system
CN1331071C (en) Television wall architecture and bidirectional communication process
CN115731643B (en) Key binding method, vehicle configuration method, device, vehicle and storage medium
EP2434429B1 (en) Chip card with integrated circuit

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