CN112530149A - Remote control method and device - Google Patents

Remote control method and device Download PDF

Info

Publication number
CN112530149A
CN112530149A CN201910875578.4A CN201910875578A CN112530149A CN 112530149 A CN112530149 A CN 112530149A CN 201910875578 A CN201910875578 A CN 201910875578A CN 112530149 A CN112530149 A CN 112530149A
Authority
CN
China
Prior art keywords
remote control
data packet
control data
broadcasting
packet
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
CN201910875578.4A
Other languages
Chinese (zh)
Other versions
CN112530149B (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.)
Hisense Broadband Multimedia Technology Co Ltd
Original Assignee
Hisense Broadband Multimedia 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 Hisense Broadband Multimedia Technology Co Ltd filed Critical Hisense Broadband Multimedia Technology Co Ltd
Priority to CN201910875578.4A priority Critical patent/CN112530149B/en
Publication of CN112530149A publication Critical patent/CN112530149A/en
Application granted granted Critical
Publication of CN112530149B publication Critical patent/CN112530149B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/4222Remote control device emulator integrated into a non-television apparatus, e.g. a PDA, media center or smart toy
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • H04N21/42206User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
    • H04N21/42221Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/90Additional features
    • G08C2201/93Remote control using other portable devices, e.g. mobile phone, PDA, laptop

Abstract

The embodiment of the invention relates to the technical field of communication, in particular to a remote control method and a remote control device, which are used for reducing the operation complexity of remote control and reducing the operation time consumption. The embodiment of the invention comprises the following steps: the method comprises the steps that control equipment performs Bluetooth broadcast scanning and receives a first remote control data packet, wherein the first remote control data packet is broadcasted by a client through Bluetooth, and the first remote control data packet comprises equipment data and key value data; analyzing the first remote control data packet, and determining that the equipment data is consistent with pre-stored equipment data; determining an operation instruction corresponding to the key value data according to a pre-stored corresponding relation; and executing the operation instruction.

Description

Remote control method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a remote control method and apparatus.
Background
The remote controller is a wireless transmitting device, and codes the key information by modern digital coding technology, transmits light waves by an infrared diode, the light waves convert received infrared signals into electric signals by an infrared receiver of a receiver, the electric signals are decoded by a processor, and corresponding instructions are demodulated to achieve the operation requirements of controlling equipment such as a set top box and the like.
The existing remote controllers are mostly infrared remote controllers, and in the using process, due to the technical limitation that infrared communication needs to be in the same direction, when remote control operation is caused, a user needs to aim the remote controllers at the receiver position to smoothly realize the remote control function, so that remote control action becomes inconvenient. Especially, when the infrared receiver is shielded by an object, the remote control function cannot be realized.
With the development of communication technology, another relatively common method is that mobile terminals such as mobile phones and the like use DLAN (Digital Living Network Alliance) technology to simulate remote controllers to realize remote control operation. The method needs the mobile terminal and the remote control device to be in the same local area network, and the two devices can communicate after the two devices need to be paired and connected, so that the connection establishment is time-consuming and tedious in operation each time.
Disclosure of Invention
The application provides a remote control method and device, which are used for reducing the complexity of remote control operation and reducing the time consumption of operation.
The remote control method provided by the embodiment of the invention comprises the following steps:
the method comprises the steps that control equipment performs Bluetooth broadcast scanning and receives a first remote control data packet, wherein the first remote control data packet is broadcasted by a client through Bluetooth, and the first remote control data packet comprises equipment data and key value data;
analyzing the first remote control data packet, and determining that the equipment data is consistent with pre-stored equipment data;
determining an operation instruction corresponding to the key value data according to a pre-stored corresponding relation;
and executing the operation instruction.
In an optional embodiment, the first remote control data packet further includes a duplicate identifier;
after analyzing the first remote control data packet and determining that the device data is consistent with the pre-stored device data, the method further includes:
determining that the key value data in the first remote control data packet is consistent with the key value data in the last received remote control data packet;
judging whether the repeated mark in the first remote control data packet is consistent with the repeated mark in the last received remote control data packet;
if yes, discarding the first remote control data packet;
and if not, executing the operation instruction corresponding to the key value data according to the pre-stored corresponding relation.
In an optional embodiment, after parsing the first remote control data packet and determining that the device data is consistent with the pre-stored device data, the method further includes:
broadcasting a remote control response of the first remote control data packet, wherein the remote control response comprises the equipment data and the key value data, so that the client stops broadcasting the first remote control data packet according to the remote control response.
In an optional embodiment, before the controlling device performs bluetooth scanning and receives the first remote control packet, the controlling device further includes:
receiving an identification acquisition request of the client through Bluetooth broadcast;
and sending the device data to the client.
A remote control method, comprising:
the client responds to the operation of a user and generates a first remote control data packet, the first remote control data packet comprises equipment data and key value data, and the equipment data corresponds to control equipment so that the control equipment executes an operation instruction corresponding to the key value data;
broadcasting the first remote control data packet through Bluetooth;
and stopping broadcasting the first remote control data packet after a preset condition is triggered.
In an optional embodiment, the stopping broadcasting the first remote control packet after the preset condition is triggered includes:
after receiving a remote control response corresponding to the first remote control data packet, stopping broadcasting the first remote control data packet; or,
and stopping broadcasting the first remote control data packet after determining that the sending times of the first remote control data packet is greater than a time threshold.
In an optional embodiment, the first remote control data packet further includes a duplicate identifier;
the client responds to the operation of a user and generates a first remote control data packet, and the method comprises the following steps:
responding to touch operation of a user, and generating a first remote control data packet according to the position of the touch operation;
after the broadcasting of the first remote control data packet is stopped after the triggering of the preset condition, the method further comprises the following steps:
determining that the operation duration of the touch operation is greater than a duration threshold;
updating the repeated identification in the first remote control data packet at a set frequency within the touch operation time period to generate N remote control data packets, wherein the repeated identification in the (N + 1) th remote control data packet is the repeated identification in the first remote control data packet which is updated for N times, and N is more than or equal to 1;
and broadcasting the N remote control data packets in sequence, wherein the N +1 remote control data packet starts to be broadcast after the N remote control data packet stops broadcasting.
In an optional embodiment, before the client generates the first remote control packet in response to an operation by the user, the method further includes:
acquiring a request through a Bluetooth broadcast identifier;
and receiving an identification acquisition response sent by the control equipment, wherein the identification acquisition response comprises the equipment data.
A remote control device, comprising:
the system comprises a first scanning unit, a second scanning unit and a third scanning unit, wherein the first scanning unit is used for carrying out Bluetooth broadcast scanning and receiving a first remote control data packet, the first remote control data packet is broadcasted by a client through Bluetooth, and the first remote control data packet comprises equipment data and key value data;
the analysis unit is used for analyzing the first remote control data packet and determining that the equipment data is consistent with pre-stored equipment data;
the determining unit is used for determining an operation instruction corresponding to the key value data according to a pre-stored corresponding relation;
and the execution unit is used for executing the operation instruction.
In an optional embodiment, the first remote control data packet further includes a duplicate identifier;
the determining unit is further configured to:
determining that the key value data in the first remote control data packet is consistent with the key value data in the last received remote control data packet;
judging whether the repeated mark in the first remote control data packet is consistent with the repeated mark in the last received remote control data packet;
if yes, discarding the first remote control data packet;
and if not, executing the operation instruction corresponding to the key value data according to the pre-stored corresponding relation.
In an optional embodiment, the apparatus further comprises a first broadcasting unit configured to:
broadcasting a remote control response of the first remote control data packet, wherein the remote control response comprises the equipment data and the key value data, so that the client stops broadcasting the first remote control data packet according to the remote control response.
In an optional embodiment, the apparatus further includes a first obtaining unit, configured to:
receiving an identification acquisition request of the client through Bluetooth broadcast;
and sending the device data to the client.
A remote control device, comprising:
the device comprises a generating unit, a processing unit and a processing unit, wherein the generating unit is used for responding to the operation of a user and generating a first remote control data packet, the first remote control data packet comprises device data and key value data, and the device data corresponds to control equipment so that the control equipment can execute an operation instruction corresponding to the key value data;
the second broadcasting unit is used for broadcasting the first remote control data packet through Bluetooth;
the second broadcasting unit is further configured to stop broadcasting the first remote control data packet after a preset condition is triggered.
In an optional embodiment, the apparatus further includes a second scanning unit, configured to receive a remote control response corresponding to the first remote control data packet;
the second broadcasting unit is further configured to stop broadcasting the first remote control data packet after the second scanning unit receives the remote control response corresponding to the first remote control data packet.
The second broadcasting unit is further configured to stop broadcasting the first remote control data packet after determining that the number of times of sending the first remote control data packet is greater than a number threshold.
In an optional embodiment, the first remote control data packet further includes a duplicate identifier;
the generating unit is used for responding to touch operation of a user and generating a first remote control data packet according to the position of the touch operation;
the generating unit is further configured to determine that the operation duration of the touch operation is greater than a duration threshold; updating the repeated identification in the first remote control data packet at a set frequency within the touch operation time period to generate N remote control data packets, wherein the repeated identification in the (N + 1) th remote control data packet is the repeated identification in the first remote control data packet which is updated for N times, and N is more than or equal to 1;
the second broadcasting unit is further configured to broadcast the N remote control data packets in sequence, where the nth remote control data packet starts to broadcast the (N + 1) th remote control data packet after the broadcast is stopped.
In an optional embodiment, the second broadcasting unit is further configured to:
acquiring a request through a Bluetooth broadcast identifier;
and receiving an identification acquisition response sent by the control equipment, wherein the identification acquisition response comprises the equipment data.
An embodiment of the present invention further provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as described above.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method as described above.
In the embodiment of the invention, the control equipment is connected with the client through Bluetooth broadcast, and the terminals where the control equipment and the client are located support the Bluetooth technology. The scanning function of the control device is turned on to continuously scan for broadcasts in the surrounding space. The client broadcasts a first remote control data packet through Bluetooth, wherein the first remote control data packet comprises equipment data and key value data. Wherein the device data corresponds to a control device. And after the control equipment receives the first remote control data packet, analyzing the first remote control data packet to obtain equipment data in the first remote control data packet. The control device compares the device data in the first remote control data packet with the pre-stored device data, and determines that the device data is consistent with the pre-stored device data, so that it can be determined that the first remote control data packet is a remote control data packet transmitted to itself. And the control equipment determines an operation instruction corresponding to the key value data according to the key value data and the pre-stored corresponding relation, and executes the operation instruction. In the embodiment of the invention, the remote control data packet is sent in a Bluetooth broadcast mode, the remote control data packet comprises the equipment data used for determining and matching the control equipment, and the control equipment and the terminal where the client is located do not need to be connected in the same local area network or to be matched in advance to establish connection, so that the remote control process of the control equipment is simplified, and the operation time is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a possible system architecture according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a possible interface of a terminal according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a remote control method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a remote control device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another remote control device provided in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a diagram of a remote control system architecture provided by an embodiment of the present application is shown, the remote control system including a terminal 101 and a control device 102. The terminal 101 may be an electronic device such as a mobile phone, a tablet computer, or a dedicated handheld device, which has a wireless communication function and supports bluetooth communication. The control device 102 may be an electronic device such as a projector that supports receiving and displaying a control signal through bluetooth, and the control device 102 may also be a set of electronic devices such as a television and a screen projector that receive a control signal through a set-top box and display the control signal through a display screen.
The terminal 101 is installed with a client, and the terminal 101 transmits a remote control packet to the control device 102 based on the client simulation remote control. The terminal 101 may also communicate with the server based on the installed client, and the terminal 101 may obtain the device data of the control device 102 in advance by broadcasting a request to the control device, and may also obtain the correspondence between the key-value data and the operation instruction supported by the control device 102 from the server in advance.
The terminal 101 broadcasts a remote control packet to the control device 102 via bluetooth. The control device 102 is typically an active long powered device, regardless of battery power, so the scanning function is always on, continuously scanning for broadcasts in the surrounding space. The scanning function of the terminal 101 is turned on when a broadcast is transmitted, for receiving a reply broadcast of the control device 102, and turned off when no broadcast is transmitted.
The embodiment of the present invention provides a preferred implementation manner, and the description is given by taking an example in which the terminal 101 is a mobile phone, and the control device 102 includes a set-top box and a screen projection display. Fig. 2 illustrates a possible interface diagram of a terminal, and as shown in fig. 2, multiple APPs, such as video, clock, call record, information, secure mailbox, mobile phone, S memo, setting, etc., may be installed in the terminal. In the embodiment of the invention, a client, such as a remote controller APP103, can be installed in the terminal in advance.
It should be noted that, although only one terminal and one control device are shown in fig. 1, in the embodiment of the present invention, the same terminal may simultaneously transmit remote control data packets to multiple control devices, and the same control device may receive remote control data packets transmitted by multiple terminals.
Based on the architecture of fig. 1, an embodiment of the present invention provides a remote control method, and as shown in fig. 3, the remote control method provided by the embodiment of the present invention includes the following steps:
step 301, the client responds to the operation of the user, and generates a first remote control data packet, where the first remote control data packet includes device data and key value data, and the device data corresponds to the control device, so that the control device executes an operation instruction corresponding to the key value data.
Specifically, the client may display an image similar to a key of the remote controller to the user, the user performs an operation at a corresponding position on the image, such as touching, long-pressing, and the like, the client obtains the operation position and the action of the user, determines an operation instruction that the user wants to input, and further generates a first remote control data packet, where the first remote control data packet includes device data and key value data.
The client pre-stores the corresponding relationship between the key-value data and the operation instruction, for example, the key-value data corresponding to the operation instruction "next" is 001, the key-value data corresponding to the operation instruction "volume up" is 002, the key-value data corresponding to the operation instruction "volume down" is 003, and the like. If the user wants to increase the volume, the user touches a key picture with the increased volume displayed by the mobile phone, the client determines that the key value data is 002 based on the operation of the user, and the key value data is 002 added into the first remote control data packet.
Step 302, the client broadcasts the first remote control data packet through bluetooth. The control equipment performs Bluetooth broadcast scanning and receives a first remote control data packet.
Since the control device, e.g., a set-top box, is typically an active long-powered device, and battery power is not a concern, the scanning function is always on, continuously scanning for broadcasts in the surrounding space.
In the specific implementation process, the mobile phone end sends a broadcast message to the control device, the broadcast message is a bluetooth low energy broadcast message, 7 message types are available according to a low energy bluetooth protocol, and the most basic universal broadcast identifier ADV _ IND can be adopted because only a remote control broadcast needs to be sent and information such as connection data and playing content does not need to be carried. In the general broadcast, the information such as the lead code, the access address and the like in the broadcast message is automatically filled by a Bluetooth protocol stack, the data section, namely the payload is designated by a user, the broadcast message carries 31 bytes of data at most, and the data volume of the length completely meets the use requirement of remote control.
For example, the payload section of a remote control data packet sent by the client through bluetooth broadcast may carry information as shown in table 1:
TABLE 1
1 manufacturer code 2 fixed code 3 key value 4 repeated identification
Two bytes (0xff 0x00) Two bytes (0xff 0x00) One byte (0x00-0xff) One byte (0x00-0xff)
The manufacturer code is a fixed identification code, and may correspond to device data, and is used to provide the control device with a basis for checking whether the data is valid data, for example, the manufacturer code of manufacturer a is 0x000x 01, and the manufacturer code of manufacturer B is 0x000x 0 f. The fixed code corresponds to the type of the remote control data packet, and since the control device receives other types of data in addition to the remote control data packet, the control device can identify the fixed code and determine the type of the data packet for distinction. For example, if the type of the data packet sent by the client to the control device is a remote control type data packet, the corresponding fixed code is 0xff 0x 00; correspondingly, when the control device feeds back the response broadcast to the client, the corresponding fixed code is 0x000xff because the type of the data packet is the data packet of the confirmation type. The key value data is a byte, and 256 key values can be represented. The repeated identifier is also a byte, which indicates whether the key value data is a single event or a continuous key event, and is used for simulating a continuous key scene, for example, when the user needs to increase the volume greatly, the user presses the 'volume increase' for a long time. It should be noted that the manufacturer code, the fixed code, the key value, and the repeated identifier in the table are all examples, and are not limited, and the encoding form and the number of bytes thereof may be arbitrarily selected and adjusted according to the actual situation.
Further, if there are multiple Control devices, the device data further includes a specific device identifier for distinguishing each Control device, for example, a Media Access Control (MAC) Address (translated to a Media Access Control Address) of the Control device is added to the remote Control data packet, and at this time, information carried in a payload section of the remote Control data packet may be as shown in table 2:
TABLE 2
Figure BDA0002204215840000101
At this time, the control device not only needs to compare the manufacturer code with the fixed code, but also needs to compare the MAC address of the control device carried therein, and when the above contents are all correct, the key value data is processed.
Step 303, the control device analyzes the first remote control data packet, and determines that the device data is consistent with the pre-stored device data.
Specifically, the control device executes subsequent operations after determining that the received device data is consistent with the pre-stored device data, and otherwise discards the remote control data packet without processing.
And step 304, the control equipment determines an operation instruction corresponding to the key value data according to the pre-stored corresponding relation.
The control device also prestores the corresponding relation between the key value data and the operation instruction, and after receiving the key value data sent by the client, the operation instruction corresponding to the key value data is found from the corresponding relation. For example, the key value data 002 is received, and the operation command corresponding to the key value data 002 is determined as "volume up" from the correspondence relationship.
Step 305, the control device executes the operation instruction.
Specifically, if the control device includes a set top box and a display device such as a screen projection device, the set top box generates a specific event according to the operation instruction and sends the event to the screen projection device, so that the screen projection device executes a corresponding operation, for example, the set top box sends a volume increase message to the screen projection device according to the "volume increase" operation instruction, so that the screen projection device increases the volume. In another case, if the control device is an independent device such as a projector, the projector directly executes the received operation command.
And step 306, after the client is triggered by the preset condition, stopping broadcasting the first remote control data packet.
In the embodiment of the invention, the control equipment is connected with the client through Bluetooth broadcast, and the terminals where the control equipment and the client are located support the Bluetooth technology. The scanning function of the control device is turned on to continuously scan for broadcasts in the surrounding space. The client broadcasts a first remote control data packet through Bluetooth, wherein the first remote control data packet comprises equipment data and key value data. Wherein the device data corresponds to a control device. And after the control equipment receives the first remote control data packet, analyzing the first remote control data packet to obtain equipment data in the first remote control data packet. The control device compares the device data in the first remote control data packet with the pre-stored device data, and determines that the device data is consistent with the pre-stored device data, so that it can be determined that the first remote control data packet is a remote control data packet transmitted to itself. And the control equipment determines an operation instruction corresponding to the key value data according to the key value data and the pre-stored corresponding relation, and executes the operation instruction. In the embodiment of the invention, the remote control data packet is sent in a Bluetooth broadcast mode, the remote control data packet comprises the equipment data used for determining and matching the control equipment, and the control equipment and the terminal where the client is located do not need to be connected in the same local area network or to be matched in advance to establish connection, so that the remote control process of the control equipment is simplified, and the operation time is reduced.
Because the control equipment receives the Bluetooth broadcast in a scanning mode, the first remote control data packet is acquired when the Bluetooth broadcast exists around the control equipment, and if the client only sends one first remote control data packet, the control equipment does not receive the first remote control data packet.
In order to reduce the sending times of the remote control data packet of the client and save resources, the method further includes the following steps that after the control device analyzes the first remote control data packet and determines that the device data is consistent with the pre-stored device data:
broadcasting a remote control response of the first remote control data packet, wherein the remote control response comprises the equipment data and the key value data, so that the client stops broadcasting the first remote control data packet according to the remote control response.
Specifically, after receiving the first remote control data packet, the control device still broadcasts the remote control response of the first remote control data packet through bluetooth. The remote control response still contains the corresponding device data and the key value data, so that the client can immediately stop broadcasting the first remote control data packet after receiving the remote control response. Still taking the remote control data packet in table 1 as an example, the payload section of the remote control response corresponding to the remote control data packet may carry information as shown in table 3:
TABLE 3
1 manufacturer code 2 fixed code 3 key value 4 repeated identification
Two bytes (0xff 0x00) Two bytes (0x 00) 0xff) One byte (0x00-0xff) One byte 0x00-0xff
Comparing table 3 with table 1, it can be seen that the data is the same except for the fixed code content. The content of the fixed code is different because the data packet sent by the client to the control device is a remote control type data packet, the data packet sent by the control device to the client is a response type data packet, and the types of the data packet and the response type data packet are different. The client may determine the corresponding first remote control packet according to the received remote control response, thereby stopping broadcasting of the first remote control packet.
Preferably, after the preset condition is triggered, stopping broadcasting the first remote control data packet, including:
after receiving a remote control response corresponding to the first remote control data packet, stopping broadcasting the first remote control data packet; or,
and stopping broadcasting the first remote control data packet after determining that the sending times of the first remote control data packet is greater than a time threshold.
In a specific implementation process, the client stops broadcasting the first remote control packet, and may be based on receiving a remote control response corresponding to the first remote control packet, or may preset the number of times of sending the first remote control packet, which may be generally set to 5 times. That is, after the client transmits the first remote control packet 5 times, even if the remote control response to the first remote control packet is not received, the transmission of the first remote control packet is stopped. For example, during the mobile phone broadcasting, the first remote control packet is continuously broadcast five times, and each broadcast is sent 100ms apart by 20 ms. (the time is relative to the time for sending a key value by an infrared remote controller, the time is 100ms for sending a complete infrared key value according to an NEC protocol, and the sending time of the Bluetooth low-power-consumption broadcast is far shorter than the sending time of the infrared key value about 300 us.) in the 5-time broadcasting process, the mobile phone stops broadcasting after receiving the remote control response of the set top box, the broadcasting is not required to be carried out for five times, and if the remote control response of the set top box is not received, the broadcasting is carried out for five times.
In the process that a user operates the control device by using a client, certain operations need to be continuously executed, for example, the operation of increasing the volume, if the user needs to continuously increase the volume, the user can press the analog key for increasing the volume in the mobile phone screen for a long time, and finally the control device continuously increases the volume until the volume value required by the user. In this case, the client needs to transmit a plurality of remote control packets for increasing the volume to the control device according to the user's operation. In order to distinguish from the above-mentioned multiple first remote control data packets which are repeatedly broadcasted, in the embodiment of the present invention, a repeat identifier is added in the payload area of the remote control data packet.
That is, the first remote control data packet further includes a duplicate identifier;
the client responds to the operation of a user and generates a first remote control data packet, and the method comprises the following steps:
responding to touch operation of a user, and generating a first remote control data packet according to the position of the touch operation;
after the broadcasting of the first remote control data packet is stopped after the triggering of the preset condition, the method further comprises the following steps:
determining that the operation duration of the touch operation is greater than a duration threshold;
updating the repeated identification in the first remote control data packet at a set frequency within the touch operation time period to generate N remote control data packets, wherein the repeated identification in the (N + 1) th remote control data packet is the repeated identification in the first remote control data packet which is updated for N times, and N is more than or equal to 1;
and broadcasting the N remote control data packets in sequence, wherein the N +1 remote control data packet starts to be broadcast after the N remote control data packet stops broadcasting.
In a specific implementation process, when receiving a touch operation of a user, a client first generates a first remote control data packet according to a position of the touch operation and broadcasts and transmits the first remote control data packet. If the operation duration of the touch operation of the user is greater than the duration threshold, for example, the user presses a key for a long time, the client updates the repeated identifier after stopping broadcasting the first remote control data packet, generates a second remote control data packet, and broadcasts the second remote control data packet. Here, the method of broadcasting the second remote control packet by the client is the same as the method of broadcasting the first remote control packet. Similarly, after stopping broadcasting the second remote control data packet, the client continuously updates the repeated identifier, generates a third remote control data packet, and broadcasts the third remote control data packet. And by analogy, the client continuously generates a remote control data packet in the operation time of the user and sends the remote control data packet to the control device, so that the control device continuously executes the operation instruction.
For example, the client may generate the remote control data packet according to a set frequency in the continuous process of the touch operation of the user, for example, when the touch operation is just received, generate and broadcast a first remote control data packet, generate and broadcast a second remote control data packet 50ms after the first remote control data packet is generated, generate and broadcast a third remote control data packet 50ms after the second remote control data packet is generated, and so on until the touch operation is stopped by the user. Wherein, the key value data in the first remote control data packet is 003, and the repeated mark is 000; the key value data in the second remote control data packet is 003, and the repeated mark is 001; the key-value data in the third remote control packet is 003, the repetition identification is 002, and so on.
Preferably, in another possible embodiment, each remote control packet may be broadcast multiple times in order to avoid the control device missing the reception of the remote control packet. For example, when the user presses the analog key corresponding to "volume up" in the mobile phone for a long time, the mobile phone first broadcasts a first remote control data packet, where the first remote control data packet includes key value data 002 and a repetition identifier 000. After the first remote control data packet is broadcasted for 5 times or the mobile phone receives a remote control response aiming at the first remote control data packet, the repetition identifier in the first remote control data packet is added with 1, other contents are unchanged, and a second remote control data packet is generated, namely the repetition identifier of the second remote control data packet is 001. After the second remote control packet is broadcast 5 times or the mobile phone receives a remote control response to the second remote control packet, the repetition identifier in the second remote control packet is added by 1, and other contents are unchanged, so that a third remote control packet is generated, namely the repetition identifier of the third remote control packet is 002. And so on until the user leaves the analog key of "volume up".
Correspondingly, after the remote control data packet is received by the control device, the repeated identifier also needs to be identified, and corresponding operation is performed according to the content of the repeated identifier. After analyzing the first remote control data packet and determining that the device data is consistent with the pre-stored device data, the method further includes:
determining that the key value data in the first remote control data packet is consistent with the key value data in the last received remote control data packet;
judging whether the repeated mark in the first remote control data packet is consistent with the repeated mark in the last received remote control data packet;
if yes, discarding the first remote control data packet;
and if not, executing the operation instruction corresponding to the key value data according to the pre-stored corresponding relation.
In a specific implementation process, for each received remote control data packet, the control device compares the remote control data packet with a previous remote control data packet, compares whether key value data of the remote control data packet is consistent with key value data of the previous remote control data packet, if the key value data of the remote control data packet is not consistent with the key value data of the previous remote control data packet, directly executes a current remote control data packet, if the key value data of the remote control data packet is the key value data of the previous remote control data packet, continuously judges whether repetition identifications of the remote control data packet are consistent with repetition identifications of the previous remote control data packet, if the key value data of the remote control data packet are consistent with the repetition identifications of the previous remote control data packet, indicates that the two remote control data packets are the.
The example of the user increasing the volume is still used for description. And the control equipment receives the first remote control data packet, determines that the key value data of the first remote control data packet is 002, and the repeated identification is 000, executes a corresponding operation instruction, and increases the volume by 1. The control equipment receives the second remote control data packet, compares the second remote control data packet with the first remote control data packet, determines that the key value data of the second remote control data packet is still 002 and the repeated mark is still 000, and indicates that the second remote control data packet is the same as the first remote control data packet, and the second remote control data packet can be directly discarded without repeated execution. And the control equipment receives the third remote control data packet, compares the third remote control data packet with the second remote control data packet, determines that the key value data of the third remote control data packet is still 002 and the repeated identifier is 001, executes an operation instruction corresponding to the third remote control data packet, adds 1 to the volume and increases the volume by 2 at the moment. And in the same way, the control equipment continues to process the received fourth remote control data packet and the received fifth remote control data packet, and continuously increases the volume by 1. And if the control equipment receives the sixth remote control data packet, the sixth remote control data packet is compared with the fifth remote control data packet, and the key value data of the sixth remote control data packet is determined not to be 002, namely the sixth remote control data packet is different from the fifth remote control data packet, the operation instruction corresponding to the sixth remote control data packet is directly executed. In the above process, the volume is increased by 4 in total.
Further, when the control device does not receive a new remote control data packet with the repeated identifier increased for more than 100ms, the control device also stops the flow of the volume increase, compares the difference between the number of times of executing the volume increase and the increment of the repeated identifier, and stops the execution of the volume increase if the difference is less than 2. If the difference is greater than 2, the control device will perform the volume increasing operation again.
Further, the client may acquire data required for remote control from the server at the time of initialization, or acquire data required for remote control from a specific control device.
As for the former, before the client generates the first remote control packet in response to an operation by a user, the method further includes:
acquiring a request through a Bluetooth broadcast identifier;
and receiving an identification acquisition response sent by the control equipment, wherein the identification acquisition response comprises the equipment data.
Specifically, the device data in the embodiment of the present invention may include a manufacturer code of the control device, a correspondence between key value data and an operation instruction, a correspondence between a fixed code and a data type, and the like. The client may send a data obtaining request to the server during initialization to obtain device data, such as a manufacturer code in a table, and a corresponding relationship between key value data and an operation instruction. In addition, the corresponding relation between the fixed code and the data type can be obtained.
Preferably, since there is a case where the same client operates a plurality of control devices at the same time, the device data may be a device identification, such as a MAC address, of the control device. The client passes through the bluetooth broadcast identification acquisition request to acquire MAC addresses of a plurality of control devices in the surrounding environment.
The control device performs bluetooth scanning, and further includes, before receiving the first remote control packet:
receiving an identification acquisition request of the client through Bluetooth broadcast;
and sending the device data to the client.
Specifically, for the device identifier, the client may broadcast the identifier acquisition request via bluetooth before the remote control packet is first sent to the control device. After receiving the bluetooth broadcast request, the control device determines to process the identifier acquisition request according to the manufacturer code in the bluetooth broadcast request, and feeds back device data, such as its own MAC address. And after receiving the MAC address, the client displays the corresponding relation between the MAC address and the control equipment to the user for the user to select. The client stores the MAC address of the control device selected by the user in response to the user's operation.
In order to more clearly understand the present invention, the above flow is described in detail below with a specific embodiment, in the specific embodiment, a client is installed on a mobile phone, and a control device is a set-top box of a television, and the specific steps are as follows, including:
step S401: the client responds to the touch operation of the user on the simulated key for playing, and generates a first remote control data packet which comprises the equipment data of the set top box, key value data 001 and the repeated identification 000.
Step S402: the client broadcasts the first remote control data packet at a set frequency through Bluetooth.
Step S403: the set top box performs Bluetooth broadcast scanning and receives the first remote control data packet.
Step S404: the set-top box analyzes the first remote control data packet, compares the device data in the first remote control data packet with the pre-stored device data, if the device data in the first remote control data packet is consistent with the pre-stored device data, the step S405 is executed, otherwise, the first remote control data packet is discarded.
Step S405: and the set top box determines the operation instruction corresponding to the key value data 001 as playing according to the pre-stored corresponding relation.
Step S406: the set top box sends a playing event to the television, and the television plays the current video.
Step S407: the set-top box broadcasts the remote control response of the first remote control data packet, and the client stops broadcasting the first remote control data packet according to the received remote control response.
Step S408: the client responds to the touch operation of the user on the analog key for volume plus, and generates a second remote control data packet which comprises the equipment data of the set top box, key value data 002 and the repeated identification 000.
Step S409: the client broadcasts the second remote control data packet at a set frequency through Bluetooth.
Step S410: the set-top box performs Bluetooth broadcast scanning and receives the second remote control data packet.
Step S411: the set-top box analyzes the second remote control data packet, compares the device data in the second remote control data packet with the pre-stored device data, if the device data in the second remote control data packet is consistent with the pre-stored device data, the step S412 is executed, otherwise, the second remote control data packet is discarded.
Step S412: and the set top box determines the operation instruction corresponding to the key value data 002 to be volume plus according to the pre-stored corresponding relation.
Step S413: the set-top box sends a volume increase event to the television, and the television increases the volume by 1.
Step S414: the set-top box broadcasts the remote control response of the second remote control data packet, and the client stops broadcasting the second remote control data packet according to the received remote control response.
Step S415: the client determines that the duration of the touch operation of the user on the analog key "volume plus" is greater than a duration threshold, and generates a third remote control data packet after the broadcasting of the second remote control data packet is stopped, wherein the third remote control data packet comprises the device data of the set top box, the key value data 002 and the repeated identifier 001.
Step S416: and the client broadcasts a third remote control data packet at a set frequency through Bluetooth.
Step S417: the set-top box performs Bluetooth broadcast scanning and receives a third remote control data packet.
Step S418: the set-top box analyzes the third remote control data packet, compares the device data in the third remote control data packet with the pre-stored device data, if the device data in the third remote control data packet is consistent with the pre-stored device data, the step S419 is executed, otherwise, the third remote control data packet is discarded.
Step S419: and the set top box determines the operation instruction corresponding to the key value data 002 to be volume plus according to the pre-stored corresponding relation.
Step S420: if the set-top box determines that the repetition identifier 001 in the third remote control data packet is different from the repetition identifier 000 in the second remote control data packet, step S421 is executed, otherwise, the third remote control data packet is discarded.
Step S421: the set-top box sends a volume increase event to the television, and the television increases the volume by 1.
Step S422: and the set top box broadcasts the remote control response of the third remote control data packet, and the client stops broadcasting the third remote control data packet according to the received remote control response.
Step S423: and in the continuous process of the touch operation of the user on the analog key, after the Nth remote control data packet stops broadcasting, the client generates an (N + 1) th remote control data packet, wherein the repeated identifier in the (N + 1) th remote control data packet is 00N, and the rest content is unchanged. And the client broadcasts the (N + 1) th remote control data packet, the set-top box sends a volume increasing event to the television according to the received (N + 1) th remote control data packet, and the television increases the volume by 1.
An embodiment of the present invention further provides a remote control device, as shown in fig. 4, including:
a first scanning unit 501, configured to perform bluetooth broadcast scanning and receive a first remote control data packet, where the first remote control data packet is broadcasted by a client via bluetooth, and the first remote control data packet includes device data and key value data;
an analyzing unit 502, configured to analyze the first remote control data packet, and determine that the device data is consistent with pre-stored device data;
a determining unit 503, configured to determine, according to a pre-stored correspondence, an operation instruction corresponding to the key value data;
an execution unit 504, configured to execute the operation instruction.
Optionally, the first remote control data packet further includes a duplicate identifier;
the determining unit 503 is further configured to:
determining that the key value data in the first remote control data packet is consistent with the key value data in the last received remote control data packet;
judging whether the repeated mark in the first remote control data packet is consistent with the repeated mark in the last received remote control data packet;
if yes, discarding the first remote control data packet;
and if not, executing the operation instruction corresponding to the key value data according to the pre-stored corresponding relation.
Optionally, a first broadcasting unit 505 is further included, configured to:
broadcasting a remote control response of the first remote control data packet, wherein the remote control response comprises the equipment data and the key value data, so that the client stops broadcasting the first remote control data packet according to the remote control response.
Optionally, a first obtaining unit 506 is further included, configured to:
receiving an identification acquisition request of the client through Bluetooth broadcast;
and sending the device data to the client.
An embodiment of the present invention further provides another remote control device, as shown in fig. 5, including:
a generating unit 601, configured to generate a first remote control data packet in response to an operation of a user, where the first remote control data packet includes device data and key value data, and the device data corresponds to a control device so that the control device executes an operation instruction corresponding to the key value data;
a second broadcasting unit 602, configured to broadcast the first remote control packet via bluetooth;
the second broadcasting unit 602 is further configured to stop broadcasting the first remote control data packet after a preset condition is triggered.
The system further comprises a second scanning unit 603, configured to receive a remote control response corresponding to the first remote control data packet;
the second broadcasting unit 602 is further configured to stop broadcasting the first remote control packet after the second scanning unit receives the remote control response corresponding to the first remote control packet.
The second broadcasting unit 602 is further configured to stop broadcasting the first remote control packet after determining that the number of times of sending the first remote control packet is greater than a number threshold.
The first remote control data packet also comprises a repeated identifier;
the generating unit 601 is configured to generate a first remote control data packet according to a position of a touch operation in response to the touch operation of a user;
the generating unit 601 is further configured to determine that an operation duration of the touch operation is greater than a duration threshold; updating the repeated identification in the first remote control data packet at a set frequency within the touch operation time period to generate N remote control data packets, wherein the repeated identification in the (N + 1) th remote control data packet is the repeated identification in the first remote control data packet which is updated for N times, and N is more than or equal to 1;
the second broadcasting unit 602 is further configured to broadcast the N remote control data packets in sequence, where after the nth remote control data packet stops broadcasting, the (N + 1) th remote control data packet starts to be broadcast.
The second broadcasting unit 602 is further configured to:
acquiring a request through a Bluetooth broadcast identifier;
and receiving an identification acquisition response sent by the control equipment, wherein the identification acquisition response comprises the equipment data.
Based on the same principle, the present invention also provides an electronic device, as shown in fig. 6, including:
the system comprises a processor 701, a memory 702, a transceiver 703 and a bus interface 704, wherein the processor 701, the memory 702 and the transceiver 703 are connected through the bus interface 704;
the processor 701 is configured to read the program in the memory 702, and execute the following method:
performing Bluetooth broadcast scanning, and receiving a first remote control data packet, wherein the first remote control data packet is broadcasted by a client through Bluetooth, and the first remote control data packet comprises device data and key value data;
analyzing the first remote control data packet, and determining that the equipment data is consistent with pre-stored equipment data;
determining an operation instruction corresponding to the key value data according to a pre-stored corresponding relation;
and executing the operation instruction.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (18)

1. A remote control method, comprising:
the method comprises the steps that control equipment performs Bluetooth broadcast scanning and receives a first remote control data packet, wherein the first remote control data packet is broadcasted by a client through Bluetooth, and the first remote control data packet comprises equipment data and key value data;
analyzing the first remote control data packet, and determining that the equipment data is consistent with pre-stored equipment data;
determining an operation instruction corresponding to the key value data according to a pre-stored corresponding relation;
and executing the operation instruction.
2. The method of claim 1, wherein the first remote control packet further comprises a duplicate identification;
after analyzing the first remote control data packet and determining that the device data is consistent with the pre-stored device data, the method further includes:
determining that the key value data in the first remote control data packet is consistent with the key value data in the last received remote control data packet;
judging whether the repeated mark in the first remote control data packet is consistent with the repeated mark in the last received remote control data packet;
if yes, discarding the first remote control data packet;
and if not, executing the operation instruction corresponding to the key value data according to the pre-stored corresponding relation.
3. The method of claim 1, wherein after parsing the first remote control packet and determining that the device data is consistent with pre-stored device data, further comprising:
broadcasting a remote control response of the first remote control data packet, wherein the remote control response comprises the equipment data and the key value data, so that the client stops broadcasting the first remote control data packet according to the remote control response.
4. The method of any of claims 1 to 3, wherein the control device performs a Bluetooth scan and further comprises, prior to receiving the first remote control packet:
receiving an identification acquisition request of the client through Bluetooth broadcast;
and sending the device data to the client.
5. A remote control method, comprising:
the client responds to the operation of a user and generates a first remote control data packet, the first remote control data packet comprises equipment data and key value data, and the equipment data corresponds to control equipment so that the control equipment executes an operation instruction corresponding to the key value data;
broadcasting the first remote control data packet through Bluetooth;
and stopping broadcasting the first remote control data packet after a preset condition is triggered.
6. The method of claim 5, wherein stopping broadcasting the first remote control packet after a preset condition is triggered comprises:
after receiving a remote control response corresponding to the first remote control data packet, stopping broadcasting the first remote control data packet; or,
and stopping broadcasting the first remote control data packet after determining that the sending times of the first remote control data packet is greater than a time threshold.
7. The method of claim 5, wherein the first remote control packet further comprises a duplicate identification;
the client responds to the operation of a user and generates a first remote control data packet, and the method comprises the following steps:
responding to touch operation of a user, and generating a first remote control data packet according to the position of the touch operation;
after the broadcasting of the first remote control data packet is stopped after the triggering of the preset condition, the method further comprises the following steps:
determining that the operation duration of the touch operation is greater than a duration threshold;
updating the repeated identification in the first remote control data packet at a set frequency within the touch operation time period to generate N remote control data packets, wherein the repeated identification in the (N + 1) th remote control data packet is the repeated identification in the first remote control data packet which is updated for N times, and N is more than or equal to 1;
and broadcasting the N remote control data packets in sequence, wherein the N +1 remote control data packet starts to be broadcast after the N remote control data packet stops broadcasting.
8. The method of any of claims 5 to 7, wherein the client, prior to generating the first remoting package in response to an operation by the user, further comprises:
acquiring a request through a Bluetooth broadcast identifier;
and receiving an identification acquisition response sent by the control equipment, wherein the identification acquisition response comprises the equipment data.
9. A remote control device, comprising:
the system comprises a first scanning unit, a second scanning unit and a third scanning unit, wherein the first scanning unit is used for carrying out Bluetooth broadcast scanning and receiving a first remote control data packet, the first remote control data packet is broadcasted by a client through Bluetooth, and the first remote control data packet comprises equipment data and key value data;
the analysis unit is used for analyzing the first remote control data packet and determining that the equipment data is consistent with pre-stored equipment data;
the determining unit is used for determining an operation instruction corresponding to the key value data according to a pre-stored corresponding relation;
and the execution unit is used for executing the operation instruction.
10. The apparatus of claim 9, wherein the first remote control packet further comprises a duplicate identification;
the determining unit is further configured to:
determining that the key value data in the first remote control data packet is consistent with the key value data in the last received remote control data packet;
judging whether the repeated mark in the first remote control data packet is consistent with the repeated mark in the last received remote control data packet;
if yes, discarding the first remote control data packet;
and if not, executing the operation instruction corresponding to the key value data according to the pre-stored corresponding relation.
11. The apparatus of claim 9, further comprising a first broadcasting unit to:
broadcasting a remote control response of the first remote control data packet, wherein the remote control response comprises the equipment data and the key value data, so that the client stops broadcasting the first remote control data packet according to the remote control response.
12. The apparatus according to any of claims 9 to 11, further comprising a first obtaining unit configured to:
receiving an identification acquisition request of the client through Bluetooth broadcast;
and sending the device data to the client.
13. A remote control device, comprising:
the device comprises a generating unit, a processing unit and a processing unit, wherein the generating unit is used for responding to the operation of a user and generating a first remote control data packet, the first remote control data packet comprises device data and key value data, and the device data corresponds to control equipment so that the control equipment can execute an operation instruction corresponding to the key value data;
the second broadcasting unit is used for broadcasting the first remote control data packet through Bluetooth;
the second broadcasting unit is further configured to stop broadcasting the first remote control data packet after a preset condition is triggered.
14. The apparatus of claim 13,
the second scanning unit is used for receiving the remote control response corresponding to the first remote control data packet;
the second broadcasting unit is further configured to stop broadcasting the first remote control data packet after the second scanning unit receives the remote control response corresponding to the first remote control data packet;
the second broadcasting unit is further configured to stop broadcasting the first remote control data packet after determining that the number of times of sending the first remote control data packet is greater than a number threshold.
15. The apparatus of claim 13, wherein the first remote control packet further comprises a duplicate identification;
the generating unit is used for responding to touch operation of a user and generating a first remote control data packet according to the position of the touch operation;
the generating unit is further configured to determine that the operation duration of the touch operation is greater than a duration threshold; updating the repeated identification in the first remote control data packet at a set frequency within the touch operation time period to generate N remote control data packets, wherein the repeated identification in the (N + 1) th remote control data packet is the repeated identification in the first remote control data packet which is updated for N times, and N is more than or equal to 1;
the second broadcasting unit is further configured to broadcast the N remote control data packets in sequence, where the nth remote control data packet starts to broadcast the (N + 1) th remote control data packet after the broadcast is stopped.
16. The apparatus of any of claims 13 to 15, wherein the second broadcasting unit is further configured to:
acquiring a request through a Bluetooth broadcast identifier;
and receiving an identification acquisition response sent by the control equipment, wherein the identification acquisition response comprises the equipment data.
17. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
18. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 4.
CN201910875578.4A 2019-09-17 2019-09-17 Remote control method and device Active CN112530149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910875578.4A CN112530149B (en) 2019-09-17 2019-09-17 Remote control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910875578.4A CN112530149B (en) 2019-09-17 2019-09-17 Remote control method and device

Publications (2)

Publication Number Publication Date
CN112530149A true CN112530149A (en) 2021-03-19
CN112530149B CN112530149B (en) 2023-09-22

Family

ID=74974500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910875578.4A Active CN112530149B (en) 2019-09-17 2019-09-17 Remote control method and device

Country Status (1)

Country Link
CN (1) CN112530149B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023273856A1 (en) * 2021-06-30 2023-01-05 华为技术有限公司 Wake-up method and system
WO2023124257A1 (en) * 2021-12-30 2023-07-06 中兴通讯股份有限公司 Networking method of bluetooth device, terminal device and bluetooth device
CN117289642A (en) * 2023-11-27 2023-12-26 荣耀终端有限公司 Response method and control method of external control and electronic equipment

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001197578A (en) * 2000-01-13 2001-07-19 Sanyo Electric Co Ltd Remote controller
JP2003348676A (en) * 2002-05-28 2003-12-05 Matsushita Electric Ind Co Ltd Infrared ray remote controller
CN1464727A (en) * 2002-06-07 2003-12-31 周颖平 Method for wireless remote control using mobile phone short message
TWI273781B (en) * 2005-09-20 2007-02-11 Avermedia Tech Inc Remote controller
CN101493988A (en) * 2009-02-27 2009-07-29 深圳华为通信技术有限公司 Method for configuring teleswitch value information, control equipment and system
JP2009278510A (en) * 2008-05-16 2009-11-26 Ntt Docomo Inc Mobile communication terminal, and message reception method in broadcasting distribution
CN101719311A (en) * 2009-12-21 2010-06-02 成都九洲电子信息系统有限责任公司 Method for infrared remote control of computer
CN102096998A (en) * 2009-12-10 2011-06-15 中国联合网络通信集团有限公司 Remote control information receiving and processing method and system as well as digital television receiving device
WO2011118227A1 (en) * 2010-03-26 2011-09-29 パナソニック株式会社 Wireless remote control signal transmitter and wireless remote control signal receiver
CN202662143U (en) * 2012-04-11 2013-01-09 东莞市漫步者科技有限公司 Remote controller device
CN103023523A (en) * 2012-10-31 2013-04-03 深圳桑菲消费通信有限公司 Wireless remote control terminal
JP2013204975A (en) * 2012-03-29 2013-10-07 Fujitsu General Ltd Remote control device of air conditioner
CN104065993A (en) * 2014-07-09 2014-09-24 陈玮君 Remote control method and remote control system
CN104202638A (en) * 2014-08-27 2014-12-10 深圳市启望科文技术有限公司 Key remote control and method for controlling electronic device through same
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
CN108010298A (en) * 2017-12-19 2018-05-08 青岛海信移动通信技术股份有限公司 Apparatus control method and device
CN108407736A (en) * 2018-03-05 2018-08-17 奇瑞汽车股份有限公司 A kind of control method and system of the communication of generalization automobile remote-control

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001197578A (en) * 2000-01-13 2001-07-19 Sanyo Electric Co Ltd Remote controller
JP2003348676A (en) * 2002-05-28 2003-12-05 Matsushita Electric Ind Co Ltd Infrared ray remote controller
CN1464727A (en) * 2002-06-07 2003-12-31 周颖平 Method for wireless remote control using mobile phone short message
TWI273781B (en) * 2005-09-20 2007-02-11 Avermedia Tech Inc Remote controller
JP2009278510A (en) * 2008-05-16 2009-11-26 Ntt Docomo Inc Mobile communication terminal, and message reception method in broadcasting distribution
CN101493988A (en) * 2009-02-27 2009-07-29 深圳华为通信技术有限公司 Method for configuring teleswitch value information, control equipment and system
CN102096998A (en) * 2009-12-10 2011-06-15 中国联合网络通信集团有限公司 Remote control information receiving and processing method and system as well as digital television receiving device
CN101719311A (en) * 2009-12-21 2010-06-02 成都九洲电子信息系统有限责任公司 Method for infrared remote control of computer
WO2011118227A1 (en) * 2010-03-26 2011-09-29 パナソニック株式会社 Wireless remote control signal transmitter and wireless remote control signal receiver
JP2013204975A (en) * 2012-03-29 2013-10-07 Fujitsu General Ltd Remote control device of air conditioner
CN202662143U (en) * 2012-04-11 2013-01-09 东莞市漫步者科技有限公司 Remote controller device
CN103023523A (en) * 2012-10-31 2013-04-03 深圳桑菲消费通信有限公司 Wireless remote control terminal
CN104065993A (en) * 2014-07-09 2014-09-24 陈玮君 Remote control method and remote control system
CN104202638A (en) * 2014-08-27 2014-12-10 深圳市启望科文技术有限公司 Key remote control and method for controlling electronic device through same
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
CN108010298A (en) * 2017-12-19 2018-05-08 青岛海信移动通信技术股份有限公司 Apparatus control method and device
CN108407736A (en) * 2018-03-05 2018-08-17 奇瑞汽车股份有限公司 A kind of control method and system of the communication of generalization automobile remote-control

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023273856A1 (en) * 2021-06-30 2023-01-05 华为技术有限公司 Wake-up method and system
WO2023124257A1 (en) * 2021-12-30 2023-07-06 中兴通讯股份有限公司 Networking method of bluetooth device, terminal device and bluetooth device
CN117289642A (en) * 2023-11-27 2023-12-26 荣耀终端有限公司 Response method and control method of external control and electronic equipment
CN117289642B (en) * 2023-11-27 2024-04-16 荣耀终端有限公司 Response method and control method of external control and electronic equipment

Also Published As

Publication number Publication date
CN112530149B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
CN110381599B (en) Sidelink transmission method and terminal
CN109076378B (en) Transmission configuration method and device
EP3148161B1 (en) Message transmission method, message reception method and apparatus, computer program and recording medium
US10306437B2 (en) Smart device grouping system, method and apparatus
US20210336737A1 (en) Measurement configuration method, apparatus, devices, system, and storage medium
EP3291539A2 (en) Device control method and apparatus
CN112020048B (en) Bluetooth device pairing method, device and storage medium
CN112530149B (en) Remote control method and device
CN109842917B (en) Transmission method of system information block and user terminal
US20200305099A1 (en) Methods and apparatus for indicating and determining synchronization block, and base station and user equipment
CN110769517B (en) Random access method and related equipment
US20160227470A1 (en) Bluetooth low energy packets
CN110769516A (en) Random access method and related equipment
EP4152816A1 (en) Information transmission method and apparatus, and electronic device
CN111132111A (en) BLE-based audio sharing method and system and computer-readable storage medium
US20210153208A1 (en) Downlink control information sending method and receiving method, apparatus, and storage medium
JP2022523509A (en) Information transmission method, information detection method, terminal equipment and network equipment
CN112492611A (en) Network configuration method, network configuration device, electronic equipment and readable storage medium
US10347120B2 (en) Display device, and integrated remote controller setting method and system for same
CN109328482B (en) Control instruction transmission method, base station, terminal and storage medium
CN110035473B (en) System information transmission method and user terminal
EP3787320A1 (en) Information indicating and interpreting method and device, base station and user equipment
CN110959300B (en) Data transmission method, device, equipment, system and storage medium
CN114095295B (en) Intelligent doorbell information inheritance method, intelligent doorbell and computer readable storage medium
CN112055234A (en) Television equipment screen projection processing method, equipment and storage medium

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