CN114900383B - Interface processing method, device, electronic equipment and computer readable storage medium - Google Patents

Interface processing method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114900383B
CN114900383B CN202210313530.6A CN202210313530A CN114900383B CN 114900383 B CN114900383 B CN 114900383B CN 202210313530 A CN202210313530 A CN 202210313530A CN 114900383 B CN114900383 B CN 114900383B
Authority
CN
China
Prior art keywords
interface
service
equipment
sound box
providing
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
CN202210313530.6A
Other languages
Chinese (zh)
Other versions
CN114900383A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210313530.6A priority Critical patent/CN114900383B/en
Publication of CN114900383A publication Critical patent/CN114900383A/en
Application granted granted Critical
Publication of CN114900383B publication Critical patent/CN114900383B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/08Speech classification or search
    • G10L15/18Speech classification or search using natural language modelling
    • G10L15/1822Parsing for meaning understanding
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Acoustics & Sound (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an interface processing method, an interface processing device, electronic equipment and a computer readable storage medium. Wherein the method comprises the following steps: determining a first interface mode of providing first service by the sound box equipment, a second interface mode of providing second service by the sound box equipment, and a third interface mode of providing third service by the sound box equipment; modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to the distributed service framework dubbo; and setting the first interface in the fourth interface mode corresponding to the dubbo as a service interface corresponding to the preset service, and controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated. The invention solves the technical problem of complicated updating steps when updating the service under the condition of updating the sound box equipment and/or the associated equipment in the related technology.

Description

Interface processing method, device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computers, and in particular, to an interface processing method, an apparatus, an electronic device, and a computer readable storage medium.
Background
At present, along with the development of smart home, it is common to control smart devices with sound boxes. However, the intelligent device and the audio box often have the phenomenon of updating, especially when the intelligent device is controlled more, the updating is very inconvenient, a great amount of time and resources are consumed, and the improvement is needed. For example, in the related art, when the sound box and/or the intelligent device are to be upgraded, each service needs to be updated again in the sound box based on the currently set service, and the service needs to be redeployed, which not only increases the complexity of maintenance, but also increases the updating difficulty.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides an interface processing method, an interface processing device, electronic equipment and a computer readable storage medium, which at least solve the technical problem that in the related art, when updating a service under the condition of updating sound box equipment and/or associated equipment, the updating steps are complicated.
According to an aspect of an embodiment of the present invention, there is provided an interface processing method, including: determining a first interface mode of providing a first service by sound box equipment, wherein the sound box equipment provides a second interface mode of providing a second service, and the sound box equipment provides a third interface mode of providing a third service, the first service is a service for providing a list of associated equipment, the second service is a service for providing a natural language analysis function, the third service is a service for providing an execution function for the associated equipment, and the associated equipment is equipment controlled by the sound box equipment; modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to a distributed service framework dubbo; and setting a first interface in a fourth interface mode corresponding to the dubbo as a service interface corresponding to a preset service, wherein the service interface is used for controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated.
Optionally, after the setting the first interface in the fourth interface mode corresponding to the dubbo is a service interface corresponding to a predetermined service, the method further includes: providing a first interface address corresponding to the first interface for a registry, so that the registry provides the first interface address to the associated equipment, and the associated equipment calls the predetermined service according to the first interface address.
Optionally, the providing the first interface address corresponding to the first interface to the registry zookeeper includes: under the condition that a first interface address corresponding to the first interface is changed, the first interface provides a second interface address for the registry so that the registry provides the second interface address to the associated equipment, and the associated equipment calls the preset service according to the second interface address, wherein the second interface address is the address after the first interface address is changed.
Optionally, determining a first interface mode of providing the first service by the sound box device, wherein the sound box device provides a second interface mode of providing the second service, and before the sound box device provides a third interface mode of providing the third service, further includes: detecting the update state of the sound box equipment and/or the associated equipment; and under the condition that the updating state of the sound box equipment and/or the associated equipment is updated, determining a first interface mode of the sound box equipment for providing the first service, a second interface mode of the sound box equipment for providing the second service and a third interface mode of the sound box equipment for providing the third service.
Optionally, the method further comprises: receiving a target control instruction, wherein the target control instruction is obtained according to a command statement of a target object; responding to the target control instruction, and testing the control condition of the sound box equipment on the associated equipment; in the case where a control abnormality occurs in the control condition, an abnormality and a cause of the abnormality are determined.
Optionally, the anomaly includes at least one of: the associated device does not respond and the associated device responds incorrectly.
According to an aspect of an embodiment of the present invention, there is provided an interface processing apparatus including: the sound box equipment is used for providing a first interface mode of a first service, a second interface mode of a second service and a third interface mode of a third service, wherein the first service is a service for providing a list of associated equipment, the second service is a service for providing a natural language analysis function, the third service is a service for providing an execution function for the associated equipment, and the associated equipment is equipment controlled by the sound box equipment; the modification module is used for modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to the distributed service framework dubbo; the setting module is used for setting the first interface in the fourth interface mode corresponding to the dubbo as a service interface corresponding to a preset service, and controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated.
According to an aspect of an embodiment of the present invention, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the interface processing method of any of the above.
According to an aspect of an embodiment of the present invention, there is provided a computer-readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform any one of the interface processing methods described above.
According to an aspect of an embodiment of the present invention, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the interface processing method of any one of the above.
In the embodiment of the invention, by determining the first interface mode of providing the associated equipment list service by the sound box equipment, the second interface mode of providing the natural language analysis function service by the sound box equipment and the third interface mode of providing the execution function by the sound box equipment to the associated equipment, all the three interface modes are modified into the fourth interface mode corresponding to the distributed service framework dubbo, and the first interface in the fourth interface mode corresponding to the dubbo is set as the service interface corresponding to the preset service, so that manual update setting is not needed under the condition of updating the sound box equipment and/or the associated equipment, the control of the associated equipment by the sound box equipment can be automatically realized, and the technical problem of complicated update steps when the service is updated under the condition of updating the sound box equipment and/or the associated equipment in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a flow chart of an interface processing method according to an embodiment of the present invention;
FIG. 2 is a block diagram of an interface processing apparatus according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a structure of a terminal according to an exemplary embodiment.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of describing embodiments of the application are applicable to the following explanation:
Dubbo: the system is a distributed service framework, a high-performance and lightweight open source Java RPC framework and aims to provide a high-performance and transparent RPC remote service calling scheme and an SOA service governance scheme. The application can realize the output and input functions of the service through the high-performance RPC, and can be seamlessly integrated with the Spring framework. It provides three major core capabilities: interface-oriented remote method invocation, intelligent fault tolerance and load balancing, and automatic service registration and discovery.
ZooKeeper: the distributed application coordination service of the distributed open source code is the Chubby open source implementation of Google, and is an important component of Hadoop and Hbase. It is a software providing a consistency service for distributed applications, the provided functions include: configuration maintenance, domain name service, distributed synchronization, group service, etc.
Example 1
According to an embodiment of the present invention, there is provided an embodiment of an interface processing method, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order other than that herein.
Fig. 1 is a flowchart of an interface processing method according to an embodiment of the present invention, as shown in fig. 1, the method includes the steps of:
Step S102, determining a first interface mode of providing a first service for sound box equipment, a second interface mode of providing a second service for sound box equipment and a third interface mode of providing a third service for sound box equipment, wherein the first service is a service for providing a list of associated equipment, the second service is a service for providing a natural language analysis function, the third service is a service for providing an execution function for the associated equipment, and the associated equipment is equipment controlled by the sound box equipment;
step S104, modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to the distributed service framework dubbo;
and step S106, setting a first interface in a fourth interface mode corresponding to the dubbo as a service interface corresponding to the preset service, and controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated.
Through the steps, the first interface mode of the voice box equipment for providing the associated equipment list service, the second interface mode of the voice box equipment for providing the natural language analysis function service and the third interface mode of the voice box equipment for providing the associated equipment for executing the function are determined, the three interface modes are modified into the fourth interface mode corresponding to the distributed service framework dubbo, and the first interface in the fourth interface mode corresponding to the dubbo is set as the service interface corresponding to the preset service, so that manual update setting is not needed under the condition of updating the voice box equipment and/or the associated equipment, the control of the associated equipment through the voice box equipment can be automatically realized, and further the technical problem that in the related art, when the voice box equipment and/or the associated equipment are updated, the service is updated, the updating step is complicated is solved.
As an optional embodiment, a first interface mode of providing a first service by the sound box device, a second interface mode of providing a second service by the sound box device, and a third interface mode of providing a third service by the sound box device are determined, wherein the first service is a service of providing a list of associated devices, the second service is a service of providing a natural language analysis function, the third service is a service of providing an execution function to the associated devices, and the associated devices are devices controlled by the sound box device. Namely, determining a first interface mode of providing the associated equipment list service by the sound box equipment, a second interface mode of providing the natural language analysis function service by the sound box equipment, and a third interface mode of providing the executive function service by the sound box equipment to the associated equipment. The sound box equipment provides an associated equipment list service, and can learn the associated equipment which can be controlled by the sound box equipment. The natural language parsing function service may be nlp services for parsing the language to determine control instructions. The associated equipment is provided with the executive function service, so that the associated equipment can execute the analyzed control instruction. Therefore, by confirming the interface mode of the service and modifying the interface mode, the control of the sound box equipment to the associated equipment can be kept normal under the condition that the sound box equipment and/or the associated equipment are updated.
As an optional embodiment, the first interface mode, the second interface mode and the third interface mode corresponding to the sound box device are modified to be the fourth interface mode corresponding to the distributed service framework dubbo. The first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment are modified to be the fourth interface mode corresponding to the application distributed service framework dubbo, so that the effect of calling a remote method just like calling a local method can be achieved, and simple configuration is only needed. In addition, the fourth interface mode corresponding to dubbo has the functions of automatic service registration and discovery, the address of the service provider does not need to be written, the registration center queries the address of the service provider based on the interface name, and the service provider can be smoothly added or deleted. I.e. the address can be retrieved efficiently when the provider's address is updated. And the control of the sound box equipment on the associated equipment is ensured to be normal. Furthermore, when the number of associated devices associated with the sound box device increases, namely, when the service cluster scale is further enlarged, the IT treatment structure can be driven to be further upgraded, dynamic deployment is required to be realized, flow calculation is carried out, and operation pressure is not brought.
As an optional embodiment, after modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box device into the fourth interface mode corresponding to the distributed service framework dubbo, the first interface in the fourth interface mode corresponding to the dubbo needs to be set as a service interface corresponding to a predetermined service, so that normal control of the associated device through the sound box device is realized under the condition that the sound box device and/or the associated device is updated. It should be noted that, the first interface is a service provider, and the predetermined function is implemented by a method included in the first interface. When the ZooKeeper distributed application is used for coordinating the service, after the service provider is set, the service provider registers the preset service with the registry ZooKeeper, the associated equipment subscribes the preset service with the registry ZooKeeper, the service provider returned by the registry ZooKeeper, namely a first interface address corresponding to the first interface, acquires the first interface address, and invokes the preset service according to the first interface address. The whole updating and calling process is realized. When the associated equipment acquires the first interface address, if the address of the first interface is changed, the first interface provides a second interface address for the registry so that the registry provides the second interface address to the associated equipment, and the associated equipment acquires the second interface address, namely the address after the first interface address is changed, and calls the preset service according to the second interface address. Therefore, the device can be automatically updated, and the associated equipment is controlled through the sound box equipment and is controlled normally. The registry ZooKeeper is a classical distributed data consistency solution, and by using the registry ZooKeeper for coordination, a distributed coordination service with high performance, high availability and strict sequential access control capability can be provided. The distributed application program can realize the functions of data publishing and subscribing, load balancing, naming service, distributed coordination and notification, cluster management, leader election, distributed lock, distributed queue and the like based on the ZooKeeper. Therefore, the process of controlling the associated equipment by the sound box equipment can be more reliable based on the ZooKeeper, and the associated equipment can be better controlled by the sound box equipment.
As an alternative embodiment, the timing of determining the interface mode may be various, for example, when the speaker device and/or the associated device are updated, at this time, the update status of the speaker device and/or the associated device may be detected first, and when the update status of the speaker device and/or the associated device is that there is an update, the first interface mode in which the speaker device provides the first service, the second interface mode in which the speaker device provides the second service, and the third interface mode in which the speaker device provides the third service are determined. The interface mode of the service can be determined at any time, modified and set later. Here, the timing is not limited. Since after one setting, automatic updating can be achieved. When the sound box equipment and/or the associated equipment are updated, the interface mode is determined, the time for modifying the interface mode can be timely determined, and the processing is timely carried out.
As an optional embodiment, after the processing is completed, a target control instruction obtained according to a command statement of the target object may be further received, and then, in response to the target control instruction, a control condition of the speaker device on the associated device is tested, and under a condition that a control abnormality occurs in the control condition, an abnormality and a cause for generating the abnormality are determined, where the abnormality may be multiple, for example, the associated device does not respond, and the associated device does not respond correctly. There are many reasons for the abnormality, which may be a problem of the speaker device, a problem of the associated device, or a problem of the network. Therefore, the abnormality and the reason for generating the abnormality are determined in time, and the sound box equipment and/or the associated equipment are processed for the abnormality according to the reason. And ensuring the normal control of the target object to the associated equipment through the sound box equipment.
As can be seen from the foregoing, in the above-mentioned alternative embodiment, the interface calling method is provided, which can solve the complexity and the update difficulty of separately maintaining the speaker device, by changing the interface mode of providing the service of the associated device list, providing the service of the natural language analysis function, i.e. nlp service, providing the service of the execution function for the associated device, and the like, under the service included in the speaker device, into the mode of dubbo remote calling the interface, and changing the provider of the dubbo remote calling the interface mode into the corresponding service interface of the predetermined service. Thus, when the service is updated, the third party service call is updated along with the updating of the sound box equipment and/or the associated equipment, and maintenance problems are not worried. After the calling mode is modified, the new version service can be switched in a preset time period, for example, the new version service is switched in the early morning, whether all third party equipment controls are normal or not is tested, and problematic requests are checked and processed. After processing the abnormal request controlled by the equipment, repairing the problem and putting the problem on line.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided an apparatus for implementing the above-mentioned interface processing method, and fig. 2 is a block diagram of an interface processing apparatus according to an embodiment of the present invention, as shown in fig. 2, where the apparatus includes: the determination module 202, the modification module 204 and the setting module 206 are described in detail below.
A determining module 202, configured to determine a first interface mode of providing a first service for a sound box device, a second interface mode of providing a second service for the sound box device, and a third interface mode of providing a third service for the sound box device, where the first service is a service for providing a list of associated devices, the second service is a service for providing a natural language parsing function, the third service is a service for providing an execution function for the associated devices, and the associated devices are devices controlled by the sound box device; the modification module 204 is configured to modify the first interface mode, the second interface mode, and the third interface mode corresponding to the sound box device into a fourth interface mode corresponding to the distributed service framework dubbo; the setting module 206 is configured to set the first interface in the fourth interface manner corresponding to the dubbo as a service interface corresponding to the predetermined service, and is configured to control the associated device through the sound box device when the sound box device and/or the associated device are updated.
Here, it should be noted that the above-mentioned determining module 202, modifying module 204 and setting module 206 correspond to steps S102 to S106 in implementing the interface processing method, and the plurality of modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to those disclosed in the above-mentioned embodiment 1.
Example 3
The embodiment of the invention can provide electronic equipment which can be a terminal or a server. In this embodiment, the electronic device may be any one of a group of computer terminals as one type of terminal. Alternatively, in this embodiment, the terminal may be a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the terminal may be located in at least one network device among a plurality of network devices of the computer network.
Alternatively, fig. 3 is a block diagram of a terminal according to an exemplary embodiment. As shown in fig. 3, the terminal may include: one or more (only one is shown) processors 31, a memory 32 for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the interface processing method of any of the above.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the interface processing method and apparatus in the embodiments of the present invention, and the processor executes the software programs and modules stored in the memory, thereby executing various functional applications and data processing, that is, implementing the interface processing method described above. The memory 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, the memory may further include memory remotely located relative to the processor, which may be connected to the computer terminal 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 processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: determining a first interface mode of providing a first service by sound box equipment, a second interface mode of providing a second service by the sound box equipment, and a third interface mode of providing a third service by the sound box equipment, wherein the first service is a service for providing a list of associated equipment, the second service is a service for providing a natural language analysis function, the third service is a service for providing an execution function for the associated equipment, and the associated equipment is equipment controlled by the sound box equipment; modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to the distributed service framework dubbo; and setting the first interface in the fourth interface mode corresponding to the dubbo as a service interface corresponding to the preset service, and controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated.
Optionally, the above processor may further execute program code for: after setting the first interface in the fourth interface mode corresponding to the dubbo as the service interface corresponding to the predetermined service, the method further includes: providing a first interface address corresponding to the first interface for the registry, so that the registry provides the first interface address to the associated device, and the associated device calls the predetermined service according to the first interface address.
Optionally, the above processor may further execute program code for: providing a first interface address corresponding to the first interface for the registry zookeeper, including: under the condition that the first interface address corresponding to the first interface is changed, the first interface provides a second interface address for the registry, so that the registry provides the second interface address to the associated equipment, and the associated equipment calls the preset service according to the second interface address, wherein the second interface address is the address after the first interface address is changed.
Optionally, the above processor may further execute program code for: determining a first interface mode of providing a first service by the sound box equipment, a second interface mode of providing a second service by the sound box equipment, and before a third interface mode of providing a third service by the sound box equipment, further comprising: detecting the update state of sound box equipment and/or associated equipment; and under the condition that the updating state of the sound box equipment and/or the associated equipment is updated, determining a first interface mode of the sound box equipment for providing the first service, a second interface mode of the sound box equipment for providing the second service and a third interface mode of the sound box equipment for providing the third service.
Optionally, the above processor may further execute program code for: the method further comprises the steps of: receiving a target control instruction, wherein the target control instruction is obtained according to a command statement of a target object; responding to the target control instruction, and testing the control condition of the sound box equipment on the associated equipment; when a control abnormality occurs in the control state, the abnormality and the cause of the abnormality are determined.
Optionally, the above processor may further execute program code for: the anomaly includes at least one of: the associated device does not respond and the associated device responds incorrectly.
It will be appreciated by those skilled in the art that the structure shown in fig. 3 is only illustrative, and the computer terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 3 is not limited to the structure of the electronic device. For example, the computer terminal 3 may also include more or fewer components (such as a network interface, a display device, etc.) than shown in fig. 3, or have a different configuration than shown in fig. 3.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-only memory (ROM), random-access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
Example 4
Embodiments of the present invention also provide a computer-readable storage medium. Alternatively, in this embodiment, the computer readable storage medium may be used to store the program code executed by the interface processing method provided in the first embodiment.
Alternatively, in this embodiment, the above-mentioned computer-readable storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: determining a first interface mode of providing a first service by sound box equipment, a second interface mode of providing a second service by the sound box equipment, and a third interface mode of providing a third service by the sound box equipment, wherein the first service is a service for providing a list of associated equipment, the second service is a service for providing a natural language analysis function, the third service is a service for providing an execution function for the associated equipment, and the associated equipment is equipment controlled by the sound box equipment; modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to the distributed service framework dubbo; and setting the first interface in the fourth interface mode corresponding to the dubbo as a service interface corresponding to the preset service, and controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: the processor may also execute program code for: after setting the first interface in the fourth interface mode corresponding to the dubbo as the service interface corresponding to the predetermined service, the method further includes: providing a first interface address corresponding to the first interface for the registry, so that the registry provides the first interface address to the associated device, and the associated device calls the predetermined service according to the first interface address.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: the processor may also execute program code for: providing a first interface address corresponding to the first interface for the registry zookeeper, including: under the condition that the first interface address corresponding to the first interface is changed, the first interface provides a second interface address for the registry, so that the registry provides the second interface address to the associated equipment, and the associated equipment calls the preset service according to the second interface address, wherein the second interface address is the address after the first interface address is changed.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: the processor may also execute program code for: determining a first interface mode of providing a first service by the sound box equipment, a second interface mode of providing a second service by the sound box equipment, and before a third interface mode of providing a third service by the sound box equipment, further comprising: detecting the update state of sound box equipment and/or associated equipment; and under the condition that the updating state of the sound box equipment and/or the associated equipment is updated, determining a first interface mode of the sound box equipment for providing the first service, a second interface mode of the sound box equipment for providing the second service and a third interface mode of the sound box equipment for providing the third service.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: the processor may also execute program code for: the method further comprises the steps of: receiving a target control instruction, wherein the target control instruction is obtained according to a command statement of a target object; responding to the target control instruction, and testing the control condition of the sound box equipment on the associated equipment; when a control abnormality occurs in the control state, the abnormality and the cause of the abnormality are determined.
Optionally, in the present embodiment, the computer readable storage medium is configured to store program code for performing the steps of: the processor may also execute program code for: the anomaly includes at least one of: the associated device does not respond and the associated device responds incorrectly.
Example 5
According to another aspect of the embodiments of the present invention, there is also provided a computer program product, including a computer program, wherein the computer program is configured to implement any one of the above interface processing methods when executed by a processor.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, for example, may be a logic function division, and may be implemented in another manner, for example, a plurality of units or components may be combined or may be 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 with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention 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. The integrated units may be implemented in hardware or in software functional units.
The integrated units, 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 technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (8)

1. An interface processing method, comprising:
Determining a first interface mode of providing a first service by sound box equipment, wherein the sound box equipment provides a second interface mode of providing a second service, and the sound box equipment provides a third interface mode of providing a third service, the first service is a service for providing a list of associated equipment, the second service is a service for providing a natural language analysis function, the third service is a service for providing an execution function for the associated equipment, and the associated equipment is equipment controlled by the sound box equipment;
Modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to a distributed service framework dubbo;
setting a first interface in a fourth interface mode corresponding to the dubbo as a service interface corresponding to a preset service, wherein the service interface is used for controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated;
after the setting of the first interface in the fourth interface mode corresponding to the dubbo as the service interface corresponding to the predetermined service, the method further includes:
Providing a first interface address corresponding to the first interface for a registry, so that the registry provides the first interface address to the associated equipment, and the associated equipment calls the preset service according to the first interface address;
The providing, to the registry zookeeper, a first interface address corresponding to the first interface includes:
Under the condition that a first interface address corresponding to the first interface is changed, the first interface provides a second interface address for the registry so that the registry provides the second interface address to the associated equipment, and the associated equipment calls the preset service according to the second interface address, wherein the second interface address is the address after the first interface address is changed.
2. The method of claim 1, wherein determining a first interface mode in which the speaker device provides a first service, a second interface mode in which the speaker device provides a second service, and before providing a third interface mode in which the speaker device provides a third service, further comprises:
detecting the update state of the sound box equipment and/or the associated equipment;
And under the condition that the updating state of the sound box equipment and/or the associated equipment is updated, determining a first interface mode of the sound box equipment for providing the first service, a second interface mode of the sound box equipment for providing the second service and a third interface mode of the sound box equipment for providing the third service.
3. The method as recited in claim 1, further comprising:
receiving a target control instruction, wherein the target control instruction is obtained according to a command statement of a target object;
responding to the target control instruction, and testing the control condition of the sound box equipment on the associated equipment;
in the case where a control abnormality occurs in the control condition, an abnormality and a cause of the abnormality are determined.
4. A method according to claim 3, wherein the anomaly comprises at least one of: the associated device does not respond and the associated device responds incorrectly.
5. An interface processing apparatus, comprising:
The sound box equipment is used for providing a first interface mode of a first service, a second interface mode of a second service and a third interface mode of a third service, wherein the first service is a service for providing a list of associated equipment, the second service is a service for providing a natural language analysis function, the third service is a service for providing an execution function for the associated equipment, and the associated equipment is equipment controlled by the sound box equipment;
the modification module is used for modifying the first interface mode, the second interface mode and the third interface mode corresponding to the sound box equipment into a fourth interface mode corresponding to the distributed service framework dubbo;
The setting module is used for setting a first interface in a fourth interface mode corresponding to the dubbo as a service interface corresponding to a preset service, and controlling the associated equipment through the sound box equipment under the condition that the sound box equipment and/or the associated equipment are updated;
The setting module is further configured to provide a first interface address corresponding to the first interface to a registry, so that the registry provides the first interface address to the associated device, and the associated device invokes the predetermined service according to the first interface address;
The setting module is further configured to, when a first interface address corresponding to the first interface is changed, provide a second interface address for the registry by the first interface, so that the registry provides the second interface address to the associated device, and the associated device invokes the predetermined service according to the second interface address, where the second interface address is an address after the first interface address is changed.
6. An electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the interface processing method of any one of claims 1 to 4.
7. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the interface processing method of any one of claims 1 to 4.
8. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the interface processing method of any of claims 1 to 4.
CN202210313530.6A 2022-03-28 2022-03-28 Interface processing method, device, electronic equipment and computer readable storage medium Active CN114900383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210313530.6A CN114900383B (en) 2022-03-28 2022-03-28 Interface processing method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210313530.6A CN114900383B (en) 2022-03-28 2022-03-28 Interface processing method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114900383A CN114900383A (en) 2022-08-12
CN114900383B true CN114900383B (en) 2024-04-19

Family

ID=82716045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210313530.6A Active CN114900383B (en) 2022-03-28 2022-03-28 Interface processing method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114900383B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6529500B1 (en) * 1999-08-26 2003-03-04 Verizon Laboratories Inc. Unified messaging notification
KR20050034323A (en) * 2003-10-09 2005-04-14 이노에이스(주) Multimedia announcement service apparatus and the method thereof in a information provider
CN108055248A (en) * 2017-11-30 2018-05-18 平安科技(深圳)有限公司 Remote invocation method, server and storage medium based on dubbo frames
CN108255615A (en) * 2017-11-30 2018-07-06 平安科技(深圳)有限公司 Across language call method, server and storage medium
CN110018962A (en) * 2019-04-11 2019-07-16 重庆猪八戒知识产权服务有限公司 Service adjustment method and system based on distributed service framework and registration center
CN110570859A (en) * 2019-09-20 2019-12-13 Oppo广东移动通信有限公司 intelligent sound box control method, device and system and storage medium
CN110768878A (en) * 2019-10-31 2020-02-07 广州华凌制冷设备有限公司 Voice function configuration method, configuration device and readable storage medium
CN110933188A (en) * 2019-12-31 2020-03-27 深圳市优必选科技股份有限公司 Remote service calling method, system, server and storage medium
CN111049854A (en) * 2019-12-25 2020-04-21 微民保险代理有限公司 Service request transmission method and device
CN111722883A (en) * 2020-06-12 2020-09-29 浪潮电子信息产业股份有限公司 Method and device for updating interface address and computer readable storage medium
CN112953982A (en) * 2019-11-26 2021-06-11 腾讯科技(深圳)有限公司 Service processing method, service configuration method and related device
WO2021137753A1 (en) * 2019-12-31 2021-07-08 Amc Future Technology Pte. Ltd. Electronic authentication system and process using the same
CN113296968A (en) * 2020-02-21 2021-08-24 腾讯科技(深圳)有限公司 Address list updating method, device, medium and electronic equipment
CN113407643A (en) * 2020-11-26 2021-09-17 腾讯科技(深圳)有限公司 Data routing method, device, equipment and computer readable storage medium
CN113742105A (en) * 2021-09-01 2021-12-03 欧电云信息科技(江苏)有限公司 Adaptation method, apparatus and medium for microservice framework
CN113810253A (en) * 2020-06-17 2021-12-17 阿里巴巴集团控股有限公司 Service providing method, system, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070073771A1 (en) * 2005-09-28 2007-03-29 Baikov Chavdar S Method and system for directly mapping web services interfaces and java interfaces
US8106761B2 (en) * 2007-07-24 2012-01-31 Nokia Corporation Apparatus, method and computer program product for providing a perceivable physical indication of service availability
US20170149864A1 (en) * 2015-11-24 2017-05-25 International Business Machines Corporation Distributed applications management with dependent resilient distributed services

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6529500B1 (en) * 1999-08-26 2003-03-04 Verizon Laboratories Inc. Unified messaging notification
KR20050034323A (en) * 2003-10-09 2005-04-14 이노에이스(주) Multimedia announcement service apparatus and the method thereof in a information provider
CN108055248A (en) * 2017-11-30 2018-05-18 平安科技(深圳)有限公司 Remote invocation method, server and storage medium based on dubbo frames
CN108255615A (en) * 2017-11-30 2018-07-06 平安科技(深圳)有限公司 Across language call method, server and storage medium
WO2019104973A1 (en) * 2017-11-30 2019-06-06 平安科技(深圳)有限公司 Cross-language invoking method, server, and storage medium
CN110018962A (en) * 2019-04-11 2019-07-16 重庆猪八戒知识产权服务有限公司 Service adjustment method and system based on distributed service framework and registration center
CN110570859A (en) * 2019-09-20 2019-12-13 Oppo广东移动通信有限公司 intelligent sound box control method, device and system and storage medium
CN110768878A (en) * 2019-10-31 2020-02-07 广州华凌制冷设备有限公司 Voice function configuration method, configuration device and readable storage medium
CN112953982A (en) * 2019-11-26 2021-06-11 腾讯科技(深圳)有限公司 Service processing method, service configuration method and related device
CN111049854A (en) * 2019-12-25 2020-04-21 微民保险代理有限公司 Service request transmission method and device
CN110933188A (en) * 2019-12-31 2020-03-27 深圳市优必选科技股份有限公司 Remote service calling method, system, server and storage medium
WO2021137753A1 (en) * 2019-12-31 2021-07-08 Amc Future Technology Pte. Ltd. Electronic authentication system and process using the same
CN113296968A (en) * 2020-02-21 2021-08-24 腾讯科技(深圳)有限公司 Address list updating method, device, medium and electronic equipment
CN111722883A (en) * 2020-06-12 2020-09-29 浪潮电子信息产业股份有限公司 Method and device for updating interface address and computer readable storage medium
CN113810253A (en) * 2020-06-17 2021-12-17 阿里巴巴集团控股有限公司 Service providing method, system, device, equipment and storage medium
CN113407643A (en) * 2020-11-26 2021-09-17 腾讯科技(深圳)有限公司 Data routing method, device, equipment and computer readable storage medium
CN113742105A (en) * 2021-09-01 2021-12-03 欧电云信息科技(江苏)有限公司 Adaptation method, apparatus and medium for microservice framework

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
刘军 ; 杨俊杰 ; .ROS在智能家居控制系统中的应用.电子制作.2020,(第Z1期),参见全文. *
宋万洋 ; .基于Dubbo框架的分布式视频网站架构设计.软件导刊.2018,(第08期),参见全文. *
牛嵩峰 ; 王承永 ; 谢少华 ; 唐炜 ; 何良璋 ; 曾红斌 ; .新型5G智慧广播技术体系设计与应用.广播与电视技术.2020,(第07期),参见全文. *

Also Published As

Publication number Publication date
CN114900383A (en) 2022-08-12

Similar Documents

Publication Publication Date Title
US20190179726A1 (en) Monitoring method and apparatus of server, and storage medium
US9274843B2 (en) Multi-redundant switchable process pooling for cloud it services delivery
US20140082131A1 (en) Automatically configured management service payloads for cloud it services delivery
CN109284217A (en) Application exception processing method, device, electronic equipment and storage medium
CN111708702A (en) Simulation test method, client, server, system and readable storage medium
CN108563579B (en) White box testing method, device and system and storage medium
CN111459539B (en) Continuous integration pipeline operation method and device based on mirror layering
CN109639818B (en) Service discovery method and device under cloud environment, server and storage medium
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN110049090B (en) Method and system for configuring adaptive breaker chain in micro-service architecture
CN108255708A (en) Method, apparatus, storage medium and the equipment of production file are accessed in test environment
CN108810164A (en) A kind of device for supporting the on-demand customization of SaaS application flows and operation
CN113687858A (en) Configuration file checking method and device, electronic equipment and storage medium
CN111240998B (en) Test case processing method and device
CN113157270A (en) Page adaptation method and device
CN108664343A (en) A kind of stateful call method and device of micro services
CN114900383B (en) Interface processing method, device, electronic equipment and computer readable storage medium
CN110599112B (en) Network page development and maintenance method and device
CN114449030B (en) Internet service system, method, electronic equipment and storage medium
CN116069328A (en) Processing method and device of flow page, processor and electronic equipment
US11425203B2 (en) Commissioning a virtualized network function
CN111736807B (en) Tenant function customization method and device and tenant-based office system
CN112579447A (en) Browser testing method and device
CN111858234A (en) Task execution method, device, equipment and medium
CN110716972A (en) Method and device for processing error of high-frequency calling external interface

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