CN110989408A - Equipment control method, device, equipment and readable storage medium - Google Patents

Equipment control method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110989408A
CN110989408A CN201911252589.3A CN201911252589A CN110989408A CN 110989408 A CN110989408 A CN 110989408A CN 201911252589 A CN201911252589 A CN 201911252589A CN 110989408 A CN110989408 A CN 110989408A
Authority
CN
China
Prior art keywords
instruction
control
controlled
control instruction
controlled equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911252589.3A
Other languages
Chinese (zh)
Inventor
周卫方
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen KTC Commercial Technology Co Ltd
Original Assignee
Shenzhen KTC Commercial 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 Shenzhen KTC Commercial Technology Co Ltd filed Critical Shenzhen KTC Commercial Technology Co Ltd
Priority to CN201911252589.3A priority Critical patent/CN110989408A/en
Publication of CN110989408A publication Critical patent/CN110989408A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Abstract

The application discloses a device control method, a device and a readable storage medium. The method disclosed by the application is applied to an application layer of the controlled equipment, and comprises the following steps: receiving a control instruction sent by a control terminal through a serial port or a local area network; judging whether a key value pair matched with the control instruction exists in the target file or not; the key-value pair includes: the control instruction and an execution instruction corresponding to the control instruction for controlling the controlled equipment; and if so, controlling the controlled equipment to execute corresponding operation according to the execution instruction. In the application, the method provided by the application can be executed in the application layer of the controlled device regardless of whether the controlled device and the control terminal are communicated through a serial port or a local area network. The method and the device can reduce development workload and cost, reduce maintenance workload and cost, and bring convenience for positioning of fault problems. Accordingly, the device control apparatus, the device and the readable storage medium disclosed in the present application also have the above technical effects.

Description

Equipment control method, device, equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a device control method, apparatus, device, and readable storage medium.
Background
At present, commercial equipment generally has two functions of serial port communication and local area network communication. The commercial equipment as controlled equipment can be connected with a control end (such as a computer) and used for controlling the commercial equipment. Commercial equipment generally includes: electronic whiteboards, monitors, advertising machines, and the like.
The serial port communication is realized based on bottom hardware, and the local area network communication is realized based on an application layer. Therefore, if serial communication and local area network communication are realized in each device, a bottom layer developer and an application layer developer need to be realized based on different code architectures respectively, and the development cost is high. Because serial port communication and local area network communication are realized based on different code architectures, the subsequent maintenance workload is also large. Such as: in case of a communication failure, the failure needs to be located in two different code architectures. Modification of the control instructions used between the computer and the device also involves a relatively large amount of effort. Therefore, the problems of high development cost, difficulty in fault positioning and high maintenance cost exist in the prior art.
Therefore, how to reduce the development cost and the maintenance cost is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, an object of the present application is to provide a device control method, apparatus, device and readable storage medium, so as to reduce development cost and maintenance cost. The specific scheme is as follows:
in a first aspect, the present application provides a device control method, applied to an application layer of a controlled device, including:
receiving a control instruction sent by a control terminal through a serial port or a local area network;
judging whether a key value pair matched with the control instruction exists in the target file or not; the key-value pair comprises: the control instruction and an execution instruction which controls the controlled equipment and corresponds to the control instruction are obtained;
and if so, controlling the controlled equipment to execute corresponding operation according to the execution instruction.
Preferably, the method further comprises the following steps:
and if the key value pair matched with the control instruction does not exist in the target file, identifying the control instruction by adopting a fuzzy matching algorithm, and controlling the controlled equipment to execute corresponding operation according to an identification result.
Preferably, the identifying the control instruction by using a fuzzy matching algorithm, and controlling the controlled device to execute a corresponding operation according to the identification result includes:
analyzing the control instruction to obtain an identification character and a data character;
splicing the identification character and a preset variable character in the controlled device to obtain a splicing instruction; the preset variable character comprises a variable bit and an end bit;
carrying out fuzzy matching on the splicing instruction to obtain the identification result;
and if the identification result is that the splicing instruction is effective, filling variable bits in the preset variable characters with the data characters to obtain an effective instruction, and controlling the controlled device to execute corresponding operation according to the effective instruction.
Preferably, the method further comprises the following steps:
and if the identification result is that the splicing instruction is invalid, returning a prompt message that the control instruction is wrong to the control end.
Preferably, the method further comprises the following steps:
opening a serial port of the controlled equipment, and establishing serial port communication connection between the control terminal and the controlled equipment;
and/or
And accessing the control terminal and the controlled equipment to the same local area network so as to establish the local area network communication connection between the control terminal and the controlled equipment.
Preferably, the local area network communication connection is a socket communication connection or a UDP communication connection.
Preferably, the controlled device is an Android device.
In a second aspect, the present application provides a device control apparatus, applied to an application layer of a controlled device, including:
the receiving module is used for receiving a control instruction sent by the control end through a serial port or a local area network;
the judging module is used for judging whether a key value pair matched with the control instruction exists in the target file or not; the key-value pair comprises: the control instruction and an execution instruction which controls the controlled equipment and corresponds to the control instruction are obtained;
and the control module is used for controlling the controlled equipment to execute corresponding operation according to the execution instruction if the key value pair matched with the control instruction exists in the target file.
In a third aspect, the present application provides an apparatus control apparatus comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the apparatus control method disclosed in the foregoing.
In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the apparatus control method disclosed in the foregoing.
According to the above scheme, the present application provides an apparatus control method, applied to an application layer of a controlled apparatus, including: receiving a control instruction sent by a control terminal through a serial port or a local area network; judging whether a key value pair matched with the control instruction exists in the target file or not; the key-value pair comprises: the control instruction and an execution instruction which controls the controlled equipment and corresponds to the control instruction are obtained; and if so, controlling the controlled equipment to execute corresponding operation according to the execution instruction.
In the application, the method provided by the application can be executed in the application layer of the controlled device regardless of whether the controlled device and the control terminal are communicated through a serial port or a local area network. In the method, when an application layer of a controlled device receives a control instruction sent by a control end through a serial port or a local area network, whether a key value pair matched with the control instruction exists in a target file is judged; if the control end exists, the controlled equipment is controlled to execute corresponding operation according to the execution instruction, so that the controlled equipment can work according to the instruction of the control end. The control instruction and the execution instruction of the controlled device corresponding to the control instruction are stored in the target file in a key value pair mode, if the control instruction needs to be modified, only corresponding contents in the target file need to be modified, and therefore maintenance workload and maintenance cost in the aspect of instruction modification are reduced; in case of communication failure, the corresponding code only needs to be queried at the application layer, so that the workload of failure maintenance is reduced. According to the application, only one set of code architecture needs to be developed at the application layer, so that the development workload and the development cost are reduced. Therefore, the method and the device can reduce the development workload and cost, reduce the maintenance workload and cost, and bring convenience for positioning the fault problem.
Accordingly, the device control apparatus, the device and the readable storage medium provided by the application also have the technical effects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of an apparatus control method disclosed herein;
FIG. 2 is a detailed flowchart of step S104 in FIG. 1;
FIG. 3 is a flowchart illustrating processing of a control command by an Android application according to the present disclosure;
FIG. 4 is a schematic diagram of an apparatus control device disclosed herein;
fig. 5 is a schematic diagram of an apparatus control apparatus disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and 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 application.
The problems of high development cost, difficulty in fault positioning and high maintenance cost exist in the prior art. Therefore, the equipment control scheme is provided, the development workload and the cost can be reduced, the maintenance workload and the cost are reduced, and convenience is brought to the positioning of the fault problem.
Referring to fig. 1, an embodiment of the present application discloses a device control method, applied to an application layer of a controlled device, including:
s101, receiving a control instruction sent by a control end through a serial port or a local area network.
Before the control end communicates with the controlled device, a serial communication connection and a local area network communication connection between the control end and the controlled device need to be established respectively. The establishing process of the serial port communication connection comprises the following steps: and starting a serial port of the controlled equipment, and establishing serial port communication between the control terminal and the controlled equipment. The establishing process of the local area network communication connection comprises the following steps: and the control terminal and the controlled equipment are accessed to the same local area network so as to establish the local area network communication connection of the control terminal and the controlled equipment. The local area network communication connection may be a socket communication connection or a UDP communication connection. The controlled device can be an Android device.
S102, judging whether a key value pair matched with the control instruction exists in the target file or not; if yes, executing S103; if not, S104 is executed.
Wherein the key-value pair comprises: the control instruction and the execution instruction corresponding to the control instruction for controlling the controlled equipment. The control command includes a power-on command, a power-off command, and the like. The execution instruction for controlling the controlled device corresponding to the control instruction is an instruction that can be recognized by the controlled device, such as: the controlled device can recognize that the shutdown instruction is 'B', and the shutdown instruction sent by the control end is 'poweroff', so that the key value pair is power off-B in the target file. Wherein, the key value pair in the target file can be stored in an encrypted manner, such as: the hash key-value pair corresponding to "power off-B" is stored. The hash key-value pair corresponding to "power off-B" may be: if "A" is used to represent "power off", then "power off-B" is "A-B", and the hash value of "A" is calculated to obtain A1; calculating the hash value of the 'B' to obtain B1; their hash values are used to form the hash key value pair "A1-B1". Therefore, the key-value pairs in the target file can be hash key-value pairs, so as to improve the security of the key-value pairs.
Specifically, the target file may be stored in a software system directory of the controlled device, and may also be stored in an application layer of the controlled device. Such as: if an application program is developed according to the method provided by the embodiment and the target file is added to the application program, the method provided by the embodiment can be executed as long as the application program is installed on the controlled device.
And S103, controlling the controlled equipment to execute corresponding operation according to the execution instruction in the key value pair.
And S104, identifying the control instruction by adopting a fuzzy matching algorithm, and controlling the controlled equipment to execute corresponding operation according to the identification result.
Referring to fig. 2, fig. 2 is a detailed flowchart of step S104 in fig. 1. The specific implementation steps of S104 in fig. 1 include:
s201, analyzing and obtaining the identification character and the data character from the control command.
S202, splicing the identification characters and preset variable characters in the controlled equipment to obtain a splicing instruction.
The preset variable character comprises a variable bit and an end bit. The preset variable character may include only variable bits.
S203, fuzzy matching is carried out on the splicing instruction to obtain a recognition result.
And S204, if the splicing instruction is valid as a recognition result, filling variable bits in the preset variable characters with the data characters to obtain a valid instruction, and controlling the controlled equipment to execute corresponding operation according to the valid instruction.
And S205, if the identification result is that the splicing instruction is invalid, returning a prompt message of control instruction error to the control end.
It should be noted that, if the control command does not have a corresponding key value pair in the target file, the control command may be a variable control command for setting a sound size, a brightness size, or a date. Therefore, the fuzzy matching algorithm is adopted to identify the control instruction, and the CPU of the controlled equipment regulates and controls the sound intensity, the brightness intensity or the date according to the identification result.
Wherein, the control command includes: an identification character, a data character, and an end bit. For example: the control command has 13 bits in total, wherein the identification character occupies the first 10 bits, the 11 th to 12 th bits are data characters, and the 13 th bit is an end bit. In the controlled device, effective commands which are not filled with specific data characters are respectively preset for sound, brightness and date.
Such as: the valid instructions corresponding to the sound are: a + X + C, wherein A represents the identification character of the sound, X is a variable bit, and C is an end bit. The effective instructions corresponding to the brightness are: b + X + C, wherein B represents an identification character of brightness, X is a variable bit, and C is an end bit. The effective instructions corresponding to the "year" in the date are: d + X + C, wherein D represents the identification character of the year, X is variable bit, and C is the end bit. Wherein the preset variable characters are: and (4) X + C.
And if the identification character in the control instruction is A, splicing the identification character in the control instruction with a preset variable character in the controlled device, wherein a splicing instruction A + X + C is provided. Then the splicing command is a valid command corresponding to the sound, so that X is replaced by a data character (e.g. 10) in the control command, which is a +10+ C: the sound of the controlled device is adjusted to 10, and thus the controlled device is controlled to adjust the sound to 10. And if the identification character in the control command is Y, splicing the identification character in the control command with a preset variable character in controlled equipment, wherein a splicing command Y + X + C exists. Obviously, the splicing instruction Y + X + C is not a valid instruction in the controlled device, so that the controlled device cannot recognize the splicing instruction, that is, the splicing instruction is invalid, and then a prompt message indicating that the control instruction is wrong is returned to the control end.
Therefore, in the embodiment, no matter whether the controlled device and the control terminal communicate through a serial port or a local area network, the method provided by the embodiment can be executed in the application layer of the controlled device. In the method, when an application layer of a controlled device receives a control instruction sent by a control end through a serial port or a local area network, whether a key value pair matched with the control instruction exists in a target file is judged; if the control end exists, the controlled equipment is controlled to execute corresponding operation according to the execution instruction, so that the controlled equipment can work according to the instruction of the control end. In the embodiment, the control instruction and the execution instruction of the controlled device corresponding to the control instruction are stored in the target file in a key-value pair manner, and if the control instruction needs to be modified, only the corresponding content in the target file needs to be modified, so that the maintenance workload and the maintenance overhead in the aspect of instruction modification are reduced; in case of communication failure, the corresponding code only needs to be queried at the application layer, so that the workload of failure maintenance is reduced. According to the embodiment, only one set of code architecture needs to be developed at the application layer, so that the development workload and the development cost are reduced. Therefore, the embodiment can reduce the development workload and the cost, reduce the maintenance workload and the cost, and bring convenience for positioning the fault problem.
The embodiment of the application discloses an equipment control implementation scheme, wherein controlled equipment is Android equipment. The serial port communication and the local area network communication are integrated into one Android application, so that the Android application has the functions of the serial port communication and the local area network communication at the same time, and the local area network communication uses socket communication or UDP protocol communication.
And setting an instruction document (namely a target file), wherein key value pairs corresponding to various control instructions are stored in the instruction document. In the packaging process of the Android system, the instruction document is stored in a directory of the Android system, so that the Android application can call the instruction document.
Referring to fig. 3, fig. 3 is a flowchart illustrating processing of a control instruction by an Android application according to the embodiment. Specifically, when an instruction document in the system is queried, if the instruction document includes current instruction content (that is, the instruction document includes a key value pair corresponding to the current instruction content), the instruction document may be executed according to the instruction. If the instruction document does not contain the current instruction content (namely the instruction document does not contain the key value pair corresponding to the current instruction content), the instruction content is identified by adopting a fuzzy matching algorithm.
And identifying the instruction content by adopting a fuzzy matching algorithm for the control instruction which cannot be directly matched with the key value pair, such as a variable control instruction for setting specific data such as sound, brightness and the like. The method comprises the steps of storing an actually input instruction carrying specific data, removing the specific data, and splicing the rest data bits with public matching bits (namely preset variable characters). And if the spliced instruction is valid, filling specific data in the instruction into the spliced instruction, so as to obtain a valid instruction which can be identified and executed by the control. If the instruction obtained by splicing is invalid, the currently received instruction can be discarded or no processing is performed.
Therefore, serial port communication and local area network communication are integrated in Android application, and the Android device can be adapted to any Android device. The Android application software framework identifies and processes instructions through the modular interface, so that the code amount can be simplified, maintenance and subsequent modification are facilitated, the development workload and cost can be reduced, the maintenance workload and cost are reduced, and convenience is brought to the positioning of fault problems.
In the following, a device control apparatus provided in an embodiment of the present application is described, and a device control apparatus described below and a device control method described above may be referred to each other.
Referring to fig. 4, an embodiment of the present application discloses an apparatus control device, applied to an application layer of a controlled apparatus, including:
a receiving module 401, configured to receive a control instruction sent by a control end through a serial port or a local area network;
a judging module 402, configured to judge whether a key value pair matching the control instruction exists in the target file; the key-value pair includes: the control instruction and an execution instruction corresponding to the control instruction for controlling the controlled equipment;
and the control module 403 is configured to, if a key value pair matching the control instruction exists in the target file, control the controlled device to execute a corresponding operation according to the execution instruction.
In a preferred embodiment, the method further comprises:
and the matching module is used for identifying the control instruction by adopting a fuzzy matching algorithm if the key value pair matched with the control instruction does not exist in the target file, and controlling the controlled equipment to execute corresponding operation according to the identification result.
In a preferred embodiment, the matching module comprises:
the analysis unit is used for analyzing and obtaining the identification characters and the data characters from the control command;
the splicing unit is used for splicing the identification characters and preset variable characters in the controlled equipment to obtain a splicing instruction; the preset variable character comprises a variable bit and an end bit;
the matching unit is used for carrying out fuzzy matching on the splicing instruction to obtain a recognition result;
and the execution unit is used for filling variable bits in the preset variable characters with the data characters to obtain effective instructions and controlling the controlled equipment to execute corresponding operations according to the effective instructions if the splicing instructions are effective as the identification result.
In a preferred embodiment, the matching module further comprises:
and the returning unit is used for returning the prompt information of the control instruction error to the control end if the identification result is that the splicing instruction is invalid.
In a preferred embodiment, the method further comprises:
the first establishing module is used for starting a serial port of the controlled equipment and establishing serial port communication connection between the control terminal and the controlled equipment;
and/or
And the second establishing module is used for accessing the control end and the controlled equipment to the same local area network so as to establish the local area network communication connection of the control end and the controlled equipment.
In a preferred embodiment, the local area network communication connection is a socket communication connection or a UDP communication connection.
In a preferred embodiment, the controlled device is an Android device.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides an equipment control device, which can reduce the development workload and cost, reduce the maintenance workload and cost, and bring convenience for positioning the fault problem.
In the following, a device control device provided in an embodiment of the present application is introduced, and a device control device described below and a device control method and apparatus described above may be referred to each other.
Referring to fig. 5, an embodiment of the present application discloses an apparatus control apparatus, including:
a memory 501 for storing a computer program;
a processor 502 for executing the computer program to implement the method disclosed in any of the embodiments above.
In the following, a readable storage medium provided by an embodiment of the present application is introduced, and a readable storage medium described below and a device control method, an apparatus, and a device described above may be referred to each other.
A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the device control method disclosed in the foregoing embodiments. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
References in this application to "first," "second," "third," "fourth," etc., if any, are intended to distinguish between similar elements and not necessarily to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of readable storage medium known in the art.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A device control method is characterized in that an application layer applied to a controlled device comprises the following steps:
receiving a control instruction sent by a control terminal through a serial port or a local area network;
judging whether a key value pair matched with the control instruction exists in the target file or not; the key-value pair comprises: the control instruction and an execution instruction which controls the controlled equipment and corresponds to the control instruction are obtained;
and if so, controlling the controlled equipment to execute corresponding operation according to the execution instruction.
2. The device control method according to claim 1, characterized by further comprising:
and if the key value pair matched with the control instruction does not exist in the target file, identifying the control instruction by adopting a fuzzy matching algorithm, and controlling the controlled equipment to execute corresponding operation according to an identification result.
3. The device control method according to claim 2, wherein the identifying the control command by using a fuzzy matching algorithm and controlling the controlled device to execute corresponding operations according to the identification result comprises:
analyzing the control instruction to obtain an identification character and a data character;
splicing the identification character and a preset variable character in the controlled device to obtain a splicing instruction; the preset variable character comprises a variable bit and an end bit;
carrying out fuzzy matching on the splicing instruction to obtain the identification result;
and if the identification result is that the splicing instruction is effective, filling variable bits in the preset variable characters with the data characters to obtain an effective instruction, and controlling the controlled device to execute corresponding operation according to the effective instruction.
4. The apparatus control method according to claim 3, characterized by further comprising:
and if the identification result is that the splicing instruction is invalid, returning a prompt message that the control instruction is wrong to the control end.
5. The device control method according to claim 1, characterized by further comprising:
opening a serial port of the controlled equipment, and establishing serial port communication connection between the control terminal and the controlled equipment;
and/or
And accessing the control terminal and the controlled equipment to the same local area network so as to establish the local area network communication connection between the control terminal and the controlled equipment.
6. The device control method according to claim 5, wherein the local area network communication connection is a socket communication connection or a UDP communication connection.
7. The device control method according to any one of claims 1 to 6, wherein the controlled device is an Android device.
8. An apparatus control device, applied to an application layer of a controlled apparatus, includes:
the receiving module is used for receiving a control instruction sent by the control end through a serial port or a local area network;
the judging module is used for judging whether a key value pair matched with the control instruction exists in the target file or not; the key-value pair comprises: the control instruction and an execution instruction which controls the controlled equipment and corresponds to the control instruction are obtained;
and the control module is used for controlling the controlled equipment to execute corresponding operation according to the execution instruction if the key value pair matched with the control instruction exists in the target file.
9. An apparatus control apparatus characterized by comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the device control method according to any one of claims 1 to 7.
10. A readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the device control method according to any one of claims 1 to 7.
CN201911252589.3A 2019-12-09 2019-12-09 Equipment control method, device, equipment and readable storage medium Pending CN110989408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911252589.3A CN110989408A (en) 2019-12-09 2019-12-09 Equipment control method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911252589.3A CN110989408A (en) 2019-12-09 2019-12-09 Equipment control method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN110989408A true CN110989408A (en) 2020-04-10

Family

ID=70091618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911252589.3A Pending CN110989408A (en) 2019-12-09 2019-12-09 Equipment control method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110989408A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930646A (en) * 2020-08-10 2020-11-13 天津七一二通信广播股份有限公司 Method for realizing external key extension module of Android embedded equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340544A (en) * 2008-08-11 2009-01-07 北京中星微电子有限公司 Remote control method and apparatus
CN101902537A (en) * 2010-07-30 2010-12-01 海尔集团公司 Method for remotely controlling household appliances with short messages
CN102833422A (en) * 2012-09-18 2012-12-19 中国人民解放军总参谋部第五十四研究所 Short-message-control-based long-command system of mobile intelligent terminal
CN103002003A (en) * 2012-09-11 2013-03-27 摩卡软件(天津)有限公司 System and method of remote control for machine room facilities
CN103079020A (en) * 2012-12-24 2013-05-01 东莞宇龙通信科技有限公司 Terminal control system and terminal control method
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
CN104331053A (en) * 2014-11-10 2015-02-04 重庆邮电大学 6LoWPAN smart home system and method for achieving same
CN104679480A (en) * 2013-11-27 2015-06-03 上海芯豪微电子有限公司 Instruction set transition system and method
US20160180847A1 (en) * 2014-06-23 2016-06-23 Huizhou Tcl Mobile Communication Co., Ltd. Mobile terminal photographing control method and system based on smart wearable device
US20160224315A1 (en) * 2014-08-21 2016-08-04 Zhejiang Shenghui Lighting Co., Ltd. Lighting device and voice broadcasting system and method thereof
CN106878163A (en) * 2017-04-13 2017-06-20 冶金自动化研究设计院 A kind of intelligent networking gateway of many data protocol conversions
CN108040264A (en) * 2017-11-07 2018-05-15 苏宁云商集团股份有限公司 A kind of speaker sound control method and equipment for TV programme channel selection

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101340544A (en) * 2008-08-11 2009-01-07 北京中星微电子有限公司 Remote control method and apparatus
CN101902537A (en) * 2010-07-30 2010-12-01 海尔集团公司 Method for remotely controlling household appliances with short messages
CN103002003A (en) * 2012-09-11 2013-03-27 摩卡软件(天津)有限公司 System and method of remote control for machine room facilities
CN102833422A (en) * 2012-09-18 2012-12-19 中国人民解放军总参谋部第五十四研究所 Short-message-control-based long-command system of mobile intelligent terminal
CN103079020A (en) * 2012-12-24 2013-05-01 东莞宇龙通信科技有限公司 Terminal control system and terminal control method
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
CN104679480A (en) * 2013-11-27 2015-06-03 上海芯豪微电子有限公司 Instruction set transition system and method
US20160180847A1 (en) * 2014-06-23 2016-06-23 Huizhou Tcl Mobile Communication Co., Ltd. Mobile terminal photographing control method and system based on smart wearable device
US20160224315A1 (en) * 2014-08-21 2016-08-04 Zhejiang Shenghui Lighting Co., Ltd. Lighting device and voice broadcasting system and method thereof
CN104331053A (en) * 2014-11-10 2015-02-04 重庆邮电大学 6LoWPAN smart home system and method for achieving same
CN106878163A (en) * 2017-04-13 2017-06-20 冶金自动化研究设计院 A kind of intelligent networking gateway of many data protocol conversions
CN108040264A (en) * 2017-11-07 2018-05-15 苏宁云商集团股份有限公司 A kind of speaker sound control method and equipment for TV programme channel selection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930646A (en) * 2020-08-10 2020-11-13 天津七一二通信广播股份有限公司 Method for realizing external key extension module of Android embedded equipment
CN111930646B (en) * 2020-08-10 2022-12-06 天津七一二移动通信有限公司 Method for realizing external key extension module of Android embedded equipment

Similar Documents

Publication Publication Date Title
CN107528858B (en) Login method, device and equipment based on webpage and storage medium
CN110808897A (en) Proxy access method, user equipment, storage medium, device and system
CN110045991B (en) RAID configuration method and device of server, computer equipment and storage medium
CN108509215B (en) System software replacing method and device, terminal equipment and storage medium
CN109933465B (en) Exception handling method, exception handling device, server and storage medium
CN110187986B (en) Command management method, system, device and computer readable storage medium
CN114257551A (en) Distributed current limiting method and system and storage medium
CN107656765A (en) A kind of method, system and the terminal device of equipment initialization
CN110414218B (en) Kernel detection method and device, electronic equipment and storage medium
CN110989408A (en) Equipment control method, device, equipment and readable storage medium
CN105354490B (en) Method and equipment for processing hijacked browser
CN104036193A (en) Local cross-domain vulnerability detection method and device for application program
CN112083971B (en) Component processing method, device and storage medium
CN111586202B (en) Network mask checking method and device, electronic equipment and storage medium
CN113342425A (en) Starting method, device and storage medium of Linux embedded system
CN109951549B (en) Network page access method and device and computer readable storage medium
CN116302250A (en) Interface multiplexing method, device, electronic equipment and storage medium
CN108829455A (en) A kind of device identification acquisition methods, device and equipment
CN113254941A (en) Linux kernel source code processing method, device and equipment
CN102460386B (en) For the method and apparatus of load document during bootup process
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN105224653A (en) Disposal route when a kind of browser is held as a hostage and treatment facility
CN111324368A (en) Data sharing method and server
CN114661367B (en) Method, device, equipment and medium for installing operating system in IPv6 environment
CN110099096B (en) Application program configuration method, device, computer 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