CN113067757B - Information transmission and storage method, device and medium - Google Patents
Information transmission and storage method, device and medium Download PDFInfo
- Publication number
- CN113067757B CN113067757B CN202110265921.0A CN202110265921A CN113067757B CN 113067757 B CN113067757 B CN 113067757B CN 202110265921 A CN202110265921 A CN 202110265921A CN 113067757 B CN113067757 B CN 113067757B
- Authority
- CN
- China
- Prior art keywords
- event
- target
- identification information
- attention
- interest
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 86
- 230000005540 biological transmission Effects 0.000 title claims description 8
- 238000012545 processing Methods 0.000 claims description 23
- 238000012544 monitoring process Methods 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 238000000586 desensitisation Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 6
- 230000006855 networking Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 239000000284 extract Substances 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 108091026890 Coding region Proteins 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012559 user support system Methods 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2805—Home Audio Video Interoperability [HAVI] networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/2803—Home automation networks
- H04L12/2823—Reporting information sensed by appliance or service execution status of appliance services in a home automation network
- H04L12/2827—Reporting to a device within the home network; wherein the reception of the information reported automatically triggers the execution of a home appliance functionality
Landscapes
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
Abstract
The disclosure provides an information sending and storing method, device and medium, and belongs to the technical field of smart home. The information sending method is applied to a first device and comprises the following steps: determining occurrence of a target event of interest, wherein the target event of interest is an event in which a first device and at least one second device participate; determining equipment operation information of the first equipment according to the target attention event; and sending the equipment operation information of the first equipment to a server. The method and the device for sending the equipment running information to the server can enable the first equipment to automatically send the equipment running information to the server when participating in the target attention event.
Description
Technical Field
The present disclosure relates to the field of smart home technologies, and in particular, to an information sending and storing method, apparatus, and medium.
Background
With the popularization of smart devices, a plurality of smart devices may exist in a user's home. In some scenarios, multiple smart devices participate in an event at the same time to provide services to users. For example, multiple smart devices play the same music at the same time, etc.
In order to ensure the service quality, when a plurality of intelligent devices participate in an event at the same time, the device operation information of the intelligent devices needs to be sent to the server, so that developers can check whether the corresponding service is abnormal or whether the service quality level reaches a predetermined standard.
In the related art, when a plurality of intelligent devices participate in an event at the same time, a user is generally required to operate the intelligent devices one by one to enable each intelligent device to send device operation information to a server. If the user forgets to operate the intelligent device, the developer cannot find the device operation information of the intelligent device, and further cannot accurately analyze the service condition. Moreover, the time delay is generally large and the efficiency is low when the device operation information is transmitted to the server under the operation of the user.
Disclosure of Invention
To overcome the problems in the related art to a certain extent, embodiments of the present disclosure provide an information transmission and storage method, apparatus, device, and medium, which enable a first device to automatically transmit information to a server when participating in a target event of interest. The technical scheme is as follows:
in a first aspect, an information sending method is provided, where the method is applied to a first device, and the method includes:
determining occurrence of a target event of interest, the target event of interest being an event in which the first device and at least one second device participate;
determining equipment operation information of the first equipment according to the target attention event;
and sending the equipment running information of the first equipment to a server.
Optionally, the determining the occurrence of the target event of interest includes:
responding to the first device to execute a target instruction, and sending a preset message to the second device, wherein the preset message is used for determining the execution condition of the target instruction by the second device;
determining an occurrence of the target event of interest according to receiving a feedback message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event.
Optionally, the determining the occurrence of the target event of interest includes:
determining that the target event of interest occurred in response to the first device executing a target instruction and receiving a notification message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event.
Optionally, determining, according to the target attention event, device operation information of the first device includes:
determining identification information corresponding to the target attention event according to the occurrence of the target attention event;
and determining the equipment running information of the first equipment according to the identification information and the equipment log of the first equipment.
Optionally, the determining, according to the occurrence of the target attention event, identification information corresponding to the target attention event includes:
acquiring a system timestamp of the target attention event when the target attention event occurs;
determining a user account commonly associated with the first device and the second device;
and determining identification information corresponding to the target attention event according to the system timestamp and the user account.
Optionally, the determining, according to the occurrence of the target attention event, identification information corresponding to the target attention event includes:
and determining identification information corresponding to the target attention event according to the stored corresponding relation between the attention event and the identification information, wherein the identification information in the corresponding relation is generated for the corresponding attention event by the server.
Optionally, prior to the determining the occurrence of the target event of interest, the method comprises: and setting a monitoring event based on the target attention event according to the event attention request.
In a second aspect, an information storage method is provided, which is applied to a server, and includes:
receiving device operation information of a first device, wherein the device operation information is sent by the first device based on occurrence of a target attention event, the device operation information of the first device is determined by the first device according to the target attention event, and the target attention event is an event in which the first device and at least one second device participate;
and storing the equipment running information of the first equipment.
Optionally, the device operation information includes identification information corresponding to the target attention event and a device log of the first device.
Optionally, the identification information corresponding to the target attention event is determined based on a user account and a system timestamp of the first device when the target attention event occurs, where the user account is a user account associated with the first device and the second device.
Optionally, the method further comprises:
receiving device operation information of the second device, where the device operation information of the second device is sent by the second device based on the occurrence of the target attention event, and the device operation information of the second device includes identification information corresponding to the target attention event and a device log of the second device;
and storing the device log of the second device in the same storage position as the device log of the first device according to the identification information corresponding to the target attention event.
Optionally, before receiving the device running information of the first device, the method further includes:
determining a user account commonly associated with the first device and the second device;
acquiring a system time stamp;
generating identification information of the target attention event according to the user account and the system timestamp;
and sending the identification information of the target attention event to the first device and the second device.
Optionally, the generating identification information of the target attention event according to the user account and the system timestamp includes:
desensitizing the user account to obtain a first character string;
carrying out serialization conversion processing on the system timestamp to obtain a second character string;
and splicing the first character string and the second character string to obtain the identification information corresponding to the target attention event.
Optionally, the method further comprises:
sending an event attention request, wherein the event attention request is used for indicating to set a monitoring event based on at least one attention event, and the target attention event is one of the at least one attention event.
In a third aspect, an information transmitting apparatus is provided, the apparatus including:
a first determining module, configured to determine occurrence of a target attention event, where the target attention event is an event in which the first device and at least one second device participate;
the second determining module is used for determining equipment operation information of the first equipment according to the target attention event;
and the sending module is used for sending the equipment operation information of the first equipment to a server.
Optionally, the first determining module is configured to send a preset message to the second device in response to the first device executing a target instruction, where the preset message is used to determine an execution condition of the target instruction by the second device; determining an occurrence of the target event of interest according to receiving a feedback message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event.
Optionally, the first determining module is configured to determine that the target attention event occurs in response to the first device executing a target instruction and receiving a notification message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event.
Optionally, the second determining module is configured to determine, according to the occurrence of the target attention event, identification information corresponding to the target attention event; and determining the equipment running information of the first equipment according to the identification information and the equipment log of the first equipment.
Optionally, the second determining module is further configured to obtain a system timestamp of when the target attention event occurs; determining a user account commonly associated with the first device and the second device; and determining identification information corresponding to the target attention event according to the system timestamp and the user account.
Optionally, the second determining module is further configured to determine, according to a correspondence between the stored attention event and the identification information, the identification information corresponding to the target attention event, where the identification information in the correspondence is generated by the server for the corresponding attention event.
Optionally, the apparatus further includes a setting module, configured to set, according to the event attention request, a monitoring event based on the target attention event before it is determined that the target attention event occurs.
In a fourth aspect, there is provided an information storage apparatus, the apparatus comprising:
a receiving module, configured to receive device operation information of a first device, where the device operation information is sent by the first device based on an occurrence of a target attention event, the device operation information of the first device is determined by the first device according to the target attention event, and the target attention event is an event in which the first device and at least one second device participate;
and the storage module is used for storing the equipment operation information of the first equipment.
Optionally, the device running information includes identification information corresponding to the target attention event and a device log of the first device.
Optionally, the identification information corresponding to the target attention event is determined based on a user account and a system timestamp of the first device when the target attention event occurs, where the user account is a user account associated with the first device and the second device.
Optionally, the receiving module is further configured to receive device operation information of the second device, where the device operation information of the second device is sent by the second device based on the occurrence of the target event of interest, and the device operation information of the second device includes identification information corresponding to the target event of interest and a device log of the second device;
the storage module is further configured to store the device log of the second device in the same storage location as the device log of the first device according to the identification information corresponding to the target attention event.
Optionally, the apparatus further comprises:
the identification information generation module is used for determining a user account which is jointly associated with the first equipment and the second equipment before receiving equipment operation information of the first equipment; acquiring a system time stamp; generating identification information of the target attention event according to the user account and the system timestamp;
a sending module, configured to send the identification information of the target attention event to the first device and the second device.
Optionally, the identification information generating module is further configured to perform desensitization processing on the user account to obtain a first character string;
carrying out serialization conversion processing on the system time stamp to obtain a second character string;
and splicing the first character string and the second character string to obtain identification information corresponding to the target attention event.
Optionally, the apparatus further comprises:
a sending module, configured to send an event attention request, where the event attention request is used to instruct setting of a listening event based on at least one attention event, and the target attention event is one of the at least one attention event.
In a fifth aspect, an information transmitting apparatus is provided, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the information transmission method according to the first aspect.
In a sixth aspect, there is provided an information storage apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the information storage method of the second aspect.
In a seventh aspect, a computer-readable storage medium is provided, wherein instructions of the computer-readable storage medium, when executed by a processor of a computer device, enable the computer device to execute the information sending method of the first aspect or the information storage method of the second aspect.
The technical scheme provided by the embodiment of the disclosure has the following beneficial effects:
in the embodiment of the present disclosure, when the first device determines that a target event of interest involving the first device and the at least one second device occurs, the device operation information of the first device may be determined according to the target event of interest and the device operation information may be sent to the server. Therefore, the first device can automatically send the device operation information to the server when the target attention event occurs, manual operation of a user is not needed, the condition that the device operation information is omitted in sending can be avoided, and the integrity of reporting the device operation information is improved. And when the target attention event occurs, the first device can send the device operation information to the server in time, and the time delay is low.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is apparent that the drawings in the description below are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings may be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an application scenario provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of an information sending method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of an information storage method provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart of an information sending and storing method provided by an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating another identification information determination process in an information transmission and storage method provided by an embodiment of the present disclosure;
fig. 6 is a block diagram of an information transmitting apparatus according to an embodiment of the present disclosure;
fig. 7 is a block diagram of an information storage device according to an embodiment of the present disclosure;
fig. 8 is a block diagram of an information transmitting apparatus according to an embodiment of the present disclosure;
fig. 9 is a block diagram of an information storage device according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of an embodiment of the present disclosure. As shown in fig. 1, the application scenario includes a server 10 and at least two smart devices 11. Each smart device 11 is connected to the server 10 via a network, and can perform data interaction with the server via the network. For example, each smart device 11 may transmit device operation information and the like to the server via the network, and the server 10 may transmit configuration information and the like to the smart device 11.
In some embodiments, these smart devices 11 may each be equipped with voice playing functionality. The smart device 11 having the voice playing function may be a mobile device or a fixed device of a smart phone, a smart tablet, a smart wearable device, a smart voice tv, a smart speaker, a smart voice alarm clock, or the like.
For an intelligent device with a voice playing function, the event participating in the voice playing function can be a voice playing event. For example, a voice play event corresponding to a scene such as a nearby wake-up, a stereo play, a full house play, etc. Developers need to pay attention to the operating state of each smart device 11 when participating in these events in order to continually optimize the quality of service. Therefore, in the embodiment of the present disclosure, an event that needs attention and is simultaneously participated in by at least two smart devices is referred to as an attention event.
The following takes the voice playing event in these scenarios as an example to exemplarily explain an application scenario of the embodiment of the present disclosure. The disclosed embodiments may also be applied to other events in which at least two smart devices are simultaneously participating.
For example, suppose the event of interest is a voice play event in a nearby wake up scenario. Ideally, when the user issues a wake-up command, only the smart device closest to the user should respond. If there are multiple smart devices 11 responding at the same time, this indicates that multiple devices are awake at the same time. In this case, the developer may check the reason for the simultaneous wake-up according to the device operation information of the plurality of smart devices 11 that are simultaneously woken up.
For another example, if the event of interest is a voice playing event in a whole-house playing scene, when a plurality of smart devices 11 play music at the same time, the developer may analyze whether the playing of the plurality of smart devices 11 is synchronized, whether there is a playing jam, and the like, based on the device operation information of the plurality of smart devices 11 participating in the whole-house playing.
For another example, if the event of interest is a voice playing event in a stereo playing scene, the developer may analyze the stereo playing effect according to the device operation information of the plurality of smart devices 11 participating in the stereo playing.
Fig. 2 is a flowchart of an information sending method provided by an embodiment of the present disclosure, where the method is executed by a first device, and the first device may be any one of the intelligent devices 11 in fig. 1. Referring to fig. 2, the method comprises the steps of:
in step 101, the occurrence of a target event of interest is determined.
The target attention event is an event in which a first device and at least one second device participate, that is, the target attention event is participated by a plurality of intelligent devices, and the second device is another intelligent device participating in the target attention event except the first device.
In some possible embodiments, the first device and the second device may be any one of the smart devices 11 in a distributed environment. The distributed environment may be a distributed networking environment or a distributed non-networking environment.
The distributed networking environment can be understood as that a plurality of intelligent devices (such as an intelligent voice television, an intelligent sound box and an intelligent voice alarm clock) are in the same space, and in the same local area network, the intelligent devices can recognize each other and simultaneously access the same cloud server. Distributed networking such as mesh networking. In this scenario, there may be a plurality of smart devices that are linked together to provide services such as wake-up nearby, stereo, full-house play, and the like. For different services, the running state needs to be monitored to continuously optimize the service quality. If aiming at the environment, after the user calls the awakening words, the intelligent voice television and the intelligent alarm clock are awakened, and under the condition that the plurality of devices are awakened simultaneously, the system logs of the intelligent voice television and the intelligent voice alarm clock need to be fed back to investigate the reason of awakening simultaneously.
A distributed non-networking environment may be understood as being within the same space and within the same lan, but the plurality of smart devices are not identified to each other and need to communicate with each other through commonly connected routers.
In the embodiment of the present disclosure, each smart device is configured with at least one attention event, and the target attention event is one of the at least one attention event, for example, the currently occurring attention event is the target attention event.
Because each intelligent device of the user is accessed to the same local area network, data communication can be carried out between the intelligent devices through the local area network. Thus, in some examples, the first device may be in data communication with other smart devices to determine that a target event of interest occurred.
In step 102, device operation information of the first device is determined according to the target attention event.
After the first device determines that the target attention event occurs, the first device determines device operation information related to the target attention event according to the specific target attention event. Since the device log may generally record the operation data of the device, in the embodiment of the present disclosure, the device operation information may include a part of content in the device log or the device log, for example, a part of content in the device log or a whole device log related to a module related to the target attention event of the device.
In step 103, device operation information of the first device is transmitted to the server.
In the embodiment of the disclosure, when the first device determines that a target attention event involving the first device and at least one second device occurs, the first device determines device operation information related to the target attention event according to the occurred target attention event, and sends the device operation information to the server. Therefore, the first device can automatically send the device running information to the server when the target attention event occurs, manual operation of a user is not needed, the condition that the device running information is omitted in sending can be avoided, and the completeness of reporting the device running information is improved. And when the target attention event occurs, the first device can send the device operation information to the server in time, and the time delay is low.
Optionally, the determining the occurrence of the target event of interest includes:
responding to the first device to execute a target instruction, and sending a preset message to the second device, wherein the preset message is used for determining the execution condition of the target instruction by the second device;
determining an occurrence of the target event of interest according to receiving a feedback message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event. Optionally, the determining the occurrence of the target event of interest includes:
determining that the target event of interest occurred in response to the first device executing a target instruction and receiving a notification message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event. Optionally, determining, according to the target attention event, device operation information of the first device includes:
determining identification information corresponding to the target attention event according to the occurrence of the target attention event;
and determining the equipment operation information of the first equipment according to the identification information and the equipment log of the first equipment.
Optionally, the determining, according to the occurrence of the target attention event, identification information corresponding to the target attention event includes:
acquiring a system timestamp when the target attention event occurs;
determining a user account commonly associated with the first device and the second device;
and determining identification information corresponding to the target attention event according to the system timestamp and the user account.
Optionally, the determining, according to the occurrence of the target attention event, identification information corresponding to the target attention event includes:
and determining identification information corresponding to the target attention event according to the stored corresponding relation between the attention event and the identification information, wherein the identification information in the corresponding relation is generated for the corresponding attention event by the server.
Optionally, prior to the determining the occurrence of the target event of interest, the method comprises: and setting a monitoring event based on the target attention event according to the event attention request.
It should be noted that the foregoing steps 101 to 103 and the foregoing optional steps may be combined arbitrarily.
Fig. 3 is a flowchart of an information storage method provided by an embodiment of the present disclosure, where the method is executed by the server 10 in fig. 1. Referring to fig. 3, the method includes the steps of:
in step 201, device operation information of a first device is received, where the device operation information of the first device is sent by the first device based on occurrence of a target event of interest, the device operation information of the first device is determined by the first device according to the target event of interest, and the target event of interest is an event in which the first device and at least one second device participate.
In step 202, device operational information of the first device is stored.
In the embodiment of the disclosure, once the first device determines that the target event of interest participated in by the first device and the at least one second device occurs, the first device determines information related to the target event of interest and sends device operation information to the server. Therefore, the first device can automatically send the device running information to the server when the target attention event occurs, manual operation of a user is not needed, the condition that the device running information is omitted in sending can be avoided, and the integrity of the reported device running information is improved. And when the target attention event occurs, the first device can send the device operation information to the server in time, and the time delay is low.
Optionally, the device operation information includes identification information corresponding to the target attention event and a device log of the first device.
Optionally, the identification information corresponding to the target attention event is determined based on a user account and a system timestamp of the first device when the target attention event occurs, where the user account is a user account associated with the first device and the second device.
Optionally, the method further comprises:
receiving device operation information of the second device, where the device operation information of the second device is sent by the second device based on the occurrence of the target attention event, and the device operation information of the second device includes identification information corresponding to the target attention event and a device log of the second device;
and storing the device log of the second device in the same storage position as the device log of the first device according to the identification information corresponding to the target attention event.
Optionally, before receiving the device running information of the first device, the method further includes:
determining a user account commonly associated with the first device and the second device;
acquiring a system time stamp;
generating identification information of the target attention event according to the user account and the system timestamp;
and sending the identification information of the target attention event to the first device and the second device.
Optionally, the generating identification information of the target attention event according to the user account and the system timestamp includes:
desensitizing the user account to obtain a first character string;
carrying out serialization conversion processing on the system time stamp to obtain a second character string;
and splicing the first character string and the second character string to obtain the identification information corresponding to the target attention event.
Optionally, the method further comprises:
sending an event attention request, wherein the event attention request is used for indicating to set a listening event based on at least one attention event, and the target attention event is one of the at least one attention event.
It should be noted that, the foregoing steps 201 to 202 and the foregoing optional steps may be combined arbitrarily.
Fig. 4 is a flowchart of an information sending and storing method provided by an embodiment of the present disclosure. The method is executed by a first device, a second device and a server together, wherein the first device and the second device are intelligent devices 11 in fig. 1, and the server is a server 10 in fig. 1. Referring to fig. 4, the method includes the steps of:
in step 301, the first device sends device information to the server.
Illustratively, the device information may include one or more of a user account, device capability indication information, and device identification information.
The user account is associated with the first device and can reflect user information of the first device. The device capability indication information may reflect device capabilities supported by the first device including, but not limited to, support for near wake-up, support for full-house playback, and support for stereo playback. The device identification information is used to indicate the identity of the device. Illustratively, the device identification includes at least one of a device MAC (Media Access Control) address, a device SN (Serial Number), and a device model.
After being started, the first equipment is accessed to the same indoor local area network, establishes network connection with the server through the local area network, and uploads the equipment information of the first equipment to the server.
Accordingly, the server receives the device information sent by the first device. If each intelligent device executes the step 301 during access, the server receives device information sent by a plurality of intelligent devices. The user accounts associated with these smart devices may be the same or different.
In one possible implementation, the device capability indication information is a binary coded sequence. Each bit in the binary-coded sequence corresponds to a different device capability. And when the value of the ith bit in the binary coding sequence is 0, the device capability corresponding to the bit is not supported. And when the value of the ith bit in the binary coding sequence is 1, the device capability corresponding to the bit is supported.
For example, the binary coded sequence includes three bits, a first bit corresponding to wake-up nearby, a second bit corresponding to full room play, and a third bit corresponding to stereo play. The equipment capability number uploaded to the server by one intelligent equipment is 110, and the intelligent equipment supports nearby awakening and whole-house playing and does not support stereo playing.
In another possible embodiment, the device capability indication information includes at least one number, each number corresponding to a device capability. And the intelligent equipment sends the digital number corresponding to the supported equipment capability to the server as equipment capability indication information.
For example, the device capabilities represented by the numbers 1, 2, 3 are nearby wake-up, full room play, and stereo, respectively. When the number sent by the intelligent device comprises 1 and 2, the intelligent device supports waking up nearby and playing in the whole house.
In step 302, the server generates an event attention request based on the device information of the first device.
In some examples, this step 302 includes: the server groups the first equipment based on the user account of the first equipment; and generating an event attention request according to the equipment information of each intelligent equipment in the group to which the first equipment belongs.
Since the multiple intelligent devices sending the device information to the server in step 301 may correspond to different users, generally, multiple intelligent devices under the same user account will participate in the same play event. Therefore, before generating the event attention request, the server divides the smart devices under the same user account into a group according to the user accounts of the smart devices.
The server determines the device capability of the intelligent device according to the device capability indication information of each intelligent device in the group to which the first device belongs, and then generates an event attention request according to the device capability of the intelligent device.
In an embodiment of the present disclosure, the event attention request is used to indicate setting of a listening event based on at least one attention event. The events of interest set by the event interest request may be a subset of events that the same set of smart devices supports co-attending. In this way, events needing attention at present can be set according to actual needs.
For example, in some examples, the server generates an event attention request for device capabilities that are supported by at least two smart devices in all of the same group of smart devices.
Illustratively, the server determines that at least two smart devices in the same group of smart devices support nearby wake-up, at least two smart devices support full-house play, and at least two smart devices support stereo at the same time, generates a wake-on-simultaneous event request, a stereo play-on-attention event request, and a play-on-full-house event request.
For another example, in other examples, the server generates the event attention request for only a portion of the device capabilities of the same group of smart devices that are supported by at least two smart devices. For example, the server determines that there are at least two smart devices in the same group of smart devices that support wake-up nearby, at least two smart devices that support full-house play, and at least two smart devices that support stereo simultaneously, and generates only a request to focus on a simultaneous wake-up event.
Through this step 302, an event attention request can be generated according to the capability of the smart device, and when the attention event needs to be adjusted, this step 302 can be performed again to dynamically adjust the attention event as needed.
It should be noted that this step 302 is an optional step, for example, when all the smart devices have the same device capability and focus on the event corresponding to all the device capabilities by default, this step 302 may be omitted.
In step 303, the server generates identification information for at least one event of interest, where the identification information corresponding to different events of interest is different.
For any event of interest, the server generates identification information corresponding to the event of interest through a user account and a system timestamp which are jointly associated with the first device and the second device. Illustratively, the server generates the identification information in the following manner:
firstly, a server carries out desensitization processing on user accounts associated with first equipment and second equipment to obtain a first character string.
By desensitizing the user account, the user account is unique and is not repeated with other user accounts. Optionally, the desensitization serialization processing performed by the server on the user account may be performed by using SHA256 encryption.
The desensitization method for performing desensitization serialization processing on the user account in the embodiment of the present disclosure is not limited, and desensitization methods that can meet the requirement of desensitization of the user account in the embodiment of the present disclosure may be used.
And secondly, the server carries out serialization conversion processing on the current system time stamp to obtain a second character string.
The current system time stamp is the corresponding system time when the server acquires the system time stamp action. The serialization conversion processing refers to converting the system time stamp in the form of an integer acquired by the server into a character string form.
Because the system timestamp of the server is in an integer form, and the user account subjected to desensitization is in a character string form, the system timestamp is converted into a data form which is the same as that of the desensitized user account, and data processing is facilitated.
And thirdly, splicing the first character string and the second character string by the server to obtain identification information corresponding to the target attention event.
The splicing mode can be as follows: the second string is added after the last character of the first string. For example, the first character string is "abc", the second character string is "ABCDEFG", and the identification information obtained by splicing is "ABCDEFGabc".
Or, the splicing mode may be: the second string is added before the first character of the first string. For example, the first character string is "abc", the second character string is "ABCDEFG", and the identification information obtained by splicing is "abcabcabcadfg".
The two splicing modes are simple and occupy less resources. It should be noted that, in other embodiments, the splicing manner may also be to insert the second character string between the characters of the first character string according to a certain rule. For example, the first character string is "abc", the second character string is "ABCDEFG", and the identification information obtained by splicing is "aabcefgbc".
When a plurality of attention events exist, the first step and the third step are adopted in sequence to generate identification information corresponding to each attention event. In this way, because the system timestamps obtained when the server generates the identification information corresponding to each attention event are different, the identification information corresponding to different attention events is also different in the plurality of attention events corresponding to the plurality of intelligent devices corresponding to the same user account. That is, each piece of identification information is used to uniquely identify an attention event corresponding to the same group of smart devices.
For example, the device capabilities supported by the three smart devices a, B, and C include nearby wake-up, full-house play, and stereo play, and the corresponding attention events may be simultaneous wake-up, full-house play, and stereo play. And repeating the first step to the third step for three times to obtain three different identification information, and taking the three different identification information as identification information corresponding to nearby awakening, identification information corresponding to full-house playing and identification information corresponding to stereo playing.
Illustratively, the current system timestamp is on the order of milliseconds. So as to ensure that the identification information corresponding to different attention events is different.
It should be noted that, in the embodiment of the present disclosure, the execution order of the first step and the second step is not limited, and the first step and the second step may be executed sequentially or synchronously.
In step 304, the server sends identification information and an event attention request to the first device.
Correspondingly, the first device receives the identification information and the event attention request sent by the server, and sets a monitoring event based on the corresponding attention event according to the event attention request.
In one possible implementation, the server sends identification information and an event attention request corresponding to a plurality of attention events to each intelligent device. Correspondingly, after receiving a plurality of identification information and event attention requests sent by the server, the intelligent device sets a monitoring event based on the attention event and records identification information corresponding to the target attention event by combining the capability of the intelligent device.
For example, a plurality of smart devices a, B, C of a user support device capabilities including nearby wake-up, full-house play, and stereo play. According to the foregoing step 302, the server-generated event interest request may include: an attention-simultaneous-wakeup event request, an attention-whole-house play event request, and an attention-stereo play event request. According to the foregoing step 303, the identification information generated by the server includes the nearby wake-up identification information, the whole-house play identification information, and the stereo play identification information, and the server sends the nearby wake-up identification information, the whole-house play identification information, and the stereo play identification information, as well as the request for focusing on the simultaneous wake-up event, the request for focusing on the whole-house play event, and the request for focusing on the stereo play event to each of the smart devices a, B, and C.
After receiving a plurality of identification information and event attention requests sent by a server, the intelligent devices A, B and C combine the capabilities of the devices thereof, and if nearby awakening is supported, record the nearby awakening identification information and set a monitoring event based on a simultaneous awakening event; if the whole-house playing is supported, recording whole-house playing identification information and setting a monitoring event based on the whole-house playing event; and if the stereo play is supported, recording the stereo play identification information and setting a monitoring event based on the stereo play event.
For example, the smart device a supports the wake-up-nearby event and the full-house play, records the wake-up-nearby identification information and the full-house play identification information in the identification information sent by the server, and sets a listening event based on the wake-up-simultaneously event and the full-house play event. And if the intelligent device B supports full-house playing and stereo, recording full-house playing identification information and stereo playing identification information in the identification information sent by the server, and setting monitoring events based on full-house playing events and stereo playing events. And if the intelligent device C supports near wake-up and stereo, recording the near wake-up identification information and the stereo play identification information in the identification information sent by the server, and setting a monitoring event based on a simultaneous wake-up event and a stereo play event.
In another possible implementation manner, the server sends the corresponding identification information and the event attention request to each intelligent device according to the device capability supported by each intelligent device. Correspondingly, each intelligent device directly records the identification information sent by the server and sets the monitoring event of the concerned event corresponding to the concerned event request based on the event concerned.
For example, the server, according to the fact that the smart device a supports the nearby wake-up and the whole-house play, sends the nearby wake-up identification information, the whole-house play identification information, the request for focusing on the simultaneous wake-up event, and the request for focusing on the whole-house play event to the smart device a. The server supports full-house playing and stereo playing according to the intelligent device B, and sends full-house playing identification information, stereo playing identification information, a request for paying attention to a full-house playing event and a request for paying attention to a stereo playing event to the intelligent device B. The server supports near wake-up and stereo play according to the intelligent device C, and sends near wake-up identification information, stereo play identification information, a request for focusing on a simultaneous wake-up event and a request for focusing on a stereo play event to the intelligent device C.
Through step 304, the intelligent devices of the user can have the same identification information and events of interest for the same device capabilities.
In step 305, the first device determines whether a target event of interest has occurred.
If the target attention event occurs, step 306 is executed, and if the target attention event does not occur, the current flow is exited. Here, the target event of interest may be any one of events of interest for which the first device has set a listening event.
Wherein the first device may determine that the target event of interest occurred in at least one of the following ways.
The method I comprises the following steps: the first device determines that the target attention event occurs based on a trigger instruction of the target attention event.
The trigger instruction of the target attention event may be a control instruction issued by a user through operating a mobile phone APP, a control instruction generated based on a physical key or a virtual key of the first device being touched, or a control instruction generated based on a voice instruction or an air-separating gesture received by the first device. For example, when the first device receives a full-house play control command or a stereo play control command issued by a user through a mobile phone APP, it is determined that a full-house play event or a stereo play event occurs.
The second method comprises the following steps: the method comprises the steps that a first device responds to a first device to execute a target instruction, a preset message is sent to a second device, and the target attention event is determined according to the fact that a feedback message indicating that the second device executes the target instruction is received.
The preset message is used for determining the execution condition of the second device on the target instruction.
For example, the first device determines that it executes a wake-up instruction nearby, that is, the first device determines that the device itself performs a response, and sends a preset query to the other intelligent devices to determine whether to perform a response, and when receiving a feedback message from the other intelligent devices, the first device indicates that the intelligent devices also perform a response, and determines that a wake-up event occurs at the same time.
The third method comprises the following steps: the first device determines that a target event of interest occurred in response to the first device executing the target instruction and receiving a notification message indicating that the second device has executed the target instruction.
After the first device executes the target instruction, a notification message that the first device has executed the target instruction is sent to other intelligent devices, and after the other intelligent devices execute the target instruction, a notification message that the target instruction has been executed is also sent to the first device. For example, the first device executes the nearby wake-up command and receives a notification message sent by the other smart devices that has responded to the nearby wake-up command, and determines that a simultaneous wake-up event occurs.
In the second and third modes, the target operation is an operation corresponding to the target attention event, and the second device is another intelligent device except the first device in the generated target attention event.
For corresponding simultaneous play events in a nearby wake-up scenario, a second mode and a third mode may be used to determine whether a corresponding attention event occurs.
In step 306, the first device determines the identification information corresponding to the target attention event according to the stored correspondence between the attention event and the identification information.
And the first equipment selects the identification information corresponding to the target attention event from the recorded identification information corresponding to the attention event.
In step 307, the first device determines device operation information of the first device according to the identification information and the device log of the first device.
The first device acquires a device log of the first device, and then determines the identification information corresponding to the target attention event and the device log of the first device as the device operation information of the first device.
In some possible implementations, the device log of the first device includes all logs saved by the first device.
Generally, each smart device will store a log of a set duration, and the logs outside the set duration will be covered by new logs. Illustratively, the set time period may be one or two days. Since the data volume of the log in the set time length is small, all logs saved by the first device can be directly acquired. All logs are directly obtained, analysis processing by intelligent equipment is not needed, and the occupation of computing resources of the intelligent equipment is less.
In other possible embodiments, the device log obtained by the first device includes a portion of the total log saved by the first device. For example, information corresponding to the target event of interest in all logs is acquired. Therefore, the data volume sent to the server can be reduced, and occupied network resources are reduced.
For example, when the occurrence of a simultaneous wake-up event is detected, the smart devices participating in the simultaneous wake-up event extract device operation information related to the simultaneous wake-up event, such as a user's voice command, device wake-up time, and other key information. The developer can analyze the reason why the plurality of intelligent devices are awakened simultaneously according to the device logs uploaded by the intelligent devices participating in the event of awakening simultaneously.
For another example, when detecting that a full-house play event occurs, each smart device participating in the full-house play wake-up event extracts device operation information related to the full-house play event, such as time for starting playing music, frequency of playing music, and other key information. The developer can analyze whether the playing of the plurality of intelligent devices is synchronous or not, whether the playing is blocked or not and the like according to the device logs uploaded by the intelligent devices participating in the whole house playing.
For another example, when a stereo play event is detected to occur, each smart device participating in the stereo play event extracts device operation information related to the stereo play event, such as key information such as a decoding rate. The developer can analyze the stereo playing effect of the plurality of intelligent devices according to the device logs uploaded by the plurality of intelligent devices participating in the stereo playing event.
In step 308, the first device sends device operation information of the first device to the server.
Optionally, the device operation information further includes device information. And the development personnel can conveniently determine the detailed information of the intelligent equipment corresponding to the equipment log according to the equipment information.
Before this step 308, the device log may be compressed to further reduce the amount of data transmitted and save network resources.
Through steps 305 to 308, when the first device determines that a certain target event of interest occurs, the device log and identification information corresponding to the target event of interest are automatically uploaded to the server. On one hand, the efficiency of uploading data can be improved, meanwhile, omission of data uploading through manual operation can be avoided, and the integrity of the uploaded data is improved; on the other hand, for the target attention event, the device logs uploaded by the intelligent devices use the same identification information.
Accordingly, the server receives device operation information of the first device.
In an embodiment of the present disclosure, the method further includes: and the second equipment sends the equipment running information of the second equipment to the server. Accordingly, the server receives the device running information of the second device sent by the second device. The device operation information of the second device is sent by the second device based on the occurrence of the target attention event, and the device operation information of the second device includes identification information corresponding to the target attention event and a device log of the second device.
Since the time difference value of the same target attention event detected by each intelligent device is not too large, the server should receive the device operation information sent by all the intelligent devices participating in the target attention event together within a certain time period after receiving the first device operation information. Therefore, in the embodiment of the present disclosure, the server may receive the device operation information sent by each smart device in the following manner:
and the server receives the device logs sent by the intelligent devices participating in the same target attention event in a set time window. Setting the starting point of the time window as the time of receiving the equipment log of the first intelligent equipment corresponding to the target attention event, and setting the duration corresponding to the time window as the set duration.
The setting of the duration of the set time window is related to the network condition between the intelligent devices and the server and the number of the intelligent devices participating in a certain target attention event. For example, the time window may be set to a range of 5 minutes to 10 minutes.
And when the set time window duration is reached, the server judges that the data uploaded by all the intelligent devices in the target attention event are received.
In step 309, the server stores the device logs corresponding to the same identification information in the same storage location.
The server extracts the identification information and the equipment log compressed packet from the received equipment operation information sent by the first equipment and the second equipment, and then stores the equipment log compressed packets corresponding to the same identification information in the same storage position. E.g., on a storage device of the same server, or the same folder, etc.
Because the identification information uploaded by the intelligent devices participating in the same concerned event is the same, the device logs of the intelligent devices corresponding to the same identification information are stored in the same storage position, and therefore developers can conveniently and quickly retrieve the device logs of all the intelligent devices participating in the concerned event according to the identification information.
Optionally, when the device operation information further includes device information, the method further includes: before storing the device log of the second device in the same storage position as the device log of the first device, renaming the device log compressed packet of each intelligent device by the server according to the device information uploaded by each intelligent device. The device information includes at least one of a device MAC, a device SN, and a device model.
Illustratively, the method for renaming the device log by the server comprises the following steps: and performing character string splicing on the equipment SN and the equipment model, and using the spliced character strings as new names of the equipment log compression packet files.
The device log compressed packet is renamed through the device information of the intelligent device, so that a developer can conveniently and quickly identify which device logs corresponding to the intelligent devices are contained in the retrieved device logs.
Optionally, the method may further include: the server generates new identification information for the target attention event; and sending the new identification information to the corresponding intelligent equipment.
The server firstly obtains a current system timestamp, converts the current system timestamp into a character string in a serialized mode, splices the character string with the desensitized user account, and uses the spliced character string as new identification information corresponding to the equipment capacity corresponding to the occurred attention event. For related matters, reference is made to the aforementioned step 303, and a detailed description is omitted here.
After receiving new identification information corresponding to the target attention event sent by the server, each intelligent device records the new identification information and takes the new identification information as the identification information when the target attention event happens next time.
In this way, when the same target attention event occurs at different times, the corresponding identification information is different. And the developer can quickly match the device logs of each intelligent device in a certain occurring target attention event according to the unique identification information.
In the embodiment of the present disclosure, once the first device determines that the target attention event occurs, the first device may acquire device operation information and send the device operation information to the server. Therefore, the first device can automatically send the device running information to the server when the target attention event occurs, manual operation of a user is not needed, the missing situation can be avoided, and the integrity of the device running information is improved. And when the target attention event occurs, the first device can send the device operation information to the server in time, and the time delay is low.
In the embodiment shown in fig. 4, the identification information corresponding to the target attention event is generated by the server, and in other embodiments, the identification information corresponding to the target attention event may also be generated by the smart device. In this case, the above-described steps 303 to 306 may be replaced with steps 401 to 403 in fig. 5.
In step 401, the server sends an event attention request to the first device.
Correspondingly, the first device receives an event attention request sent by the server, and sets a monitoring event based on the corresponding attention event according to the event attention request.
In step 402, the first device determines whether a target event of interest has occurred.
If the target attention event occurs, step 403 is executed, and if the target attention event does not occur, the current flow is exited.
For related matters, reference is made to the aforementioned step 305, and a detailed description is omitted here.
In step 403, the first device determines identification information corresponding to the target attention event.
In a possible implementation manner, the first device generates identification information corresponding to the target attention event in the following manner, and includes the identification information in the sent device operation information.
The method comprises the following steps of firstly, obtaining a system time stamp when a target attention event occurs.
And secondly, determining a user account which is jointly associated with the first device and the second device participating in the target attention event.
Since the target attention event usually occurs to each smart device under the same user account, the first device may determine the user account associated with the first device as a user account associated with the first device and the second device participating in the target attention event.
And thirdly, generating identification information corresponding to the target attention event according to the system timestamp and the user account.
The process of generating the identification information corresponding to the target attention event by the first device is the same as the process of generating the identification information by the server in the aforementioned step 303, and a detailed description thereof is omitted.
In some possible embodiments, the first device is a designated device, and when it is determined that the target attention event occurs, the first device generates identification information and sends the identification information to the second device, so that the device operation information sent by the first device and the device operation information sent by the second device both include the identification information.
In other possible embodiments, the identification information corresponding to the target attention event is generated by a specific device in the second device, in which case step 403 includes: the first device receives the identification information sent by a certain specified device in the second devices, and takes the received identification information as the identification information corresponding to the target attention event.
In another possible implementation manner, the first device and the second device both generate identification information according to the foregoing manner, and send the identification information generated by themselves to other intelligent devices in the same group, and all devices (including the first device and the second device) in the group determine, according to the same rule, one piece of target identification information from all identification information as identification information corresponding to a target event of interest to be carried in subsequently sent device operation information.
Illustratively, the same rule includes, but is not limited to, the identification information with the earliest generation time as the target identification information, and the like, and the rule may be set according to actual needs, which is not limited by this disclosure.
Fig. 6 is a block diagram of an information transmitting apparatus 600 according to an embodiment of the present disclosure. As shown in fig. 6, the apparatus includes: a first determining module 601, a second determining module 602, and a sending module 603.
The first determining module 601 is configured to determine occurrence of a target event of interest, where the target event of interest is an event in which the first device and at least one second device participate. The second determining module 602 is configured to determine device operation information of the first device according to the target attention event. The sending module 603 is configured to send the device operation information of the first device to a server.
Optionally, the first determining module 601 is further configured to send a preset message to the second device in response to the first device executing a target instruction, where the preset message is used to determine an execution condition of the target instruction by the second device; determining an occurrence of the target event of interest based on receiving a feedback message indicating that the second device has executed the target instruction. And the target instruction is an instruction corresponding to the target attention event.
Optionally, the first determining module 601 is further configured to determine that the target attention event occurs in response to the first device executing the target instruction and receiving a notification message indicating that the second device has executed the target instruction. And the target instruction is an instruction corresponding to the target attention event.
Optionally, the second determining module 602 is further configured to determine, according to the occurrence of the target attention event, identification information corresponding to the target attention event; and determining the equipment running information of the first equipment according to the identification information and the equipment log of the first equipment.
Optionally, the second determining module 602 is further configured to obtain a system timestamp of when the target attention event occurs; determining a user account commonly associated with the first device and the second device; and determining identification information corresponding to the target attention event according to the system timestamp and the user account.
Optionally, the second determining module 602 is further configured to determine, according to a stored correspondence between the attention event and the identification information, the identification information corresponding to the target attention event, where the identification information in the correspondence is generated by the server for the corresponding attention event.
Optionally, the apparatus further includes a setting module 604, configured to set a monitoring event based on the target attention event according to the event attention request before determining that the target attention event occurs.
It should be noted that: in the information transmitting apparatus provided in the above embodiment, only the division of the above functional modules is taken as an example when information is transmitted, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the information sending apparatus provided in the above embodiment and the information sending method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiment, and are not described herein again.
Fig. 7 is a block diagram of an information storage device 700 according to an embodiment of the present disclosure. As shown in fig. 7, the apparatus includes: a receiving module 701 and a storing module 702.
The receiving module 701 is configured to receive device operation information of a first device, where the device operation information is sent by the first device based on occurrence of a target attention event, the device operation information of the first device is determined by the first device according to the target attention event, and the target attention event is an event in which the first device and at least one second device participate. The storage module 702 is configured to store device operation information of the first device.
Optionally, the device operation information includes identification information corresponding to the target attention event and a device log of the first device.
Optionally, the identification information corresponding to the target attention event is determined based on a user account and a system timestamp of the first device when the target attention event occurs, where the user account is a user account associated with the first device and the second device.
Optionally, the receiving module 701 is further configured to receive device operation information of the second device, where the device operation information of the second device is sent by the second device based on the occurrence of the target event of interest, and the device operation information of the second device includes identification information corresponding to the target event of interest and a device log of the second device;
the storage module 702 is further configured to store the device log of the second device in the same storage location as the device log of the first device according to the identification information corresponding to the target attention event.
Optionally, the apparatus further comprises: an identification information generating module 703 and a sending module 704. An identification information generating module 703, configured to determine, before receiving device operation information of a first device, a user account associated with the first device and a second device together; acquiring a system time stamp; and generating identification information of the target attention event according to the user account and the system timestamp. The sending module 704 is configured to send the identification information of the target attention event to the first device and the second device.
Optionally, the identification information generating module 703 is further configured to perform desensitization processing on the user account to obtain a first character string; carrying out serialization conversion processing on the system time stamp to obtain a second character string; and splicing the first character string and the second character string to obtain the identification information corresponding to the target attention event.
Optionally, the sending module 704 is further configured to send an event attention request, where the event attention request is used to indicate setting of a listening event based on at least one attention event, and the target attention event is one of the at least one attention event.
It should be noted that: in the information storage device provided in the above embodiment, only the division of the above functional modules is taken as an example when information is stored, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the information storage device and the information storage method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 8 is a block diagram illustrating an information transmitting apparatus 800 according to an example embodiment. The apparatus 800 is a smart device. Illustratively, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, a smart speaker, a smart television, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the information transmitting methods provided by the fig. 2 embodiment described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the apparatus 800 to perform the above-described method of information transmission is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions when executed by a processor of a smart device enable the smart device to perform the method of transmitting information provided in the embodiment of fig. 2 described above.
A computer program product containing instructions which, when run on a computer, cause the computer to perform the method of transmitting information as provided in the embodiment of fig. 2 above.
FIG. 9 is a block diagram illustrating an information storage device 900 according to an example embodiment. For example, the apparatus 900 may be provided as a server. Referring to fig. 9, the apparatus 900 includes a processor 922, which further includes one or more processors and memory resources, represented by memory 932, for storing instructions, such as applications, that may be executed by the processor 922. The application programs stored in the memory 932 may include one or more modules that each correspond to a set of instructions. Further, the processor 922 is configured to execute instructions to perform the information storage method provided by the embodiment shown in fig. 3 described above.
The device 900 may also include a power component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input/output (I/O) interface 958. The apparatus 900 may operate based on an operating system such as Windows Server, macOS XTM, unixTM, linuxTM, freeBSDTM or the like stored in the memory 932.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as the memory 932 that includes instructions, which are executable by the processor 922 of the device 900 to perform the information storage methods described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions of the storage medium, when executed by a processor of a server, enable the server to perform the information storage method provided by the embodiment shown in fig. 3.
A computer program product containing instructions which, when run on a computer, cause the computer to perform the information storage method provided by the embodiment shown in fig. 3 described above.
The above description is intended to be exemplary only and not to limit the present disclosure, and any modification, equivalent replacement, or improvement made without departing from the spirit and scope of the present disclosure is to be considered as the same as the present disclosure.
Claims (17)
1. An information sending method, applied to a first device, the method comprising:
determining occurrence of a target event of interest, the target event of interest being an event in which the first device and at least one second device participate simultaneously; the target event of interest is one of: a wake-up event, a full room play event, a stereo play event;
determining identification information corresponding to the target attention event according to the occurrence of the target attention event;
determining the device operation information of the first device according to the identification information and the device log of the first device, wherein the device operation information of the first device is information corresponding to the target attention event in all logs stored by the first device;
and sending the equipment operation information of the first equipment to a server.
2. The method of claim 1, wherein the determining the occurrence of the target event of interest comprises:
responding to the first device to execute a target instruction, and sending a preset message to the second device, wherein the preset message is used for determining the execution condition of the target instruction by the second device;
determining an occurrence of the target event of interest according to receiving a feedback message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event.
3. The method of claim 1, wherein the determining the occurrence of the target event of interest comprises:
determining that the target event of interest occurred in response to the first device executing a target instruction and receiving a notification message indicating that the second device has executed the target instruction;
and the target instruction is an instruction corresponding to the target attention event.
4. The method according to claim 1, wherein the determining, according to the occurrence of the target attention event, identification information corresponding to the target attention event comprises:
acquiring a system timestamp when the target attention event occurs;
determining a user account commonly associated with the first device and the second device;
and determining identification information corresponding to the target attention event according to the system timestamp and the user account.
5. The method according to claim 1, wherein the determining, according to the occurrence of the target attention event, identification information corresponding to the target attention event comprises:
and determining identification information corresponding to the target attention event according to the stored corresponding relation between the attention event and the identification information, wherein the identification information in the corresponding relation is generated for the corresponding attention event by the server.
6. The method of any one of claims 1 to 5, wherein prior to said determining the occurrence of a target event of interest, the method comprises: and setting a monitoring event based on the target attention event according to the event attention request.
7. An information storage method, applied to a server, the method comprising:
receiving device operation information of a first device, where the device operation information is sent by the first device based on occurrence of a target event of interest, the device operation information of the first device includes identification information corresponding to the target event of interest and a device log of the first device, the device operation information of the first device is information corresponding to the target event of interest in all logs saved by the first device, and the target event of interest is an event in which the first device and at least one second device participate at the same time; the target event of interest is one of: a wake-up event, a full room play event, a stereo play event;
and storing the equipment running information of the first equipment.
8. The method according to claim 7, wherein the identification information corresponding to the target attention event is determined based on a user account and a system timestamp of the first device when the target attention event occurs, and the user account is a user account commonly associated with the first device and the second device.
9. The method of claim 7, further comprising:
receiving device operation information of the second device, where the device operation information of the second device is sent by the second device based on the occurrence of the target attention event, and the device operation information of the second device includes identification information corresponding to the target attention event and a device log of the second device;
and storing the device log of the second device in the same storage position as the device log of the first device according to the identification information corresponding to the target attention event.
10. The method of claim 7, wherein prior to receiving device operation information for the first device, the method further comprises:
determining a user account commonly associated with the first device and the second device;
acquiring a system timestamp;
generating identification information of the target attention event according to the user account and the system timestamp;
and sending the identification information of the target attention event to the first device and the second device.
11. The method of claim 10, wherein the generating identification information of the target event of interest from the user account and the system timestamp comprises:
desensitizing the user account to obtain a first character string;
carrying out serialization conversion processing on the system timestamp to obtain a second character string;
and splicing the first character string and the second character string to obtain the identification information corresponding to the target attention event.
12. The method of any of claims 7 to 9, further comprising:
sending an event attention request, wherein the event attention request is used for indicating to set a listening event based on at least one attention event, and the target attention event is one of the at least one attention event.
13. An information transmission apparatus, characterized in that the apparatus comprises:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining the occurrence of a target attention event, and the target attention event is an event in which a first device and at least one second device participate simultaneously; the target event of interest is one of: a wake-up event, a full room play event, a stereo play event;
a second determining module, configured to determine, according to the occurrence of the target attention event, identification information corresponding to the target attention event; determining the device operation information of the first device according to the identification information and the device log of the first device, wherein the device operation information of the first device is information corresponding to the target attention event in all logs stored by the first device;
and the sending module is used for sending the equipment operation information of the first equipment to a server.
14. An information storage apparatus, characterized in that the apparatus comprises:
a receiving module, configured to receive device operation information of a first device, where the device operation information is sent by the first device based on an occurrence of a target event of interest, the device operation information of the first device includes identification information corresponding to the target event of interest and a device log of the first device, the device operation information of the first device is information corresponding to the target event of interest in all logs saved by the first device, and the target event of interest is an event in which the first device and at least one second device participate at the same time; the target event of interest is one of: a wake-up event, a full room play event, a stereo play event;
and the storage module is used for storing the equipment operation information of the first equipment.
15. An information transmission apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any one of claims 1 to 6.
16. An information storage apparatus, characterized in that the apparatus comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of any of claims 7 to 12.
17. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a computer device, enable the computer device to perform the method of any of claims 1 to 6 or perform the method of any of claims 7 to 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110265921.0A CN113067757B (en) | 2021-03-11 | 2021-03-11 | Information transmission and storage method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110265921.0A CN113067757B (en) | 2021-03-11 | 2021-03-11 | Information transmission and storage method, device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113067757A CN113067757A (en) | 2021-07-02 |
CN113067757B true CN113067757B (en) | 2023-02-28 |
Family
ID=76559970
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110265921.0A Active CN113067757B (en) | 2021-03-11 | 2021-03-11 | Information transmission and storage method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113067757B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113254092B (en) * | 2021-06-24 | 2023-01-24 | 深圳传音控股股份有限公司 | Processing method, apparatus and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888877A (en) * | 2012-12-21 | 2014-06-25 | 中国移动通信集团公司 | Stereo playing method based on double devices, system and devices |
CN105007373A (en) * | 2015-07-08 | 2015-10-28 | 惠州Tcl移动通信有限公司 | Mobile terminal-based smart home maintaining method and system |
CN105652668A (en) * | 2015-05-27 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Equipment linkage method, intelligent equipment and intelligent equipment linkage system |
CN111782433A (en) * | 2020-06-30 | 2020-10-16 | 北京百度网讯科技有限公司 | Exception troubleshooting method, device, electronic equipment and storage medium |
CN112422383A (en) * | 2020-11-19 | 2021-02-26 | 青岛海尔科技有限公司 | Method and device for sending prompt information, storage medium, and electronic device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7937067B2 (en) * | 2006-05-16 | 2011-05-03 | Red Sky Technologies, Inc. | System and method for an emergency location information service (E-LIS) |
-
2021
- 2021-03-11 CN CN202110265921.0A patent/CN113067757B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103888877A (en) * | 2012-12-21 | 2014-06-25 | 中国移动通信集团公司 | Stereo playing method based on double devices, system and devices |
CN105652668A (en) * | 2015-05-27 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Equipment linkage method, intelligent equipment and intelligent equipment linkage system |
CN105007373A (en) * | 2015-07-08 | 2015-10-28 | 惠州Tcl移动通信有限公司 | Mobile terminal-based smart home maintaining method and system |
CN111782433A (en) * | 2020-06-30 | 2020-10-16 | 北京百度网讯科技有限公司 | Exception troubleshooting method, device, electronic equipment and storage medium |
CN112422383A (en) * | 2020-11-19 | 2021-02-26 | 青岛海尔科技有限公司 | Method and device for sending prompt information, storage medium, and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN113067757A (en) | 2021-07-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108831448B (en) | Method and device for controlling intelligent equipment through voice and storage medium | |
CN108520746B (en) | Method and device for controlling intelligent equipment through voice and storage medium | |
EP3188066B1 (en) | A method and an apparatus for managing an application | |
CN111722824B (en) | Voice control method, device and computer storage medium | |
US9961393B2 (en) | Method and device for playing multimedia file | |
CN106488335B (en) | Live-broadcast control method and device | |
CN110633151A (en) | Method, device and storage medium for balancing distributed message issuing cluster partitions | |
CN110610699B (en) | Voice signal processing method, device, terminal, server and storage medium | |
CN112201236B (en) | Terminal awakening method and device and computer readable storage medium | |
CN111966412B (en) | Method, device and storage medium for waking up a terminal | |
CN109121468A (en) | Cut-in method and device about network slice | |
EP4184506A1 (en) | Audio processing | |
CN112509596B (en) | Wakeup control method, wakeup control device, storage medium and terminal | |
CN113220482A (en) | Call request processing method and device, electronic equipment and storage medium | |
CN113672748B (en) | Multimedia information playing method and device | |
CN112671897B (en) | Access method, device, storage medium, equipment and product of distributed system | |
CN115579003A (en) | Voice wake-up method, device and storage medium | |
CN111857849B (en) | Wake-up processing method, device, electronic device and storage medium | |
CN113067757B (en) | Information transmission and storage method, device and medium | |
US11800435B2 (en) | System message transmission method and device, and system message reception method and device | |
CN110856196B (en) | WLAN service optimization method, terminal device and storage medium | |
US20210132855A1 (en) | Method and device for detecting slow node and computer-readable storage medium | |
CN112947739A (en) | Terminal application program management method and device, terminal and storage medium | |
CN115314426A (en) | Data acquisition method, system, electronic device and storage medium | |
CN110502714B (en) | Information detection method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |