CN115174296B - Equipment function access method and device, storage medium and electronic device - Google Patents

Equipment function access method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115174296B
CN115174296B CN202210599553.8A CN202210599553A CN115174296B CN 115174296 B CN115174296 B CN 115174296B CN 202210599553 A CN202210599553 A CN 202210599553A CN 115174296 B CN115174296 B CN 115174296B
Authority
CN
China
Prior art keywords
accessed
server
target equipment
function
message
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
CN202210599553.8A
Other languages
Chinese (zh)
Other versions
CN115174296A (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 CN202210599553.8A priority Critical patent/CN115174296B/en
Publication of CN115174296A publication Critical patent/CN115174296A/en
Application granted granted Critical
Publication of CN115174296B publication Critical patent/CN115174296B/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/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/306User profiles

Abstract

The application discloses a device function access method, a device, a storage medium and an electronic device, and relates to the technical field of intelligent home/intelligent families, wherein the device function access method comprises the following steps: acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request; according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware; based on the plurality of servers to be accessed, the message queues sent by the target equipment are monitored in parallel, and the functional data configuration is carried out on the target equipment in parallel according to the functional data configuration requests in the message queues. The method and the device realize decoupling of configuration operation of each server, reduce the link length of function data configuration request transmission and processing, have good abnormal access self-recovery performance, and effectively improve the access success rate.

Description

Equipment function access method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart home/smart home, in particular to a device function access method, a device, a storage medium and an electronic device.
Background
At present, when equipment is accessed to a service platform, the application and the function configuration of each type of equipment access platform need to call the service of each application end in sequence to access and configure.
As shown in fig. 1, when a certain type of equipment needs to be accessed to a detail page service, a scene service and an equipment skill service of a platform, the detail page service of the platform needs to be called first to perform relevant function data configuration, after the configuration is completed, the scene service is called again to perform relevant function data configuration, and after the configuration is completed, the equipment skill service is called again to perform relevant function data configuration.
When the number of services of the device to be accessed to the platform is large, if the device is accessed and the function is configured by sequentially calling a plurality of services, the processing flow of the whole link is long, a large amount of time and cost are required to be consumed, and in addition, when one service in the link is problematic, the whole link is affected, even the access operation of the whole link is failed, and the access failure rate of the device is high.
Disclosure of Invention
The application provides a device function access method, a device, a storage medium and an electronic device, which are used for solving the defects that in the prior art, each service of a platform is sequentially called to carry out access configuration on equipment, so that the access time consumption and the failure rate are high, and realizing the rapid and reliable device function access.
The application provides a device function access method, which comprises the following steps:
acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request;
according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware;
based on the plurality of servers to be accessed, the message queues sent by the target equipment are monitored in parallel, and the functional data configuration is carried out on the target equipment in parallel according to the functional data configuration requests in the message queues.
According to the device function access method provided by the application, the message queue comprises a plurality of packet messages;
the method for parallel monitoring the message queues sent by the target equipment based on the plurality of service ends to be accessed, and carrying out the function data configuration on the target equipment according to the function data configuration request in the message queues comprises the following steps:
based on each server to be accessed, monitoring the message queue, and under the condition that the message queue is monitored to have the grouping information associated with each server to be accessed, performing function data configuration on the target equipment according to the function data configuration request in the grouping information associated with each server to be accessed.
According to the method for accessing the equipment function provided by the application, before the message queue is monitored based on each server to be accessed, the method further comprises the following steps:
analyzing the identification of each server to be accessed from the attribute information of each server to be accessed;
matching the identification of each server to be accessed with the identification of each grouping message in the message queue;
and determining the grouping information associated with each server to be accessed according to the matching result.
According to the device function access method provided by the application, the method further comprises the following steps:
generating first prompt information under the condition that any server to be accessed does not monitor a message queue sent by the target equipment;
sending the first prompt message to the target equipment;
the first prompt message is used for prompting the target device to send the packet message associated with the any server to be accessed again to the any server to be accessed.
According to the device function access method provided by the application, based on the multiple service ends to be accessed, according to the function data configuration request in the message queue, the function data configuration is performed on the target device in parallel, and the method comprises the following steps:
Analyzing the function data to be configured and the operation type corresponding to the function data to be configured from the function data configuration request;
based on the plurality of service ends to be accessed, the functional data to be configured are configured into the target equipment in parallel according to the business logic corresponding to the operation type;
wherein the operation types include one or more of adding, deleting, and copying.
According to the device function access method provided by the application, the method further comprises the following steps:
generating second prompt information under the condition that the configuration states of the plurality of service ends to be accessed to the target equipment are all completed;
the second prompt message is used for prompting that the configuration of the target device is completed.
According to the method for accessing the device function provided by the application, the hardware connection between the target device and the plurality of service ends to be accessed is performed according to the attribute information, and the method comprises the following steps:
analyzing the port number of each server to be accessed from the attribute information of each server to be accessed;
and establishing hardware connection between the target equipment and each server to be accessed according to the port number of each server to be accessed.
The application also provides a device function access device, comprising:
a request acquisition module, configured to: acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request;
a device access module for: according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware;
a function configuration module for: based on the plurality of servers to be accessed, the message queues sent by the target equipment are monitored in parallel, and the functional data configuration is carried out on the target equipment in parallel according to the functional data configuration requests in the message queues.
The present application also provides an electronic device comprising a memory and a processor, the memory having stored therein a computer program, the processor being arranged to implement a device function access method as described in any of the above by execution of the computer program.
The present application also provides a computer-readable storage medium comprising a stored program, wherein the program when run performs a method of implementing any one of the above described device function access methods.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements a device function access method as described in any of the above.
According to the equipment function access method, the equipment function access device, the storage medium and the electronic device, through the attribute information of the plurality of service ends to be accessed in the access request, the hardware connection between the target equipment and the plurality of service ends to be accessed can be quickly and accurately established, after the hardware connection, the target equipment broadcasts the function data configuration request in the form of a message queue, the plurality of service ends to be accessed monitor the message queue in parallel, the function data configuration operation is asynchronously executed on the target equipment, decoupling of the function data configuration operation is effectively realized, the link length of transmission and processing of the function data configuration request is reduced, the decoupled service ends are mutually independent, the function configuration operation of other service ends on the equipment is not influenced even if part of service ends are abnormal, the function access to the target equipment can be successfully completed only by reusing the function configuration operation of the service ends on the equipment, the abnormal access self-recovery performance is good, and the access success rate is effectively improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flow chart of a device function access method provided in the prior art;
fig. 2 is one of flow diagrams of a device function access method provided in the present application;
FIG. 3 is a second flow chart of the method for accessing device functions provided in the present application;
FIG. 4 is a third flow chart of the device function access method provided in the present application;
fig. 5 is a schematic structural diagram of an apparatus function access device provided in the present application;
FIG. 6 is a schematic diagram of a hardware environment of a device function access method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like herein 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 embodiments of the present application 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.
In the prior art, when a certain type of equipment is created for the first time and attribute functions of some application ends are required to be defaulted, services of all application ends are required to be sequentially called for access and attribute function configuration, and the equipment function access mode has long data links for real-time synchronization and processing, and the basic configuration and other services of the type of equipment can be influenced by the occurrence of problems of the services of the certain application end.
For example: when a certain type of equipment is accessed into voice skills, equipment skills and scene skills, the service corresponding to the skills is required to be called in sequence to perform default configuration; as is the case with some type of device replication, three services need to be invoked in turn to perform the replication operation. If there is a service problem, the entire link fails to operate directly.
In summary, when the existing device functions are accessed to the platform, a certain type of device access application and function configuration call services of each application end in sequence to access and configure, so that a data link of the device access is longer, data consistency is not well controlled, service coupling is high, and access time consumption and failure rate are high.
In view of the above problems, the present application provides a device function access method, by broadcasting function configuration information in the form of a message queue, each server monitors the message queue, and completes device function access in the form of asynchronous operation, so that existing services can be decoupled, operation and data accessed by each function are decoupled, the length of a data transmission link is reduced when the device is accessed, and configuration data is broadcast in the form of the message queue, so that data consistency can be effectively ensured.
The following describes, with reference to fig. 2 to fig. 4, a device function access method according to an embodiment of the present application, where the method is applied to various intelligent device access scenarios, and an execution body of the method may be a server of a network platform, such as a cloud or an edge server.
As shown in fig. 2, an embodiment of the present application provides a device function access method, which includes the following steps:
step 201, obtaining an access request of a target device, and resolving attribute information of a plurality of servers to be accessed from the access request;
the target device is a device that needs to perform function access, which may be a new access type device or a history access type device, and needs to perform function configuration, which is not specifically limited in this embodiment.
The access request contains attribute information of a plurality of service ends to be accessed, which need to be accessed by the target equipment; the number of the service ends to be accessed can be set according to actual requirements, and this embodiment is not particularly limited.
The server to be accessed is a server to be accessed by target equipment in the platform; different service ends to be accessed are used for providing different function configuration services for target equipment. If the voice service end is used for providing voice function configuration service for the target equipment, the detail page service end is used for providing detail page function configuration service for the target equipment.
The attribute information includes, but is not limited to, a port number, an identification, and a name of the service end to be accessed, which is not particularly limited in the present embodiment. Different service ends to be accessed correspond to different attribute information.
As shown in fig. 3, when a user needs to access a target device to a platform and perform function access, the page end of the platform needs to be operated now to generate an access request.
When the server of the platform acquires the access request of the target equipment, the server responds to the access request and analyzes attribute information of a plurality of servers to be accessed from the access request.
Step 202, according to the attribute information, the target device is connected with the plurality of servers to be accessed in hardware;
optionally, after obtaining the attribute information of the plurality of service ends to be accessed, searching the service end to be accessed corresponding to each attribute information in the plurality of service ends of the platform according to the attribute information;
and then, the target equipment is connected with a plurality of service ends to be accessed in hardware so as to be accessed into the platform.
Step 203, based on the multiple servers to be accessed, monitoring the message queues sent by the target device in parallel, and performing function data configuration on the target device in parallel according to the function data configuration request in the message queues.
Optionally, after the target device accesses the platform, in a case that it is determined that the target device needs to perform data configuration, the target device may broadcast a function data configuration request in a form of a Message Queue (MQ).
Meanwhile, the multiple service ends to be accessed can monitor the message queues sent by the target equipment in parallel, after each service end to be accessed monitors the message queues, the function data configuration requests in the message queues can be analyzed, and the function data configuration is carried out on the target equipment in parallel according to the function data configuration requests.
Optionally, the specific operation of configuring the functional data includes one or more of deleting, copying, and adding the functional data, which is not specifically limited in this embodiment.
In this scenario, the target device corresponds to the producer of the MQ; when the target equipment configures the function data, the specific function configuration information and other data are sent to the server to be accessed in the form of a message queue.
The multiple service ends to be accessed are equivalent to multiple consumers of the MQ and are used for executing the information of the operation types such as adding, copying and the like.
In the process of accessing the functions of the equipment, the sending of the MQ and the matching of the business codes of the consumers are required, namely the consumers complete the business operation matched with the business codes.
In the process of accessing the device function, the target device and the server to be accessed are converted into structures of the producer and the consumer, and the structure has strong expandability, can add/delete any member in the structures of the producer and the consumer at any time, and has wide application range.
For example, when the target device needs to perform operations such as adding, copying and deleting function configuration, a specific operation message is sent by the target device, then three service ends such as a voice skill service end, a device skill service end and a scene skill service end are connected to the target device, the message sent by the target device is monitored respectively, and service logic processing is performed by matching specific operation types and function data, so that function connection of the target device is completed through asynchronous operation, and the problem of high service coupling is solved.
According to the attribute information of the plurality of service ends to be accessed in the access request, hardware connection between the target equipment and the plurality of service ends to be accessed can be quickly and accurately established, after the hardware connection, the target equipment broadcasts the function data configuration request in the form of a message queue, the plurality of service ends to be accessed monitor the message queue in parallel, the function data configuration operation is asynchronously executed on the target equipment, decoupling of the configuration operation of each service end is effectively realized, the link length of transmission and processing of the function data configuration request is reduced, the service ends after decoupling are mutually independent, even if part of service ends are abnormal, the function configuration operation of other service ends on the equipment is not influenced, the function access to the target equipment can be successfully completed only by reusing the function configuration operation of the service ends on the equipment, the abnormal access self-recovery performance is good, and the access success rate is effectively improved.
On the basis of the above embodiment, in this embodiment, the message queue includes a plurality of packet messages; the method for parallel monitoring the message queues sent by the target equipment based on the plurality of service ends to be accessed, and carrying out the function data configuration on the target equipment according to the function data configuration request in the message queues comprises the following steps: based on each server to be accessed, monitoring the message queue, and under the condition that the message queue is monitored to have the grouping information associated with each server to be accessed, performing function data configuration on the target equipment according to the function data configuration request in the grouping information associated with each server to be accessed.
The messages in the message queue can be divided into a plurality of groups according to different correlations between the messages and different servers to be accessed, and each group of messages is associated with each server to be accessed one by one.
Optionally, based on the multiple servers to be accessed in step 203, the step of monitoring the message queue in parallel includes:
the target device broadcasts a message queue.
Meanwhile, each server to be accessed monitors a message queue in real time, when the message queue is monitored that packet messages related to the server to be accessed exist in the message queue, corresponding function data configuration requests are analyzed from the related packet messages, and the function data of the target equipment are configured according to configuration operations corresponding to the function data configuration requests, so that each server to be accessed only needs to process the function configuration operations related to own business, interference of other servers to be accessed is effectively avoided, and the success rate and accuracy of function access of the target equipment are improved.
In this embodiment, according to the relevance between the message and different service ends to be accessed, the message in the message queue is divided into a plurality of groups, so that when the service end to be accessed monitors the group message associated with the message, corresponding functional data configuration is timely executed on the target device, and further the success rate, accuracy and timeliness of functional access of the target device are improved.
Based on the foregoing embodiment, in this embodiment, before the monitoring, based on each server to be accessed, the method further includes: analyzing the identification of each server to be accessed from the attribute information of each server to be accessed; matching the identification of each server to be accessed with the identification of each grouping message in the message queue; and determining the grouping information associated with each server to be accessed according to the matching result.
The attribute information of each server to be accessed comprises an identifier of each server to be accessed; each server to be accessed has a unique identifier.
The message for each packet in the message queue also has a unique identification.
Optionally, before each server to be accessed is adopted to monitor the message queue, the identifier of each server to be accessed needs to be analyzed from the attribute information of each server to be accessed;
And the identification of each server to be accessed is matched with the identification of each grouping message in the message queue one by one, and when the identification of any server to be accessed is matched with the identification of any grouping message in the message queue, the grouping message is determined to be the grouping message associated with the server to be accessed.
In the embodiment, the identifier of each server to be accessed is matched with the identifier of each packet message in the message queue, so that the packet message associated with each server to be accessed can be quickly and accurately acquired, the problems of poor accuracy and long data link caused by sequentially calling a plurality of servers to perform equipment function configuration in the prior art are effectively solved, the accuracy of target equipment function access is further effectively ensured, and the length of the data link is shortened.
On the basis of the foregoing embodiment, the method in this embodiment further includes: generating first prompt information under the condition that any server to be accessed does not monitor a message queue sent by the target equipment; sending the first prompt message to the target equipment; the first prompt message is used for prompting the target device to send the packet message associated with the any server to be accessed again to the any server to be accessed.
And the first prompt information is used for prompting the target equipment to send the packet message associated with the server to be accessed again to the server to be accessed when any server to be accessed does not monitor the message queue.
Optionally, monitoring whether each server to be accessed monitors a message queue sent by the target device in real time, and sending prompt information to the target device in time under the condition that any target device does not monitor the message queue sent by the target device.
And after receiving the prompt information, the target equipment re-sends the grouping information associated with the server to be accessed to the server to be accessed so that the server to be accessed can re-execute corresponding function configuration operation, and the function configuration of the target equipment is ensured to be successfully completed.
In the prior art, the device access server and the function configuration call each server in turn to access and configure, if a problem occurs in one server, the configuration of the device and the configuration operation of other servers will be affected, so that the device function access in the whole link fails.
In this embodiment, the services of the service ends are decoupled, and the services of the service ends are mutually independent, so that the functional configuration of the target device can be ensured to be successfully completed only by calling the service end to be accessed to execute the corresponding functional configuration operation again under the condition that any service end fails to operate or does not receive the message queue.
Based on the above examples, in this embodiment, based on the multiple servers to be accessed, according to the function data configuration request in the message queue, the method performs function data configuration on the target device in parallel includes: analyzing the function data to be configured and the operation type corresponding to the function data to be configured from the function data configuration request; based on the plurality of service ends to be accessed, the functional data to be configured are configured into the target equipment in parallel according to the business logic corresponding to the operation type; wherein the operation types include one or more of adding, deleting, and copying.
The function data to be configured is the function data to be configured in the target equipment.
Optionally, the step of configuring the functional data of the target device in step 203 specifically includes:
firstly, analyzing the function data to be configured and the operation type corresponding to the function data to be configured from the function data configuration request. Wherein the operation types include, but are not limited to, one or more combinations of addition, deletion, and duplication.
And then, the plurality of service ends to be accessed are used for configuring the function data to be configured into the target equipment in parallel through the business logic of the matched operation type.
As shown in fig. 4, the service ends to be accessed include several service ends to be accessed, including a detail page service, a scene access service, a voice access service, a device skill access service and a voice skill access service; the target equipment sends a message queue carrying the operation type of the functional data to be configured, and the several service ends to be accessed, namely a detail page service, a scene access service, a voice access service, an equipment skill access service and a voice skill access service, monitor the message queue at the same time and determine whether the message queue is monitored;
and under the condition that the message queue is monitored, operating the function data to be configured according to the business logic corresponding to the operation type so as to configure the function data to be configured into the target equipment.
And under the condition that the message queue is not monitored, representing the operation failure, and sending prompt information to the target equipment to prompt the target equipment to send the message to the service end to be accessed, which is failed in operation again.
According to the embodiment, the data configuration operation is executed in parallel by the plurality of service ends to be accessed, so that the problems of low functional access accuracy, high service coupling and long data link in the prior art are solved to a great extent, service decoupling is realized, and the accuracy and the efficiency of equipment functional access are improved.
On the basis of the foregoing embodiment, the method in this embodiment further includes: generating second prompt information under the condition that the configuration states of the plurality of service ends to be accessed to the target equipment are all completed; the second prompt message is used for prompting that the configuration of the target device is completed.
Optionally, when configuring the target device based on the multiple service ends to be accessed, it is further required to monitor the configuration state of the service ends to be accessed to the target device in real time, and generate the second prompting information to prompt the user that the configuration of the target device is completed when the configuration state of the multiple service ends to be accessed to the target device is completed.
And if the configuration state of any one of the plurality of service ends to be accessed to the target equipment is not completed, the configuration of the user target equipment is not completed.
According to the method and the device for monitoring the configuration state of the access server side on the target equipment in real time, the configuration progress of the target equipment can be conveniently obtained in real time by a user, so that the user can timely put into use after the configuration of the target equipment is completed, and the user experience is improved.
On the basis of the foregoing embodiments, in this embodiment, performing hardware connection between the target device and the multiple servers to be accessed according to the attribute information includes: analyzing the port number of each server to be accessed from the attribute information of each server to be accessed; and establishing hardware connection between the target equipment and each server to be accessed according to the port number of each server to be accessed.
Wherein, the attribute information of each server to be accessed carries the port number of the server to be accessed; each port number corresponds to each server to be accessed one by one.
Optionally, the step of performing hardware connection between the target device and the server to be accessed in step 202 includes:
firstly, after obtaining attribute information of each server to be accessed, analyzing a port number of each server to be accessed from the attribute information;
then, the port of each server to be accessed is searched on the platform through the port number of each server to be accessed, and the hardware connection between the target equipment and each server to be accessed is established through the port of each server to be accessed.
The embodiment can quickly and accurately establish the hardware connection between the target equipment and each server to be accessed through the port number.
The device function accessing apparatus provided in the present application is described below, and the device function accessing apparatus described below and the device function accessing method described above may be referred to correspondingly.
As shown in fig. 5, the present embodiment provides a device function access apparatus, which includes a request acquisition module 501, a device access module 502, and a function configuration module 503, where:
The request acquisition module 501 is configured to: acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request;
optionally, when the user needs to access the target device to the platform and perform function access, the page end of the platform needs to be operated now to generate an access request.
When the server of the platform acquires the access request of the target equipment, the server responds to the access request and analyzes attribute information of a plurality of servers to be accessed from the access request.
The device access module 502 is configured to: according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware;
optionally, after obtaining the attribute information of the plurality of service ends to be accessed, searching the service end to be accessed corresponding to each attribute information in the plurality of service ends of the platform according to the attribute information;
and then, the target equipment is connected with a plurality of service ends to be accessed in hardware so as to be accessed into the platform.
The function configuration module 503 is configured to: based on the plurality of servers to be accessed, the message queues sent by the target equipment are monitored in parallel, and the functional data configuration is carried out on the target equipment in parallel according to the functional data configuration requests in the message queues.
Optionally, after the target device accesses the platform, in a case that it is determined that the target device needs to perform data configuration, the target device may broadcast the function data configuration request in a form of a message queue.
Meanwhile, the multiple service ends to be accessed can monitor the message queues sent by the target equipment in parallel, after each service end to be accessed monitors the message queues, the function data configuration requests in the message queues can be analyzed, and the function data configuration is carried out on the target equipment in parallel according to the function data configuration requests.
According to the method and the device, the hardware connection between the target device and the plurality of service ends to be accessed can be quickly and accurately established through the attribute information of the plurality of service ends to be accessed in the access request, after the hardware connection, the target device broadcasts the function data configuration request in the form of a message queue, the plurality of service ends to be accessed monitor the message queue in parallel, the function data configuration operation is asynchronously executed on the target device, decoupling of the configuration operation of each service end is effectively achieved, the link length of transmission and processing of the function data configuration request is reduced, the service ends after decoupling are mutually independent, even if part of service ends are abnormal, the function configuration operation of other service ends on the device is not influenced, the function access to the target device can be successfully completed only by reusing the function configuration operation of the service ends on the device, the abnormal access self-recovery performance is good, and the access success rate is effectively improved.
On the basis of the above embodiment, in this embodiment, the message queue includes a plurality of packet messages;
the function configuration module is specifically used for: based on each server to be accessed, monitoring the message queue, and under the condition that the message queue is monitored to have the grouping information associated with each server to be accessed, performing function data configuration on the target equipment according to the function data configuration request in the grouping information associated with each server to be accessed.
On the basis of the above embodiment, the present embodiment further includes a matching module, configured to: analyzing the identification of each server to be accessed from the attribute information of each server to be accessed; matching the identification of each server to be accessed with the identification of each grouping message in the message queue; and determining the grouping information associated with each server to be accessed according to the matching result.
On the basis of the above embodiments, the present embodiment further includes a prompt module, configured to: generating first prompt information under the condition that any server to be accessed does not monitor a message queue sent by the target equipment; sending the first prompt message to the target equipment; the first prompt message is used for prompting the target device to send the packet message associated with the any server to be accessed again to the any server to be accessed.
On the basis of the above embodiments, the functional configuration module in this embodiment is further configured to: analyzing the function data to be configured and the operation type corresponding to the function data to be configured from the function data configuration request; based on the plurality of service ends to be accessed, the functional data to be configured are configured into the target equipment in parallel according to the business logic corresponding to the operation type; wherein the operation types include one or more of adding, deleting, and copying.
On the basis of the above embodiments, the prompting module in this embodiment is further configured to: generating second prompt information under the condition that the configuration states of the plurality of service ends to be accessed to the target equipment are all completed; the second prompt message is used for prompting that the configuration of the target device is completed.
Based on the above embodiments, the device access module in this embodiment is specifically configured to: analyzing the port number of each server to be accessed from the attribute information of each server to be accessed; and establishing hardware connection between the target equipment and each server to be accessed according to the port number of each server to be accessed.
According to one aspect of the embodiments of the present application, a device function access method is provided. The equipment function access method is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described device function access method may be applied to a hardware environment constituted by a terminal device 601 and a server 602 as shown in fig. 6. As shown in fig. 6, the server 602 is connected to the terminal device 601 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 602, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data operation services for the server 602.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 601 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock and the like.
Fig. 7 illustrates a physical schematic diagram of an electronic device, as shown in fig. 7, which may include: a processor (processor) 701, a communication interface (Communications Interface) 702, a memory (memory) 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 communicate with each other through the communication bus 704. The processor 701 may invoke logic instructions in the memory 703 to perform a device function access method comprising: acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request; according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware; based on the plurality of servers to be accessed, the message queues sent by the target equipment are monitored in parallel, and the functional data configuration is carried out on the target equipment in parallel according to the functional data configuration requests in the message queues.
Further, the logic instructions in the memory 703 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several 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 methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present application further provides a computer program product, where the computer program product includes a computer program, where the computer program can be stored on a computer readable storage medium, where the computer program when executed by a processor can perform a device function accessing method provided by the above methods, and the method includes: acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request; according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware; based on the plurality of servers to be accessed, the message queues sent by the target equipment are monitored in parallel, and the functional data configuration is carried out on the target equipment in parallel according to the functional data configuration requests in the message queues.
In still another aspect, the present application further provides a computer readable storage medium, where the computer readable storage medium includes a stored program, where the program executes a device function access method provided by the above methods, and the method includes: acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request; according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware; based on the plurality of servers to be accessed, the message queues sent by the target equipment are monitored in parallel, and the functional data configuration is carried out on the target equipment in parallel according to the functional data configuration requests in the message queues.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 corresponding technical solutions.

Claims (7)

1. A device function access method, comprising:
acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request;
according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware;
based on the plurality of service ends to be accessed, monitoring a message queue sent by the target equipment in parallel, and carrying out function data configuration on the target equipment in parallel according to a function data configuration request in the message queue; the message queue contains a plurality of grouping messages;
the method for parallel monitoring the message queues sent by the target equipment based on the plurality of service ends to be accessed, and carrying out the function data configuration on the target equipment according to the function data configuration request in the message queues comprises the following steps:
Based on each server to be accessed, monitoring the message queue, and under the condition that the message queue is monitored to have the grouping message associated with each server to be accessed, performing function data configuration on the target equipment according to the function data configuration request in the grouping message associated with each server to be accessed; before the monitoring of the message queue based on each server to be accessed, the method further comprises:
analyzing the identification of each server to be accessed from the attribute information of each server to be accessed;
matching the identification of each server to be accessed with the identification of each grouping message in the message queue;
determining grouping information associated with each server to be accessed according to the matching result;
based on the plurality of service ends to be accessed, according to the function data configuration request in the message queue, the function data configuration is carried out on the target equipment in parallel, and the method comprises the following steps:
analyzing the function data to be configured and the operation type corresponding to the function data to be configured from the function data configuration request;
based on the plurality of service ends to be accessed, the functional data to be configured are configured into the target equipment in parallel according to the business logic corresponding to the operation type;
Wherein the operation types include one or more of adding, deleting, and copying.
2. The device function access method of claim 1, wherein the method further comprises:
generating first prompt information under the condition that any server to be accessed does not monitor a message queue sent by the target equipment;
sending the first prompt message to the target equipment;
the first prompt message is used for prompting the target device to send the packet message associated with the any server to be accessed again to the any server to be accessed.
3. The device function access method according to any of claims 1-2, wherein the method further comprises:
generating second prompt information under the condition that the configuration states of the plurality of service ends to be accessed to the target equipment are all completed;
the second prompt message is used for prompting that the configuration of the target device is completed.
4. The method for accessing a device function according to any one of claims 1-2, wherein the performing hardware connection between the target device and the plurality of servers to be accessed according to the attribute information includes:
Analyzing the port number of each server to be accessed from the attribute information of each server to be accessed;
and establishing hardware connection between the target equipment and each server to be accessed according to the port number of each server to be accessed.
5. A device function access apparatus, comprising:
a request acquisition module, configured to: acquiring an access request of target equipment, and analyzing attribute information of a plurality of servers to be accessed from the access request;
a device access module for: according to the attribute information, the target equipment is connected with the plurality of servers to be accessed in hardware;
a function configuration module for: based on the plurality of service ends to be accessed, monitoring a message queue sent by the target equipment in parallel, and carrying out function data configuration on the target equipment in parallel according to a function data configuration request in the message queue;
the message queue contains a plurality of grouping messages;
the function configuration module is specifically used for: based on each server to be accessed, monitoring the message queue, and under the condition that the message queue is monitored to have the grouping message associated with each server to be accessed, performing function data configuration on the target equipment according to the function data configuration request in the grouping message associated with each server to be accessed;
A matching module for: analyzing the identification of each server to be accessed from the attribute information of each server to be accessed; matching the identification of each server to be accessed with the identification of each grouping message in the message queue; determining grouping information associated with each server to be accessed according to the matching result;
the function configuration module is further used for: analyzing the function data to be configured and the operation type corresponding to the function data to be configured from the function data configuration request; based on the plurality of service ends to be accessed, the functional data to be configured are configured into the target equipment in parallel according to the business logic corresponding to the operation type; wherein the operation types include one or more of adding, deleting, and copying.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 4.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 4 by means of the computer program.
CN202210599553.8A 2022-05-30 2022-05-30 Equipment function access method and device, storage medium and electronic device Active CN115174296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210599553.8A CN115174296B (en) 2022-05-30 2022-05-30 Equipment function access method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210599553.8A CN115174296B (en) 2022-05-30 2022-05-30 Equipment function access method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115174296A CN115174296A (en) 2022-10-11
CN115174296B true CN115174296B (en) 2024-03-22

Family

ID=83484173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210599553.8A Active CN115174296B (en) 2022-05-30 2022-05-30 Equipment function access method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115174296B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124703A (en) * 2019-11-25 2020-05-08 山东鲁能软件技术有限公司 Method and system for automatically reminding processing work in cluster environment
CN111124702A (en) * 2019-11-22 2020-05-08 腾讯科技(深圳)有限公司 Performance data acquisition method, device and computer readable storage medium
CN111580993A (en) * 2020-05-11 2020-08-25 广州虎牙信息科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112422684A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Target message processing method and device, storage medium and electronic device
CN112463144A (en) * 2020-12-02 2021-03-09 苏州浪潮智能科技有限公司 Distributed storage command line service method, system, terminal and storage medium
CN113656195A (en) * 2021-08-13 2021-11-16 广州虎牙科技有限公司 Service message channel management method and device and electronic equipment
CN113760500A (en) * 2021-01-29 2021-12-07 北京京东拓先科技有限公司 Service processing method, device, server and medium
CN113918357A (en) * 2020-09-15 2022-01-11 京东科技控股股份有限公司 Service processing method and device, storage medium and electronic equipment
CN114237937A (en) * 2021-12-17 2022-03-25 威创集团股份有限公司 Multithreading data transmission method and device
CN114338794A (en) * 2021-12-31 2022-04-12 苏州浪潮智能科技有限公司 Service message pushing method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10834230B2 (en) * 2017-08-25 2020-11-10 International Business Machines Corporation Server request management
US11533268B2 (en) * 2018-03-30 2022-12-20 Intel Corporation Methods and apparatus to schedule service requests in a network computing system using hardware queue managers

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124702A (en) * 2019-11-22 2020-05-08 腾讯科技(深圳)有限公司 Performance data acquisition method, device and computer readable storage medium
CN111124703A (en) * 2019-11-25 2020-05-08 山东鲁能软件技术有限公司 Method and system for automatically reminding processing work in cluster environment
CN111580993A (en) * 2020-05-11 2020-08-25 广州虎牙信息科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113918357A (en) * 2020-09-15 2022-01-11 京东科技控股股份有限公司 Service processing method and device, storage medium and electronic equipment
CN112422684A (en) * 2020-11-18 2021-02-26 青岛海尔科技有限公司 Target message processing method and device, storage medium and electronic device
CN112463144A (en) * 2020-12-02 2021-03-09 苏州浪潮智能科技有限公司 Distributed storage command line service method, system, terminal and storage medium
CN113760500A (en) * 2021-01-29 2021-12-07 北京京东拓先科技有限公司 Service processing method, device, server and medium
CN113656195A (en) * 2021-08-13 2021-11-16 广州虎牙科技有限公司 Service message channel management method and device and electronic equipment
CN114237937A (en) * 2021-12-17 2022-03-25 威创集团股份有限公司 Multithreading data transmission method and device
CN114338794A (en) * 2021-12-31 2022-04-12 苏州浪潮智能科技有限公司 Service message pushing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115174296A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US9104565B2 (en) Fault tracing system and method for remote maintenance
CN108427619B (en) Log management method and device, computing equipment and storage medium
CN107979498B (en) Mesh network cluster and large file transmission method based on cluster
CN114697150A (en) Command issuing method and device, storage medium and electronic device
CN115174296B (en) Equipment function access method and device, storage medium and electronic device
CN116033006A (en) Data processing method, system, storage medium and electronic device
CN114911535B (en) Application program component configuration method, storage medium and electronic device
CN116383172A (en) Data backtracking method, storage medium and electronic device
CN110830305B (en) Method and device for wireless device to access WIFI network, electronic device and storage medium
CN106210120A (en) A kind of recommendation method of server and device thereof
CN115514750A (en) Electronic device remote control method, server, system, medium, and device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN115314549B (en) Offline equipment management method, storage medium and electronic device
CN115002206B (en) Control method and device of intelligent equipment, storage medium and electronic device
CN116301767A (en) Interface file generation method and device, storage medium and electronic device
CN115269521A (en) Data processing method, data processing device, storage medium and electronic device
CN117376360A (en) Data processing method, storage medium and electronic device
CN116346686A (en) Information transmission method and device, storage medium and electronic device
CN116366671A (en) Data synchronization method and device, storage medium and electronic device
CN116684374A (en) Gateway message processing method and device, storage medium and electronic device
CN117687750A (en) Timing task scheduling method and device, storage medium and electronic device
CN115481167A (en) Log processing method and device, storage medium and electronic device
CN116302877A (en) Message queue performance test method and device
CN116846936A (en) Method and device for sending control instruction, storage medium and electronic device

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