CN114070896B - Communication interface, electronic device and device management method - Google Patents

Communication interface, electronic device and device management method Download PDF

Info

Publication number
CN114070896B
CN114070896B CN202111276408.8A CN202111276408A CN114070896B CN 114070896 B CN114070896 B CN 114070896B CN 202111276408 A CN202111276408 A CN 202111276408A CN 114070896 B CN114070896 B CN 114070896B
Authority
CN
China
Prior art keywords
service
instruction
communication
terminal device
communication interface
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.)
Active
Application number
CN202111276408.8A
Other languages
Chinese (zh)
Other versions
CN114070896A (en
Inventor
王臻
周志平
聂鹏
段奡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech 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 Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
Priority to CN202111276408.8A priority Critical patent/CN114070896B/en
Publication of CN114070896A publication Critical patent/CN114070896A/en
Application granted granted Critical
Publication of CN114070896B publication Critical patent/CN114070896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application is applicable to the technical field of communication, and provides a communication interface, electronic equipment and an equipment management method, wherein the communication interface comprises a first service and a second service; the first service is used for receiving an instruction broadcast by the terminal equipment, analyzing the received instruction to obtain an analysis result, and selecting information sent to the second service according to the analysis result; the second service is used for executing corresponding operation according to the received information; the communication mechanism of the communication framework between the first service and the second service is a mechanism capable of realizing communication by only analyzing parameters in a corresponding method interface. By the method, the management efficiency of the terminal equipment can be improved.

Description

Communication interface, electronic device and device management method
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communications interface, an electronic device, a device management method, a device management system, a terminal device, and a computer readable storage medium.
Background
At present, electronic devices can complete more and more matters in work and life of people, and effective operation of the electronic devices requires effective management of people.
In the process of managing electronic devices, a user may need to manage only one electronic device, or may need to manage multiple electronic devices. However, a user can only manage one electronic device or a plurality of electronic devices one by one, which results in lower management efficiency.
Disclosure of Invention
The embodiment of the application provides a communication interface, electronic equipment and an equipment management method, which can solve the problem of low management efficiency of terminal equipment.
In a first aspect, an embodiment of the present application provides a communication interface, where the communication interface includes a first service and a second service;
the first service is used for receiving an instruction broadcast by the terminal equipment, analyzing the received instruction to obtain an analysis result, and selecting information sent to the second service according to the analysis result;
the second service is used for executing corresponding operation according to the received information;
the communication mechanism of the communication framework between the first service and the second service is a mechanism capable of realizing communication by only analyzing parameters in a corresponding method interface.
In a second aspect, an embodiment of the present application provides an electronic device, which includes a communication interface as described in the first aspect.
In a third aspect, an embodiment of the present application provides an apparatus management method, applied to a terminal apparatus, where the apparatus management method includes:
displaying an identification of the manageable electronic device;
receiving an electronic equipment selection instruction, and determining the identification of the electronic equipment to be managed, wherein the electronic equipment selection instruction is used for selecting the identification of the electronic equipment to be managed from the identification of the manageable electronic equipment;
receiving an instruction, broadcasting the instruction to an electronic device indicated by the identification of the electronic device to be managed, wherein the electronic device comprises the communication interface according to the first aspect.
In a fourth aspect, a device management system is provided, where the device management system includes a terminal device and at least two electronic devices;
the terminal device is configured to perform the device management method according to the second aspect;
the electronic device comprises a communication interface as described in the first aspect.
In a fifth aspect, there is provided a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to the second aspect when executing the computer program.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements a method as described in the second aspect.
In a seventh aspect, embodiments of the present application provide a computer program product for causing a terminal device to carry out the method of the second aspect described above when the computer program product is run on the terminal device.
Compared with the prior art, the embodiment of the application has the beneficial effects that:
because the TCP protocol is a communication mode commonly used in the industry, the first service and the terminal equipment provided by the embodiment of the application are set to be based on the TCP protocol communication, so that the communication between the first service and the terminal equipment can be ensured. Meanwhile, because the inter-process communication (InterProcess Communication, IPC) is used between the first service and the second service, and the communication mechanism of the communication framework between the first service and the second service can realize communication only by analyzing parameters in the corresponding method interfaces, the first service can be completely transplanted in the electronic equipment with the same system architecture, and the second service only needs to be adaptively modified in combination with specific services, so that the repeated steps of formulating communication protocols caused by different system characteristics are reduced, and the research and development efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a schematic diagram of a communication interface according to an embodiment of the present application;
fig. 2 is a schematic diagram of interaction between an electronic device and a terminal device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a communication interface according to an embodiment of the present application when the communication interface communicates with a terminal device;
FIG. 4 is a flow chart of a device management method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a device management system according to another embodiment of the present application;
FIG. 6 is a schematic diagram of a shutdown process according to an embodiment of the present application;
fig. 7 is a schematic flow chart of an electric quantity inquiry according to another embodiment of the present application;
fig. 8 is a block diagram of a device management apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise.
Embodiment one:
currently, in one scenario, there may be multiple electronic devices, and the systems in which the different electronic devices are installed may also be different. For example, in the contemporary artificial intelligence teaching scenario, since various types of intelligent robot products are required to be used as key teaching tools, in the teaching process, a teacher needs to use personal computers (personal computer, PCs) to perform management operations (such as shutdown, upgrading, sharing files, etc.) on each intelligent robot product, and perform management operations on each intelligent robot product separately, which requires more time, thus resulting in low management efficiency.
In order to improve management efficiency, the embodiment of the application provides a communication interface, which comprises a first service and a second service, wherein the first service receives and analyzes an instruction broadcasted by a terminal device to obtain an analysis result, selects information sent to the second service according to the analysis result, and then the second service executes corresponding operation according to the received information. Because the first service is used for receiving and analyzing the instruction broadcast by the terminal equipment, and the second service is used for executing specific operation, when the communication interface is applied to different electronic equipment, the different electronic equipment can communicate with the terminal equipment, so that a plurality of electronic equipment can be managed through one terminal equipment at the same time, and the management efficiency is further improved. Meanwhile, the communication interface is divided into a first service and a second service, communication is carried out between the first service and the terminal equipment based on a TCP protocol, and a communication mechanism of a communication framework between the first service and the second service is a mechanism capable of realizing communication by only analyzing parameters in a corresponding method interface, so that the first service can be completely transplanted among electronic equipment with the same system architecture, and only the second service needs to be adaptively modified by combining with specific services, thereby reducing repeated steps of making the communication protocol due to different system characteristics and improving research and development efficiency.
The following describes a communication interface provided by an embodiment of the present application with reference to the accompanying drawings.
Fig. 1 shows a schematic structural diagram of a communication interface according to an embodiment of the present application, where the communication interface includes a first service and a second service. Specifically, the above communication interface may be applied to an electronic device, and a schematic interaction diagram of the electronic device to which the communication interface is applied and a terminal device (PC side) is shown in fig. 2.
The first service is configured to receive an instruction broadcast by a terminal device, parse the received instruction to obtain a parsed result, and select information to be sent to the second service according to the parsed result.
And the second service is used for executing corresponding operation according to the received information.
The communication between the first service and the terminal device is performed based on a transmission control protocol (Transmission Control Protocol, TCP), and the communication mechanism of the communication framework between the first service and the second service is a mechanism that can realize communication by analyzing parameters in the corresponding method interface.
The information sent by the first service to the second service may be the instruction itself, or may be a response result obtained by the first service responding to the instruction.
In the following scenario, the information sent by the first service to the second service is the instruction itself: when the user wants each electronic device in the same scene to execute the shutdown operation, the instruction corresponding to shutdown can be broadcasted through the terminal device. After receiving the instruction broadcast by the terminal device through the first service of the communication interface installed on the different electronic devices, the corresponding first service will analyze the received instruction. After the first service judges that the instruction is used for indicating the electronic equipment to be powered off, the instruction is sent to a second service which is positioned at the same communication interface as the first service, and the second service executes corresponding power-off operation according to the instruction and a system of the electronic equipment where the second service is positioned. For example, the second service in the Linux system may use a system command—shutdown, and the second service in the Windows system may use an application program interface (Application Programming Interface, API) -exitwindows ex of the system to shutdown. That is, the terminal device only needs to broadcast an instruction corresponding to shutdown, and a plurality of electronic devices (different electronic devices may have different systems) receiving the instruction can respectively execute corresponding shutdown operations, and the terminal device does not need to manage the different electronic devices one by one, thereby greatly improving management efficiency.
Because the TCP protocol is a communication mode commonly used in the industry, the first service and the terminal equipment provided by the embodiment of the application are set to be based on the TCP protocol communication, so that the communication between the first service and the terminal equipment can be ensured. Meanwhile, because the inter-process communication (InterProcess Communication, IPC) is used between the first service and the second service, and the communication mechanism of the communication framework between the first service and the second service can realize communication only by analyzing parameters in the corresponding method interfaces, the first service can be completely transplanted in the electronic equipment with the same system architecture, and the second service only needs to be adaptively modified in combination with specific services, so that the repeated steps of formulating communication protocols caused by different system characteristics are reduced, and the research and development efficiency is improved.
In some embodiments, the communication mechanism of the communication framework between the first service and the second service is an advanced inter-process communication mechanism (D-Bus). The communication mechanism of the D-Bus framework does not need to specially formulate a protocol, and can realize communication by only analyzing parameters in a corresponding method interface.
In some embodiments, the selecting information to be sent to the second service according to the parsing result includes:
a1, if the analysis result indicates that the instruction is of the first type, the instruction is sent to the second service.
Wherein the logic in the first type of instruction is not common to electronic devices of different system architectures. Such as a power-on instruction, a power-off instruction, a restart instruction, etc.
A2, if the analysis result indicates that the instruction is of a second type, responding to the instruction to obtain a response result, and sending the response result to the second service.
Wherein the second type of instruction refers to an instruction that contains logic that is common to all electronic devices of different system architectures, such as an upgrade instruction. When the electronic devices with different system architectures execute the upgrade operation, the logic of file downloading, memory space judgment and the like is involved, and at this time, the logic corresponding to the file downloading and the memory space judgment is the logic common to the electronic devices with different system architectures.
In the above-mentioned A1 and A2, since the instruction is selected to be forwarded according to the type to which the instruction belongs, or the instruction is responded first and then the obtained response result is sent to the second service, not only the accuracy of the service responding to the instruction can be ensured, but also the operation required to be executed by the second service can be shared by executing as many operations as possible by the first service, so that the modification of the second service is reduced as much as possible.
In some embodiments, when the terminal device wishes the electronic device to feed back its execution result:
the second service is further configured to send an execution result obtained after the execution operation to the first service.
The first service is further configured to send the execution result to the terminal device.
In the embodiment of the present application, if the instruction broadcast by the terminal device belongs to the third type of instruction, it indicates that the terminal device wants to obtain the execution result fed back by the electronic device, and at this time, the second service sends the execution result to the first service, so as to send the execution result to the terminal device through the first service. Because the terminal equipment can receive the execution result sent by the first service, the user can acquire the execution result through the terminal equipment, and further acquire the management effect of the corresponding electronic equipment.
Fig. 3 is a schematic diagram illustrating a communication interface according to an embodiment of the present application when the communication interface communicates with a terminal device. In fig. 3, the terminal device includes a first receive message interface and a first transmit message interface; the first service comprises a second receiving message interface, a second sending message interface, a third receiving message interface and a third sending message interface; the second service includes a fourth receive message interface and a fourth transmit message interface.
The first service and the second service both receive the message through the corresponding message receiving interfaces and both send the message through the corresponding message sending interfaces. The difference is that: the second receiving message interface receives the message sent by the first sending message interface based on the TCP protocol, and the third receiving message interface receives the message sent by the fourth sending message interface based on the IPC protocol; the second sending message interface sends messages to the first receiving message interface based on the TCP protocol, and the third sending message interface sends messages to the fourth receiving message interface based on the IPC protocol.
Since the interface for receiving the message and the interface for transmitting the message are distinguished in both the first service and the second service, it is advantageous to improve the accuracy of receiving the message and transmitting the message.
Embodiment two:
fig. 4 shows a flowchart of a device management method according to an embodiment of the present application, where the method is applied to a terminal device, and is described in detail as follows:
step S41, displaying the identity of the manageable electronic device.
The identification of the electronic device may be represented by a name and/or an icon of the electronic device.
Specifically, on an application interface in the terminal device for managing the electronic devices, the identities of the respective electronic devices manageable by the terminal device are displayed.
In some embodiments, if a certain electronic device is not currently networked, the terminal device cannot currently manage the electronic device, but in order to facilitate the user to know the current state of the electronic device, the identifier of the electronic device is displayed, where the displayed identifier is different from the identifier of the electronic device currently in the networked state. For example, only the identity of electronic devices that are not currently networked is grayed out.
Step S42, receiving an electronic equipment selection instruction, and determining the identification of the electronic equipment to be managed, wherein the electronic equipment selection instruction is used for selecting the identification of the electronic equipment to be managed from the identification of the manageable electronic equipment.
In this embodiment, when the terminal device needs to perform batch management (such as batch shutdown, startup, upgrade, etc.) on some electronic devices, the identifiers of all or part of the electronic devices are selected from the manageable identifiers of the electronic devices, and are used as the identifiers of the electronic devices that need to be managed.
In some embodiments, an option for one-key selection is displayed on an application interface for managing electronic devices, and after the user selects the option, the terminal device selects the identifier corresponding to each electronic device currently in the networking state, that is, each electronic device currently in the networking state is regarded as an electronic device to be managed. Because the user can select the identifications of all the manageable electronic devices only by executing one operation, the operation of the user is reduced, and the operation efficiency of the user is improved.
Step S43, receiving an instruction, broadcasting the instruction to the electronic device indicated by the identifier of the electronic device to be managed, where the communication interface included in the electronic device is the same as that of the first embodiment, and will not be described herein.
Specifically, on an application interface for managing the electronic device, different instruction options are displayed, and a user selects the corresponding instruction options according to needs. For example, if the user wants the device 1 and the device 2 to perform the shutdown operation, the user selects the identifiers corresponding to the device 1 and the device 2, and then selects the instruction option corresponding to the shutdown instruction, so that the terminal device will broadcast the shutdown instruction to the device 1 and the device 2. Then, if the user wants the device 3 and the device 4 to execute the upgrade operation, the user selects the identifiers corresponding to the device 3 and the device 4, and then selects the instruction options corresponding to the upgrade instruction, so that the terminal device will broadcast the upgrade instruction to the device 3 and the device 4. It should be noted that the systems installed on the above-mentioned devices 1, 2, 3 and 4 may be different, that is, the terminal device may not need to pay attention to the system on which the device managed by the terminal device is installed, and batch management of the respective electronic devices on which the different systems are installed may be realized.
In the embodiment of the application, the terminal equipment can determine the identification of the electronic equipment to be managed according to the received electronic equipment selection instruction, and broadcast the instruction to the electronic equipment indicated by the identification of the electronic equipment to be managed after receiving the instruction. Because the electronic device includes a communication interface, the first service included in the communication interface can communicate with the terminal device based on the TCP protocol, and the communication mechanism of the communication framework between the first service and the second service is a mechanism capable of realizing communication by only analyzing parameters in the corresponding method interface, after the terminal device broadcasts the instruction, the corresponding electronic device can receive the corresponding instruction through the communication interface included in the electronic device, and then execute the corresponding operation. That is, since batch management of a plurality of electronic devices can be realized by one terminal device, management efficiency is improved.
In some embodiments, the terminal device is in the same local area network as the electronic device indicated by the identity of the manageable electronic device.
In this embodiment, since the terminal device and the electronic device to be managed are located in the same local area network, it is beneficial to improve accuracy of the broadcast instruction.
In some embodiments, the device management method further includes:
and receiving an execution result sent by the electronic equipment.
In this embodiment, the terminal device receives an execution result sent by the electronic device through the first service. Further, the execution result is displayed. For example, after the terminal device broadcasts an upgrade instruction to the device 3, the first service of the device 3 calculates whether the remaining memory of the device 3 is sufficient to store an installation package required for upgrade, if so, downloads the installation package required for upgrade from the server, calculates the amount of data downloaded, and obtains progress information, and the first service also transmits the progress information and the downloaded installation package to the second service. After the second service performs the upgrade operation according to the installation package, the upgrade result is sent to the first service, and the first service sends the upgrade result to the terminal device, so that the manager can learn the upgrade result of the device 3 from the terminal device.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Embodiment III:
fig. 5 is a schematic structural diagram of a device management system according to an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment is shown.
The device management system 5 comprises a terminal device 51 and at least two electronic devices 52 (only two electronic devices are shown in fig. 5).
The device management method performed by the terminal device 51 is the same as that of the second embodiment, and will not be described here again.
The communication interface included in the electronic device 52 is the same as that of the first embodiment, and will not be described here again.
In order to more clearly describe the device management method provided by the embodiment of the present application, a shutdown instruction (i.e., an instruction for shutdown) and a power inquiry instruction (i.e., an instruction for inquiring power) are described below as examples.
Fig. 6 shows a schematic flow chart of shutdown according to an embodiment of the present application.
Step S61, a communication connection is established. The method comprises the steps of establishing a TCP communication connection between a PC side (namely terminal equipment) application and a first service of a device side (namely electronic equipment), and establishing a D-Bus communication connection between the first service of the device side and a second service of the device side.
Of course, if the PC side has established a communication connection with the device side, the first service, and the second service, then there is no need to establish again.
Step S62, after triggering the corresponding event, the PC side application calls a first sending message interface, and sends a shutdown instruction to a first service of the equipment side through TCP.
Wherein, triggering corresponding events here includes: the identification of the electronic equipment to be managed is selected, and the instruction option corresponding to shutdown is selected.
Step S63, the second receiving message interface of the first service of the equipment side receives a shutdown instruction through TCP, and analyzes the shutdown instruction to obtain the shutdown instruction for shutdown.
In step S64, the first service at the device side invokes a third message sending interface, and sends a shutdown instruction to the second service at the device side through the D-Bus.
Step S65, the fourth receiving message interface of the second service of the equipment side receives a shutdown instruction through the D-Bus, and analyzes the shutdown instruction to obtain the shutdown instruction for shutdown.
Step S66, the second service of the equipment end executes the shutdown instruction and executes shutdown operation according to a shutdown mode of the system.
Fig. 7 is a schematic flow chart of an electric quantity query according to an embodiment of the present application.
Step S71, a communication connection is established. The method comprises the steps of establishing a TCP communication connection between a PC side (namely terminal equipment) application and a first service of a device side (namely electronic equipment), and establishing a D-Bus communication connection between the first service of the device side and a second service of the device side.
Step S72, after triggering the corresponding event, the PC side application calls a first sending message interface, and sends the electric quantity inquiry command to a first service of the equipment side through TCP.
In step S73, the second receiving message interface of the first service at the device side receives the electric quantity inquiry command through TCP, and parses the electric quantity inquiry command to inquire the electric quantity.
In step S74, the first service at the device side invokes the third message sending interface, and sends the electric quantity inquiry command to the second service at the device side through the D-Bus.
Step S75, a fourth receiving message interface of the second service of the equipment side receives an electric quantity inquiry command through the D-Bus, and analyzes the electric quantity inquiry command to inquire electric quantity.
Step S76, the second service at the equipment end executes the electric quantity inquiry instruction to obtain an electric quantity result according to the mode of inquiring the electric quantity of the equipment by the system of the second service at the equipment end.
Step S77, the second service of the equipment side calls a fourth message sending interface, and the electric quantity result is sent to the first service of the equipment side.
In step S78, the third message receiving interface of the first service at the device side receives the information through the D-Bus, and analyzes the information to obtain the device power.
In step S79, the first service at the device side invokes the second sending message interface, and sends the device power to the PC side application through TCP.
In step S710, the first receiving message interface of the PC side application receives the device power through TCP.
Embodiment four:
corresponding to the device management method described in the second embodiment, fig. 8 shows a block diagram of a device management apparatus according to an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 8, the device management apparatus 8 is applicable to a terminal device, including:
the identifier display module 81 is configured to display an identifier of the manageable electronic device.
The electronic device selection instruction receiving module 82 is configured to receive an electronic device selection instruction, determine an identifier of an electronic device to be managed, where the electronic device selection instruction is configured to select the identifier of the electronic device to be managed from the manageable identifiers of the electronic devices.
The instruction receiving module 83 is configured to receive an instruction, broadcast the instruction to an electronic device indicated by an identifier of the electronic device to be managed, where a communication interface included in the electronic device is the same as that of the first embodiment, and will not be described herein.
In the embodiment of the application, the electronic equipment comprises the communication interface, the first service included in the communication interface can communicate with the terminal equipment based on the TCP protocol, and the communication mechanism of the communication framework between the first service and the second service is a mechanism capable of realizing communication by only analyzing the parameters in the corresponding method interface, so that after the terminal equipment broadcasts the instruction, the corresponding electronic equipment can receive the corresponding instruction through the communication interface included in the electronic equipment, and further the corresponding operation is executed. That is, since batch management of a plurality of electronic devices can be realized by one terminal device, management efficiency is improved.
In some embodiments, the terminal device is in the same local area network as the electronic device indicated by the identity of the manageable electronic device.
In some embodiments, the device management apparatus further includes:
and the execution result receiving module is used for receiving the execution result sent by the electronic equipment.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Fifth embodiment:
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 9, the terminal device 9 of this embodiment includes: at least one processor 90 (only one processor is shown in fig. 9), a memory 91 and a computer program 92 stored in the memory 91 and executable on the at least one processor 90, the steps in the second method embodiment being implemented when the processor 90 executes the computer program 92.
The terminal device 9 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 90, a memory 91. It will be appreciated by those skilled in the art that fig. 9 is merely an example of the terminal device 9 and is not meant to be limiting as to the terminal device 9, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 90 may be a central processing unit (Central Processing Unit, CPU), the processor 90 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 91 may in some embodiments be an internal storage unit of the terminal device 9, such as a hard disk or a memory of the terminal device 9. The memory 91 may also be an external storage device of the terminal device 9 in other embodiments, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the terminal device 9. The memory 91 is used for storing an operating system, an application program, a boot loader (BootLoader), data, other programs, and the like, such as program codes of the computer programs. The above-described memory 91 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a network device, which comprises: at least one processor, a memory and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps in any of the various method embodiments described above when the computer program is executed by the processor.
The embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product enabling a terminal device to carry out the steps of the method embodiments described above when the computer program product is run on the terminal device.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. The computer program comprises computer program code, and the computer program code can be in a source code form, an object code form, an executable file or some intermediate form and the like. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A communication interface, the communication interface comprising a first service and a second service;
the first service is configured to receive an instruction broadcast by the terminal device, parse the received instruction to obtain a parsed result, and select information sent to the second service according to the parsed result, where the information sent by the first service to the second service is the instruction itself, or is a response result obtained after the first service responds to the instruction;
the second service is configured to execute a corresponding operation according to the received information, where when the information is an instruction, according to the instruction and a system architecture of an electronic device where the communication interface is located, select a command matched with the instruction and the system architecture to execute the corresponding operation;
the communication mechanism of the communication framework between the first service and the second service is a mechanism capable of realizing communication by only analyzing parameters in a corresponding method interface.
2. The communication interface of claim 1, wherein the selecting information to send to the second service based on the parsing result comprises:
if the analysis result indicates that the instruction is of a first type, the instruction is sent to the second service;
and if the analysis result indicates that the instruction is of a second type, responding to the instruction to obtain a response result, and sending the response result to the second service.
3. The communication interface of claim 1, wherein,
the second service is further used for sending an execution result obtained after the execution operation to the first service;
the first service is further configured to send the execution result to the terminal device.
4. An electronic device comprising a communication interface as claimed in any one of claims 1 to 3.
5. A device management method, applied to a terminal device, comprising:
displaying an identification of the manageable electronic device;
receiving an electronic equipment selection instruction, and determining the identification of the electronic equipment to be managed, wherein the electronic equipment selection instruction is used for selecting the identification of the electronic equipment to be managed from the identification of the manageable electronic equipment;
receiving an instruction, broadcasting the instruction to an electronic device indicated by an identification of the electronic device to be managed, the electronic device comprising the communication interface according to any one of claims 1 to 3.
6. The device management method according to claim 5, wherein the terminal device is in the same local area network as the electronic device indicated by the identification of the manageable electronic device.
7. The device management method according to claim 5, wherein the device management method further comprises:
and receiving an execution result sent by the electronic equipment.
8. A device management system, characterized in that the device management system comprises a terminal device and at least two electronic devices;
the terminal device is configured to perform the device management method according to any one of claims 5 to 7;
the electronic device comprising a communication interface as claimed in any one of claims 1 to 3.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 5 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 5 to 7.
CN202111276408.8A 2021-10-29 2021-10-29 Communication interface, electronic device and device management method Active CN114070896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111276408.8A CN114070896B (en) 2021-10-29 2021-10-29 Communication interface, electronic device and device management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111276408.8A CN114070896B (en) 2021-10-29 2021-10-29 Communication interface, electronic device and device management method

Publications (2)

Publication Number Publication Date
CN114070896A CN114070896A (en) 2022-02-18
CN114070896B true CN114070896B (en) 2023-12-15

Family

ID=80236135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111276408.8A Active CN114070896B (en) 2021-10-29 2021-10-29 Communication interface, electronic device and device management method

Country Status (1)

Country Link
CN (1) CN114070896B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237056A (en) * 2013-03-29 2013-08-07 Tcl集团股份有限公司 Equipment terminal, control terminal, server and equipment terminal controlling method
CN106169976A (en) * 2016-04-07 2016-11-30 北京大学 A kind of service system based on novel intelligent home gateway
CN106814751A (en) * 2017-02-28 2017-06-09 建荣半导体(深圳)有限公司 A kind of flight control protocol automatic adaptation method, apparatus and system
CN108683735A (en) * 2018-05-15 2018-10-19 北京字节跳动网络技术有限公司 Apparatus control method and device
CN110488617A (en) * 2019-07-08 2019-11-22 湖南优创智能科技有限公司 Intelligent home control system, method and terminal device
CN110674061A (en) * 2019-09-24 2020-01-10 上海商汤临港智能科技有限公司 Control method and device of machine equipment and storage medium
CN112688915A (en) * 2020-12-07 2021-04-20 北京小米松果电子有限公司 Cross-protocol communication method, device and server
CN112905313A (en) * 2021-01-21 2021-06-04 深圳市元征科技股份有限公司 Task processing method and device and electronic equipment
CN112910830A (en) * 2019-12-04 2021-06-04 北京博瑞华通科技有限公司 Data transmission system, data uploading method and data issuing method of Internet of vehicles

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103237056A (en) * 2013-03-29 2013-08-07 Tcl集团股份有限公司 Equipment terminal, control terminal, server and equipment terminal controlling method
CN106169976A (en) * 2016-04-07 2016-11-30 北京大学 A kind of service system based on novel intelligent home gateway
CN106814751A (en) * 2017-02-28 2017-06-09 建荣半导体(深圳)有限公司 A kind of flight control protocol automatic adaptation method, apparatus and system
CN108683735A (en) * 2018-05-15 2018-10-19 北京字节跳动网络技术有限公司 Apparatus control method and device
CN110488617A (en) * 2019-07-08 2019-11-22 湖南优创智能科技有限公司 Intelligent home control system, method and terminal device
CN110674061A (en) * 2019-09-24 2020-01-10 上海商汤临港智能科技有限公司 Control method and device of machine equipment and storage medium
CN112910830A (en) * 2019-12-04 2021-06-04 北京博瑞华通科技有限公司 Data transmission system, data uploading method and data issuing method of Internet of vehicles
CN112688915A (en) * 2020-12-07 2021-04-20 北京小米松果电子有限公司 Cross-protocol communication method, device and server
CN112905313A (en) * 2021-01-21 2021-06-04 深圳市元征科技股份有限公司 Task processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN114070896A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN106793007B (en) Interactive communication method and system of cloud and Bluetooth device and wireless router
CN112788128B (en) Business information pushing method and device, storage medium and electronic device
CN109995876B (en) File transmission method, device, system and computer storage medium
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN105320616A (en) External device control method and device
CN108519922B (en) Information pushing method and device, terminal equipment and computer readable storage medium
CN115134236A (en) Intelligent network card management method, device, equipment and readable medium
CN110333916B (en) Request message processing method, device, computer system and readable storage medium
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN108052401B (en) System attribute monitoring method, terminal device and computer readable storage medium
CN114070896B (en) Communication interface, electronic device and device management method
CN112073488A (en) Method and device for processing request
CN116346959A (en) DPU scene elastic network card efficient implementation method and device
CN113656091B (en) Method for realizing independent open program process, related device and equipment
CN111756836B (en) Information sending method and device based on event management model
CN112380411B (en) Sensitive word processing method, device, electronic equipment, system and storage medium
CN113177202A (en) Data calling method and system, double-chip sales terminal and readable storage medium
CN107992363B (en) Data processing method and device
CN115296943B (en) Message broadcasting method, device, server and storage medium
CN110943975A (en) Service registration method, device, computer equipment and storage medium
US20080148293A1 (en) Configurable event broker
CN117883789B (en) Data acquisition method, apparatus, device, readable storage medium, and program product
CN114745153B (en) Link tracking method combining WCF and log4net
CN116582582B (en) Data acquisition method, system, equipment and medium for component type Internet of things
CN113076380B (en) Data synchronization method, device, system, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant