CN116708063A - Log reporting method, electronic equipment, cloud server and storage medium - Google Patents

Log reporting method, electronic equipment, cloud server and storage medium Download PDF

Info

Publication number
CN116708063A
CN116708063A CN202211666283.4A CN202211666283A CN116708063A CN 116708063 A CN116708063 A CN 116708063A CN 202211666283 A CN202211666283 A CN 202211666283A CN 116708063 A CN116708063 A CN 116708063A
Authority
CN
China
Prior art keywords
point location
intelligent
configuration file
attribute
intelligent device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211666283.4A
Other languages
Chinese (zh)
Inventor
胡孟亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211666283.4A priority Critical patent/CN116708063A/en
Publication of CN116708063A publication Critical patent/CN116708063A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application relates to a log reporting method, electronic equipment, a cloud server and a storage medium. The electronic device includes a first application for controlling one or more smart devices. The electronic device is wirelessly connected with the intelligent device. The method comprises the following steps: and when the first intelligent equipment is connected with the network, acquiring the point location configuration file of the first intelligent equipment from the cloud server. And receiving a first preset operation of the user on the control page of the first application. And responding to the first preset operation, and searching point location data corresponding to the attribute identification of the first control event in the point location configuration file of the first intelligent equipment. If the point location configuration file of the first intelligent device comprises point location data corresponding to the attribute identification of the first control event, reporting a dotting log of the first control event. Therefore, the point location data can be automatically acquired, and automatic reporting of the dotting log is realized.

Description

Log reporting method, electronic equipment, cloud server and storage medium
Technical Field
The application relates to the field of internet of things, in particular to a log reporting method, electronic equipment, a cloud server and a storage medium.
Background
In the field of internet of things (Internet of Things, IOT), electronic devices can be connected through the internet to exchange information, so as to realize intelligent management of the electronic devices. For example, a smart home device may be wirelessly connected with a cell phone. The user can control the intelligent home through operating the mobile phone.
Control pages are typically configured in electronic devices that can control other smart devices. The user can control the intelligent device connected with the electronic device through the control page. The control page may also provide a dotting log reporting function in order to track the behavior of the smart device. At present, a developer is required to manually add a section of code for reporting and point location data into a program of the control page, so that the point location data is reported in a dotting log. However, due to the wide variety of intelligent devices in the internet of things, the manual addition of point location data and codes is very tedious and time-consuming.
Disclosure of Invention
In view of the above, the application provides a log reporting method, an electronic device, a cloud server and a storage medium, which can automatically acquire point location data, realize automatic reporting of a dotting log and save manpower resources for reporting the log.
In a first aspect, the present application provides a method for reporting a log, where an electronic device includes a first application. The first application may be used to control one or more smart devices. The electronic device is wirelessly connected with one or more intelligent devices. For a first smart device of the one or more smart devices, the electronic device may obtain a point location profile of the first smart device from the cloud server when the first smart device is configured. The point location configuration file comprises attribute identifiers of one or more attribute functions of the first intelligent device and point location data corresponding to each attribute identifier. And the electronic equipment receives a first preset operation of the user on a control page of the first application. In response to the first preset operation, the electronic device may search for the point location data corresponding to the attribute identifier of the first control event in the point location configuration file of the first intelligent device, which is obtained from the cloud server in advance. And under the condition that the point location data corresponding to the attribute identification of the first control event is found, reporting a dotting log of the first control event.
Through the mode, when the intelligent equipment newly accessed to the Internet of things platform exists, developers do not need to manually add all point location data and codes for reporting the point location logs in the application program of the first application, a large amount of manpower resources and manpower cost can be saved, the probability of code errors caused by manual operation is reduced, and the efficiency of adding the new intelligent equipment into the Internet of things platform is improved. Meanwhile, the reporting of the point location data does not involve intervention of a third party, the stability and the safety of reporting the point location log can be improved, the privacy of a user can be effectively protected, the reported content meets the specification, and the uncontrollable risk is reduced.
In a possible implementation manner of the first aspect, the point location configuration file of the first smart device further includes a device ID of the first smart device. The electronic device responds to a first preset operation and can call a preset application programming interface of a first application, and a first control instruction is sent to the first intelligent device. The first control instruction is used for indicating the first intelligent device to execute a first control event, and the first control instruction comprises the device ID of the first intelligent device and the attribute identification of the first control event. When a preset application programming interface of the first application is called, the electronic device searches point location data corresponding to the attribute identification of the first control event from the point location configuration file of the first intelligent device according to the device ID of the first intelligent device.
In this way, when the mobile phone detects that the preset API is called, the mobile phone can search the point location data corresponding to the attribute identifier of the first control event in the point location configuration file of the first intelligent device, so as to realize automatic reporting of the point location data of the first control event.
In another possible implementation manner of the first aspect, the electronic device receives a second control instruction from the first smart device. The second control instruction is used for indicating the first intelligent device to respond to a second preset operation of the user on the first intelligent device and execute a second control event. The second control instruction comprises the device ID of the first intelligent device and the attribute identification of the second control event. And the electronic equipment searches the point location data corresponding to the attribute identification of the second control event from the point location configuration file of the first intelligent equipment according to the equipment ID of the first intelligent equipment. If the point location configuration file of the first intelligent device comprises point location data corresponding to the attribute identification of the second control event, reporting a dotting log of the second control event.
Here, for the second control event executed by the intelligent desk lamp in response to the second preset operation of the user on the first intelligent device, the mobile phone can automatically report the dotting log of the second control event, so that the workload caused by manually adding point location data and codes for reporting the point location log is reduced.
In another possible implementation manner of the first aspect, the electronic device invokes a preset application programming interface of the first application to trigger updating the control page in response to the second control instruction. When the preset application programming interface is called, according to the equipment ID of the first intelligent equipment, searching the point location data corresponding to the attribute identification of the second control event from the point location configuration file of the first intelligent equipment.
In this way, when the mobile phone detects that the preset API is called, the mobile phone can search the point location data corresponding to the attribute identifier of the second control event in the point location configuration file of the first intelligent device, so as to realize automatic reporting of the point location data of the second control event.
In another possible implementation manner of the first aspect, the method further includes: and under the condition that the point position configuration file of the first intelligent device is updated, the electronic device receives the point position configuration file, which is sent by the cloud server and is updated by the first intelligent device.
In this way, the electronic device may receive the point location configuration file updated by the first intelligent device sent by the cloud server when the point location configuration file of the first intelligent device is updated. When the point location log of the control event is reported, whether the point location log is reported or not can be judged through the latest point location data in the updated point location configuration file, and the reported data and content can be dynamically adjusted according to actual requirements.
In another possible implementation manner of the first aspect, the first application includes a first plug-in. The first plug-in is used for providing a control page of the first intelligent device. The control page of the intelligent desk lamp is provided through the first plug-in, and the control page is convenient to change and expand.
In another possible implementation manner of the first aspect, the method further includes: and the electronic equipment receives a first control response returned by the first intelligent equipment in response to the first control instruction. And updating the control page of the first intelligent device in the first application according to the first control response.
In this way, the electronic device can update the control page according to the first control response returned by the first intelligent device, so that the attribute function corresponding to the first control event in the control page is updated to be in the latest state.
In a second aspect, the application provides a log reporting method, which is applied to a cloud server, wherein the cloud server comprises point location configuration files of one or more intelligent devices. The method comprises the following steps: a point location configuration file configured for one or more intelligent devices is obtained. The point location configuration file of each intelligent device comprises one or more attribute identifiers of the corresponding intelligent device and point location data corresponding to each attribute identifier, and each attribute identifier corresponds to one attribute function of the intelligent device. When the first intelligent equipment is connected with the network, the point location configuration file of the first intelligent equipment is sent to the electronic equipment provided with the first application, the first application is used for controlling the first intelligent equipment, and the electronic equipment is connected with the first intelligent equipment in a wireless mode.
Therefore, when the first intelligent equipment is connected with the network, the cloud server can provide the point location configuration file of the first intelligent equipment for the electronic equipment provided with the first application, so that the electronic equipment can automatically acquire the point location data in the point location configuration file, and the automatic reporting of the point location log is realized.
In a possible implementation manner of the second aspect, obtaining a point location configuration file configured for one or more intelligent devices includes: and after receiving the product configuration file configured for the first intelligent device, receiving the point location configuration file configured for the first intelligent device based on the product configuration file of the first intelligent device. The product configuration file of the first intelligent device comprises a device ID of the first intelligent device, and attribute identifiers and attribute descriptions of all attribute functions of the first intelligent device. The one or more attribute identifications included in the point location profile of the first smart device are attribute identifications of some or all of the attribute functions. Thus, a point location configuration file obtaining mode is provided.
In another possible implementation manner of the second aspect, the method further includes: and receiving the updating operation of the point location configuration file of the first intelligent device to obtain the updated point location configuration file of the first intelligent device. And sending the updated point location configuration file of the first intelligent device to the electronic device.
By the method, the cloud server can send the updated point position configuration file of the intelligent desk lamp to the mobile phone under the condition that the updated point position configuration file of the intelligent desk lamp is updated. When the mobile phone reports the point location log of the control event, whether the point location log is reported or not can be judged through the latest point location data in the updated point location configuration file, so that the reported data and contents can be dynamically adjusted according to actual requirements.
In a third aspect, the present application provides an electronic device comprising: a memory, a communication module, and one or more processors. The memory and the communication module are coupled with the processor; the communication module is used for transmitting data or signaling with the cloud server or the intelligent device. The memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of the first aspect and any of its possible implementations.
In a fourth aspect, the present application provides a cloud server, including: a memory, a communication module, and one or more processors; the memory, communication module, and processor are coupled. The communication module is used for transmitting data or signaling with the cloud server. The memory has stored therein computer program code. The computer program code comprises computer instructions which, when executed by said processor, cause the cloud server to perform the method of the second aspect described above and any one of its possible implementations.
In a fifth aspect, the present application provides a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of the first aspect and any one of its possible implementations; alternatively, the computer instructions, when run on a cloud server, cause the cloud server to perform the method of the second aspect and any one of its possible implementations.
In a sixth aspect, the application provides a computer program product comprising program instructions which, when run on a computer, enable the computer to perform the method of the first aspect and any one of its possible implementations, or to perform the method of the second aspect and any one of its possible implementations.
Drawings
Fig. 1 is a schematic structural diagram of an internet of things system according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a control page according to an embodiment of the present application;
fig. 3 is a block diagram of an example of an electronic device according to an embodiment of the present application;
fig. 4 is a block diagram of an example of an intelligent device according to an embodiment of the present application;
FIG. 5 is a flowchart of an example of a log reporting method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a product configuration file of an intelligent desk lamp according to an embodiment of the present application;
FIG. 7 is a schematic diagram of mapping relationship between attribute identifiers and point location data according to an embodiment of the present application;
fig. 8 is a schematic diagram of a point location configuration file of an intelligent table lamp according to an embodiment of the present application;
fig. 9 is a schematic diagram of a first plug-in unit according to an embodiment of the present application in communication with an intelligent desk lamp through a first application;
FIG. 10 is a flowchart of another example of a log reporting method according to an embodiment of the present application;
FIG. 11 is a flowchart of another example of a log reporting method according to an embodiment of the present application;
fig. 12 is a flowchart of another example of a log reporting method according to an embodiment of the present application.
Detailed Description
The embodiment of the application provides a log reporting method, which is applied to interaction between an electronic device and a plurality of intelligent devices (such as intelligent home devices) to realize dotting log reporting of the intelligent devices.
First, an internet of things system is introduced. The internet of things system comprises electronic equipment, one or more intelligent devices and a cloud server. The electronic device may have installed therein a first application for controlling one or more smart devices. The electronic device may communicate with a cloud server where the electronic device registers for the one or more smart devices to obtain configuration files for the one or more smart devices. The configuration file may provide the data needed to control the smart device. Through the configuration file, the electronic device may control one or more intelligent devices. The cloud server can be an internet of things platform server and can provide configuration files required by a plurality of intelligent devices to access the electronic device. In some implementations, the cloud server is not specific to a certain server.
Taking the smart home internet of things scenario as shown in fig. 1 as an example, the internet of things system includes a mobile phone 100 (an example of an electronic device), a smart desk lamp (an example of an intelligent device), and a cloud server 300. The handset may access the wireless local area network provided by the router, and may also obtain the (Service Set Identifier, SSID) and access password of the wireless local area network. The mobile phone can establish wireless connection (such as mobile hotspot WiFi or Bluetooth) with the intelligent desk lamp. Through the wireless connection established, the mobile phone can communicate with the intelligent desk lamp to acquire the registration data of the intelligent desk lamp. For example, the registration data may include a media access control bit (Media Access Control Address, MAC) address and a device serial number. The mobile phone can carry the registration data of the intelligent desk lamp in the registration request, send the registration request to the server, and register the intelligent desk lamp in the cloud server by using the registration data. The cloud server distributes equipment identifiers (Identity document, ID) for the intelligent desk lamp according to the registration data of the intelligent desk lamp, completes the registration of the intelligent desk lamp, and sends configuration files required by controlling the intelligent desk lamp to the mobile phone. Through the established wireless connection, the mobile phone can also transmit the SSID and the access password of the wireless local area network to the intelligent desk lamp. The intelligent desk lamp can access the wireless local area network provided by the router by using the SSID and the access password transmitted by the mobile phone. Thus, the network distribution process of the intelligent desk lamp is realized. After the distribution of the intelligent desk lamp is completed, the intelligent desk lamp can be communicated with a mobile phone or a cloud server through an accessed wireless local area network.
Through the wireless connection established by the mobile phone and the intelligent desk lamp, the mobile phone can control the intelligent desk lamp according to the preset operation of a user. For example, in a control page of the first application, the mobile phone receives a preset operation of clicking a switch key of the intelligent desk lamp by a user. And responding to the preset operation of clicking the switch key of the intelligent desk lamp by the user, and sending a control instruction for opening the switch to the intelligent desk lamp by the mobile phone to instruct the intelligent desk lamp to execute a control event for opening the switch. After receiving a control instruction sent by the mobile phone, the intelligent desk lamp can turn on a switch to start lighting.
In order to facilitate management of the intelligent device, the electronic device may also report one or more control events executed by the intelligent device, i.e. record the behavior of the intelligent device through a dotting log. The user can trigger the intelligent device to execute the control event corresponding to the attribute function aiming at the preset operation of the attribute function of the intelligent device. For example, a user may trigger the smart device to perform a power-on event (a control event) for an on operation of a switch of the smart device. For another example, a user may trigger the smart device to perform a brightness adjustment event (a control event) for the brightness of the smart device. A control event performed by the smart device may correspond to an attribute function of the smart device. One attribute function of the intelligent device and the control event corresponding to the attribute function may have the same attribute identification.
The smart device has a plurality of attribute functions. Taking the example that the intelligent device is a bluetooth speaker, the plurality of attribute functions of the bluetooth speaker can include a switch, volume adjustment, song cutting, etc. Taking the intelligent desk lamp as an example, the plurality of attribute functions of the intelligent desk lamp can comprise a switch, brightness adjustment, timing, countdown, illumination mode and the like. For easy understanding, the embodiment of the application provides a method for reporting logs in the conventional technology.
In the conventional technology, when a newly added intelligent device exists in the internet of things system, a developer needs to configure application software or a control page of the intelligent device. Meanwhile, a code for dotting log reporting and point location data are manually added into the application software or the application program of the control page, and the dotting log reporting is independently performed. One point location data may correspond to one control event performed by the smart device. When the intelligent device executes a control event, the dotting log of the control event is triggered to report at the same time, so that the behavior of the intelligent device is monitored. For a smart device, the smart device may perform a number of control events. Not all control events corresponding to the attribute functions need to be reported. In this case, the developer needs to distinguish the control event that needs to be reported by the intelligent device, and add the point location data and the code for reporting the point log in the application program corresponding to the control event that needs to be reported. Every time new equipment is accessed and developed, manual dotting is needed, because the IOT equipment is accessed to the Internet of things and the development work of a plurality of equipment manufacturers and third parties is involved, the manual addition of point location data and the reported codes are involved in large workload, a large amount of manpower resources are consumed, and the occurrence probability of code errors is large.
In view of this, in the method provided by the embodiment of the present application, the electronic device includes a first application. The first application may be used to control one or more smart devices. The electronic device is wirelessly connected with one or more intelligent devices. The configuration file may include a point location configuration file. For a first smart device of the one or more smart devices, the electronic device may obtain a point location profile of the first smart device from the cloud server when the first smart device is configured. The point location configuration file comprises attribute identifiers of one or more attribute functions of the first intelligent device and point location data corresponding to each attribute identifier. And the electronic equipment receives a first preset operation of the user on a control page of the first application. In response to the first preset operation, the electronic device instructs the first intelligent device to execute the first control event, and meanwhile, point location data corresponding to the attribute identifier of the first control event can be searched in a point location configuration file of the first intelligent device, which is obtained from the cloud server in advance. And under the condition that the point location data corresponding to the attribute identification of the first control event is found, reporting a dotting log of the first control event.
By the method provided by the embodiment of the application, the point location configuration file of the point location data can be added in the cloud server. The configuration work of point location data of most intelligent devices can be completed by unifying the first application in the electronic device with the cloud server and developing the first application at one time. When the intelligent equipment newly accessed to the Internet of things platform exists, a developer does not need to manually add all point location data and codes for reporting the point location logs in an application program of the first application, a large amount of manpower resources and manpower cost can be saved, the probability of code errors caused by manual operation is reduced, and the efficiency of adding the new intelligent equipment into the Internet of things platform is improved. Meanwhile, the reporting of the point location data does not involve intervention of a third party, the stability and the safety of reporting the point location log can be improved, the privacy of a user can be effectively protected, the reported content meets the specification, and the uncontrollable risk is reduced.
Taking the scenario shown in fig. 1 as an example, the electronic device is a mobile phone 100, and the intelligent device is an intelligent desk lamp 200. The control page of the first application in the handset is shown in fig. 2. The mobile phone displays a plurality of attribute functions (such as a switch, a lighting mode (including a guest receiving mode, a leisure mode, a film watching mode and a dining mode), timing and countdown) of the intelligent desk lamp to a user through the control page. The mobile phone can receive a first preset operation of a user aiming at an attribute function in a control page. For example, the mobile phone receives a first preset operation of clicking a switch (an attribute function) by a user in a control page. In response to the first preset operation, the mobile phone can instruct the intelligent desk lamp to execute a first control event. If the mobile phone responds to the first preset operation, the intelligent desk lamp is instructed to be turned on or turned off (a first control event) by the mobile phone. Meanwhile, the mobile phone can report the dotting log of the first control event. And if the mobile phone reports the point location log of the first control event of opening or closing the intelligent desk lamp.
It can be appreciated that the electronic device may carry, in the dotting log, dotting data corresponding to the attribute identifier of the first control event. In some implementations, the dotting log may not also carry point location data. The point location data can be used as a basis for whether the electronic equipment reports the dotting log. If the electronic equipment searches the dotting data corresponding to the attribute identifier of the first control event in the point location configuration file, reporting the dotting log is executed. If the electronic equipment does not find the dotting data corresponding to the attribute identification of the first control event, reporting of the dotting log is not executed. In other implementations, the dotting log may further carry one or more of an attribute identifier of the first control event, an event time, an equipment identifier, an attribute identifier of the first control event, an original state of an attribute function corresponding to the first control event, and a current state after the attribute function is changed. The information carried in the dotting log reported by the electronic equipment can be agreed according to the requirement, and the embodiment of the application does not limit the specific information included in the dotting log.
By way of example, the electronic device described in embodiments of the present application may be a cell phone, tablet, desktop, laptop, handheld computer, notebook, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook, cell phone, personal digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) \virtual reality (VR) device, media player, television, etc. The intelligent equipment in the embodiment of the application can be intelligent household equipment such as intelligent desk lamps, intelligent locks, bluetooth sound boxes, intelligent washing machines, intelligent refrigerators and the like, and can also be intelligent wearing equipment such as intelligent watches, helmets, bracelets and the like. The embodiment of the application does not limit the specific forms of the electronic equipment and the intelligent equipment.
In the embodiment of the present application, taking the mobile phone 100 shown in fig. 1 as an example of an electronic device, a hardware structure of the electronic device is described. Fig. 3 is a block diagram of an electronic device according to an embodiment of the present application. As shown, the handset 100 may include a processor 110, an internal memory 121, a universal serial bus (universal serial bus, USB) connector 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, keys 190, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc.
It should be understood that the structure illustrated in the embodiments of the present application is not limited to the specific embodiment of the mobile phone 100. In other embodiments of the application, the handset 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The processor can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. The memory may hold instructions or data that are used or used more frequently by the processor 110. If the processor 110 needs to use the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others. The processor 110 may be connected to the touch sensor, the audio module, the wireless communication module, the display, the camera, etc. module through at least one of the above interfaces.
It should be understood that the connection relationship between the modules illustrated in the embodiment of the present application is only illustrative, and is not limited to the structure of the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the above embodiments.
The internal memory 121 may be used to store computer executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created during use of the handset 100, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional methods or data processing of the mobile phone 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The USB connector 130 is an interface that meets the USB standard, and may be used to connect the mobile phone 100 with a peripheral device, specifically, a Mini USB connector, a Micro USB connector, a USB Type C connector, etc. The USB connector 130 may be used to connect to a charger to charge the mobile phone 100, or may be used to connect to other electronic devices to transfer data between the mobile phone 100 and the other electronic devices. And may also be used to connect headphones through which audio stored in the electronic device is output. The connector may also be used to connect other electronic devices, such as VR devices, etc. In some embodiments, the standard specifications for universal serial buses may be USB b1.X, USB2.0, USB3.X, and USB4.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB connector 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the cell phone 100. The charging management module 140 may also supply power to the mobile phone 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the mobile phone 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to the handset 100.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), bluetooth low energy (bluetooth low energy, BLE), ultra Wide Band (UWB), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied to the mobile phone 100. The wireless communication module 160 may communicate with a smart device or cloud server.
The keys 190 may include a power on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The handset 100 may receive key inputs, generating key signal inputs related to user settings and function control of the handset 100.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
The cell phone 100 may implement camera functions through a camera 193, isp, video codec, GPU, display 194, and application processor AP, neural network processor NPU, etc.
The camera 193 may be used to acquire color image data of a photographing object as well as depth data. The ISP may be used to process color image data acquired by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, so that the electrical signal is converted into an image visible to the naked eye. ISP can also optimize the noise, brightness and color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195 or removed from the SIM card interface 195 to enable contact and separation with the handset 100. The handset 100 may support 1 or more SIM card interfaces. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, handset 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the handset 100 and cannot be separated from the handset 100.
In the embodiment of the present application, taking an intelligent device as an example, the intelligent desk lamp 200 introduces a hardware structure of the intelligent device. Fig. 4 is a block diagram of an intelligent device according to an embodiment of the present application. As shown, the smart desk lamp 200 may include: a processor 201, a memory 202, a communication module 203, a power module 204, and an input/output interface 205.
It will be appreciated that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the smart device. In some implementations of embodiments of the application, the smart device may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 201 may include one or more processing units, such as: processor 201 may include an application processor (application processor, AP), modem processor, controller, digital signal processor (digital signal processor, DSP), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
Memory 202 may be used to store computer-executable program code that includes instructions. The processor 201 executes instructions stored in the memory 202 to perform various functional applications and data processing of the intelligent desk lamp 200. In addition, memory 202 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash memory (universal flash storage, UFS), and the like.
The wireless communication module 203 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc. applied to the smart desk lamp 200. The wireless communication module 203 may be one or more devices that integrate at least one communication processing module. The intelligent desk lamp 200 can be in wireless connection with the electronic equipment through the wireless communication module 203, so that communication between the intelligent desk lamp 200 and the electronic equipment is realized.
The power module 204 may be used to power various components included in the intelligent desk lamp 200. In some implementations, the power module 204 can be a battery, such as a rechargeable battery.
The input/output interface 205 may be used to provide any wired connection between the smart desk lamp 200 and the charger. In some implementations, the input/output interface 205 may be an electrical connector.
The following log reporting methods can be implemented in electronic devices and intelligent devices with the above hardware structures. The method provided by the embodiment of the present application is described below by taking the scenario shown in fig. 1 as an example. The electronic device may be the mobile phone 100 shown in fig. 1, and the smart device may be the smart desk lamp 200 shown in fig. 1. The mobile phone 100 includes a first application therein. The first application is provided with a control page for controlling the smart desk lamp 200. A wireless connection (e.g., a bluetooth connection) is established between the handset 100 and the smart desk lamp 200. As shown in fig. 5, the method provided by the embodiment of the application includes the following steps:
s501, a cloud server acquires point location configuration files configured for one or more intelligent devices.
The cloud server is used as a server of the internet of things platform of the intelligent device and is used for managing one or more intelligent devices added into the internet of things platform. When the intelligent desk lamp is newly added into the internet of things platform, the cloud server can acquire the configuration file of the intelligent desk lamp. The configuration file may include a point location configuration file of the intelligent desk lamp. For example, the cloud server may receive a configuration file of the smart desk lamp sent by the client or other electronic devices. Or the cloud server can obtain the configuration file of the intelligent desk lamp stored in external storage equipment (such as a mobile hard disk and a U disk).
In one implementation, the cloud server may receive a point location configuration file configured for the intelligent desk lamp based on the product configuration file of the intelligent desk lamp after receiving the product configuration file configured for the intelligent desk lamp.
Here, the Profile of the smart desk lamp includes a product Profile (Profile). The product configuration file comprises the device ID of the intelligent desk lamp, and the attribute identification and the attribute description of all attribute functions of the intelligent desk lamp. By parsing the product profile of the smart desk lamp, the handset can know what the current access device (i.e., the smart desk lamp) is, which attribute functions it has, and how to control the device. The file format of the product configuration file may be json. json is a lightweight data exchange format, easy to parse.
In the product profile of the smart desk lamp as shown in fig. 6, there are a plurality of fields in the product profile. The "prdID" field is used to record the device ID (e.g., "0001"). The title field is used to record a device tag (e.g., "test device"). The "description" field is used to record a device description (e.g., "test device"). The list field is used for listing information of multiple attribute functions of the intelligent desk lamp. The list field includes an index field, an id field, a title field, a description field, and a property field. Wherein the index field is used to describe the index (e.g., "0", "1") of the current set of attribute functions. The "id" field is used to record the identity of the current set of attribute functions (e.g., "id1", "id 2"). The "description" field is used to record an attribute description (e.g., "product base") of the current set of attribute functions. The "property" field includes information for the set of attribute functions. The "property" field includes an "index" field, an "id" field, a "description" field, a "value" field, and a "defaultValue" field. Wherein the index field is used to describe an index (e.g., "0") of the current attribute function. The "id" field is used to record the identity of the current attribute function (e.g., "prdID", "id 0"). The "description" field is used to record an attribute description (e.g., "product unique identification", "switch") of the current attribute function. The value field is used to record the state value of the current attribute function. The defaultValue field is used to record the default value of the current attribute.
The point location profile of the intelligent desk lamp may be generated based on the product profile of the intelligent desk lamp. For example, the point location profile of the intelligent desk lamp may be extended from an image of the product profile of the intelligent desk lamp. The one or more attribute identifications included in the point location configuration file of the intelligent table lamp are attribute identifications of some or all attribute functions in the product configuration file. The point location data provided in the point location configuration file can be set according to actual application scenes or requirements.
For example, as shown in fig. 7, the product configuration file of the smart desk lamp includes attribute identifiers of a plurality of attribute functions. The point location configuration file comprises a plurality of point location data. The attribute identifiers of the plurality of attribute functions of the intelligent table lamp have a mapping relation with point location data. The attribute identification of one attribute function in the product profile may correspond to one point location data in the point location profile. For example, attribute identification 1 corresponds to point location data 1, attribute identification 3 corresponds to point location data 3, and attribute identification 4 corresponds to point location data 5. The attribute identification of one attribute function in the product configuration file may also have no corresponding point location data. For example, attribute identification 2 does not have corresponding point location data. In some implementations, one of the point location data in the point location configuration file may also have no corresponding attribute identifier. For example, there is no corresponding attribute identification for the point data 2 and the point data 4. The point location data without the corresponding attribute identification can be reserved point location data, so that the point location log reporting of the control event corresponding to other attribute functions of the intelligent desk lamp can be conveniently added.
After receiving the product configuration file of the intelligent desk lamp, the cloud server can obtain the point location configuration file of the intelligent desk lamp according to the received configuration operation. For example, after receiving the product configuration file of the intelligent desk lamp, the cloud server may further provide a point location data configuration interface of the intelligent desk lamp according to the product configuration file. The point data configuration interface can provide point data configuration options corresponding to the attribute identifications of all the attribute functions in the product configuration file or provide point data configuration options corresponding to the attribute identifications of one or more recommended attribute functions. The user can select one or more attribute functions of the needed configuration point data in the point data configuration interface, and set the point data corresponding to the attribute identification of the attribute function in the point data configuration options of the corresponding attribute function. And the cloud server generates a point position configuration file of the intelligent table lamp according to configuration operation of inputting the point position data in the point position data configuration interface by a user.
Illustratively, the point location profile of the smart desk lamp is shown in fig. 8. There are multiple fields in the point location profile, some of which are identical to some of the fields in the product profile. The "prdID" field is used to record the device ID (e.g., "0001"). The title field is used to record a device tag (e.g., "test device"). The "description" field is used to record a device description (e.g., "test device"). The list field is used for listing information of multiple attribute functions of the intelligent desk lamp. The list field includes an index field, an id field, and a property field. Wherein the index field is used to describe the index (e.g., "0", "1") of the current set of attribute functions. The "id" field is used to record the identity of the current set of attribute functions (e.g., "id1", "id 2"). The "property" field includes information for the set of attribute functions. The "property" field includes an "index" field, an "id" field, and a "code" field. Wherein the index field is used to describe an index (e.g., "0") of the current attribute function. The "id" field is used to record the identity of the current attribute function (e.g., "prdID", "id 0"). The "code" field is used to record the point location data (e.g., "a0001", "a 0002") of the current attribute function. It can be seen that, in the point position configuration file of the intelligent table lamp, other fields are the same as the fields included in the product configuration file of the intelligent table lamp except for the "code" field.
S502, when the intelligent desk lamp is distributed with a network, the cloud server sends the point location configuration file of the intelligent desk lamp to the mobile phone.
Under the condition that the intelligent desk lamp is connected with the mobile phone for the first time, the mobile phone can be used for distributing the network for the intelligent desk lamp. The network distribution process can be referred to the description of the intelligent desk lamp network distribution in the above, and will not be repeated here. When the intelligent desk lamp is distributed with a network, the mobile phone acquires the point location configuration file of the intelligent desk lamp from the cloud server. For example, after the wireless connection between the smart desk lamp and the mobile phone is established for the first time, the mobile phone may send a registration request to the cloud server to register the smart desk lamp with the cloud server. And the cloud server responds to the registration request of the mobile phone and returns the product configuration file and the point location configuration file of the intelligent desk lamp to the mobile phone. After the product configuration file of the intelligent desk lamp is obtained, the mobile phone can analyze the product configuration file, and control of the intelligent desk lamp can be realized after analysis.
S503, the mobile phone receives a first preset operation of a user on a control page of a first application.
The mobile phone can display a control page for controlling the intelligent desk lamp to a user. For example, the mobile phone starts the first application in response to a user operation of clicking an icon of the first application by the user, and displays a control page for controlling the intelligent desk lamp to the user through the first application.
In the process of displaying the control page, the mobile phone can receive a first preset operation of a user on the control page. The first preset operation is used for controlling the intelligent desk lamp to execute a first control event. The first control event may be a control event that changes a state value of a first attribute function of the smart desk lamp. Taking the control page shown in fig. 2 as an example, in the case that the user instructs to turn on the intelligent desk lamp through the control page, the first preset operation may be a user operation that the user clicks a switch icon in the control page. The first control event may be a control event that alters a state value of the switch.
Here, the first attribute function may be any one of one or more attribute functions of the smart desk lamp. Each attribute function may have one or more status values. Each state value may correspond to a state of the attribute function. Taking the switch of the intelligent desk lamp as an example, the switch of the intelligent desk lamp can comprise a first state value and a second state value. The first state value (e.g., 1) of the switch may indicate that the switch of the intelligent desk lamp is in an on state, i.e., the intelligent desk lamp is in an illumination state. The second state value (e.g., 0) of the switch may indicate that the switch of the intelligent desk lamp is in an off state, i.e., the intelligent desk lamp is in an off state.
In one implementation, a first application of a cell phone may include a first plug-in. The first plug-in is used for providing a control page of the intelligent desk lamp. As shown in fig. 9, the first application includes a first plug-in. The first plug-in of the mobile phone is communicated with the intelligent desk lamp through the first application.
It will be appreciated that the first application may act as a container for the first plug-in, to the extent that the first plug-in may be isolated from other programs, facilitating deployment of the first plug-in different devices. The first plug-in is loaded into the first application, and the program of the first application is slightly influenced, so that the functions of the first application can be continuously improved and expanded through the first plug-in. The first plug-in can provide a control page of the intelligent desk lamp. For example, the first plug-in may provide control pages such as the 5 th generation internet hypertext markup language (Hyper Text Markup Language, html) page (H5 page), reactNative, native, and the like. The control page of the intelligent desk lamp is provided through the first plug-in, and the control page is convenient to change and expand.
S504, responding to a first preset operation, and searching point location data corresponding to the attribute identification of the first control event in the point location configuration file of the intelligent desk lamp by the mobile phone.
As described above, the first control event has the same attribute identification as the attribute function that triggered the first control event. The point location data recorded in the point location configuration file of the intelligent desk lamp corresponds to the attribute identification of the attribute function of the intelligent desk lamp. It can be understood that the mapping relationship exists between the point location data in the point location configuration file and the attribute identifier of the attribute function of the intelligent desk lamp. Therefore, in response to the first preset operation, the mobile phone can search the point location data corresponding to the attribute identifier of the first control event in the point location configuration file of the intelligent desk lamp according to the mapping relation between the attribute identifier of the attribute function of the intelligent desk lamp and the point location data.
Illustratively, the point location configuration file of the intelligent desk lamp shown in fig. 8 is taken as an example. The first control event may be a control event triggered by a switch of the intelligent desk lamp, and an attribute of the first control event is identified as "id2 id0". The mobile phone searches whether dotting data exists in the attribute function with the "id" field being "id0" under the group of attribute functions with the "id" field being "id2" in the "list" field of the point location configuration file.
It will be appreciated that the attribute identification of an attribute function in the example may be recorded in the "id" field under the "list" field and in the "id" field under the "property" field. The attribute identification of one attribute function has two levels of identification. Taking an attribute identifier corresponding to "a0002" point location data (point location data circled by a box) as an example, two levels of identifiers corresponding to the attribute identifier are "id2" and "id0" respectively. Where "id2" may be a first level identification and "id0" may be a second level identification. The attribute identification of an attribute function can be determined by the two-stage identifications of "id2" and "id0".
In some examples, the attribute identifier of an attribute function may also have only a first level identifier, i.e. the attribute identifier of an attribute function is determined by the identifier of a field. The embodiment of the application is not limited to the method, as long as the corresponding point location data can be found through the attribute identification of the attribute function.
S505, if the point location configuration file of the intelligent desk lamp comprises point location data corresponding to the attribute identification of the first control event, the mobile phone reports a dotting log of the first control event.
The mobile phone can search the point location data corresponding to the attribute identification of the first control event in one or more point location data recorded in the point location configuration file. If the mobile phone searches the point location data corresponding to the attribute identifier of the first control event in the point location configuration file, the first control event can be considered as the control event of the point log which can be reported. In this case, the mobile phone generates a dotting log of the first control event, and reports the dotting log of the first control event. The dotting log can carry one or more information of an attribute identifier of the first control event, an event time of the first control event, a device identifier of the intelligent desk lamp, an original state of an attribute function corresponding to the first control event and a current state after the attribute function is changed.
Here, the mobile phone may report the dotting log of the first control event to the preset server according to an actual requirement or a preset agreement. For example, the mobile phone may report a dotting log of the first control event to a cloud server of the internet of things platform. Or, the mobile phone can report the dotting log of the first control event to the device server of the intelligent desk lamp. The embodiment of the present application is not limited thereto.
In the embodiment of the application, when the intelligent table lamp is distributed, the mobile phone can acquire the point location configuration file of the intelligent table lamp from the cloud server, so that the point location log can be automatically reported aiming at the first control event corresponding to one attribute function of the intelligent table lamp. The research staff can not add the point location data and the codes for reporting the point location log in the application program of the first application manually any more, so that the workload brought by adding the point location data and the codes for reporting the point location log manually is reduced, and the efficiency of the intelligent desk lamp accessing to the Internet platform is improved.
In some implementations, when the mobile phone controls the intelligent desk lamp through the control page, a preset application programming interface (Application Program Interface, API) of the first application is called, and a control instruction is sent to the intelligent desk lamp through the preset API. Under the condition that the preset API is called, the mobile phone can search the point location data corresponding to the attribute identification of the first control event in the point location configuration file of the intelligent desk lamp. That is, the calling of the preset API can trigger the mobile phone to read the dotting configuration file of the intelligent desk lamp so as to report the dotting log. Specifically, the step S504 includes steps S5041 to S5042:
S5041, the mobile phone responds to a first preset operation, calls a preset application programming interface of a first application, and sends a first control instruction to the intelligent desk lamp.
And the mobile phone responds to the first preset operation, calls a preset API of the first application to send a first control instruction to the intelligent desk lamp, and instructs the intelligent desk lamp to execute a first control event. The first control instruction is used for instructing the intelligent desk lamp to execute a first control event. The first control instruction comprises the device ID of the intelligent desk lamp and the attribute identification of the first control event. For example, the mobile phone responds to a first preset operation, calls a preset API of a first application to send a first control instruction to the intelligent desk lamp, and instructs the intelligent desk lamp to turn on a switch to start illumination. The first control instruction can carry the device ID of the intelligent desk lamp and the attribute identification of the first control event. In some implementations, the first control instruction may further carry a state value of an attribute function corresponding to the first control event, where the state of the attribute function corresponding to the first control event is indicated by the state value of the attribute function.
It can be appreciated that the preset API is an application programming interface implemented based on a general specification, and may implement information communication with the intelligent device, such as obtaining an attribute function of the intelligent device, changing an attribute function of the intelligent device, and so on. The preset API may also call basic functions of the first application. For example, basic functions such as language setting, theme setting, foreground and background switching, etc.
S5042, when the preset application programming interface is called, the mobile phone searches the point location data corresponding to the attribute identification of the first control event from the point location configuration file of the intelligent desk lamp according to the equipment ID of the intelligent desk lamp.
In the embodiment of the application, in order to realize automatic reporting of the dotting log of the intelligent desk lamp, a monitoring program for monitoring that the preset API is called can be arranged in the mobile phone. Under the condition that the monitoring program detects that the preset API is called, the mobile phone can search the point location data corresponding to the first control event in the point location configuration file.
Here, the mobile phone may store point location configuration files of a plurality of intelligent devices. When the preset API is detected to be called, the mobile phone can determine the point position configuration file of the intelligent desk lamp from the point position configuration files of the intelligent devices according to the device ID of the intelligent desk lamp. Then, the point location data corresponding to the attribute identification of the first control event is searched in the point location configuration file of the intelligent desk lamp.
In this way, when the mobile phone detects that the preset API is called, the mobile phone can search the point location data corresponding to the attribute identifier of the first control event in the point location configuration file of the intelligent desk lamp, so as to realize automatic reporting of the point location data of the first control event.
In some implementations, if the mobile phone does not find the dotting data corresponding to the attribute identifier of the first control event in the point location configuration file of the intelligent desk lamp, the first control event may be considered to be a control event of the dotting log without reporting. The handset may not perform the reporting of the point log of the first control event.
In S5041, the mobile phone responds to the first preset operation and invokes a preset application programming interface of the first application to send a first control instruction to the intelligent desk lamp. And the intelligent desk lamp responds to the first control instruction, executes a first control event and returns a first control response to the mobile phone. The mobile phone can update the control page according to the first control response returned by the intelligent desk lamp. Specifically, after S5041 described above, the method provided by the embodiment of the present application may further include:
s506, the intelligent desk lamp responds to the first control instruction and returns a first control response to the mobile phone.
The intelligent desk lamp receives a first control instruction sent by the mobile phone through wireless connection (such as wifi connection and Bluetooth connection). And responding to the first control instruction, executing a first control event by the intelligent desk lamp, and returning a first control response to the mobile phone. For example, the first control instruction is for instructing the smart desk lamp to illuminate. And responding to the first control instruction, the intelligent desk lamp sets the switch to be in a lighting state, namely, turns on the switch, and returns a first control response to the mobile phone.
It is to be understood that S505 may be performed before or after the present step, or may be performed simultaneously with the present step. The embodiment of the present application is not limited to the sequence of this step and S505.
S507, the mobile phone updates the control page of the intelligent desk lamp in the first application according to the first control response.
The mobile phone can consider that the intelligent desk lamp executes the first control event under the condition that the mobile phone receives the first control response returned by the intelligent. In this case, the mobile phone updates the control page of the intelligent desk lamp in the first application, for example, updates the state of the attribute function corresponding to the first control event in the control page. For example, the first control event is a control event that turns on the switch. When the mobile phone receives a first control response returned by the intelligent device for the first control instruction, the state of a switch in a control page of the intelligent desk lamp can be updated to be an illumination state.
In some implementations, the first control response may carry the latest state of the attribute function corresponding to the first control event. The mobile phone can update the state of the attribute function corresponding to the first control event in the control page according to the latest state carried in the first control response.
In some cases, for example, the wireless connection between the handset and the smart device may be broken. Or, one of the mobile phone or the intelligent device fails. The mobile phone cannot receive the first control response of the intelligent desk lamp. If the mobile phone does not receive the first control response returned by the intelligent desk lamp, the mobile phone can not update the control page of the intelligent desk lamp. Or prompting information of failed control in the control page.
In the embodiment of the application, the point location configuration file of the intelligent table lamp can be stored in the cloud server. In some implementations, the point location configuration file of the intelligent desk lamp stored in the cloud server can be modified, so that flexibility of point location data configuration can be improved. Specifically, the method provided by the embodiment of the application further comprises the following steps:
s508, the cloud server receives the updating operation of the point location configuration file of the intelligent desk lamp, and the updated point location configuration file of the intelligent desk lamp is obtained.
The cloud server can receive the updating operation of the point location configuration file of the intelligent desk lamp by the client, other electronic equipment or a user, and obtain the updated point location configuration file of the intelligent desk lamp. For example, for one point location data to be updated in the point location configuration file, the user may input new point location data in the point location data configuration option corresponding to the point location data in the point location data configuration interface provided by the cloud server, so as to implement updating of the point location data. And the cloud server acquires the updated point location data in the data configuration interface and generates an updated point location configuration file of the intelligent desk lamp.
S509, the cloud server sends the updated point location configuration file of the intelligent desk lamp to the mobile phone.
After obtaining the updated point location configuration file of the intelligent desk lamp, the cloud server can send the updated point location configuration file to the mobile phone. If the distribution of the intelligent table lamp is completed, the cloud server sends the updated point position configuration file of the intelligent table lamp to the mobile phone after obtaining the updated point position configuration file. If the distribution network of the intelligent desk lamp is not completed, the cloud server can send updated point position configuration files of the intelligent desk lamp to the mobile phone when the intelligent desk lamp is distributed.
By the method, the cloud server can send the updated point position configuration file of the intelligent desk lamp to the mobile phone under the condition that the updated point position configuration file of the intelligent desk lamp is updated. When the mobile phone reports the point location log of the control event, whether the point location log is reported or not can be judged through the latest point location data in the updated point location configuration file, so that the reported data and contents can be dynamically adjusted according to actual requirements.
The log reporting process provided by the embodiment of the application is described below through an example. The mobile phone is provided with a first application. The first application comprises a first plug-in which is used for providing a control page for controlling the intelligent desk lamp. The mobile phone is connected with the intelligent desk lamp in a wireless mode (such as wifi connection or Bluetooth connection). As shown in fig. 10, the method provided by the embodiment of the present application may include the following steps:
S901, a cloud server receives a product configuration file and a point location configuration file of an intelligent desk lamp.
The cloud server can receive product configuration files and point location configuration files of the intelligent desk lamp sent by the client or other electronic equipment. Or the cloud server can obtain the product configuration file and the point location configuration file of the intelligent desk lamp stored in external storage equipment (such as a mobile hard disk and a U disk). Or, after receiving the product configuration file of the intelligent desk lamp, the cloud server may obtain the point location configuration file of the intelligent desk lamp according to the received configuration operation on the point location configuration file of the intelligent desk lamp (see the description in S501).
It can be appreciated that the cloud server receives the product profile and the point location profile of the intelligent desk lamp. The intelligent desk lamp can be used as the development stage of intelligent equipment newly added into the Internet of things, and can also be used in other stages (such as when the product configuration file and/or the point location configuration file are updated).
S902, when the intelligent desk lamp is distributed with a network, the mobile phone sends a registration request to the cloud server.
In this step, the content that the mobile phone registers for the intelligent desk lamp in the cloud server is referred to above, and will not be described here again.
S903, the cloud server responds to the registration request and sends the product configuration file and the point location configuration file of the intelligent desk lamp to the mobile phone.
This step may be referred to the description in S502, and will not be described here again.
S904, the mobile phone receives a first preset operation of clicking a switch button in a control page by a user.
In the control page shown in fig. 2, the switch of the intelligent desk lamp is in an off state (turned off). The user instructs the intelligent desk lamp to turn on the switch by clicking a first preset operation of a switch button in the control page. The mobile phone receives a first preset operation of clicking a switch button in a control page by a user.
S905, responding to a first prediction operation, calling a preset API of a first application by a first plug-in of the mobile phone, and sending a first control instruction to the intelligent desk lamp.
Here, the first control instruction is for controlling the smart device to execute a first control event that turns on the switch. The preset API may pass in an attribute identification of the switch (e.g., "id2 id 0") and a status value of the switch in an open state (e.g., 1).
S906, under the condition that a preset API is called, the mobile phone judges whether the point location configuration file of the intelligent desk lamp is configured with the point location data corresponding to the attribute identification of the switch according to the equipment ID of the intelligent desk lamp. If so, S907 is performed. If not, ending the dotting log reporting flow of the first control event.
Here, the attribute identifier of the switch is the attribute identifier of the second control event. The mobile phone can determine the point location configuration file corresponding to the device ID of the intelligent desk lamp in the pre-stored point location configuration files of one or more intelligent devices, and find the point location data corresponding to the attribute identification of the switch in the determined point location configuration file. In an example, the device ID (prdld) of the smart desk lamp is "0001", and the attribute of the switch is identified as "ID2 ID0". The mobile phone can find that the point location data corresponding to the attribute identifier is "a0001" in the point location configuration file of the intelligent desk lamp shown in fig. 8.
S907, the mobile phone reports a dotting log of the opening switch.
The description in S505 is referred to herein, and will not be repeated here.
S908, the intelligent desk lamp responds to the first control instruction, opens a switch and returns a first control response to the mobile phone.
The description in S506 is referred to herein, and will not be repeated here.
S909, the first application of the handset instructs the first plug-in to update the control page.
Here, the first application in the mobile phone may consider that the smart device has performed the first control event of opening the switch when receiving the first control response returned by the smart desk lamp. The first application may instruct the first plug-in to update the control page.
S910, the first plug-in of the mobile phone updates the control page.
And the first plug-in updates the state of the switch in the control page of the intelligent desk lamp into a lighting state according to the indication of the first application.
It is to be understood that S907 may be performed before S908, or after S908, or simultaneously with S908. Fig. 10 shows the case of S907 after S908 by way of example only, but the order of S907 and S908 is not limited.
In the embodiment of the application, the mobile phone responds to a first preset operation for searching the point location data corresponding to the attribute identification of the first control event in the point location configuration file of the intelligent table lamp so as to automatically report the dotting log of the first control event. In some implementations, the intelligent desk lamp may execute the second control event in response to a second preset operation by the user. In this case, the mobile phone may also automatically report the dotting log of the second control event. Specifically, as shown in fig. 11, the method provided by the embodiment of the present application may further include the following steps:
s1001, the intelligent desk lamp receives a second preset operation of a user on the intelligent desk lamp.
Besides controlling the intelligent desk lamp through the first application in the mobile phone, the user can directly operate the intelligent desk lamp to control the intelligent desk lamp. The intelligent desk lamp receives a second preset operation of a user on the intelligent desk lamp. For example, the smart desk lamp may receive a second preset operation of the user clicking a switch on the smart desk lamp.
S1002, the intelligent desk lamp responds to a second preset operation, executes a second control event and sends a second control instruction to the mobile phone.
The second preset operation is used for controlling the intelligent desk lamp to execute a second control event. The intelligent desk lamp responds to a second preset operation of the user, executes a second control event and sends a second control instruction to the mobile phone through wireless connection established with the mobile phone. The second control instruction comprises the device ID of the intelligent desk lamp and the attribute identification of the second control event. For example, the second control event is a control event that turns on a switch to initiate illumination. The intelligent desk lamp responds to the second prediction operation, and the switch of the intelligent desk lamp is turned on, so that the intelligent desk lamp starts illumination. The intelligent desk lamp also sends a second control instruction to the mobile phone, and the intelligent desk lamp is indicated to execute a second control event. The second control event may be the same as or different from the first control event described above.
S1003, the mobile phone searches the point location data corresponding to the attribute identification of the second control event from the point location configuration file of the intelligent desk lamp according to the equipment ID of the intelligent desk lamp.
After the mobile phone receives the second control instruction sent by the intelligent desk lamp, the point location configuration file of the intelligent desk lamp can be determined according to the equipment ID carried in the second control instruction. The mobile phone can search the point location data corresponding to the attribute identification of the second control event in the point location configuration file of the intelligent desk lamp. The process of searching the point location data corresponding to the attribute identifier of the second control event in the point location configuration file by the mobile phone can refer to the description of searching the point location data corresponding to the attribute identifier of the first control event by the mobile phone in the above step S504, which is not repeated herein.
And S1004, if the point position configuration file of the intelligent desk lamp comprises point position data corresponding to the attribute identification of the second control event, reporting a dotting log of the second control event by the mobile phone.
In the embodiment of the application, the mobile phone can search the point location data corresponding to the attribute identifier of the second control event in one or more point location data recorded in the point location configuration file. If the mobile phone searches the point location data corresponding to the attribute identifier of the second control event in the point location configuration file, the second control event can be considered as the control event of the point log which can be reported. In this case, the mobile phone generates a dotting log of the second control event, and reports the dotting log of the second control event. For example, the handset may generate a point log carrying point data of the second control event and report the point log. The point location log can carry one or more information of an attribute identifier of the second control event, an event time of the second control event, a device identifier of the intelligent desk lamp, an original state of an attribute function corresponding to the second control event and a current state after the attribute function is changed.
In the embodiment of the application, aiming at the second control event executed by the intelligent desk lamp in response to the second preset operation of the user on the intelligent desk lamp, the mobile phone can automatically report the dotting log of the second control event, so that the workload caused by manually adding point location data and codes for reporting the point location log is reduced.
In some implementations, the first application includes the preset API described above. The calling of the preset API can trigger the mobile phone to read the dotting configuration file of the intelligent desk lamp, so that the report of the dotting log is realized. And the mobile phone responds to the second control instruction and can call a preset API of the first application, and the control page is notified to update through the preset API. Under the condition that the preset API is called, the mobile phone can search the point location data corresponding to the attribute identification of the second control event in the point location configuration file of the intelligent desk lamp.
I.e. the one that is the one. Specifically, the step S1003 includes steps S10031 to S10032:
s10031, responding to the second control instruction, and calling a preset application programming interface of the first application by the mobile phone to trigger updating the control page.
The second control instruction is used for indicating the intelligent desk lamp to respond to a second preset operation of the user on the intelligent desk lamp and execute a second control event. And the mobile phone responds to the second control instruction and calls a preset API of the first application to trigger updating the control page. For example, the second control event is a control event that turns on a switch to initiate illumination. And the mobile phone responds to the second control instruction and calls a preset API of the first application to trigger the state of a switch in the control page to be updated to be an illumination state.
S10032, when the preset application programming interface is called, according to the device ID of the first intelligent device, searching the point location data corresponding to the attribute identification of the second control event from the point location configuration file of the first intelligent device.
When the preset API is detected to be called, the mobile phone can determine the point position configuration file of the intelligent desk lamp from the point position configuration files of one or more intelligent devices stored in the mobile phone according to the device ID of the intelligent desk lamp. And then, searching point location data corresponding to the attribute identification of the second control event in the point location configuration file of the intelligent table lamp.
In this way, when the mobile phone detects that the preset API is called, the mobile phone can search the point location data corresponding to the attribute identifier of the second control event in the point location configuration file of the intelligent desk lamp, so as to realize automatic reporting of the point location data of the second control event.
It can be understood that, in the electronic device in the embodiment of the present application, the point location configuration file of the intelligent device may be obtained in advance from the cloud server. When the electronic equipment controls the intelligent equipment or the attribute function of the intelligent equipment to update the state based on the control operation of the user, the electronic equipment can search the point location configuration file so as to realize the automatic reporting of the point location log. In some implementations, the smart device may also communicate with a cloud server from which a point location profile of the smart device is obtained. When the state of one attribute function of the intelligent device is updated, the intelligent device can acquire the point location data corresponding to the attribute identification of the attribute function in the point location configuration file so as to realize automatic reporting of the point location log.
The log reporting process provided by the embodiment of the application is described below by another example. The mobile phone is provided with a first application. The first application comprises a first plug-in which is used for providing a control page for controlling the intelligent desk lamp. The mobile phone is connected with the intelligent desk lamp in a wireless mode (such as wifi connection or Bluetooth connection). As shown in fig. 12, the method provided by the embodiment of the present application may include the following steps:
s1101, the cloud server acquires a product configuration file and a point location configuration file of the intelligent desk lamp.
This step may be referred to the description in S901, and will not be described here again. The product profile of the intelligent desk lamp is shown in fig. 6. The point location configuration file of the intelligent desk lamp is shown in fig. 8. Wherein, the device ID (prdld) of the intelligent desk lamp is "0001".
S1102, when the intelligent desk lamp is distributed with a network, the mobile phone acquires a product configuration file and a point location configuration file of the intelligent desk lamp from the cloud server.
This step may be referred to the description in S502, and will not be described here again. After the product configuration file of the intelligent desk lamp is obtained, the mobile phone can analyze the product configuration file, and after analysis, the intelligent desk lamp can be controlled through a control page provided by a first plug-in of the first application.
S1103, the intelligent desk lamp receives a second preset operation of clicking a switch of the intelligent desk lamp by the user.
This step may be referred to the description in S1001 above, and will not be described here again. The intelligent desk lamp may be in a closed state before receiving a second preset operation of the user.
S1104, the intelligent desk lamp responds to a second preset operation, executes a second control event of opening the switch, and sends a second control instruction to the mobile phone.
This step may be referred to the description in S1002, and will not be described here again.
S1105, the first application of the mobile phone calls a preset API to inform the first plug-in unit to update the control page in response to the second control instruction.
The second control instruction is used for indicating the intelligent desk lamp to respond to a second preset operation of clicking a switch of the intelligent desk lamp by a user, and a second control event of opening the switch is executed. The preset API may pass in an attribute identification of the switch (e.g., "id2 id 0") and a status value of the switch in an open state (e.g., 1, indicating an open state). And the first plug-in updates the state of the switch in the control page of the intelligent desk lamp into an on state according to the second control instruction.
S1106, under the condition that the preset API is called, the mobile phone judges whether the point location configuration file of the intelligent desk lamp is configured with the point location data corresponding to the attribute identification of the switch according to the equipment ID of the intelligent desk lamp. If so, S1106 is performed. If not, ending the dotting log reporting flow of the second control event.
The mobile phone can determine the point location configuration file corresponding to the device ID of the intelligent desk lamp in the pre-stored point location configuration files of one or more intelligent devices, and find the point location data corresponding to the attribute identification of the switch in the determined point location configuration file. In an example, the device ID of the smart desk lamp is "0001", and the attribute of the switch is identified as "ID2 ID0". The mobile phone can find that the point location data corresponding to the attribute identifier is "a0001" in the point location configuration file of the intelligent desk lamp shown in fig. 8.
S1107, the mobile phone reports the dotting log of the second control event according to the obtained point location data.
This step may be referred to the description in S1004 above, and will not be repeated here. Therefore, the mobile phone can automatically report the dotting log of the second control event.
Further embodiments of the present application provide an electronic device comprising: a memory, a communication module, and one or more processors. The memory, the communication module, and the processor are coupled. The communication module is used for transmitting data or signaling with the cloud server or the intelligent equipment; the memory has stored therein computer program code comprising computer instructions. The electronic device, when executed by a processor, may perform the functions or steps of the method embodiments described above. The structure of the electronic device may refer to the structure of the mobile phone 100 shown in fig. 3.
Other embodiments of the present application provide a cloud server comprising: a memory, a communication module, and one or more processors. The memory, the communication module, and the processor are coupled. The communication module is used for transmitting data or signaling with the electronic equipment; the memory has stored therein computer program code comprising computer instructions. The computer instructions, when executed by a processor, cause the electronic device to perform the functions or steps of the method embodiments described above.
The embodiment of the application also provides a chip system which comprises at least one processor and at least one interface circuit. The processors and interface circuits may be interconnected by wires. For example, the interface circuit may be used to receive signals from other devices (e.g., memory of an electronic device or cloud server). For another example, the interface circuit may be used to send signals to other devices (e.g., processors). The interface circuit may, for example, read instructions stored in the memory and send the instructions to the processor. The instructions, when executed by the processor, may cause the electronic device or cloud server to perform the various steps of the embodiments described above. Of course, the system-on-chip may also include other discrete devices, which are not particularly limited in accordance with embodiments of the present application.
Embodiments of the present application also provide a computer-readable storage medium including computer instructions which, when executed on an electronic device as described above, cause the electronic device to perform the functions or steps of the method embodiments described above. Or, when the computer instructions are executed on the cloud server, the cloud server is caused to perform the functions or steps in the method embodiments.
Embodiments of the present application also provide a computer program product which, when run on a computer, causes the computer to perform the functions or steps of the method embodiments described above.
It will be apparent to those skilled in the art from this description that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method 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 (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. The log reporting method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a first application, the first application is used for controlling one or more intelligent equipment, and the electronic equipment is in wireless connection with the intelligent equipment; the method comprises the following steps:
when a first intelligent device is connected with a network, acquiring a point location configuration file of the first intelligent device from a cloud server; the point location configuration file of the first intelligent device comprises one or more attribute identifiers of the first intelligent device and point location data corresponding to each attribute identifier, and each attribute identifier corresponds to one attribute function of the first intelligent device;
receiving a first preset operation of a user on a control page of the first application; the first preset operation is used for controlling the first intelligent device to execute a first control event;
Responding to the first preset operation, and searching point location data corresponding to the attribute identification of the first control event in a point location configuration file of the first intelligent device;
and if the point location configuration file of the first intelligent device comprises point location data corresponding to the attribute identification of the first control event, reporting a dotting log of the first control event.
2. The method of claim 1, wherein the point location profile of the first smart device further comprises a device ID of the first smart device;
the responding to the first preset operation searches the point location data corresponding to the attribute identifier of the first control event in the point location configuration file of the first intelligent device, and includes:
responding to the first preset operation, calling a preset application programming interface of the first application, and sending a first control instruction to the first intelligent device; the first control instruction is used for indicating the first intelligent device to execute the first control event, and the first control instruction comprises a device ID of the first intelligent device and an attribute identifier of the first control event;
and when the preset application programming interface is called, according to the equipment ID of the first intelligent equipment, searching the point location data corresponding to the attribute identification of the first control event from the point location configuration file of the first intelligent equipment.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a second control instruction from the first intelligent device; the second control instruction is used for indicating the first intelligent device to respond to a second preset operation of a user on the first intelligent device and execute a second control event, and the second control instruction comprises a device ID of the first intelligent device and an attribute identifier of the second control event;
according to the equipment ID of the first intelligent equipment, searching point location data corresponding to the attribute identification of the second control event from a point location configuration file of the first intelligent equipment;
and if the point location configuration file of the first intelligent device comprises point location data corresponding to the attribute identification of the second control event, reporting a dotting log of the second control event.
4. The method of claim 3, wherein the searching for the point location data corresponding to the attribute identifier of the second control event from the point location configuration file of the first intelligent device according to the device ID of the first intelligent device includes:
responding to the second control instruction, and calling a preset application programming interface of the first application to trigger updating the control page;
And when the preset application programming interface is called, according to the equipment ID of the first intelligent equipment, searching the point location data corresponding to the attribute identification of the second control event from the point location configuration file of the first intelligent equipment.
5. The method according to any one of claims 1-4, further comprising:
and under the condition that the point location configuration file of the first intelligent device is updated, receiving the point location configuration file which is sent by the cloud server and is updated by the first intelligent device.
6. The method of any one of claims 1-5, wherein the first application comprises a first plug-in; the first plug-in is used for providing a control page of the first intelligent device.
7. The method according to claim 2, wherein the method further comprises:
receiving a first control response returned by the first intelligent device in response to the first control instruction;
and updating a control page of the first intelligent device in the first application according to the first control response.
8. The log reporting method is characterized by being applied to a cloud server, wherein the cloud server comprises point location configuration files of one or more intelligent devices; the method comprises the following steps:
Acquiring point location configuration files configured for one or more intelligent devices; the point location configuration file of each intelligent device comprises one or more attribute identifiers of the corresponding intelligent device and point location data corresponding to each attribute identifier, and each attribute identifier corresponds to one attribute function of the intelligent device;
when a first intelligent device is connected with a network, a point location configuration file of the first intelligent device is sent to an electronic device provided with a first application, the first application is used for controlling the first intelligent device, and the electronic device is connected with the first intelligent device in a wireless mode.
9. The method of claim 8, wherein the obtaining a point location profile configured for one or more smart devices comprises:
after receiving a product configuration file configured for the first intelligent device, receiving a point location configuration file configured for the first intelligent device based on the product configuration file of the first intelligent device;
the product configuration file of the first intelligent device comprises a device ID of the first intelligent device, and attribute identifiers and attribute descriptions of all attribute functions of the first intelligent device; the one or more attribute identifications included in the point location configuration file of the first intelligent device are attribute identifications of some or all attribute functions of the all attribute functions.
10. The method according to claim 9, wherein the method further comprises:
receiving an updating operation of the point location configuration file of the first intelligent device to obtain the point location configuration file updated by the first intelligent device;
and sending the updated point location configuration file of the first intelligent device to the electronic device.
11. An electronic device, comprising: a memory, a communication module, and one or more processors; the memory, the communication module, and the processor are coupled; the communication module is used for transmitting data or signaling with the cloud server or the intelligent equipment; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the electronic device to perform the method of any of claims 1-7.
12. A cloud server, comprising: a memory, a communication module, and one or more processors; the memory, the communication module, and the processor are coupled; the communication module is used for transmitting data or signaling with the cloud server; the memory has stored therein computer program code comprising computer instructions which, when executed by the processor, cause the cloud server to perform the method of any of claims 8-10.
13. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-7; alternatively, the computer instructions, when run on a cloud server, cause the cloud server to perform the method of any of claims 8-10.
CN202211666283.4A 2022-12-23 2022-12-23 Log reporting method, electronic equipment, cloud server and storage medium Pending CN116708063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211666283.4A CN116708063A (en) 2022-12-23 2022-12-23 Log reporting method, electronic equipment, cloud server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211666283.4A CN116708063A (en) 2022-12-23 2022-12-23 Log reporting method, electronic equipment, cloud server and storage medium

Publications (1)

Publication Number Publication Date
CN116708063A true CN116708063A (en) 2023-09-05

Family

ID=87839833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211666283.4A Pending CN116708063A (en) 2022-12-23 2022-12-23 Log reporting method, electronic equipment, cloud server and storage medium

Country Status (1)

Country Link
CN (1) CN116708063A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030084709A (en) * 2002-04-23 2003-11-01 캐논 가부시끼가이샤 Extensible device driver
CN106982236A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of information processing method, device and system
CN108170576A (en) * 2017-12-26 2018-06-15 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
US20180227620A1 (en) * 2014-06-23 2018-08-09 Google Llc Camera Data Access based on Subscription Status
CN108920355A (en) * 2018-05-31 2018-11-30 康键信息技术(深圳)有限公司 Get event information acquisition method, device, computer equipment and storage medium ready
US20190158353A1 (en) * 2006-09-25 2019-05-23 Weaved, Inc. Managing network connected devices
CN110717130A (en) * 2018-06-27 2020-01-21 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
CN112486770A (en) * 2020-11-27 2021-03-12 北京达佳互联信息技术有限公司 Client dotting reporting method and device, electronic equipment and storage medium
CN113656102A (en) * 2021-08-17 2021-11-16 杭州网易云音乐科技有限公司 Data point burying method and device, storage medium and electronic equipment
CN113805490A (en) * 2021-09-13 2021-12-17 珠海格力电器股份有限公司 Device control method, system, apparatus, device and storage medium
CN113890822A (en) * 2021-10-21 2022-01-04 杭州逗酷软件科技有限公司 Log processing method, log processing device, storage medium and electronic equipment
US20220012208A1 (en) * 2020-07-10 2022-01-13 EMC IP Holding Company LLC Configuring a file server
CN114371888A (en) * 2022-01-14 2022-04-19 中国电信股份有限公司 Method and device for hot updating of log collection plug-in, electronic equipment and readable medium
CN114740748A (en) * 2022-04-29 2022-07-12 青岛海尔科技有限公司 Smart home scene creation method and device, storage medium and electronic device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030084709A (en) * 2002-04-23 2003-11-01 캐논 가부시끼가이샤 Extensible device driver
US20190158353A1 (en) * 2006-09-25 2019-05-23 Weaved, Inc. Managing network connected devices
US20180227620A1 (en) * 2014-06-23 2018-08-09 Google Llc Camera Data Access based on Subscription Status
CN106982236A (en) * 2016-01-18 2017-07-25 阿里巴巴集团控股有限公司 A kind of information processing method, device and system
CN108170576A (en) * 2017-12-26 2018-06-15 广东欧珀移动通信有限公司 log processing method, device, terminal device and storage medium
CN108920355A (en) * 2018-05-31 2018-11-30 康键信息技术(深圳)有限公司 Get event information acquisition method, device, computer equipment and storage medium ready
CN110717130A (en) * 2018-06-27 2020-01-21 武汉斗鱼网络科技有限公司 Dotting method, dotting device, dotting terminal and storage medium
US20220012208A1 (en) * 2020-07-10 2022-01-13 EMC IP Holding Company LLC Configuring a file server
CN112486770A (en) * 2020-11-27 2021-03-12 北京达佳互联信息技术有限公司 Client dotting reporting method and device, electronic equipment and storage medium
CN113656102A (en) * 2021-08-17 2021-11-16 杭州网易云音乐科技有限公司 Data point burying method and device, storage medium and electronic equipment
CN113805490A (en) * 2021-09-13 2021-12-17 珠海格力电器股份有限公司 Device control method, system, apparatus, device and storage medium
CN113890822A (en) * 2021-10-21 2022-01-04 杭州逗酷软件科技有限公司 Log processing method, log processing device, storage medium and electronic equipment
CN114371888A (en) * 2022-01-14 2022-04-19 中国电信股份有限公司 Method and device for hot updating of log collection plug-in, electronic equipment and readable medium
CN114740748A (en) * 2022-04-29 2022-07-12 青岛海尔科技有限公司 Smart home scene creation method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
KR102076280B1 (en) Method and apparatus for performing communication of electronic device in mobile communicatino system
CN110795179B (en) Display method and electronic equipment
US11030143B2 (en) System for sharing content between electronic devices, and content sharing method for electronic device
KR20170001393A (en) Method for using external device according to context of electronic device and electronic device thereof
CN110032512A (en) A kind of adjustment method of small routine, relevant device and terminal
CN114461240B (en) Software upgrading method, software upgrading system and electronic equipment
CN111897544B (en) Method and device for controlling application program installation
KR102277460B1 (en) Method for sharing a display and electronic device thereof
CN114461239B (en) Software upgrading system and software upgrading method
KR20150066876A (en) Method for controlling an user interface and an electronic device
US11323880B2 (en) Method for wireless connection and electronic device therefor
KR20150057085A (en) Apparatas and method for reducing a power consumption in an electronic device
US10237087B2 (en) Method for controlling transmission speed and electronic device thereof
KR102240526B1 (en) Contents download method of electronic apparatus and electronic appparatus thereof
US20160330251A1 (en) Method and device for sharing connection information in electronic device
WO2023207761A1 (en) Peripheral control method, and electronic device and system
CN116708063A (en) Log reporting method, electronic equipment, cloud server and storage medium
CN114172925B (en) Network distribution method and equipment
CN115767602B (en) Automatic error correction method for equipment protocol subsystem abnormality and electronic equipment
CN117061266B (en) Control method and control device of intelligent household equipment
WO2022218197A1 (en) Cross-device interaction method, and device
CN115080161B (en) Terminal use prompting method, terminal and storage medium
WO2023160217A1 (en) Method for detecting embedded subscriber identity module (esim) card, and terminal device
US20220237362A1 (en) Information display method, device, apparatus, medium, and program product for page element
CN116841686A (en) Application page display method

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