Device service capability determination method, apparatus, device and system

By arbitrating the list of local storage service capabilities on smart devices in conjunction with cloud-based rule information, the problem of failed function calls on smart devices has been resolved. This ensures uninterrupted service capabilities when the network is unstable or the cloud fails, thereby improving the stability of the user experience.

CN123185075APending Publication Date: 2026-11-27GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611176278.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-04
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, the functional configuration information of smart devices relies entirely on the cloud for retrieval, leading to problems such as function call failures and user experience interruptions, which are particularly noticeable when there is no network or cloud failure.

Method used

By using the local storage service capability list on the second electronic device as an authoritative data source, and combining it with service rule information from the cloud for capability arbitration, valid service capabilities are determined, thus resolving the conflict between the service capability list and cloud information.

Benefits of technology

This ensures that the service capabilities of smart devices remain uninterrupted even in the absence of network or cloud service failures, thereby improving the stability and reliability of the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185075A_ABST
    Figure CN123185075A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a device service capability determination method, device, apparatus and system. The method comprises: obtaining a service capability list stored in a second electronic device, wherein the service capability list comprises service capabilities currently possessed by the second electronic device, and the service capabilities are for reporting data collected by a sensor of the second electronic device to a target application program running on the first electronic device; in the case that the first electronic device establishes a communication connection with a cloud, receiving service rule information of the second electronic device issued by the cloud, wherein the service rule information of the second electronic device comprises service capability identification information and corresponding service capability rule states, and the service capability rule states are enable or disable; and determining valid service capabilities of the second electronic device according to the service capability list and the service rule information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of intelligent device service capability management technology, and more specifically, to a method for determining device service capability, a device for determining device service capability, a first electronic device, and a device and a system for determining device service capability. Background Technology

[0002] Currently, an increasing number of smart devices, especially wearable devices with health monitoring capabilities, rely entirely on the cloud for their configuration information. Typically, when a smart device starts up, the application that connects to the device pulls the device's configuration information from the cloud.

[0003] However, this method of obtaining the functional configuration information of smart devices from the cloud has the following problems: using the functional configuration information of smart devices from the cloud as the sole basis for the service capabilities of smart devices may result in the retrieved functional configuration information containing capabilities that the smart devices do not actually support, which can easily lead to function call failures. In addition, when the application is without network, has poor network quality, or the cloud service is malfunctioning, it cannot obtain the functional configuration information of smart devices, resulting in an interruption of the user experience. Summary of the Invention

[0004] One objective of this invention is to provide a new technical solution for determining equipment service capabilities.

[0005] According to a first aspect of the present invention, a method for determining device service capabilities is provided, implemented by a first electronic device, comprising: Obtain a list of service capabilities stored in the second electronic device, wherein the list of service capabilities includes the service capabilities currently possessed by the second electronic device, and the service capability is that the second electronic device reports data collected by the sensor to a target application running on the first electronic device; When the first electronic device establishes a communication connection with the cloud, it receives service rule information from the cloud for the second electronic device. The service rule information of the second electronic device includes service capability identification information and corresponding service capability rule status, wherein the service capability rule status is enabled or disabled. Based on the service capability list and the service rule information, the effective service capabilities of the second electronic device are determined.

[0006] Optionally, determining the effective service capabilities of the second electronic device based on the service capability list and the service rule information includes: For each service capability in the service capability list, determine whether the service rule information contains service capability identifier information corresponding to the service capability; If the service rule information contains a service capability identifier corresponding to the service capability, and the corresponding service capability rule is enabled, then the corresponding service capability is determined to be a valid service capability of the second electronic device.

[0007] Optionally, the method further includes: If the first electronic device does not establish a communication connection with the cloud, each service capability in the service capability list is determined as a valid service capability of the second electronic device.

[0008] Optionally, before obtaining the list of service capabilities stored in the second electronic device, the method further includes: Obtain the version number of the target application and the model number of the second electronic device; If the version number of the target application is the latest version and the model number of the second electronic device is the latest model, it is determined that the target application is compatible with the second electronic device, and then the step of obtaining the service capability list stored in the second electronic device is executed.

[0009] Optionally, the method further includes: If the version number of the target application is the latest version and the model of the second electronic device is not the latest model, it is determined that the target application is incompatible with the second electronic device, and the version number of the firmware in the second electronic device that contains the service capability list is obtained; The service capabilities corresponding to the model and firmware version number of the second electronic device are found from the service capability mapping table built into the target application, and are used as the valid service capabilities of the second electronic device. The service capability mapping table includes the service capabilities corresponding to the device model and firmware version number.

[0010] Optionally, the method further includes: If the version number of the target application is not the latest version, and the model of the second electronic device is the latest model, it is determined that the target application is incompatible with the second electronic device, and the effective service capabilities of the second electronic device are determined to be empty.

[0011] Optionally, the service capability rule status may also include service capability configuration information, wherein the service capability configuration information includes data collection period and data sampling frequency.

[0012] According to a second aspect of this disclosure, an apparatus for determining equipment service capabilities is provided, comprising: The acquisition module is used to acquire a service capability list stored in the second electronic device, wherein the service capability list includes the service capabilities currently possessed by the second electronic device, and the service capability is that the second electronic device reports the data collected by the sensor to the target application running on the first electronic device; The receiving module is used to receive service rule information of the second electronic device sent by the cloud when the first electronic device establishes a communication connection with the cloud. The service rule information of the second electronic device includes service capability identification information and corresponding service capability rule status, wherein the service capability rule status is enabled or disabled. The effective service capability determination module is used to determine the effective service capabilities of the second electronic device based on the service capability list and the service rule information.

[0013] According to a third aspect of this disclosure, a first electronic device is provided, including a memory and a processor, the memory storing a computer program for controlling the processor to operate in order to perform the method according to any one of the first aspects.

[0014] According to a fourth aspect of this disclosure, a device service capability determination system is provided, comprising: a first electronic device and a second electronic device as described in the third aspect, wherein, The first electronic device runs the target application, and the second electronic device stores a list of service capabilities.

[0015] This disclosure uses the service capability list stored locally on the second electronic device as the authoritative data source, the service rule information of the second electronic device obtained from the cloud as an optional enhancement layer, and performs capability arbitration based on the service capability list and service rule information to determine the valid service capabilities of the second electronic device. This fundamentally solves the technical problem of service capability call failure caused by the conflict between the service capability list and the service rule information of the second electronic device obtained from the cloud.

[0016] The features and advantages of the embodiments of this specification will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of this specification and, together with their description, serve to explain the principles of these embodiments.

[0018] Figure 1 This is a schematic diagram of the structure of an electronic device according to some embodiments.

[0019] Figure 2This is a flowchart of a method for determining device service capabilities according to some embodiments.

[0020] Figure 3 This is a flowchart of a method for determining device service capabilities according to other embodiments.

[0021] Figure 4 This is a schematic block diagram of a device for determining the service capability of an equipment according to some embodiments.

[0022] Figure 5 This is a schematic diagram of the structure of an electronic device according to some embodiments.

[0023] Figure 6 This is a schematic diagram of the system structure based on the device service capabilities of some embodiments. Detailed Implementation

[0024] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.

[0025] The following description of at least one exemplary embodiment is merely illustrative and is not intended to limit the scope of this disclosure or its application or use.

[0026] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0027] In all the examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0028] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0029] This disclosure relates to a scheme for determining device service capabilities. The scheme involves a first electronic device, a second electronic device, and a cloud. The first electronic device may be a terminal running a target application, such as a smartphone or tablet; the second electronic device may be a wearable device, such as a smart bracelet or smartwatch; and the cloud may be a server. The first electronic device communicates with the second electronic device. The first electronic device also communicates with the cloud.

[0030] The method for determining the service capabilities of the equipment disclosed herein is implemented by the first electronic device. Figure 1This is a schematic diagram of the structure of an electronic device capable of applying the device service capability determination method of the embodiments of this disclosure. The electronic device 1000 is a device capable of running computer programs, which may be local applications installed on the electronic device, or web applications, lightweight applications, or mini-programs, etc., without limitation herein. The electronic device 1000 may be a mobile phone, tablet computer, laptop computer, server, etc., without limitation herein.

[0031] like Figure 1 As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, an input device 1500, a display device 1600, etc. Figure 1 The hardware configuration shown is illustrative only and is not intended to limit this disclosure, its application, or its use.

[0032] The processor 1100 executes computer programs, which can be written using instruction sets of architectures such as x86, Arm, RISC, MIPS, and SSE. The memory 1200 includes, for example, ROM (Read-Only Memory), RAM (Random Access Memory), and non-volatile memory such as a hard disk. The interface device 1300 includes, for example, a USB interface, a network cable interface, and a headphone jack. The communication device 1400 is capable of wired or wireless communication. The communication device 1400 may include at least one short-range communication module, such as any module for short-range wireless communication based on protocols such as Hilink, WiFi (IEEE 802.11), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, and LiFi. The communication device 1400 may also include a long-range communication module, such as any module for WLAN, GPRS, or 2G / 3G / 4G / 5G long-range communication. The input device 1500 may include, for example, a touchscreen, a keyboard, a microphone, and various sensors. The output device 1600 may include, for example, an LCD screen or a touchscreen display.

[0033] In related technologies, after the target application starts, it directly retrieves the service capability list of the second electronic device from the cloud and uses this as the sole basis for determining the service capabilities of the second electronic device. Since retrieving the service capability list from the cloud may include service capabilities that the second electronic device does not actually support, function call failures are likely to occur. Furthermore, when the target application is offline, has poor network quality, or experiences cloud service failures, it cannot obtain the service capability list of the second electronic device from the cloud, resulting in an interrupted user experience.

[0034] To address this issue, this embodiment uses the service capability list stored locally on the second electronic device as the authoritative data source, the service rule information of the second electronic device obtained from the cloud as an optional enhancement layer, and performs capability arbitration based on the service capability list and service rule information to determine the valid service capabilities of the second electronic device. This fundamentally solves the technical problem of service capability call failure caused by the conflict between the service capability list and the service rule information of the second electronic device obtained from the cloud.

[0035] The following combination Figure 1 The illustrated electronic device illustrates the method for determining the device service capabilities provided in this disclosure.

[0036] <First Embodiment> Figure 2 This is a flowchart illustrating a method for determining device service capabilities according to some embodiments. The method is implemented by a first electronic device. Figure 2 As shown, the method may include steps S210 to S230.

[0037] Step S210: Obtain the service capability list stored in the second electronic device. The service capability list includes the service capabilities currently possessed by the second electronic device. The service capability is that the second electronic device reports the data collected by the sensor to the target application running on the first electronic device.

[0038] The service capability list is stored in the firmware of the second electronic device and is used to declare all the service capabilities that the second electronic device currently possesses.

[0039] Service capability can refer to the ability of the second electronic device to report data collected by the sensor to the target application running on the first electronic device, such as the ability to report heart rate data, blood oxygen data, and step count data.

[0040] The first electronic device can read the service capability list from the second electronic device through a local communication protocol, which can be a near-field communication protocol such as Bluetooth or Wi-Fi.

[0041] Step S220: When the first electronic device establishes a communication connection with the cloud, it receives service rule information of the second electronic device sent by the cloud. The service rule information of the second electronic device includes service capability identification information and the corresponding service capability rule status, which is enabled or disabled.

[0042] The cloud records service rule information for each user identifier corresponding to a second electronic device. The user identifier can be the login information for a user logging into a target application. The first electronic device sends a service rule request to the cloud, which includes the user identifier. Upon receiving this request, the cloud locates the corresponding service rule information for the second electronic device based on the user identifier and sends this information to the corresponding first electronic device.

[0043] The service rule information recorded in the cloud is data in a structured format (such as Lightweight Data Interchange Format).

[0044] Service capability identification information can be an identifier used to uniquely identify a service capability.

[0045] The service capability rule status can be enabled or disabled, and is used to manage the various service capabilities of the second electronic device.

[0046] In some examples, the service capability rule status may also include service capability configuration information, which may include the data collection period and the data sampling frequency. The data collection period is the start and end time of sensor data collection within a set time period. The set time period can be one day, one week, or one month. In these examples, by including configuration information in the service rule information, fine-grained control over service capability data collection behavior can be achieved.

[0047] In some examples, service rule information also includes a service rule version number, digital signature, and issuance timestamp. The service rule version number can be used for incremental updates and rollbacks. The digital signature can be used to ensure that the service rule information has not been tampered with. The timestamp can be used for expiration checks.

[0048] Step S230: Determine the effective service capabilities of the second electronic device based on the service capability list and service rule information.

[0049] A service capability can only be considered a valid service capability of a second electronic device if it meets both of the following conditions: the service capability is included in the service capability list of the second electronic device and the corresponding service capability rule status is enabled in the service rule information issued by the cloud.

[0050] In some examples, step S230 may include steps S2311 to S2312.

[0051] Step S2311: For each service capability in the service capability list, determine whether the service rule information contains the corresponding service capability identifier information.

[0052] Step S2312: If the service rule information contains service capability identifier information corresponding to the service capability, and the corresponding service capability rule status is enabled, then the corresponding service capability is determined to be a valid service capability of the second electronic device.

[0053] For example, let's take three service capabilities, A, B, and C, as an example. If service A is in the service capability list of the second electronic device and the rule status corresponding to service A in the service rule information is enabled, then service A is determined to be a valid service capability. If service B is in the service capability list of the second electronic device, but the rule status corresponding to service B in the service rule information is disabled, then service B is removed from the valid service capabilities. If a service capability is not in the service capability list of the second electronic device, then regardless of the cloud configuration, that service capability will not appear in the results of the valid service capabilities.

[0054] In some examples, such as Figure 3 As shown, the method further includes step S240: in the absence of a communication connection between the first electronic device and the cloud, each service capability in the service capability list is identified as a valid service capability of the second electronic device.

[0055] In these examples, when the target application is in the absence of network, has poor network quality, or experiences cloud service failure, the first electronic device uses a complete list of device service capabilities as the effective service capability. The aforementioned problems or failures do not affect the normal use of any existing service capabilities, thus ensuring that the second electronic device does not interrupt service when the aforementioned problems or failures occur.

[0056] <Second Embodiment> In some examples, before performing step S110, the method may also include a compatibility test between the target application and the second electronic device, that is, obtaining the version number of the target application and the model of the second electronic device, and determining whether the target application is compatible with the second electronic device based on the version number and model, thereby determining the subsequent processing path.

[0057] Specifically, if the target application is the latest version and the second electronic device is the latest model, it can be determined that the target application and the second electronic device are compatible, and then step S110 is executed. Through the above compatibility test, it can be ensured that the acquisition of the service capability list is carried out on the premise that the target application and the second electronic device are compatible, avoiding service capability anomalies caused by incompatibility between the two.

[0058] In some examples, if the target application is the latest version but the second electronic device is not, it can be determined that the target application and the second electronic device are incompatible. In this case, the version number of the firmware containing the service capability list in the second electronic device can be obtained, and then the service capability corresponding to the model and firmware version number of the second electronic device can be found from the service capability mapping table built into the target application, as the valid service capability of the second electronic device.

[0059] The service capability mapping table can be a static data table pre-built into the target application, containing service capability information corresponding to the device model and firmware version number. In these examples, by using the built-in service capability mapping table, even if the second electronic device is incompatible with the target application, the first electronic device can still accurately determine the effective service capabilities of the second electronic device, achieving compatibility with the second electronic device without requiring a firmware upgrade.

[0060] In some examples, if the target application is an older version while the second electronic device is a newer model, it can be determined that the target application is incompatible with the second electronic device, and the effective service capabilities of the second electronic device will be set to null. In these examples, by setting the effective service capabilities to null, the older version of the target application can be prevented from mistakenly calling incompatible service capabilities of the new device, thereby ensuring system stability and preventing runtime errors.

[0061] It should be noted that the service rule information of the second electronic device distributed by the cloud is only applicable to the case where the version number of the target application is the latest version and the model of the second electronic device is the latest model. It is not applicable to the case where the version number of the target application is the latest version and the model of the second electronic device is not the latest model, or the case where the version number of the target application is not the latest version and the model of the second electronic device is the latest model.

[0062] <Third Embodiment> One embodiment of this disclosure provides a device for determining device service capabilities. According to... Figure 4 As shown, the device for determining equipment service capabilities includes an acquisition module 410, a receiving module 420, and an effective service capability determination module 430.

[0063] The acquisition module 410 is used to acquire a service capability list stored in the second electronic device. The service capability list includes the service capabilities currently possessed by the second electronic device. The service capability is that the second electronic device reports the data collected by the sensor to the target application running on the first electronic device.

[0064] The receiving module 420 is used to receive service rule information of the second electronic device sent by the cloud when the first electronic device establishes a communication connection with the cloud. The service rule information of the second electronic device includes service capability identification information and corresponding service capability rule status, and the service capability rule status is enabled or disabled.

[0065] The effective service capability determination module 430 is used to determine the effective service capability of the second electronic device based on the service capability list and service rule information.

[0066] In some examples, the effective service capability determination module 430 is used to determine whether there is service capability identification information corresponding to the service capability in the service rule information for each service capability in the service capability list; if there is service capability identification information corresponding to the service capability in the service rule information and the corresponding service capability rule status is enabled, the corresponding service capability is determined to be an effective service capability of the second electronic device.

[0067] In some examples, the effective service capability determination module 430 is used to determine each service capability in the service capability list as an effective service capability of the second electronic device when the first electronic device has not established a communication connection with the cloud.

[0068] In some examples, the device also includes a compatibility detection module, which obtains the version number of the target application and the model number of the second electronic device; if the version number of the target application is the latest version and the model number of the second electronic device is the latest model, it determines that the target application is compatible with the second electronic device, and then performs the step of obtaining the service capability list stored in the second electronic device.

[0069] In some examples, the compatibility detection module is also used to determine that the target application is incompatible with the second electronic device if the target application's version number is the latest version and the second electronic device's model is not the latest model. The valid service capability determination module 430 is used to obtain the version number of the firmware containing the service capability list in the second electronic device; and to look up the service capabilities corresponding to the model and firmware version number of the second electronic device from the service capability mapping table built into the target application, as valid service capabilities of the second electronic device. The service capability mapping table includes service capabilities corresponding to the device model and firmware version number.

[0070] In some examples, the compatibility detection module is also used to determine that the target application is incompatible with the second electronic device if the version number of the target application is not the latest version and the model of the second electronic device is the latest model. The valid service capability determination module 430 is used to determine that the valid service capability of the second electronic device is empty.

[0071] In some examples, the service capability rule status also includes service capability configuration information, which includes the data collection period and the data sampling frequency.

[0072] <Fourth Embodiment> This embodiment provides a first electronic device, which includes a memory and a processor. The memory stores a computer program, which controls the processor to operate in order to execute any method embodiment of this disclosure.

[0073] Figure 5 A schematic diagram of the hardware structure of the electronic device is shown. The electronic device 1000 includes a processor 1100 and a memory 1200. The memory can be used to store computer programs, and the processor can be used to retrieve the computer programs from the memory to execute any method embodiment of this disclosure. The processor can be one or more, and these processors can execute instructions individually or jointly. Similarly, the memory can be one or more, and these memories can store the aforementioned computer programs individually or jointly.

[0074] The processor 1100 is used to execute computer instructions, which can be written using instruction sets of architectures such as x86, Arm, RISC, MIPS, and SSE. The memory 1200 includes, for example, ROM (Read-Only Memory), RAM (Random Access Memory), and non-volatile memory such as hard disks, etc., and is not limited here.

[0075] <Fifth Embodiment> This embodiment provides a system for determining device service capabilities, such as... Figure 6 As shown, the system includes a first electronic device 610 and a second electronic device 620 as provided in any of the above embodiments. The first electronic device 610 and the second electronic device 620 can establish a communication connection. The first electronic device 610 runs a target application. The second electronic device 620 stores a list of service capabilities.

[0076] This disclosure also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the audio storage method in any embodiment of this disclosure. Optionally, the computer-readable storage medium may be a non-transitory storage medium, but is not limited thereto; it may also be a temporary storage medium.

[0077] This invention can be a system, method, and / or computer program product. A computer program product may include a computer-readable storage medium having computer-readable program instructions loaded thereon for causing a processor to implement various aspects of the invention.

[0078] Computer-readable storage media can be tangible devices capable of holding and storing instructions for use by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, electrical storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disc read-only memory (CD-ROM), digital multifunction disc (DVD), memory sticks, floppy disks, mechanical encoding devices, such as punch cards or recessed protrusions storing instructions thereon, and any suitable combination thereof. The computer-readable storage media used herein are not to be construed as transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0079] The computer-readable program instructions described herein can be downloaded from computer-readable storage media to various computing / processing devices, or downloaded via a network, such as the Internet, local area network, wide area network, and / or wireless network, to an external computer or external storage device. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards them to the computer-readable storage media in the respective computing / processing device.

[0080] The computer program instructions used to perform the operations of this invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, status setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, electronic circuits, such as programmable logic circuits, field-programmable gate arrays (FPGAs), or programmable logic arrays (PLAs), are personalized by utilizing state information from computer-readable program instructions. These electronic circuits can execute computer-readable program instructions to implement various aspects of the present invention.

[0081] Various aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-readable program instructions.

[0082] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that, when executed by the processor of the computer or other programmable data processing apparatus, they create means for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium that causes a computer, programmable data processing apparatus, and / or other device to operate in a particular manner; thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0083] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to perform the functions / actions specified in one or more boxes of a flowchart and / or block diagram.

[0084] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of an instruction, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions. It will be known to those skilled in the art that implementation in hardware, implementation in software, and implementation using a combination of software and hardware are equivalent.

[0085] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims

1. A method for determining equipment service capabilities, characterized in that, Implemented by a first electronic device, including: Obtain a list of service capabilities stored in the second electronic device, wherein the list of service capabilities includes the service capabilities currently possessed by the second electronic device, and the service capability is that the second electronic device reports data collected by the sensor to a target application running on the first electronic device; When the first electronic device establishes a communication connection with the cloud, it receives service rule information from the cloud for the second electronic device. The service rule information of the second electronic device includes service capability identification information and corresponding service capability rule status, wherein the service capability rule status is enabled or disabled. Based on the service capability list and the service rule information, the effective service capabilities of the second electronic device are determined.

2. The method according to claim 1, characterized in that, Determining the effective service capabilities of the second electronic device based on the service capability list and the service rule information includes: For each service capability in the service capability list, determine whether the service rule information contains service capability identifier information corresponding to the service capability; If the service rule information contains a service capability identifier corresponding to the service capability, and the corresponding service capability rule is enabled, then the corresponding service capability is determined to be a valid service capability of the second electronic device.

3. The method according to claim 1, characterized in that, The method further includes: If the first electronic device does not establish a communication connection with the cloud, each service capability in the service capability list is determined as a valid service capability of the second electronic device.

4. The method according to any one of claims 1-3, characterized in that, Before obtaining the list of service capabilities stored in the second electronic device, the method further includes: Obtain the version number of the target application and the model number of the second electronic device; If the version number of the target application is the latest version and the model number of the second electronic device is the latest model, it is determined that the target application is compatible with the second electronic device, and then the step of obtaining the service capability list stored in the second electronic device is executed.

5. The method according to claim 4, characterized in that, The method further includes: If the version number of the target application is the latest version and the model of the second electronic device is not the latest model, it is determined that the target application is incompatible with the second electronic device, and the version number of the firmware in the second electronic device that contains the service capability list is obtained; The service capabilities corresponding to the model and firmware version number of the second electronic device are found from the service capability mapping table built into the target application, and are used as the valid service capabilities of the second electronic device. The service capability mapping table includes the service capabilities corresponding to the device model and firmware version number.

6. The method according to claim 4, characterized in that, The method further includes: If the version number of the target application is not the latest version, and the model of the second electronic device is the latest model, it is determined that the target application is incompatible with the second electronic device, and the effective service capability of the second electronic device is determined to be empty.

7. The method according to claim 1, characterized in that, The service capability rule status also includes service capability configuration information, which includes data collection period and data sampling frequency.

8. A device for determining equipment service capacity, characterized in that, include: The acquisition module is used to acquire a service capability list stored in the second electronic device, wherein the service capability list includes the service capabilities currently possessed by the second electronic device, and the service capability is that the second electronic device reports the data collected by the sensor to the target application running on the first electronic device; The receiving module is used to receive service rule information of the second electronic device sent by the cloud when the first electronic device establishes a communication connection with the cloud. The service rule information of the second electronic device includes service capability identification information and corresponding service capability rule status, wherein the service capability rule status is enabled or disabled. The effective service capability determination module is used to determine the effective service capabilities of the second electronic device based on the service capability list and the service rule information.

9. A first electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program for controlling the processor to operate in order to perform the method according to any one of claims 1 to 7.

10. A system for determining equipment service capabilities, characterized in that, include: The first electronic device and the second electronic device as described in claim 9, wherein, The first electronic device runs the target application, and the second electronic device stores a list of service capabilities.