CN111803970A - Method, system and medium for synchronizing different switch states - Google Patents

Method, system and medium for synchronizing different switch states Download PDF

Info

Publication number
CN111803970A
CN111803970A CN202010694491.XA CN202010694491A CN111803970A CN 111803970 A CN111803970 A CN 111803970A CN 202010694491 A CN202010694491 A CN 202010694491A CN 111803970 A CN111803970 A CN 111803970A
Authority
CN
China
Prior art keywords
switch
signal
state
switch state
remote control
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.)
Pending
Application number
CN202010694491.XA
Other languages
Chinese (zh)
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.)
Shanghai Bruco Technology Co ltd
Original Assignee
Shanghai Bruco 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 Shanghai Bruco Technology Co ltd filed Critical Shanghai Bruco Technology Co ltd
Priority to CN202010694491.XA priority Critical patent/CN111803970A/en
Publication of CN111803970A publication Critical patent/CN111803970A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63HTOYS, e.g. TOPS, DOLLS, HOOPS OR BUILDING BLOCKS
    • A63H30/00Remote-control arrangements specially adapted for toys, e.g. for toy vehicles
    • A63H30/02Electrical arrangements
    • A63H30/04Electrical arrangements using wireless transmission
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B3/00Audible signalling systems; Audible personal calling systems
    • G08B3/10Audible signalling systems; Audible personal calling systems using electric transmission; using electromagnetic transmission
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Electromagnetism (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention provides a method, a system and a medium for synchronizing different switch states, which comprises the following steps: a wake-up step: awakening the remote control end under the condition that the switch state of the switch of the remote control end is changed; a sending step: reading the current switch state of the switch and transmitting a signal with a corresponding switch state; and a synchronous comparison step: and comparing the switch state in the current signal with the switch state in the signal acquired last time under the condition that the controlled end acquires the signal, and executing corresponding prompt according to the comparison result. The invention identifies the switch state through the prompt tone, and is simple, convenient and effective; the change of the state of the storage switch is recorded through the controlled terminal, so that the storage record can be reserved, and the change record of the state can be conveniently inquired.

Description

Method, system and medium for synchronizing different switch states
Technical Field
The invention relates to the technical field of switch state synchronization, in particular to a synchronization method, a synchronization system and a synchronization medium for different switch states.
Background
In the toy, in order to increase the interest of the toy, a remote control device is often used, and a toy body is controlled through a remote controller. In a general remote controller, a button is pressed to transmit a remote control command, and different buttons are pressed to transmit different remote control commands, and the motions such as forward and backward movements of the toy are controlled by the remote control commands. In addition to pressing a key, some operations do not need to be pressed all the time, and only one state needs to be read, such as gear selection of speed, turning on and off of sound, and the like. These operations may be implemented in the manner of a selection of a toggle switch. The toy is shifted to a certain gear, the gear of the toggle switch is read before the remote control command is sent, and the data of the gear is attached to the remote control command to realize the control of the toy body. Usually, a gear shifting switch at the remote controller end is not used after being shifted, and the state is attached only when a remote control command is sent. When the switch is shifted to the position, the toy body does not give a prompt or is not synchronous, so that the state of the shift switch of the remote controller cannot be used for judging which state the toy is in.
And usually, the remote control toy cannot record the history of the change of the switch state, verify whether the sending end is successful or not, and perform compensation operation after the sending is failed.
Patent document CN104590103A (application number: 201410813073.2) discloses an automatic prompting system for vehicle steering. The automatic steering control system is characterized by comprising a steering switch, a vehicle body control module BCM, a steering lamp, a combination instrument, a steering wheel corner sensor, a vehicle speed sensor and a steering automatic prompt trigger switch, wherein the steering switch, the steering lamp, the combination instrument, the steering wheel corner sensor, the vehicle speed sensor and the steering automatic prompt trigger switch are all connected with the vehicle body control module BCM. According to the invention, through the collection and processing of the steering wheel rotation angle and the vehicle speed information by the vehicle body control module BCM, when the automatic automobile steering prompting system is triggered and started, no matter whether a driver toggles a steering switch or not, the vehicle body control module BCM monitors the vehicle speed in real time, when the steering wheel rotates and the rotation angle reaches a set value, the vehicle body control module BCM recognizes the behavior as steering, and actively controls the steering lamp to flicker.
Disclosure of Invention
In view of the drawbacks of the prior art, an object of the present invention is to provide a method, system and medium for synchronizing different switch states.
The synchronization method for different switch states provided by the invention comprises the following steps:
a wake-up step: awakening the remote control end under the condition that the switch state of the switch of the remote control end is changed;
a sending step: reading the current switch state of the switch and transmitting a signal with a corresponding switch state;
and a synchronous comparison step: and comparing the switch state in the current signal with the switch state in the signal acquired last time under the condition that the controlled end acquires the signal, and executing corresponding prompt according to the comparison result.
Preferably, the different switch states are represented by different values;
the step of comparing the synchronization further comprises: and recording a value corresponding to the switch state in the current signal at the controlled end through a first variable, and recording a value corresponding to the switch state in the signal obtained last time through a second variable.
Preferably, the sending step further comprises: and continuously sending the signal at the remote control end until the remote control end is dormant.
Preferably, the signal includes a coded wireless signal, and when the controlled terminal acquires the signal, the signal is decoded and a command corresponding to the switch state is executed.
Preferably, the signal comprises a synchronization signal or a remote control signal;
the synchronization signal comprises a switching state of a switch;
the remote control signal comprises a switch state of the switch and a remote control instruction.
The synchronization system for different switch states provided by the invention comprises:
a wake-up module: awakening the remote control end under the condition that the switch state of the switch of the remote control end is changed;
a sending module: reading the current switch state of the switch and transmitting a signal with a corresponding switch state;
a synchronous comparison module: and comparing the switch state in the current signal with the switch state in the signal acquired last time under the condition that the controlled end acquires the signal, and executing corresponding prompt according to the comparison result.
Preferably, the different switch states are represented by different values;
the synchronous comparison module further comprises: and recording a value corresponding to the switch state in the current signal at the controlled end through a first variable, and recording a value corresponding to the switch state in the signal obtained last time through a second variable.
Preferably, the signal includes a coded wireless signal, and when the controlled terminal acquires the signal, the signal is decoded and a command corresponding to the switch state is executed.
Preferably, the signal comprises a synchronization signal or a remote control signal;
the synchronization signal comprises a switching state of a switch;
the remote control signal comprises a switch state of the switch and a remote control instruction.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention identifies the switch state through the prompt tone, and is simple, convenient and effective;
2. according to the invention, the change of the state of the storage switch is recorded by the controlled end, so that the storage record can be reserved, and the change record of the state can be conveniently inquired;
3. the invention always carries out the sending operation before the sending end finishes the data sending, thereby avoiding the problem of sending failure caused by abnormal factors.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
Example 1:
the synchronization method for different switch states provided by the invention comprises the following steps:
a wake-up step: awakening the remote control end under the condition that the switch state of the switch of the remote control end is changed;
a sending step: reading the current switch state of the switch and transmitting a signal with a corresponding switch state;
and a synchronous comparison step: and comparing the switch state in the current signal with the switch state in the signal acquired last time under the condition that the controlled end acquires the signal, and executing corresponding prompt according to the comparison result.
Preferably, the different switch states are represented by different values;
the step of comparing the synchronization further comprises: and recording a value corresponding to the switch state in the current signal at the controlled end through a first variable, and recording a value corresponding to the switch state in the signal obtained last time through a second variable.
Preferably, the sending step further comprises: and continuously sending the signal at the remote control end until the remote control end is dormant.
Preferably, the signal includes a coded wireless signal, and when the controlled terminal acquires the signal, the signal is decoded and a command corresponding to the switch state is executed.
Preferably, the signal comprises a synchronization signal or a remote control signal;
the synchronization signal comprises a switching state of a switch;
the remote control signal comprises a switch state of the switch and a remote control instruction.
The synchronization system for different switch states provided by the invention comprises:
a wake-up module: awakening the remote control end under the condition that the switch state of the switch of the remote control end is changed;
a sending module: reading the current switch state of the switch and transmitting a signal with a corresponding switch state;
a synchronous comparison module: and comparing the switch state in the current signal with the switch state in the signal acquired last time under the condition that the controlled end acquires the signal, and executing corresponding prompt according to the comparison result.
Preferably, the different switch states are represented by different values;
the synchronous comparison module further comprises: and recording a value corresponding to the switch state in the current signal at the controlled end through a first variable, and recording a value corresponding to the switch state in the signal obtained last time through a second variable.
Preferably, the signal includes a coded wireless signal, and when the controlled terminal acquires the signal, the signal is decoded and a command corresponding to the switch state is executed.
Preferably, the signal comprises a synchronization signal or a remote control signal;
the synchronization signal comprises a switching state of a switch;
the remote control signal comprises a switch state of the switch and a remote control instruction.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above.
Example 2:
the invention realizes the recording of the current state by using a toggle switch through the cooperation of software, and enables the remote-controlled device to be in a synchronous state at the moment of toggling and remind once.
Referring to fig. 1, a flow chart of the method of the present invention includes:
step 1: the switch is toggled to change the state of the gear shifting switch;
step 2: the remote control end sends data with corresponding switch states to the controlled end in real time according to the switch states; the sending mode comprises the following steps: transmitting the programmed far infrared signal by using a coding and transmitting circuit; after receiving the signal, the receiving end sends the electric pulse to the singlechip for decoding and generating a control level to control the controlled end;
and step 3: the controlled end records different switch states through different data;
and 4, step 4: and comparing the latest recorded data with the data recorded last time, and executing corresponding prompt operation under the condition that the judgment results are the same or different.
If the current gear shifting switch state is inconsistent with the previous gear shifting switch state, the previous gear shifting switch state is modified into the current gear shifting switch state, and then a prompt tone is played once;
if the current gear shifting switch state is consistent with the previous gear shifting switch state, a prompt tone is directly played once.
The method comprises the steps that a sending end wakes up automatically when the state of a gear shifting switch changes every time, reads the state of the gear shifting switch, and sends data with the state of the gear shifting switch to a receiving end all the time within preset time until the receiving end receives the data of the state of the gear shifting switch and sends a prompt;
and the receiving end records the last received gear shifting switch state and the currently received gear shifting switch state.
Prompting the state change of the gear shifting switch by playing music or prompting voice;
if the gear shifting switch is used for controlling the speed, prompting the current gear speed;
and if the gear shifting switch is used for controlling the music switch, prompting to turn on or turn off the sound effect.
For the purpose of reminding each time the state is changed, the following conditions are required:
1. the remote-controlled end needs to have two variables, one of which records the state of the shift switch transmitted from the remote controller received last time, for example, this variable is before _ status, and if before _ status is 0, this indicates that the shift switch received last time is in the 0 state.
Another variable records the state of the currently received shift switch, e.g., current _ status.
2. The remote controller end requires that the remote controller is awakened every time the gear of the gear shifting switch changes, and the processor of the remote controller end needs to read the state of the gear shifting switch and enable the remote controller to send data with the state of the gear shifting switch until the sleep.
The software implementation process is as follows:
if the remote control is in the sleep state, the gearshift switch is now toggled, the remote control is woken up and starts to read the state of the gearshift switch, and if the gearshift switch is in the state 1 at this time, data with the state of the gearshift switch, that is, 1, is sent to the toy to be remotely controlled.
The remote controlled toy receives data all the time, the data received by the remote controlled toy contains the data of the state of the remote controller shift switch, the state of the shift switch received by the remote controlled toy is 1 at this time, namely current _ status is 1, and then the current _ status and before _ status are compared;
the procedure is as follows:
If(current_status!=before_status)
{
1. the music is played to prompt the change of the state of the gear shifting switch, for example, the current speed of one gear, the current speed of two gears and the like can be prompted, or the gear shifting switch controls the music switch and can prompt the sound effect to be turned on or turned off and the like;
2.before_status=current_status;
}
those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A method for synchronizing different switch states, comprising:
a wake-up step: awakening the remote control end under the condition that the switch state of the switch of the remote control end is changed;
a sending step: reading the current switch state of the switch and transmitting a signal with a corresponding switch state;
and a synchronous comparison step: and comparing the switch state in the current signal with the switch state in the signal acquired last time under the condition that the controlled end acquires the signal, and executing corresponding prompt according to the comparison result.
2. Method for synchronizing different switching states according to claim 1, characterized in that different switching states are represented by different values;
the step of comparing the synchronization further comprises: and recording a value corresponding to the switch state in the current signal at the controlled end through a first variable, and recording a value corresponding to the switch state in the signal obtained last time through a second variable.
3. The method for synchronizing different switch states according to claim 1, wherein the step of transmitting further comprises: and continuously sending the signal at the remote control end until the remote control end is dormant.
4. The method according to claim 1, wherein the signal comprises an encoded wireless signal, and when the controlled terminal acquires the signal, the signal is decoded and a command corresponding to the switch state is executed.
5. Method for synchronizing different switch states according to claim 1, characterized in that the signal comprises a synchronization signal or a remote control signal;
the synchronization signal comprises a switching state of a switch;
the remote control signal comprises a switch state of the switch and a remote control instruction.
6. A system for synchronizing different switch states, comprising:
a wake-up module: awakening the remote control end under the condition that the switch state of the switch of the remote control end is changed;
a sending module: reading the current switch state of the switch and transmitting a signal with a corresponding switch state;
a synchronous comparison module: and comparing the switch state in the current signal with the switch state in the signal acquired last time under the condition that the controlled end acquires the signal, and executing corresponding prompt according to the comparison result.
7. Synchronization system of different switching states according to claim 6, characterized in that different switching states are represented by different values;
the synchronous comparison module further comprises: and recording a value corresponding to the switch state in the current signal at the controlled end through a first variable, and recording a value corresponding to the switch state in the signal obtained last time through a second variable.
8. The system according to claim 6, wherein the signal comprises an encoded wireless signal, and when the controlled terminal acquires the signal, the signal is decoded and a command corresponding to the switch state is executed.
9. The system for synchronizing different switch states of claim 6, wherein the signal comprises a synchronization signal or a remote control signal;
the synchronization signal comprises a switching state of a switch;
the remote control signal comprises a switch state of the switch and a remote control instruction.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN202010694491.XA 2020-07-17 2020-07-17 Method, system and medium for synchronizing different switch states Pending CN111803970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010694491.XA CN111803970A (en) 2020-07-17 2020-07-17 Method, system and medium for synchronizing different switch states

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010694491.XA CN111803970A (en) 2020-07-17 2020-07-17 Method, system and medium for synchronizing different switch states

Publications (1)

Publication Number Publication Date
CN111803970A true CN111803970A (en) 2020-10-23

Family

ID=72866147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010694491.XA Pending CN111803970A (en) 2020-07-17 2020-07-17 Method, system and medium for synchronizing different switch states

Country Status (1)

Country Link
CN (1) CN111803970A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10285971A (en) * 1997-04-08 1998-10-23 Futaba Corp Servomotor device
CN2576305Y (en) * 2002-10-23 2003-10-01 华悦亚洲有限公司 Micro telecontrolled toy car
CN103391364A (en) * 2013-07-12 2013-11-13 天脉聚源(北京)传媒科技有限公司 Synchronization method and device for controlled terminal and intelligent terminal serving as remote control terminal
CN103595951A (en) * 2012-08-16 2014-02-19 中兴通讯股份有限公司 Audio frequency input state processing method, sending end equipment and receiving end equipment
CN203483859U (en) * 2013-09-06 2014-03-19 林克敏 Toy car remote controller of copy steering wheel
CN105416205A (en) * 2015-12-10 2016-03-23 安徽江淮汽车股份有限公司 Car remote control method and system
CN109945410A (en) * 2019-03-20 2019-06-28 珠海格力电器股份有限公司 Air Conditioner Remote based reminding method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10285971A (en) * 1997-04-08 1998-10-23 Futaba Corp Servomotor device
CN2576305Y (en) * 2002-10-23 2003-10-01 华悦亚洲有限公司 Micro telecontrolled toy car
CN103595951A (en) * 2012-08-16 2014-02-19 中兴通讯股份有限公司 Audio frequency input state processing method, sending end equipment and receiving end equipment
CN103391364A (en) * 2013-07-12 2013-11-13 天脉聚源(北京)传媒科技有限公司 Synchronization method and device for controlled terminal and intelligent terminal serving as remote control terminal
CN203483859U (en) * 2013-09-06 2014-03-19 林克敏 Toy car remote controller of copy steering wheel
CN105416205A (en) * 2015-12-10 2016-03-23 安徽江淮汽车股份有限公司 Car remote control method and system
CN109945410A (en) * 2019-03-20 2019-06-28 珠海格力电器股份有限公司 Air Conditioner Remote based reminding method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN1026942C (en) Automatic and interactive power controller for audio/video systems
US4623887A (en) Reconfigurable remote control
US6344817B1 (en) Method of displaying manufacturer/model code and programmable universal remote control employing same
US9808730B2 (en) Multi-function electronic device-enabled transmit controller
CN100454965C (en) Method and circuit for remote control of set top box by TV set
JPS59200597A (en) Remote controller for controlling radio wave of various devices
JPH08511914A (en) Method and device for remote operation
CN111803970A (en) Method, system and medium for synchronizing different switch states
JP6323296B2 (en) Control device
CA2521153A1 (en) Apparatus and method for updating encoded signal information stored in a remote control unit through direct key entry
CN103763438A (en) Information broadcasting method and device and mobile terminal
JP4184988B2 (en) Remotely operated toy system, drive device used therefor, and identification code setting method for remotely operated toy
CN112289319A (en) Code allocation-free voice remote control method convenient to operate
CN200992863Y (en) Wireless digital vehicle lock remote controller
US5675323A (en) Method for preventing unauthorized duplication of a remote controller, and remote controller with copy-preventing capability
EP3648456A1 (en) Controller and method of processing control commands for operation of an electronic device
KR100501354B1 (en) Method for dissolving fail safe of multi-funtion switch in vehicle
CN112415986B (en) Starting method, device, equipment and storage medium
JP6843209B1 (en) Wireless remote control device
CN218806343U (en) Electric motorcycle car two accuse throttle devices and motorcycle
CN219257510U (en) Automobile tail door control device, automobile tail door and automobile
JP2023146048A (en) Electronic control device for vehicle
CN106828405B (en) Automobile anti-theft monitoring device access automobile learning method
TW201501765A (en) Voice-controlled remote control device
CN104329703A (en) Induction cooker and control method thereof

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201100 3 / F, building 10, No. 1016, Tianlin Road, Minhang District, Shanghai

Applicant after: Shanghai Brooke building block Technology Co., Ltd

Address before: 201100 3 / F, building 10, No. 1016, Tianlin Road, Minhang District, Shanghai

Applicant before: Shanghai bruco Technology Co.,Ltd.