Device control method, device, terminal and storage medium
By obtaining the parameter information of the IoT device and generating the target data packet, and sending it directly to the device, the problem of time-consuming connection between APP and IoT devices in the prior art is solved, and the function of quickly remotely controlling the IoT device is realized.
Patent Information
- Application Number
- CN202111171390.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-08
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-10-08
AI Technical Summary
In the prior art, users need to first connect the APP on the terminal to the IoT device, which makes the IoT device remote control process time-consuming and cannot be quickly remotely controlled.
By obtaining the parameter information of the device to be controlled, the target band is determined, and the target data packet is generated based on the operation data, and it is directly sent to the device to be controlled through the target band to perform the corresponding operation.
It enables fast remote control of IoT devices without pre-connection, solving the problem that users cannot quickly remote control of devices.
Smart Images

Figure CN113885340B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of equipment control, and in particular to an equipment control method, device, terminal and storage medium. Background Art
[0002] The Internet of Things (IoT) is a network that connects physical devices, vehicles, buildings, and other things embedded with electronic devices, software, sensors, etc. to the Internet, allowing these objects to collect and exchange data. Common IoT devices include: wearable or embedded devices, such as devices that monitor physical health; or home environment control devices, such as thermostats; or environmental monitoring devices, such as adaptive traffic control systems, etc.
[0003] Currently, the remote control method of IoT devices usually requires the relevant APP on the user's terminal to connect to the IoT device that needs to be remotely controlled first, and then the IoT device is remotely controlled through the APP after the connection is successful. Since the connection process between the APP and the IoT device takes a certain amount of time, the user cannot quickly remotely control the IoT device.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the invention
[0005] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a device control method, apparatus, terminal and storage medium are provided, aiming to solve the problem in the prior art that the relevant APP on the user's terminal must be connected to the IoT device to be remotely controlled before the IoT device can be remotely controlled, resulting in the user being unable to quickly remotely control the IoT device.
[0006] The technical solution adopted by the present invention to solve the problem is as follows:
[0007] In a first aspect, an embodiment of the present invention provides a device control method, wherein the method includes:
[0008] Obtaining parameter information of the device to be controlled, and determining the target band according to the parameter information;
[0009] Acquire operation data, and generate a target data packet according to the operation data and the parameter information;
[0010] The target data packet is sent to the device to be controlled via the target band, so that the device to be controlled performs the operation corresponding to the operation data.
[0011] In one implementation, determining the target band according to the parameter information includes:
[0012] Determine the frequency point corresponding to the receiver of the device to be controlled according to the parameter information to obtain the target frequency point;
[0013] The target band is determined according to the target frequency point.
[0014] In one implementation, generating a target data packet according to the operation data and the parameter information includes:
[0015] Determine data receiving information corresponding to the device to be controlled according to the parameter information;
[0016] The target data packet is generated according to the data reception information and the operation data.
[0017] In one embodiment, generating the target data packet according to the data reception information and the operation data includes:
[0018] Obtaining the data receiving format, verification data and data receiving address in the data receiving information;
[0019] The data receiving address, the verification data and the operation data are packaged according to the data receiving format to obtain the target data packet.
[0020] In one implementation, sending the target data packet to the device to be controlled through the target band includes:
[0021] Packing the target data packet according to the standard Bluetooth protocol to obtain a Bluetooth broadcast data packet;
[0022] The Bluetooth broadcast data packet is sent to the device to be controlled via the target band.
[0023] In one implementation, the sending of the Bluetooth broadcast data packet to the device to be controlled via the target band includes:
[0024] Performing confidentiality processing on the Bluetooth broadcast data packet by scrambling to obtain a scrambled data packet;
[0025] The scrambled data packet is sent to the device to be controlled via the target band.
[0026] In one embodiment, the method further comprises:
[0027] Acquire a response data packet generated by the device to be controlled based on the target data packet through the target band;
[0028] The device state of the device to be controlled is determined according to the response data packet.
[0029] In a second aspect, an embodiment of the present invention further provides a device control apparatus, wherein the apparatus comprises:
[0030] A band determination module, used to obtain parameter information of a device to be controlled and determine a target band according to the parameter information;
[0031] A data packaging module, used to obtain operation data and generate a target data packet according to the operation data and the parameter information;
[0032] The data sending module is used to send the target data packet to the device to be controlled through the target band, so that the device to be controlled performs the operation corresponding to the operation data.
[0033] In a third aspect, an embodiment of the present invention further provides a terminal, wherein the terminal includes a memory and one or more processors; the memory stores one or more programs; the program includes instructions for executing any of the device control methods described above; and the processor is used to execute the program.
[0034] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a plurality of instructions are stored, wherein the instructions are suitable for being loaded and executed by a processor to implement the steps of any of the above-mentioned device control methods.
[0035] Beneficial effects of the present invention: The embodiments of the present invention obtain parameter information of the device to be controlled, determine the target band according to the parameter information; obtain operation data, generate a target data packet according to the operation data and the parameter information; send the target data packet to the device to be controlled through the target band, so that the device to be controlled performs the operation corresponding to the operation data. Since the present invention does not need to be connected to the device to be controlled in advance, the operation data can be directly sent to the device to be controlled, so as to control the device to be controlled to quickly perform the operation desired by the user. Therefore, it can solve the problem in the prior art that the relevant APP on the user's terminal needs to be connected to the IoT device to be remotely controlled before the IoT device can be remotely controlled, resulting in the user's inability to quickly remotely control the IoT device. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 It is a flow chart of a device control method provided by an embodiment of the present invention.
[0038] Figure 2 It is a schematic diagram of the structure of a target data packet provided by an embodiment of the present invention.
[0039] Figure 3 It is a schematic diagram of the structure of a data packet compliant with Bluetooth broadcasting provided by an embodiment of the present invention.
[0040] Figure 4 It is a schematic diagram of the structure of a Bluetooth broadcast data packet provided by an embodiment of the present invention.
[0041] Figure 5 It is an internal module diagram of the equipment control device provided in an embodiment of the present invention.
[0042] Figure 6 It is a principle block diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0044] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0045] The Internet of Things (IoT) is a network that connects physical devices, vehicles, buildings, and other things embedded with electronic devices, software, sensors, etc. to the Internet, allowing these objects to collect and exchange data. Common IoT devices include: wearable or embedded devices, such as devices that monitor physical health; or home environment control devices, such as thermostats; or environmental monitoring devices, such as adaptive traffic control systems, etc.
[0046] Currently, the remote control method of IoT devices usually requires the relevant APP on the user's terminal to connect to the IoT device that needs to be remotely controlled first, and then the IoT device is remotely controlled through the APP after the connection is successful. Since the connection process between the APP and the IoT device takes a certain amount of time, the user cannot quickly remotely control the IoT device.
[0047] In view of the above-mentioned defects of the prior art, the present invention provides a device control method, which obtains parameter information of the device to be controlled, determines a target band according to the parameter information; obtains operation data, generates a target data packet according to the operation data and the parameter information; and sends the target data packet to the device to be controlled through the target band, so that the device to be controlled performs the operation corresponding to the operation data. Since the present invention does not need to be connected to the device to be controlled in advance, the operation data can be directly sent to the device to be controlled, thereby controlling the device to be controlled to quickly perform the operation desired by the user. Therefore, it can solve the problem in the prior art that the relevant APP on the user's terminal needs to be connected to the IoT device to be remotely controlled before the IoT device can be remotely controlled, resulting in the user being unable to quickly remotely control the IoT device.
[0048] like Figure 1 As shown, the method comprises the following steps:
[0049] Step S100: Acquire parameter information of a device to be controlled, and determine a target band according to the parameter information.
[0050] Specifically, the main goal of this embodiment is to directly send the operation data to the device to be controlled without establishing a connection with the device to be controlled in advance. In order to achieve this goal, this embodiment adopts Bluetooth transmission. Since the working band of Bluetooth is special and the number is not unique, in order to determine the working band used for Bluetooth transmission, this embodiment needs to obtain parameter information of the device to be controlled. The parameter information can reflect which bands the device to be controlled can receive data. Therefore, the working band used for Bluetooth transmission can be determined based on the parameter information, that is, the target band is obtained.
[0051] In one implementation, determining the target band according to the parameter information specifically includes the following steps:
[0052] Step S101, determining the frequency corresponding to the receiver of the device to be controlled according to the parameter information to obtain a target frequency;
[0053] Step S102: Determine the target band according to the target frequency point.
[0054] Specifically, in order for the device to be controlled to receive the user's operation data and perform the user's desired operation, this embodiment needs to determine the frequency corresponding to its receiver based on the parameter information of the device to be controlled to obtain the target frequency. It can be understood that since the target frequency is the frequency of the receiver of the device to be controlled, the device to be controlled can only receive data transmitted on this frequency. Since the target band is the working band of Bluetooth used when sending operation data to the device to be controlled, in order for the device to be controlled to receive the user's operation data, the target band needs to be consistent with the target frequency.
[0055] In one implementation, since Bluetooth has a fixed operating frequency range between 2400 and 2483.5 MHz, the frequency of Bluetooth broadcasting can only use a few fixed standard Bluetooth frequencies, such as 2.402 GHz, 2.428 GHz and 2.480 GHz. Therefore, when determining the frequency of the receiver on the device to be controlled, only these standard Bluetooth frequencies can be selected to ensure that the user's operation data can be sent to the device to be controlled smoothly via Bluetooth transmission.
[0056] like Figure 1 As shown, the method further comprises the following steps:
[0057] Step S200: Acquire operation data, and generate a target data packet according to the operation data and the parameter information.
[0058] Specifically, the operation data may reflect the operation that the user expects the device to be controlled to perform, and the parameter information may indicate which device is the device to be controlled. Therefore, in order to remotely control the device to be controlled, the operation data needs to be sent to the receiving address where the device to be controlled is located. Since the present embodiment sends the operation data to the device to be controlled by Bluetooth transmission, it is necessary to package the operation data and the parameter information to generate a target data packet, and send the target data packet to the device to be controlled to remotely control it.
[0059] In one implementation, step S200 specifically includes the following steps:
[0060] Step S201, determining data receiving information corresponding to the device to be controlled according to the parameter information;
[0061] Step S202: Generate the target data packet according to the data reception information and the operation data.
[0062] Specifically, since the transmission of the target data packet requires the determination of the corresponding receiving party's receiving information, and since the device to be controlled is the receiving party of the target data packet, the present embodiment needs to first determine its corresponding data receiving information based on the parameter information of the device to be controlled, such as the data receiving address, format, etc. Since the data receiving information can reflect what kind of data packet the device to be controlled can receive, the target data packet can be generated based on the data receiving information and the operation data. Since the target data packet is generated based on the data receiving information of the device to be controlled, it can be ensured that the device to be controlled can receive the target data packet, and then perform related operations according to the operation data in the target data packet.
[0063] In one implementation, step S202 specifically includes the following steps:
[0064] Step S2021, obtaining the data receiving format, verification data and data receiving address in the data receiving information;
[0065] Step S2022: Pack the data receiving address, the verification data, and the operation data according to the data receiving format to obtain the target data packet.
[0066] Specifically, the data receiving information of the device to be controlled includes but is not limited to: its corresponding data receiving format, verification data and data receiving address. Among them, the data receiving format can reflect which fixed-format data packets can only be received by the device to be controlled, the verification data can be used to verify whether the recipient of the target data packet is the device to be controlled, and the data receiving address can be used as the receiving address corresponding to the target data packet. After the data receiving address, verification data and operation data are packaged according to the data receiving format, the target data packet is obtained. It can be understood that since the data receiving information of different devices is different, the verification data is generated based on the data receiving information of the device to be controlled. Therefore, if the target data packet is mistakenly sent to other devices, other devices will not be able to pass the verification of the verification data in the target data packet, and will not perform any operations based on the operation data in the target data packet.
[0067] For example, the format of the target data packet is as follows: Figure 2 As shown, it includes common preamble, access address (i.e., data receiving address of the device to be controlled), operation data and CRC check code. For the device to be controlled, after receiving the target data, it needs to match the preamble, access address and CRC check code. Only when all are matched successfully can the operation data be obtained.
[0068] like Figure 1 As shown, the method further comprises the following steps:
[0069] Step S300: Send the target data packet to the device to be controlled via the target band, so that the device to be controlled performs an operation corresponding to the operation data.
[0070] Specifically, after the target data packet is generated, it needs to be sent to the device to be controlled so that the device to be controlled can perform the user's desired operation based on the target data packet. Since the target band is determined based on the frequency of the receiver on the device to be controlled, in order to ensure that the target data packet is smoothly transmitted to the device to be controlled, the target data packet needs to be transmitted through the target band.
[0071] In one implementation, step S300 specifically includes the following steps:
[0072] Step S301, packaging the target data packet according to the standard Bluetooth protocol to obtain a Bluetooth broadcast data packet;
[0073] Step S302: Send the Bluetooth broadcast data packet to the device to be controlled via the target band.
[0074] Specifically, the Bluetooth data sent by the mobile phone needs to conform to the data packet format determined by the Bluetooth protocol (such as Figure 3 As shown in the figure, the target data packet needs to be packaged based on the standard Bluetooth protocol to generate a Bluetooth broadcast data packet, which is equivalent to the target data packet being included in the Bluetooth broadcast data packet. Since the Bluetooth broadcast data packet contains the access address specified by the standard Bluetooth protocol, the Bluetooth broadcast data packet can be sent to the receiver of the device to be controlled via Bluetooth by sending the Bluetooth broadcast data packet in the target band.
[0075] For example, the structure of a Bluetooth advertising data packet is as follows: Figure 4 As shown, the 2.4 GHz transceiver data packet is the target data packet, and it can be seen that the target data packet is included in the Bluetooth broadcast data packet.
[0076] The process of sending the target data packet can be abstracted as follows:
[0077] 1. Payload is A;
[0078] 2. The device sends the equivalent mapping relationship F.
[0079] The process of sending Bluetooth broadcast data packets is abstracted as follows:
[0080] 1. BLE Payload is X;
[0081] 2. BLE transmission is equivalent to G.
[0082] In simple terms, when the receiver of the device to be controlled is a 2.4GHz chip, if Bluetooth is to send data to the device to be controlled via broadcast, the Bluetooth broadcast packet must contain data in the data format required by the 2.4GHz chip. If the user terminal needs to receive data sent by the device to be controlled, the data packet sent by the device to be controlled must contain the data format required by Bluetooth broadcast. Therefore, in this embodiment, the Bluetooth broadcast data packet transmitted between the user terminal and the device to be controlled contains a target data packet in the data format required by the 2.4GHz chip, and the data packet itself meets the data format required by Bluetooth broadcast.
[0083] In one implementation, step S302 specifically includes the following steps:
[0084] Step S3021, performing confidentiality processing on the Bluetooth broadcast data packet by using a scrambling code to obtain a scrambled code data packet;
[0085] Step S3022: Send the scrambled data packet to the device to be controlled via the target band.
[0086] Specifically, in order to achieve the confidentiality of the Bluetooth broadcast data packet during the transmission process, the present embodiment also needs to perform confidentiality processing on the Bluetooth broadcast data packet through scrambling code to obtain a scrambled data packet. Since the scrambling code is a signal code that is regularly randomized according to a predetermined scrambling code formula, even if the Bluetooth broadcast data packet is maliciously intercepted during the transmission process, the other party cannot know the real information in the data packet, thereby achieving a confidentiality effect.
[0087] In one implementation, the method further includes the following steps:
[0088] Step S1, obtaining a response data packet generated by the device to be controlled based on the target data packet through the target band;
[0089] Step S2: Determine the device status of the device to be controlled according to the response data packet.
[0090] Specifically, when the device to be controlled receives a Bluetooth broadcast data packet, it will unpack the Bluetooth broadcast data packet to obtain the target data packet, and then determine what operation to perform based on the operation data contained in the target data packet. In order to allow the user to clearly understand the current status of the device to be controlled, the device to be controlled can also generate a response data packet based on its own working data after obtaining the operation data, and return the response data packet to the user terminal (i.e., the sender of the Bluetooth broadcast data packet) through the target band. The user can determine the device status of the device to be controlled based on the response data packet.
[0091] Based on the above embodiments, the present invention also provides a device control device, such as Figure 5 As shown, the device comprises:
[0092] The band determination module 01 is used to obtain parameter information of the device to be controlled and determine the target band according to the parameter information;
[0093] The data packaging module 02 is used to obtain the operation data and generate a target data packet according to the operation data and the parameter information;
[0094] The data sending module 03 is used to send the target data packet to the device to be controlled via the target band, so that the device to be controlled performs the operation corresponding to the operation data.
[0095] Based on the above embodiment, the present invention further provides a terminal, whose principle block diagram can be shown as follows: Figure 6 As shown. The terminal includes a processor, a memory, a network interface, and a display screen connected through a system bus. Among them, the processor of the terminal is used to provide computing and control capabilities. The memory of the terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the device control method is implemented. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen.
[0096] Those skilled in the art will understand that Figure 6 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal to which the scheme of the present invention is applied. The specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0097] In an implementation manner, one or more programs are stored in the memory of the terminal, and the one or more programs are configured to be executed by one or more processors, and include instructions for performing the device control method.
[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0099] In summary, the present invention discloses a device control method, apparatus, terminal and storage medium, wherein the method obtains parameter information of a device to be controlled, determines a target band according to the parameter information; obtains operation data, generates a target data packet according to the operation data and the parameter information; and sends the target data packet to the device to be controlled through the target band, so that the device to be controlled performs the operation corresponding to the operation data. Since the present invention does not need to be connected to the device to be controlled in advance, the operation data can be directly sent to the device to be controlled, thereby controlling the device to be controlled to quickly perform the operation desired by the user. Therefore, it can solve the problem in the prior art that the relevant APP on the user's terminal needs to be connected to the IoT device to be remotely controlled before the IoT device can be remotely controlled, resulting in the user being unable to quickly remotely control the IoT device.
[0100] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A device control method, It is characterized in that The method comprises: Acquire parameter information of the device to be controlled, and determine the target band according to the parameter information; the parameter information is used to reflect which bands the device to be controlled receives data; Acquire operation data, and generate a target data packet according to the operation data and the parameter information; Sending the target data packet to the device to be controlled through the target band, so as to directly send the operation data to the device to be controlled without establishing a connection with the device to be controlled in advance, so that the device to be controlled performs the operation corresponding to the operation data; The determining the target band according to the parameter information includes: Determine the frequency corresponding to the receiver of the device to be controlled according to the parameter information to obtain a target frequency; when determining the frequency of the receiver on the device to be controlled, only standard Bluetooth frequency can be selected; Determine the target band according to the target frequency point; The generating a target data packet according to the operation data and the parameter information comprises: Determine data receiving information corresponding to the device to be controlled according to the parameter information; generating the target data packet according to the data receiving information and the operation data; The step of generating the target data packet according to the data receiving information and the operation data comprises: Acquire the data receiving format, verification data and data receiving address in the data receiving information; the verification data is generated based on the data receiving information of the device to be controlled and is used to verify whether the recipient of the target data packet is the device to be controlled; Packing the data receiving address, the verification data and the operation data according to the data receiving format to obtain the target data packet; The step of sending the target data packet to the device to be controlled via the target band includes: Packing the target data packet according to the standard Bluetooth protocol to obtain a Bluetooth broadcast data packet; Sending the Bluetooth broadcast data packet to the device to be controlled via the target band; The sending of the Bluetooth broadcast data packet to the device to be controlled via the target band includes: The Bluetooth broadcast data packet is subjected to confidentiality processing by scrambling code to obtain a scrambled data packet; the scrambling code is a signal code subjected to regular random processing according to a predetermined scrambling code formula; The scrambled data packet is sent to the device to be controlled via the target band.
2. The device control method according to claim 1, It is characterized in that The method further comprises: Acquire a response data packet generated by the device to be controlled based on the target data packet through the target band; The device state of the device to be controlled is determined according to the response data packet.
3. A device control device, It is characterized in that The device comprises: The band determination module is used to obtain parameter information of the device to be controlled and determine the target band according to the parameter information; the parameter information is used to reflect which bands the device to be controlled receives data; A data packaging module, used to obtain operation data and generate a target data packet according to the operation data and the parameter information; a data sending module, configured to send the target data packet to the device to be controlled via the target band, so as to directly send the operation data to the device to be controlled without establishing a connection with the device to be controlled in advance, so that the device to be controlled performs the operation corresponding to the operation data; The determining the target band according to the parameter information includes: Determine the frequency corresponding to the receiver of the device to be controlled according to the parameter information to obtain a target frequency; when determining the frequency of the receiver on the device to be controlled, only standard Bluetooth frequency can be selected; Determine the target band according to the target frequency point; The generating a target data packet according to the operation data and the parameter information comprises: Determine data receiving information corresponding to the device to be controlled according to the parameter information; generating the target data packet according to the data receiving information and the operation data; The step of generating the target data packet according to the data receiving information and the operation data comprises: Acquire the data receiving format, verification data and data receiving address in the data receiving information; the verification data is generated based on the data receiving information of the device to be controlled and is used to verify whether the recipient of the target data packet is the device to be controlled; Packing the data receiving address, the verification data and the operation data according to the data receiving format to obtain the target data packet; The step of sending the target data packet to the device to be controlled via the target band includes: Packing the target data packet according to the standard Bluetooth protocol to obtain a Bluetooth broadcast data packet; Sending the Bluetooth broadcast data packet to the device to be controlled via the target band; The sending of the Bluetooth broadcast data packet to the device to be controlled via the target band includes: The Bluetooth broadcast data packet is subjected to confidentiality processing by scrambling code to obtain a scrambled data packet; the scrambling code is a signal code subjected to regular random processing according to a predetermined scrambling code formula; The scrambled data packet is sent to the device to be controlled via the target band.
4. A terminal, It is characterized in that The terminal includes a memory and at least one processor; the memory stores at least one program; the program contains instructions for executing the device control method as described in any one of claims 1-2; and the processor is used to execute the program.
5. A computer-readable storage medium having a plurality of instructions stored thereon, It is characterized in that The instructions are suitable for being loaded and executed by a processor to implement the steps of the device control method described in any one of claims 1-2 above.
