CN114518718A - Device control method, device, storage medium and electronic device - Google Patents

Device control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN114518718A
CN114518718A CN202210119838.7A CN202210119838A CN114518718A CN 114518718 A CN114518718 A CN 114518718A CN 202210119838 A CN202210119838 A CN 202210119838A CN 114518718 A CN114518718 A CN 114518718A
Authority
CN
China
Prior art keywords
control
equipment
simulation
execution result
control instruction
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
CN202210119838.7A
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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202210119838.7A priority Critical patent/CN114518718A/en
Publication of CN114518718A publication Critical patent/CN114518718A/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
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

An embodiment of the application provides an equipment control method, an apparatus, a storage medium and an electronic device, including: the method comprises the steps of firstly receiving a control request sent by control equipment, then analyzing the control request to obtain a control instruction, and finally sending the control instruction to simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result, wherein the simulation equipment is virtual equipment created based on corresponding entity equipment. The development personnel carry out AI function test in order to replace the AI function test of going on to the thing networking device of entity through carrying out AI function test to virtual equipment, because this process need not to wait for the thing networking device development of entity to accomplish, consequently saved the development of hardware equipment consuming time to the period of falling to the ground of thing networking device has been shortened, and then effectively alleviated the longer technical problem of period of falling to the ground of current thing networking device.

Description

Device control method, device, storage medium and electronic device
Technical Field
The present application relates to the field of device control technologies, and in particular, to a device control method and apparatus, a storage medium, and an electronic device.
Background
With the continuous development of science and technology, the technology of artificial intelligence internet of things is widely applied to various fields. The Artificial Intelligence internet of things technology is to integrate an AI (Artificial Intelligence) technology and an internet of things technology, so that any internet of things equipment is connected with a network through information sensing equipment according to an agreed protocol to realize information exchange and communication functions, and a user can perform AI control on the internet of things equipment.
In order to ensure that the internet of things equipment has a perfect AI function, a series of AI function tests need to be performed on the internet of things equipment, however, the AI function tests of the current internet of things equipment strongly depend on the development of the internet of things equipment, so the AI function tests need to be performed on the internet of things equipment after the development of the internet of things equipment is completed, however, the development period of the internet of things equipment and the test period of the AI function are both longer, so the landing period of the internet of things equipment is longer.
Disclosure of Invention
The embodiment of the application provides an equipment control method and device, a storage medium and electronic equipment, and can solve the technical problem that the existing Internet of things equipment has a long landing period.
An embodiment of the present application provides an apparatus control method, including:
receiving a control request sent by control equipment;
analyzing the control request to obtain a control instruction;
sending the control instruction to simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result; the simulation device is a virtual device created based on a corresponding entity device.
Before the step of receiving the control request sent by the control device, the method further includes:
detecting a starting state of the simulation equipment;
and when the simulation equipment is started, establishing connection with the simulation equipment.
Wherein, the step of receiving the control request sent by the control device includes:
and receiving a control request triggered by the control equipment based on user operation.
Wherein the user operation comprises a voice control operation, and the step of receiving a control request triggered by the control device based on the user operation comprises:
and receiving a control request triggered by the control equipment based on the voice control operation.
Wherein, the step of sending the control instruction to the simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result comprises:
and sending the control instruction to the simulation equipment so as to execute corresponding operation according to the control instruction through a control module in the simulation equipment to obtain an execution result.
After the step of sending the control instruction to the simulation device so that the simulation device executes the corresponding operation according to the control instruction to obtain the execution result, the method further includes:
receiving the execution result sent by the simulation equipment;
and sending the execution result to the control equipment so as to display the execution result through the control equipment.
Wherein the step of sending the execution result to the control device to display the execution result through the control device includes:
and sending the execution result to the control equipment so as to convert the execution result into an image through a display module in the control equipment and display the image.
An embodiment of the present application further provides an apparatus control device, including:
the receiving module is used for receiving a control request sent by the control equipment;
the analysis module is used for analyzing the control request to obtain a control instruction;
the execution module is used for sending the control instruction to the simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result; the simulation device is a virtual device created based on a corresponding entity device.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the computer-readable storage medium, and the instructions are suitable for being loaded by a processor to execute the steps in any one of the above equipment control methods.
An embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the device control method according to any one of the above descriptions.
The embodiment of the application provides a device control method, a device, a storage medium and an electronic device, wherein a control request sent by a control device is received, the control request is analyzed to obtain a control instruction, and the control instruction is sent to a simulation device, so that the simulation device executes corresponding operation according to the control instruction to obtain an execution result, wherein the simulation device is a virtual device created based on a corresponding entity device. The development personnel replace the AI function test of the entity equipment (real Internet of things equipment) by carrying out AI function test on the virtual equipment (namely simulation equipment), and the development of the hardware equipment is saved and consumed as the process does not need to wait for the development of the entity Internet of things equipment, so that the landing period of the Internet of things equipment is shortened, and the technical problem of long landing period of the current Internet of things equipment is effectively solved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of an apparatus control method according to an embodiment of the present application.
Fig. 2 is another schematic flow chart of the device control method according to the embodiment of the present application.
Fig. 3 is a scene schematic diagram of a device control method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application.
Fig. 5 is a schematic diagram of an apparatus control system according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of 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 embodiment of the application provides a device control method and device, a storage medium and an electronic device.
As shown in fig. 1, fig. 1 is a schematic flow chart of an apparatus control method provided in the embodiment of the present application, and a specific flow may be as follows:
s101, receiving a control request sent by control equipment.
Wherein the control device is an electronic device, the control request is a request for triggering a controlled device (controlled device) to perform an operation/operations, and the control device has a function for an AI function test (AI control) including sending a control request or the like.
In an actual application process, in order to enable a controlled device to execute corresponding operations according to a control request sent by the control device, both the control device and the controlled device need to be connected with an Internet of Things (IOT) cloud platform, so that the control device and the controlled device are connected through the IOT cloud platform, and the controlled device needs to be bound with the control device.
And S102, analyzing the control request to obtain a control instruction.
Since the controlled device can only recognize the control instruction in a specific format, for example, a code (including a character, a symbol, or a signal symbol), in order to enable the controlled device to recognize the content of the control request, the control request needs to be parsed by the IOT cloud platform to convert the control request into the control instruction in the specific format.
For example, a user sends a segment of audio to the IOT cloud platform through the control device, and the IOT cloud platform receives the audio and then parses the audio to convert the audio into a plurality of characters, and uses the characters as control instructions.
And S103, sending the control instruction to the simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result, wherein the simulation equipment is virtual equipment created based on the corresponding entity equipment.
The execution result is data output after the controlled device executes corresponding operations according to the control instruction, and specifically, the execution result includes a code running result. For example, the controlled device calls and runs the code for turning on the power supply according to the control instruction, and a code running result is obtained.
In this embodiment, the simulation device (i.e., the virtual device created based on the corresponding entity device) is used as the controlled device, and the developer performs the AI function test on the simulation device to replace the AI function test on the real internet of things device.
Specifically, the entity device is a hardware device existing in an entity form, the virtual device is a fictitious device not existing in the entity form, in an actual application process, a corresponding virtual device needs to be created in advance according to the entity device to be controlled, and the created virtual device can be directly used for replacing the corresponding entity device to perform function debugging subsequently, so that a development process of the entity device is omitted, and a landing period of the internet of things device is shortened.
As shown in fig. 2, fig. 2 is another schematic flow chart of the device control method provided in the embodiment of the present application, and the specific flow may be as follows:
s201, creating simulation equipment, wherein the simulation equipment is virtual equipment created based on corresponding entity equipment.
The control device is pre-installed with a preset application program for creating simulation devices, so that a user can create the needed simulation devices. In an actual application process, since device parameters of different entity devices are different, a user may preset device parameters (including a device type, a device model, a communication protocol, a module type, and whether a WIFI function is supported) of a target device (i.e., an entity device that needs to perform an AI function test) before sending a control request to the IOT cloud platform by using the control device, so as to create a simulation device corresponding to the entity device.
Alternatively, the preset application may be installed in other devices (electronic devices other than the control device).
For example, as shown in fig. 3, after the user opens the preset application, a simulation device creation interface 3001 is displayed in the screen, and the user can fill in device parameters of the simulation device according to actual requirements: the device type: intelligent air conditioner, equipment model: KFR-26GW, communication protocol: TCP protocol, module type: the sub-equipment and whether the WIFI function is supported: then, the "determine" control 3002 is clicked, and the creation of the simulation device is completed, and the "simulation device creation completed! "prompt 3003.
S202, when the starting of the simulation equipment is completed, connection with the simulation equipment is established.
And the server automatically creates an mqtt connection so as to establish connection between the simulation equipment and the control equipment and to bind the simulation equipment and the control equipment.
For example, as shown in fig. 3, after the user completes creation of the simulation device, the server automatically creates an mqtt connection, so that both the simulation device and the control device are connected to the IOT cloud platform, and the simulation device and the control device are bound.
S203, receiving a control request triggered by the control equipment based on user operation.
Where the user operation is an operation initiated by the user, the user operation includes clicking a control, drawing a gesture, or a voice control operation (e.g., emitting audio).
In particular, in order that a user (e.g., a developer) can control a controlled device to perform different operations according to actual needs, the control request can be triggered by a user operation initiated by the user through the control device. For example, a user sends audio for controlling a controlled device to the IOT cloud platform through the control device.
For example, as shown in fig. 3, after the analog device is connected to the control device, the control device automatically jumps to the analog device control interface 3004, and after the user clicks the "voice control" control 3005, the user sends a "power on" voice to send a control request to the IOT cloud platform to trigger the analog device to perform power on.
And S204, analyzing the control request to obtain a control instruction.
For example, the IOT cloud platform parses the "powered on" audio to convert the audio into the characters "turn on _ power" and "turn on _ power" as the control instruction.
S205, the control instruction is sent to the simulation equipment, so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result.
After the IOT cloud platform sends the control instruction to the simulation equipment, the simulation equipment operates the corresponding code according to the control instruction to obtain a code operation result, and the code operation result is used as an execution result.
For example, the IOT cloud platform sends "turn on _ power" to the simulation device, and the simulation device calls and runs the code corresponding to "turn on _ power" to obtain a code running result.
And S206, receiving an execution result sent by the simulation equipment.
In order to facilitate a user to check an AI function test result of the simulation device, an execution result needs to be displayed in the control device, and since data interaction between the simulation device and the control device needs to be transferred through the IOT cloud platform, the simulation device needs to send the execution result to the IOT cloud platform first. For example, the simulation device sends the code running result to the IOT cloud platform.
And S207, sending the execution result to the control equipment so as to display the execution result through the control equipment.
The IOT cloud platform sends the code running result to a display module in the control device for displaying, a user can check the code running result through the display module, and optionally, if the execution fails, the user can also perform error analysis according to the displayed code so as to know the failure reason. Specifically, the display module is used for displaying the execution result.
Further, compared with the method that whether the AI function test result is successful or not is known by checking the code operation result, the execution result is displayed in the form of an image, so that the user can check the result more conveniently. Optionally, the IOT cloud platform sends the code running result to the control device, so that the execution result is converted into an image through a display module in the control device and displayed. For example, as shown in fig. 3, the simulation device calls and runs a code for turning on the power supply according to the control instruction to obtain a code running result, and then converts the code running result into an image component 3006 that is "√" successfully turns on the power supply "through the display module and displays the image component on the execution result display interface 3007.
Optionally, after the IOT cloud platform receives the code operation result sent by the simulation device, the IOT cloud platform may also directly convert the code operation result into image data, and then send the image data to the display module of the control device for display through the display module.
As can be seen from the above, the device control method provided in the present application receives a control request sent by a control device, analyzes the control request to obtain a control instruction, and sends the control instruction to a simulation device, so that the simulation device executes a corresponding operation according to the control instruction to obtain an execution result, where the simulation device is a virtual device created based on a corresponding entity device. The development personnel replace the AI function test of the entity equipment (real Internet of things equipment) by carrying out AI function test on the virtual equipment (namely simulation equipment), and the development of the hardware equipment is saved and consumed as the process does not need to wait for the development of the entity Internet of things equipment, so that the landing period of the Internet of things equipment is shortened, and the technical problem of long landing period of the current Internet of things equipment is effectively solved.
The present embodiment will be further described from the perspective of the appliance control device, in accordance with the method described in the above embodiment.
Referring to fig. 4, fig. 4 specifically describes an apparatus control device provided in the embodiment of the present application, where the apparatus control device may include: a receiving module 10, a parsing module 20 and an executing module 30, wherein:
(1) receiving module 10
A receiving module 10, configured to receive a control request sent by a control device.
(2) Analysis module 20
And the analysis module 20 is used for analyzing the control request to obtain the control instruction.
(3) Execution module 30
The execution module 30 is configured to send the control instruction to the simulation device, so that the simulation device executes a corresponding operation according to the control instruction to obtain an execution result; the simulation device is a virtual device created based on the corresponding entity device.
As can be seen from the above description, the device control apparatus provided in the present application first receives, through the receiving module 10, a control request sent by a control device, then analyzes the control request through the analyzing module 20 to obtain a control instruction, and finally sends, through the executing module 30, the control instruction to a simulation device, so that the simulation device executes a corresponding operation according to the control instruction to obtain an execution result, where the simulation device is a virtual device created based on a corresponding entity device. The development personnel replace the AI function test of the entity equipment (real Internet of things equipment) by carrying out AI function test on the virtual equipment (namely simulation equipment), and the development of the hardware equipment is saved and consumed as the process does not need to wait for the development of the entity Internet of things equipment, so that the landing period of the Internet of things equipment is shortened, and the technical problem of long landing period of the current Internet of things equipment is effectively solved.
In specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily, and implemented as the same or several entities, and specific implementations of the above units may refer to the foregoing method embodiment, which is not described herein again.
Correspondingly, the embodiment of the invention also provides an equipment control system. As shown in fig. 5, fig. 5 is a schematic diagram of an apparatus control system provided in an embodiment of the present application. In this embodiment, the control device 501 executes step 5001 after the simulation device 503 is created: sending the control request to the IOT cloud platform 502, and then the IOT cloud platform 502 executes step 5002: receiving and analyzing the control request to obtain a control instruction, the IOT cloud platform 502 continues to execute step 5003: the control instruction is sent to the simulation apparatus 503, and then the simulation apparatus 503 executes step 5004: corresponding operations are executed according to the control instruction, an execution result is obtained, and finally, the simulation device 503 executes the step 5005: the execution result is sent to the control apparatus 501.
Since the device control system may include any device control apparatus provided in the embodiment of the present invention, beneficial effects that can be achieved by any device control apparatus provided in the embodiment of the present invention can be achieved, for details, see the foregoing embodiment, and are not described herein again.
In addition, the embodiment of the application also provides electronic equipment. As shown in fig. 6, the electronic device 600 includes a processor 601, a memory 602. The processor 601 is electrically connected to the memory 602.
The processor 601 is a control center of the electronic device 600, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or loading an application program stored in the memory 602 and calling the data stored in the memory 602, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 601 in the electronic device 600 loads instructions corresponding to processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 runs the application programs stored in the memory 602, thereby implementing various functions:
receiving a control request sent by control equipment;
analyzing the control request to obtain a control instruction;
sending the control instruction to the simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result; the simulation device is a virtual device created based on the corresponding entity device.
Fig. 7 is a specific block diagram of an electronic device according to an embodiment of the present invention, where the electronic device may be used to implement the device control method provided in the above-described embodiment.
The RF circuit 710 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 710 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF circuit 710 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 720 may be used to store software programs and modules, and the processor 780 may execute various functional applications and data processing, i.e., implement the function of storing 5G capability information, by operating the software programs and modules stored in the memory 720. The memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 720 may further include memory located remotely from processor 780, which may be connected to electronic device 700 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 730 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 730 may include a touch-sensitive surface 731 as well as other input devices 732. Touch-sensitive surface 731, also referred to as a touch display screen or touch pad, can collect touch operations by a user on or near touch-sensitive surface 731 (e.g., operations by a user on or near touch-sensitive surface 731 using a finger, stylus, or any other suitable object or attachment) and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 731 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and provides them to processor 780, where they can receive commands from processor 780 and execute them. In addition, the touch-sensitive surface 731 can be implemented in a variety of types, including resistive, capacitive, infrared, and surface acoustic wave. The input unit 730 may also include other input devices 732 in addition to the touch-sensitive surface 731. In particular, other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 740 may be used to display information input by or provided to the user and various graphical user interfaces of the electronic device 700, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 740 may include a Display panel 741, and optionally, the Display panel 741 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 731 can overlie display panel 741, such that when touch-sensitive surface 731 detects a touch event thereon or thereabout, processor 780 can determine the type of touch event, and processor 780 can then provide a corresponding visual output on display panel 741 in accordance with the type of touch event. Although in FIG. 7 the touch-sensitive surface 731 and the display panel 741 are implemented as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface 731 and the display panel 741 may be integrated to implement input and output functions.
The electronic device 700 may also include at least one sensor 750, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 741 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 741 and/or a backlight when the electronic device 700 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device 700, detailed descriptions thereof are omitted.
The audio circuit 760, speaker 761, and microphone 762 may provide an audio interface between a user and the electronic device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 and output; on the other hand, the microphone 762 converts the collected sound signal into an electric signal, receives it by the audio circuit 760 and converts it into audio data, and then processes it by the audio data output processor 780 and sends it to, for example, another terminal via the RF circuit 710 or outputs it to the memory 720 for further processing. The audio circuitry 760 may also include an earbud jack to provide communication of a peripheral headset with the electronic device 700.
The electronic device 700, via the transport module 770 (e.g., a Wi-Fi module), may assist a user in sending and receiving e-mail, browsing web pages, accessing streaming media, etc., which provides wireless broadband internet access to the user. Although fig. 7 shows the transmission module 770, it is understood that it does not belong to the essential constitution of the electronic device 700 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 780 is a control center of the electronic device 700, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the electronic device 700 and processes data by operating or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720. Optionally, processor 780 may include one or more processing cores; in some embodiments, processor 780 may integrate an application processor that handles primarily the operating system, user interface, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 780.
The electronic device 700 also includes a power supply 790 (e.g., a battery) that provides power to various components, and in some embodiments may be logically coupled to the processor 780 via a power management system that may perform functions such as managing charging, discharging, and power consumption. The power supply 790 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device 700 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the electronic device is a touch screen display, the electronic device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
receiving a control request sent by control equipment;
analyzing the control request to obtain a control instruction;
sending the control instruction to the simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result; the simulation device is a virtual device created based on the corresponding entity device.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the device control methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any device control method provided in the embodiment of the present invention, the beneficial effects that can be achieved by any device control method provided in the embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the scope of the appended claims.

Claims (10)

1. An apparatus control method characterized by comprising:
receiving a control request sent by control equipment;
analyzing the control request to obtain a control instruction;
sending the control instruction to simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result; the simulation device is a virtual device created based on a corresponding entity device.
2. The device control method according to claim 1, further comprising, before the step of receiving the control request transmitted by the control device:
detecting a starting state of the simulation equipment;
and when the simulation equipment is started, establishing connection with the simulation equipment.
3. The device control method according to claim 1, wherein the step of receiving the control request transmitted by the control device comprises:
and receiving a control request triggered by the control equipment based on user operation.
4. The device control method according to claim 3, wherein the user operation includes a voice control operation, and the step of receiving a control request triggered by the control device based on the user operation includes:
and receiving a control request triggered by the control equipment based on the voice control operation.
5. The device control method according to claim 3, wherein the step of sending the control instruction to a simulation device to enable the simulation device to execute a corresponding operation according to the control instruction to obtain an execution result comprises:
and sending the control instruction to the simulation equipment so as to execute corresponding operation according to the control instruction through a control module in the simulation equipment to obtain an execution result.
6. The device control method according to claim 5, wherein after the step of sending the control instruction to the simulation device to cause the simulation device to perform the corresponding operation according to the control instruction to obtain the execution result, the method further comprises:
receiving the execution result sent by the simulation equipment;
and sending the execution result to the control equipment so as to display the execution result through the control equipment.
7. The apparatus control method according to claim 6, wherein the step of transmitting the execution result to the control apparatus to display the execution result by the control apparatus includes:
and sending the execution result to the control equipment so as to convert the execution result into an image through a display module in the control equipment and display the image.
8. An apparatus control device, characterized by comprising:
the receiving module is used for receiving a control request sent by the control equipment;
the analysis module is used for analyzing the control request to obtain a control instruction;
the execution module is used for sending the control instruction to the simulation equipment so that the simulation equipment executes corresponding operation according to the control instruction to obtain an execution result; the simulation device is a virtual device created based on a corresponding entity device.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the steps of the device control method of any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the device control method of any one of claims 1 to 7.
CN202210119838.7A 2022-02-09 2022-02-09 Device control method, device, storage medium and electronic device Pending CN114518718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210119838.7A CN114518718A (en) 2022-02-09 2022-02-09 Device control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210119838.7A CN114518718A (en) 2022-02-09 2022-02-09 Device control method, device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN114518718A true CN114518718A (en) 2022-05-20

Family

ID=81595909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210119838.7A Pending CN114518718A (en) 2022-02-09 2022-02-09 Device control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114518718A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208791A (en) * 2022-09-16 2022-10-18 江苏橙智云信息技术有限公司 Method for testing functions of Internet of things equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807545A (en) * 2016-09-08 2018-03-16 北京京东尚科信息技术有限公司 The adjustment method and device of a kind of remote control terminal
CN111262759A (en) * 2020-03-17 2020-06-09 中国建设银行股份有限公司 Internet of things platform testing method, device, equipment and storage medium
CN111865708A (en) * 2019-12-30 2020-10-30 北京嘀嘀无限科技发展有限公司 Performance test method, platform, equipment and storage medium of Internet of things system
CN111934908A (en) * 2020-07-06 2020-11-13 上海庆科信息技术有限公司 Internet of things simulation method, device and system and storage medium
CN113037771A (en) * 2021-03-29 2021-06-25 北京金山云网络技术有限公司 Method and device for controlling device shadow, storage medium and electronic device
CN113434255A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Virtual equipment creating method and device
CN113434422A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Virtual device debugging method and device and virtual device debugging system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107807545A (en) * 2016-09-08 2018-03-16 北京京东尚科信息技术有限公司 The adjustment method and device of a kind of remote control terminal
CN111865708A (en) * 2019-12-30 2020-10-30 北京嘀嘀无限科技发展有限公司 Performance test method, platform, equipment and storage medium of Internet of things system
CN111262759A (en) * 2020-03-17 2020-06-09 中国建设银行股份有限公司 Internet of things platform testing method, device, equipment and storage medium
CN111934908A (en) * 2020-07-06 2020-11-13 上海庆科信息技术有限公司 Internet of things simulation method, device and system and storage medium
CN113037771A (en) * 2021-03-29 2021-06-25 北京金山云网络技术有限公司 Method and device for controlling device shadow, storage medium and electronic device
CN113434255A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Virtual equipment creating method and device
CN113434422A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Virtual device debugging method and device and virtual device debugging system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208791A (en) * 2022-09-16 2022-10-18 江苏橙智云信息技术有限公司 Method for testing functions of Internet of things equipment

Similar Documents

Publication Publication Date Title
CN108039963B (en) Container configuration method and device and storage medium
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN108958606B (en) Split screen display method and device, storage medium and electronic equipment
CN107391198B (en) Method for scheduling task and device, computer readable storage medium, mobile terminal
CN109451130B (en) Mobile terminal testing method and device, mobile terminal and storage medium
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN112199246A (en) Terminal testing method and device, storage medium and mobile terminal
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN112749074A (en) Test case recommendation method and device
CN114518718A (en) Device control method, device, storage medium and electronic device
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN111104012B (en) Distance measuring method and device, storage medium and terminal equipment
CN111045737A (en) Equipment identifier acquisition method and device, terminal equipment and storage medium
CN116414630A (en) Device testing method, device, electronic device and computer readable storage medium
CN113590272A (en) Virtual machine deployment method, device, electronic device and storage medium
CN112667868B (en) Data detection method and device
CN109799994B (en) Terminal component generation method and device
CN106033358B (en) Batch installation method and device of application programs
CN107315623B (en) Method and device for reporting statistical data
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN107689909B (en) User display method and device
CN111309223A (en) Application function starting method and device, storage medium and mobile terminal
CN105988801B (en) Method and device for displaying annotation information

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