Data processing method, device and system, electronic equipment and storage medium
By adjusting the communication frequency according to the active state of the target device, the problems of high data transmission resource occupation and pressure in the prior art are solved, and more efficient data processing is achieved.
Patent Information
- Application Number
- CN202411916213.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-04
AI Technical Summary
When processing large amounts of user data and device data, the prior art has problems of high resource occupation and data transmission pressure, especially the same data processing strategy is adopted for different devices, resulting in unnecessary waste of resources and increased pressure.
By responding to the request information of the target device, it is determined to use different communication frequencies for data processing based on its active or inactive state. Active devices use high frequencies, while non-active devices use low frequencies, thereby optimizing resource usage and data transmission.
This method can effectively reduce unnecessary data transmission and resource usage, reduce the pressure of data processing, and improve data processing efficiency.
Smart Images

Figure CN119766856A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, device and system, electronic equipment and storage medium. Background Art
[0002] With the development of Internet technology, user data and device data have increased dramatically, and the amount of data that the server needs to process has also increased accordingly. Using the same data processing strategy for various types of devices will result in a lot of unnecessary resource usage and data transmission pressure. Summary of the invention
[0003] The present application provides a data processing method, device and system, electronic device and storage medium to solve the technical problems of data transmission resource occupation and high transmission pressure.
[0004] In a first aspect, the present application provides a data processing method, comprising: in response to receiving request information from a target device, based on whether the target device is an active device or an inactive device, determining to communicate with the target device based on a first target frequency or a second target frequency; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
[0005] In one possible implementation, determining to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device includes: in response to the target device being an active device, establishing a connection with the target device, and instructing the target device to report data based on the first target frequency; in response to the target device being an inactive device, instructing the target device to report data based on the second target frequency; the first target frequency is higher than the second target frequency.
[0006] In one possible embodiment, in response to receiving request information from the target device, before determining to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device, the method also includes: determining whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device.
[0007] In one possible implementation, determining whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device includes: determining whether the user corresponding to the target device is online based on the user status information corresponding to the target device; if the user is online, determining whether the target device is an active device or an inactive device based on operation information and / or scene trigger information corresponding to the target device.
[0008] In a possible implementation, determining whether the target device is an active device or an inactive device based on the operation information and / or scene trigger information corresponding to the target device includes: determining whether the target device has been operated when the user is online based on the operation information corresponding to the target device; if it has been operated when the user is online, determining that the target device is an active device; if it has not been operated when the user is online, determining that the target device is an active device or an inactive device based on the scene trigger information.
[0009] In a possible implementation, determining whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device also includes: if the user is not online, determining whether the target device is an active device or an inactive device based on the scene trigger information.
[0010] In one possible implementation, determining whether the target device is an active device or an inactive device based on the scene trigger information includes: determining whether the target device is used to trigger a scene action based on the scene trigger information; if the target device is used to trigger a scene action, determining that the target device is an active device; if the target device is not used to trigger a scene action, determining that the target device is an inactive device.
[0011] In one possible implementation, after determining that the target device is an active device or an inactive device based on the user status information and / or scene trigger information corresponding to the target device, the method further includes: determining whether the scene trigger information corresponding to the active device has changed; if the scene trigger information has changed and the active device is changed to not be used to trigger a scene action, adjusting the active device to an inactive device.
[0012] In a possible implementation, determining whether the scene trigger information corresponding to the active device has changed includes: determining whether the user status information corresponding to the active device has changed; if the user status information has changed, and the user corresponding to the active device has changed from an online state to an offline state, determining whether the scene trigger information corresponding to the active device has changed.
[0013] In a second aspect, the present application provides a data processing device, comprising: a communication unit, for determining, in response to receiving request information from a target device, to communicate with the target device based on a first target frequency or a second target frequency based on whether the target device is an active device or an inactive device; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
[0014] In a third aspect, the present application provides a data processing system, comprising: a control end and at least one target device; the target device communicates with the control end; the control end, in response to receiving request information from the target device, determines to communicate with the target device based on a first target frequency or a second target frequency based on whether the target device is an active device or an inactive device; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
[0015] In a fourth aspect, the present application provides an electronic device comprising: a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; the memory is used to store a computer program; and the processor is used to implement any one of the methods described in the first aspect when executing the computer program.
[0016] In a fifth aspect, the present application provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the methods described in the first aspect.
[0017] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, in response to receiving the request information of the target device, determines to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device. In this way, in the process of processing data, different frequency processing strategies can be flexibly adopted for devices with different activity levels, with a high processing frequency for active devices and a low processing frequency for inactive devices, so that inactive devices will not occupy a large amount of processing and transmission resources for a long time, reducing the pressure of data transmission and improving data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0020] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0021] Figure 1 A flowchart of a data processing method provided in an embodiment of the present application;
[0022] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;
[0023] Figure 3 A flowchart of a data processing method provided in an embodiment of the present application;
[0024] Figure 4 A flowchart of a data processing method provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of a process for establishing an active pool provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of a data processing system provided in an embodiment of the present application;
[0027] Figure 7 A schematic diagram of a data processing device provided in an embodiment of the present application;
[0028] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0030] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0031] In order to solve the technical problems of data transmission resource occupation and high transmission pressure in the prior art, the present application provides a data processing method, device and system, electronic device and storage medium, which adopt different communication frequencies for target devices with different activity levels, reduce unnecessary data transmission, and thus alleviate data transmission pressure and resource occupation.
[0032] Figure 1 A flow chart of a data processing method provided in this embodiment is as follows: Figure 1 As shown, the method may include:
[0033] S10: In response to receiving request information from the target device, determining to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device;
[0034] The first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
[0035] In this embodiment, the data processing method can be applied to a control terminal, such as a server, a cloud platform, or other terminals capable of processing data for a target device. Here, the target device can report data to the control terminal, and the control terminal can control the operation of the target device based on the reported data of the target device.
[0036] For example, the target device may be a device in a system controlled by the control end. For example, the control end controls a smart home system, and the target device is a smart device in the smart home system, such as an air conditioner, a television, a refrigerator, a computer, a mobile phone, and a sweeping robot.
[0037] In one embodiment, the user status information corresponding to the target device may refer to the user status information bound to the target device, wherein the user status information may include at least one of user online status information, user operation status information, and user binding status information.
[0038] In one embodiment, before step S10, the method may include: determining whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device.
[0039] In one embodiment, the target frequency may include at least one of a target receiving frequency, a target processing frequency, a target reporting frequency, and a target response frequency. Communicating with active devices and inactive devices may refer to receiving, processing, or responding to reported data from active devices and inactive devices, or instructing active devices and inactive devices to report data, etc.
[0040] In one embodiment, determining to communicate with the target device based on the first target frequency or the second target frequency may include at least one of the following:
[0041] Determine to receive reported data from active devices and inactive devices based on different target receiving frequencies;
[0042] Determine the processing of reported data of active devices and inactive devices based on different target processing frequencies;
[0043] Determining to instruct active devices and inactive devices to report data based on different target reporting frequencies;
[0044] Determine the response time based on different target response frequencies for active devices and inactive devices.
[0045] In one embodiment, the target frequency corresponding to the active device may be a first target frequency, such as a first target receiving frequency, a first target processing frequency, a first target reporting frequency, a first target response frequency, etc. Correspondingly, the target frequency corresponding to the inactive device may be a second target frequency, such as a second target receiving frequency, a second target processing frequency, a second target reporting frequency, a second target response frequency, etc.
[0046] In one embodiment, based on whether the target device is an active device or an inactive device, determining to communicate with the target device based on the first target frequency or the second target frequency may include: determining whether to respond to the request information based on whether the target device is an active device or an inactive device, and communicating with the target device based on the first target frequency or the second target frequency. Here, the request information may be information requesting to report data or requesting to establish a connection.
[0047] In one embodiment, before step S10 or after determining that the target device is an active device or an inactive device based on the user status information and / or scene trigger information corresponding to the target device, the method may further include: determining whether the active device and the inactive device need to be updated based on a predetermined update cycle. For example, determining whether the active device and the inactive device need to be updated may refer to determining whether the active device and the inactive device need to be updated based on the user status information and / or the scene trigger information.
[0048] In this way, in the process of processing reported data, different frequency processing strategies can be flexibly adopted for devices with different activity levels, with a high processing frequency for active devices and a low processing frequency for inactive devices. This will prevent inactive devices from occupying a large amount of processing and transmission resources for a long time, reduce the pressure of data transmission, and improve data processing efficiency.
[0049] In some embodiments, the above step S10 may include:
[0050] In response to the target device being an active device, establishing a connection with the target device, and instructing the target device to report data based on the first target frequency;
[0051] In response to the target device being an inactive device, instructing the target device to report data based on the second target frequency; the first target frequency is higher than the second target frequency.
[0052] In one embodiment, the request information may be information that the target device requests to report data or to establish a connection. The first target frequency may be a first target reporting frequency, and the second target frequency may be a second target reporting frequency.
[0053] In an embodiment, instructing the target device to report data based on the first target frequency may include: sending first indication information to the target device, where the first indication information carries the first target frequency.
[0054] In an embodiment, instructing the target device to report data based on the second target frequency may include: sending second indication information to the target device, where the second indication information carries the second target frequency.
[0055] In this way, by instructing active devices and inactive devices to report data based on different reporting frequencies, unnecessary data reporting can be effectively reduced, resource occupation can be reduced, and normal use of active devices can be guaranteed, reducing data transmission pressure.
[0056] In some embodiments, before step S10, the method may further include:
[0057] Based on the user status information and / or scenario trigger information corresponding to the target device, determine whether the target device is an active device or an inactive device.
[0058] In one embodiment, the scene trigger information corresponding to the target device may refer to the scene trigger information corresponding to the scene containing the target device, wherein the scene trigger information may indicate the scene containing the target device, the scene action corresponding to the scene, and the role of the target device in the scene action, etc. Here, the role of the target device in the scene action may refer to the target device being used to trigger or be triggered in the scene action.
[0059] For example, in the "Go Home" scene, the scene action corresponding to the scene is "Turn on the light when the door lock is opened". When the target device is a door lock, the target device is used to trigger the scene action; when the target device is a light, the target device is used to be triggered.
[0060] In this way, according to the user status and scene triggering conditions, the operation and use of the target device and the size of the data transmission demand can be judged more accurately, thereby accurately distinguishing whether the target device is a highly active device.
[0061] In some embodiments, Figure 2 As shown, determining whether the target device is an active device or an inactive device based on the user status information and / or scene trigger information corresponding to the target device may include:
[0062] S01: Determine whether the user corresponding to the target device is online based on the user status information corresponding to the target device;
[0063] S02: If the user is online, determine whether the target device is an active device or an inactive device based on the operation information and / or scene trigger information corresponding to the target device.
[0064] In one embodiment, step S01 may include: determining whether a user corresponding to the target device is online based on the online status information of the user corresponding to the target device. The user corresponding to the target device may refer to a user associated with the target device. The user being online also means that the user is in an online state, and the user being offline also means that the user is in an offline state.
[0065] In one embodiment, determining whether the user corresponding to the target device is online based on the user online status information corresponding to the target device may include: determining the user's login time and activity time based on the user online status information corresponding to the target device; and determining whether the user corresponding to the target device is online based on the login time and activity time.
[0066] In one embodiment, the operation information may indicate the operation status of the target device, such as the operation status of the target device during the period when the user is online, or the operation status of the target device by the user during the period when the user is online.
[0067] In one embodiment, step S02 may include: if the user is online, determining the operation information corresponding to the target device based on the user status information; and determining whether the target device is an active device or an inactive device based on the operation information and scene trigger information.
[0068] In one embodiment, determining the operation information corresponding to the target device based on the user status information may include: determining the operation information corresponding to the target device based on the user operation status information. For example, the user operation status information may indicate the situation in which the target device is operated by the user.
[0069] In this way, for the user's online device, we can combine its actual operating status and whether the scenario is triggered to accurately determine whether there is a large data processing demand, thereby accurately determining whether the device is a device with high communication activity and improving the reliability of data processing.
[0070] In some embodiments, determining whether the target device is an active device or an inactive device based on the operation information and / or scene trigger information corresponding to the target device may include:
[0071] Determining whether the target device has been run when the user is online based on the running information corresponding to the target device;
[0072] If the target device has been run while the user is online, determining that the target device is an active device;
[0073] If the target device has not been run when the user is online, the target device is determined to be an active device or an inactive device based on the scenario trigger information.
[0074] In one embodiment, being run while the user is online may refer to being operated by the user while the user is online. For example, being operated by the user may refer to executing a predetermined action based on the user's instruction.
[0075] In one embodiment, if the target device is run while the user is online, determining that the target device is an active device may include: if the target device is run while the user is online and the running time of the target device during the user's online period reaches a predetermined time, determining that the target device is an active device. Here, the running time during the user's online period may refer to the time when the target device is operated by the user during the user's online period.
[0076] In one embodiment, the method may further include: if the target device has been running while the user is online and the running time of the target device during the user's online period does not reach a predetermined time, determining whether the target device is an active device or an inactive device based on the scene trigger information.
[0077] In this way, when the user is online, combined with the operation status of the target device, it can be determined whether the target device is a device that the user needs to operate or needs to run, so that the device that needs to be run is positioned as an active device, which can fully guarantee the communication frequency of such devices.
[0078] In some embodiments, Figure 3As shown, the determining whether the target device is an active device or an inactive device based on the user status information and / or scene trigger information corresponding to the target device further includes:
[0079] S03: If the user is not online, determine whether the target device is an active device or an inactive device based on the scenario trigger information.
[0080] Here, the scene trigger information may refer to the scene trigger information corresponding to the scene containing the target device, wherein the scene trigger information may indicate the scene containing the target device, the scene action corresponding to the scene, and the role of the target device in the scene action, etc. Here, the role of the target device in the scene action may refer to the target device being used to trigger or be triggered in the scene action.
[0081] In one embodiment, determining whether the target device is an active device or an inactive device based on scene trigger information may include: determining whether the target device is used to trigger a scene action based on the scene trigger information; if the target device is used to trigger a scene action, determining that the target device is an active device; if the target device is not used to trigger a scene action, determining that the target device is an inactive device.
[0082] In this way, for devices that the user is offline, active devices or inactive devices can be directly classified according to the situation of the target device participating in the scene trigger, so as to accurately determine whether the target device still has a large data interaction demand when the user is offline, thereby improving data processing accuracy.
[0083] In some embodiments, determining whether the target device is an active device or an inactive device based on the scenario trigger information may include:
[0084] Determining whether the target device is used to trigger a scene action based on the scene trigger information;
[0085] If the target device is used to trigger a scene action, determining that the target device is an active device;
[0086] If the target device is not used to trigger a scene action, the target device is determined to be an inactive device.
[0087] In one embodiment, if the target device is used to trigger a scene action, determining that the target device is an active device may include: if the target device is used to trigger a scene action and the number of scene actions triggered reaches a predetermined number, determining that the target device is an active device. Therefore, devices that trigger few scene actions may be further screened.
[0088] In one embodiment, if the target device is used to trigger a scene action, determining that the target device is an active device may include: if the target device is used to trigger a scene action and the current triggering number of the triggered scene action reaches a predetermined number, determining that the target device is an active device. Therefore, devices that are not important for triggering scene actions can be further screened.
[0089] In one embodiment, the method may further include: if the target device is used to trigger a scene action and the number of triggered scene actions does not reach a predetermined number, determining that the target device is an inactive device.
[0090] In one embodiment, the method may further include: if the target device is used to trigger a scene action and the current triggering times of the triggered scene action does not reach a predetermined number, determining that the target device is an inactive device.
[0091] In one embodiment, if the target device is used to trigger a scene action, it may include: if the target device is used to trigger a scene action and the target device needs to report data when triggering the scene action.
[0092] In this way, when the target device is used to trigger a scene action, it can be determined that the device needs to perform data interaction to meet the triggering conditions, thereby classifying active devices and inactive devices based on whether the scene action is triggered, which can further improve the accuracy and reliability of communication control.
[0093] In some embodiments, after determining that the target device is an active device or an inactive device based on the user status information and / or the scene trigger information corresponding to the target device, the method may further include:
[0094] Determine whether the scene trigger information corresponding to the active device changes;
[0095] If the scene trigger information changes, and the active device is changed to not be used to trigger the scene action, the active device is adjusted to an inactive device.
[0096] In one embodiment, determining whether the scene trigger information corresponding to the active device changes may include: determining whether the scene trigger information corresponding to the active device changes according to a predetermined update period.
[0097] In one embodiment, whether the scene trigger information corresponding to the active device changes may refer to whether the scene action used to trigger the active device changes.
[0098] In one embodiment, the method may further include: if the scene trigger information changes and the number of scene actions triggered by the active device decreases below a predetermined number, adjusting the active device to an inactive device.
[0099] In one embodiment, the method may further include: if the scene trigger information changes, and the current triggering times of the scene action triggered by the active device does not reach a predetermined number, adjusting the active device to an inactive device.
[0100] In one embodiment, the method may further include: if the scene triggering information changes and the active device does not need to report data when triggering a scene action, adjusting the active device to an inactive device.
[0101] In this way, when an active device is not used to trigger a scene action, it is promptly converted to an inactive device to reduce its data processing frequency, thereby timely reducing unnecessary data transmission and resource usage when the device changes.
[0102] In some embodiments, determining whether the scene trigger information corresponding to the active device changes includes:
[0103] Determine whether the user status information corresponding to the active device changes;
[0104] If the user status information changes, and the user corresponding to the active device changes from an online state to an offline state, it is determined whether the scene trigger information corresponding to the active device changes.
[0105] In an embodiment, the user corresponding to the active device changes from an online state to an offline state, which may include: the user corresponding to the active device changes from an online state to an offline state and remains in the offline state for a preset time period.
[0106] In one embodiment, determining whether the user status information corresponding to the active device changes may include: determining whether the user status information corresponding to the active device changes according to a predetermined update period.
[0107] In one embodiment, determining whether the scene trigger information corresponding to the active device has changed may include: determining whether the active device has been run when the user is online; if it has not been run when the user is online, determining whether the scene trigger information corresponding to the active device has changed.
[0108] Accordingly, the method may further include: if the target device has been running when the user is online, then not adjusting the active device.
[0109] In this way, after the user bound to the device goes offline, it is possible to determine whether the device still has a large data interaction demand based on the scene trigger information, thereby avoiding directly setting all devices of offline users as inactive devices, resulting in the scene trigger being unable to respond.
[0110] As a possible implementation, Figure 4 As shown, a data processing method is provided, which may specifically include:
[0111] 1. User online status detection:
[0112] (1) Detect user login status.
[0113] (2) Detect user activity (app usage) status.
[0114] Determine whether the user is online by the last activity time of the user. When the user logs in or performs other activities, the user login time and activity time are recorded in the database. Determine whether the user is currently online based on these times.
[0115] 2. Create an active device pool, such as Figure 5 As shown, the steps may include:
[0116] (1) The device is added to the active pool, that is, the device is determined to be an active device:
[0117] a. Extract the home devices of online users.
[0118] b. Extract the scene devices currently used by online and offline users, mainly extracting the devices used as scene trigger conditions. Here, as a scene trigger condition, it can refer to the device used to trigger the scene action. For example, the state of the device is used as the scene trigger condition. When the device reaches the preset state condition, the scene action is triggered. For example: turn on the light when the door lock is opened. The door lock is opened as a condition, and turning on the light is an action. The door lock device is the device used as the scene trigger condition.
[0119] By recording the last activity information of the online user, such as the operated home, operated device, and activated scene, it is decided which devices of the online user should be extracted and added to the active device pool.
[0120] By filtering the scene conditions set by the user, the devices that serve as scene trigger conditions are extracted and added to the active device pool.
[0121] For example, online users correspond to many families, each family has its own device, but when the user is online, he may only operate some devices under a family, so only the devices that the user has operated when online need to be added. This means that the user will pay more attention to these devices during the online period, and has higher requirements for the real-time status changes of the devices, so it is necessary to maintain activity.
[0122] Online users may not operate some devices, but these devices are used as scene trigger conditions. The server needs to collect the state change data of these devices to detect whether the trigger conditions are met, thereby triggering the execution of the scene action. Therefore, these devices also need to be added to the active pool. Similarly, the devices of offline users that are used as scene trigger conditions should also be added to the active pool.
[0123] (2) The device is removed from the active pool, that is, the active device is adjusted to an inactive device:
[0124] a. When it is detected that a user who was originally online is offline, the devices that are not used as trigger conditions for the scenario by the user need to be removed from the active pool, and these devices need to be notified to reduce the device reporting frequency.
[0125] b. When it is detected that a device that was originally used as a scene trigger condition is no longer used as a scene trigger condition, it is also necessary to remove it from the device active pool and notify these devices to reduce the reporting frequency.
[0126] For example, if the user modifies the scene setting and removes the original device as a condition, and the current user does not perform any operation control on the device, then the device can be removed from the active pool.
[0127] The scene trigger conditions can include various device states, such as: air conditioner on state, door lock open state, alarm detector alarm state, temperature and humidity state detected by temperature and humidity sensor, camera detected image changes, etc. The state information that the device can report can all be used as conditions. As long as the condition threshold is set, the set scene action can be triggered as long as the state reported by the device reaches this threshold.
[0128] 3. Equipment filtering:
[0129] (1) For a device that wants to establish a connection with the server, first determine whether it is in the active device pool. If so, allow it to continue executing; otherwise, filter out the device.
[0130] (2) For the devices that are allowed to continue executing in (1), a connection with the server is established and data is reported normally.
[0131] (3) For the devices filtered out in (1), they can be informed that they do not need to be too active at the moment and their device data reporting frequency can be reduced.
[0132] like Figure 6 As shown, an embodiment of the present application provides a data processing system, including: a control end and at least one target device; the target device communicates with the control end;
[0133] In response to receiving request information from the target device, the control end determines to communicate with the target device based on a first target frequency or a second target frequency based on whether the target device is an active device or an inactive device; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
[0134] Here, the control end may be a server, a cloud platform or other terminal capable of processing data for the target device, etc. The target device communicates with the control end, which may refer to the target device reporting data to the control end, etc.
[0135] like Figure 7 As shown, an embodiment of the present application provides a data processing device, which may include:
[0136] The communication unit 100 is used to determine, in response to receiving request information from a target device, whether the target device is an active device or an inactive device, to communicate with the target device based on a first target frequency or a second target frequency; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
[0137] In one possible implementation, the communication unit 100 is used to: in response to the target device being an active device, establish a connection with the target device and instruct the target device to report data based on the first target frequency; in response to the target device being an inactive device, instruct the target device to report data based on the second target frequency; the first target frequency is higher than the second target frequency.
[0138] In one possible embodiment, in response to receiving request information from the target device, before determining to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device, the communication unit 100 is also used to: determine whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device.
[0139] In one possible implementation, the communication unit 100 is used to: determine whether the user corresponding to the target device is online based on the user status information corresponding to the target device; if the user is online, determine whether the target device is an active device or an inactive device based on the operation information and / or scene trigger information corresponding to the target device.
[0140] In one possible implementation, the communication unit 100 is used to: determine whether the target device has been run when the user is online based on the running information corresponding to the target device; if it has been run when the user is online, determine that the target device is an active device; if it has not been run when the user is online, determine whether the target device is an active device or an inactive device based on the scene trigger information.
[0141] In a possible implementation, the communication unit 100 is further configured to: if the user is not online, determine whether the target device is an active device or an inactive device based on the scenario trigger information.
[0142] In one possible implementation, the communication unit 100 is used to: determine whether the target device is used to trigger a scene action based on the scene trigger information; if the target device is used to trigger a scene action, determine that the target device is an active device; if the target device is not used to trigger a scene action, determine that the target device is an inactive device.
[0143] In one possible implementation, after determining that the target device is an active device or an inactive device based on the user status information and / or scene trigger information corresponding to the target device, the communication unit 100 is further used to: determine whether the scene trigger information corresponding to the active device has changed; if the scene trigger information has changed and the active device is changed to not be used to trigger a scene action, the active device is adjusted to an inactive device.
[0144] In a possible implementation, the communication unit 100 is used to: determine whether the user status information corresponding to the active device has changed; if the user status information has changed, and the user corresponding to the active device has changed from an online state to an offline state, determine whether the scene trigger information corresponding to the active device has changed.
[0145] like Figure 8 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0146] Memory 113, used for storing computer programs;
[0147] In one embodiment of the present application, the processor 111, when executing the program stored in the memory 113, implements the data processing method provided by any one or more of the aforementioned method embodiments, at least including: in response to receiving request information from the target device, based on whether the target device is an active device or an inactive device, determining to communicate with the target device based on a first target frequency or a second target frequency; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
[0148] In one possible implementation, determining to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device includes: in response to the target device being an active device, establishing a connection with the target device, and instructing the target device to report data based on the first target frequency; in response to the target device being an inactive device, instructing the target device to report data based on the second target frequency; the first target frequency is higher than the second target frequency.
[0149] In one possible embodiment, in response to receiving request information from the target device, before determining to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device, the method also includes: determining whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device.
[0150] In one possible implementation, determining whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device includes: determining whether the user corresponding to the target device is online based on the user status information corresponding to the target device; if the user is online, determining whether the target device is an active device or an inactive device based on operation information and / or scene trigger information corresponding to the target device.
[0151] In a possible implementation, determining whether the target device is an active device or an inactive device based on the operation information and / or scene trigger information corresponding to the target device includes: determining whether the target device has been operated when the user is online based on the operation information corresponding to the target device; if it has been operated when the user is online, determining that the target device is an active device; if it has not been operated when the user is online, determining that the target device is an active device or an inactive device based on the scene trigger information.
[0152] In a possible implementation, determining whether the target device is an active device or an inactive device based on user status information and / or scene trigger information corresponding to the target device also includes: if the user is not online, determining whether the target device is an active device or an inactive device based on the scene trigger information.
[0153] In one possible implementation, determining whether the target device is an active device or an inactive device based on the scene trigger information includes: determining whether the target device is used to trigger a scene action based on the scene trigger information; if the target device is used to trigger a scene action, determining that the target device is an active device; if the target device is not used to trigger a scene action, determining that the target device is an inactive device.
[0154] In one possible implementation, after determining that the target device is an active device or an inactive device based on the user status information and / or scene trigger information corresponding to the target device, the method further includes: determining whether the scene trigger information corresponding to the active device has changed; if the scene trigger information has changed and the active device is changed to not be used to trigger a scene action, adjusting the active device to an inactive device.
[0155] In a possible implementation, determining whether the scene trigger information corresponding to the active device has changed includes: determining whether the user status information corresponding to the active device has changed; if the user status information has changed, and the user corresponding to the active device has changed from an online state to an offline state, determining whether the scene trigger information corresponding to the active device has changed.
[0156] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the data processing method provided by any one or more of the aforementioned method embodiments are implemented.
[0157] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0159] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0160] In the absence of contradiction, each step in a certain implementation mode or example can be implemented as an independent example, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain implementation mode or example can also be implemented as an independent example, and the order of the steps in a certain implementation mode or example can be arbitrarily exchanged. In addition, the optional methods or optional examples in a certain implementation mode or example can be arbitrarily combined; in addition, the various implementation modes or examples can be arbitrarily combined. For example, some or all steps of different implementation modes or examples can be arbitrarily combined, and a certain implementation mode or example can be arbitrarily combined with the optional methods or optional examples of other implementation modes or examples.
[0161] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A data processing method, characterized in that: The method comprises: In response to receiving request information from a target device, determining to communicate with the target device based on a first target frequency or a second target frequency based on whether the target device is an active device or an inactive device; The first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
2. The method according to claim 1, characterized in that: The determining, based on whether the target device is an active device or an inactive device, to communicate with the target device based on a first target frequency or a second target frequency includes: In response to the target device being an active device, establishing a connection with the target device, and instructing the target device to report data based on the first target frequency; In response to the target device being an inactive device, instructing the target device to report data based on the second target frequency; the first target frequency is higher than the second target frequency.
3. The method according to claim 1, characterized in that In response to receiving request information from the target device, before determining to communicate with the target device based on the first target frequency or the second target frequency based on whether the target device is an active device or an inactive device, the method further includes: Based on user status information and / or scenario trigger information corresponding to the target device, determine whether the target device is an active device or an inactive device.
4. The method according to claim 3, characterized in that The determining, based on user status information and / or scenario trigger information corresponding to the target device, whether the target device is an active device or an inactive device includes: Determine whether a user corresponding to the target device is online based on user status information corresponding to the target device; If the user is online, it is determined whether the target device is an active device or an inactive device based on the operation information and / or scene trigger information corresponding to the target device.
5. The method according to claim 4, characterized in that The determining whether the target device is an active device or an inactive device based on the operation information and / or the scene trigger information corresponding to the target device includes: Determining whether the target device has been run when the user is online based on the running information corresponding to the target device; If the target device has been run while the user is online, determining that the target device is an active device; If the target device has not been run when the user is online, the target device is determined to be an active device or an inactive device based on the scenario trigger information.
6. The method according to claim 4, characterized in that The determining, based on the user status information and / or the scene trigger information corresponding to the target device, whether the target device is an active device or an inactive device further includes: If the user is not online, the target device is determined to be an active device or an inactive device based on the scenario trigger information.
7. The method according to claim 5 or 6, characterized in that: The determining, based on the scenario trigger information, that the target device is an active device or an inactive device includes: Determining whether the target device is used to trigger a scene action based on the scene trigger information; If the target device is used to trigger a scene action, determining that the target device is an active device; If the target device is not used to trigger a scene action, the target device is determined to be an inactive device.
8. The method according to claim 3, characterized in that After determining that the target device is an active device or an inactive device based on the user status information and / or the scene trigger information corresponding to the target device, the method further includes: Determine whether the scene trigger information corresponding to the active device changes; If the scene trigger information changes, and the active device is changed to not be used to trigger the scene action, the active device is adjusted to an inactive device.
9. The method according to claim 8, characterized in that The determining whether the scene trigger information corresponding to the active device changes includes: Determine whether the user status information corresponding to the active device changes; If the user status information changes, and the user corresponding to the active device changes from an online state to an offline state, it is determined whether the scene trigger information corresponding to the active device changes.
10. A data processing device, characterized in that: The device comprises: A communication unit, configured to, in response to receiving request information from a target device, determine to communicate with the target device based on a first target frequency or a second target frequency based on whether the target device is an active device or an inactive device; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
11. A data processing system, characterized in that: The system comprises: a control terminal and at least one target device; the target device communicates with the control terminal; In response to receiving request information from the target device, the control end determines to communicate with the target device based on a first target frequency or a second target frequency based on whether the target device is an active device or an inactive device; wherein the first target frequency corresponding to the active device is higher than the second target frequency corresponding to the inactive device.
12. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store a computer program; and the processor is used to implement the method according to any one of claims 1 to 9 when executing the computer program.
13. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Intelligent home appliance equipment active degree statistic method and device and internet gateway
CN105511946A
Remote display method of BMC display interface and related device
CN111831374A
Equipment state updating method and device, storage medium and electronic device
CN116506247A
Heartbeat adjusting method of equipment
CN117460031A
Communication in wireless system
JP2019033547A