Data processing method, device and storage medium

By using the standby processing mode to process business data when the host external device is reconnected, the problem of slow response speed of control instructions is solved, and the user experience and data processing efficiency are improved.

CN113238887BActive Publication Date: 2024-12-03BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110548157.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2024-12-03
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

When the host external device is reconnected, the control command response speed is slow or invalid, resulting in poor user experience.

Method used

When receiving the service data sent by the target device, the target processing mode is determined. If it fails, the backup processing mode is selected from the preset backup processing mode for processing to ensure that the service data is processed in a timely and effective manner.

Benefits of technology

Processing business data through the standby processing mode improves data processing speed, improves user experience, and avoids response delays and loss problems caused by asynchronous data transmission and processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113238887B_ABST
    Figure CN113238887B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data processing method, device and storage medium. The data processing method: when receiving business data sent by a target device, determine the target processing mode corresponding to the business data; when the business data fails to be processed by the target processing mode, determine the target backup processing mode from one or more preset backup processing modes; and process the business data by the target backup processing mode. In this way, when the business data fails to be processed by the target processing mode, the business data can be processed by the target backup processing mode, thereby effectively ensuring that the business data is processed in a timely and effective manner, which is conducive to improving the processing speed of the business data, thereby effectively improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, device and storage medium. Background Art

[0002] Usually, when an external device (e.g., a mouse, keyboard, remote control, etc.) of a host (e.g., a computer host, a television, a TV box) reconnects to the host, the host is prone to slow response to control commands triggered by the external device, or even ineffective control. For example, after just replacing the batteries of the TV remote control, when a TV control command (e.g., a channel change command, a volume increase command, a volume decrease command, etc.) is triggered through the TV remote control, it will take a while for the TV to execute the TV control command, or the TV control command will not be executed and the button will need to be pressed again for the TV to execute the TV control command. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a data processing method, device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising:

[0005] In case of receiving the service data sent by the target device, determining the target processing mode corresponding to the service data;

[0006] In the case that processing the service data by the target processing mode fails, determining a target backup processing mode from one or more preset backup processing modes;

[0007] The business data is processed by the target standby processing mode.

[0008] Optionally, the failure to process the business data by using the target processing mode includes:

[0009] Determining whether a target device node file corresponding to the target processing mode is successfully established;

[0010] When it is determined that the target device node file corresponding to the target processing mode is not successfully established, it is determined that processing the business data through the target processing mode fails.

[0011] Optionally, the method further comprises:

[0012] When it is determined that the target device node file corresponding to the target device is successfully established, sending the service data to the target device node file;

[0013] The business data is processed through the target device node file.

[0014] Optionally, the determining whether the target device node file corresponding to the target processing mode is successfully established includes:

[0015] In the case of determining that the file identifier of the target device node file is generated, determining that the target device node file corresponding to the target processing mode is successfully established;

[0016] When it is determined that the file identifier of the target device node file is not generated, it is determined that the target device node file corresponding to the target processing mode is not successfully established.

[0017] Optionally, the failure to process the business data by using the target processing mode includes:

[0018] Acquiring business processing feedback information, where the business processing feedback information is used to indicate success or failure of processing the business data;

[0019] In a case where it is determined that the service processing feedback information indicates that the service data processing has failed, it is determined that the target processing mode has failed in processing the service data.

[0020] Optionally, determining the target standby processing mode from one or more preset standby processing modes includes:

[0021] In the case that the preset standby processing mode includes one, taking the standby processing mode as the target standby processing mode;

[0022] In the case that the preset backup processing modes include a plurality of modes, a backup processing mode with the highest preset priority among the backup processing modes is determined as the target backup processing mode.

[0023] Optionally, the service data includes device identity information, and determining a target processing mode corresponding to the service data includes:

[0024] A target processing mode corresponding to the business data is determined according to the device identity information.

[0025] Optionally, the processing the service data by using the target standby processing mode includes:

[0026] Sending the service data to the device node file corresponding to the target standby processing mode;

[0027] The business data is processed through the device node file.

[0028] According to a second aspect of an embodiment of the present disclosure, a data processing device is provided, the device comprising:

[0029] A first determination module is configured to determine a target processing mode corresponding to the service data when receiving the service data sent by the target device;

[0030] A second determination module is configured to determine a target backup processing mode from one or more preset backup processing modes when processing the business data by the target processing mode fails;

[0031] The first business processing module is configured to process the business data through the target backup processing mode.

[0032] Optionally, the second determining module is configured to:

[0033] Determining whether a target device node file corresponding to the target processing mode is successfully established;

[0034] When it is determined that the target device node file corresponding to the target processing mode is not successfully established, it is determined that processing the business data through the target processing mode fails.

[0035] Optionally, the device further comprises:

[0036] A third determining module is configured to send the service data to the target device node file if it is determined that the target device node file corresponding to the target device is successfully established;

[0037] The second business processing module is configured to process the business data through the target device node file.

[0038] Optionally, the second determining module is configured to:

[0039] In the case of determining that the file identifier of the target device node file is generated, determining that the target device node file corresponding to the target processing mode is successfully established;

[0040] When it is determined that the file identifier of the target device node file is not generated, it is determined that the target device node file corresponding to the target processing mode is not successfully established.

[0041] Optionally, the second determining module is configured to:

[0042] Acquiring business processing feedback information, where the business processing feedback information is used to indicate success or failure of processing the business data;

[0043] In a case where it is determined that the service processing feedback information indicates that the service data processing has failed, it is determined that the target processing mode has failed in processing the service data.

[0044] Optionally, the second determining module is configured to:

[0045] In the case that the preset standby processing mode includes one, taking the standby processing mode as the target standby processing mode;

[0046] In the case that the preset backup processing modes include a plurality of modes, a backup processing mode with the highest preset priority among the backup processing modes is determined as the target backup processing mode.

[0047] Optionally, the service data includes device identity information, and the first determining module is configured to:

[0048] A target processing mode corresponding to the business data is determined according to the device identity information.

[0049] Optionally, the first service processing module is configured to:

[0050] Sending the service data to the device node file corresponding to the target standby processing mode;

[0051] The business data is processed through the device node file.

[0052] According to a third aspect of an embodiment of the present disclosure, there is provided a data processing device, including:

[0053] a processor; a memory for storing instructions executable by the processor;

[0054] Among them, the processor is configured to: implement the steps of the data processing method provided in the first aspect of the present disclosure when executing the executable instructions.

[0055] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the data processing method provided in the first aspect of the present disclosure are implemented.

[0056] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: by determining the target processing mode corresponding to the business data when receiving the business data sent by the target device; in the case where the business data fails to be processed by the target processing mode, determining the target backup processing mode from one or more preset backup processing modes; and processing the business data by the target backup processing mode. In this way, in the case where the business data fails to be processed by the target processing mode, the business data can be processed by the target backup processing mode, thereby effectively ensuring that the business data is processed in a timely and effective manner, which is conducive to improving the processing speed of the business data, thereby effectively improving the user experience.

[0057] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0059] Figure 1 is a flow chart of a data processing method according to an exemplary embodiment;

[0060] Figure 2 is a block diagram of a data processing device shown in an exemplary embodiment of the present disclosure;

[0061] Figure 3 is a flow chart of another data processing method according to an exemplary embodiment;

[0062] Figure 4 is a flow chart of another data processing method according to an exemplary embodiment;

[0063] Figure 5 is a block diagram of a data processing device according to an exemplary embodiment;

[0064] Figure 6 is a block diagram of another data processing device according to an exemplary embodiment;

[0065] Figure 7 It is a block diagram of a data processing device according to an exemplary embodiment. DETAILED DESCRIPTION

[0066] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0067] Before introducing the specific implementation methods of the present disclosure in detail, the application scenarios of the present disclosure are first described as follows. The present disclosure can be applied to a terminal or a server, and the terminal can be a computer, a mobile phone, a television, a TV box, a smart watch, a fitness device, etc. Here, a television is first used as an example for description. The inventor has found that when the TV remote control re-establishes a connection with the TV (for example, the battery of the TV remote control has just been replaced, or the Bluetooth TV remote control is moved from an area outside the connection range to a position within the connection range), when a TV control command (for example, a channel change command, a volume increase command, a volume decrease command, etc.) is triggered by the TV remote control, it will take a while for the TV to execute the TV control command, or sometimes the TV control command will not be executed, and the button needs to be pressed again for the TV to execute the TV control command; taking a computer as an example, after the mouse is re-established with the computer host, if the mouse is moved immediately, the mouse cannot respond to the movement control command quickly, and it is necessary to wait for several seconds before the movement control command can be executed and the movement can be displayed on the computer monitor. That is to say, when an external device (e.g., a mouse, keyboard, remote control, etc.) of a host (e.g., a computer host, a television, a TV box) re-establishes a connection with the host, the host is prone to slow control response or even ineffective control for control commands triggered by the external device. The corresponding control efficiency is low, and the user needs to wait for a long time, which is not conducive to improving the user experience.

[0068] In order to overcome the above technical problems, the present disclosure provides a data processing method, device and storage medium. The data processing method can process the business data through the target backup processing mode when the business data cannot be processed through the target processing mode, thereby effectively ensuring that the business data is processed in a timely and effective manner, which is conducive to improving the processing speed of the business data, thereby effectively improving the user experience.

[0069] Figure 1 is a flow chart of a data processing method according to an exemplary embodiment; Figure 1 As shown, the data processing method may include the following steps:

[0070] In step 101, when service data sent by a target device is received, a target processing mode corresponding to the service data is determined.

[0071] The target device may be a remote control, or an external device such as a mouse, keyboard, or headset, and the target processing mode may be to process the service data through a device node file corresponding to the target device, or to process the service data by calling a preset target application. The service data may include device identity information and control instruction information, and the device identity information may be a device ID, a device name, or a device identifier.

[0072] It should be noted that, when the target device is a remote control, the service data may include channel adjustment instructions, volume adjustment instructions, or other TV control instructions; when the target device is a mouse, the service data may include control command information related to mouse functions, such as cursor movement trajectory data, single-click control instructions, double-click control instructions, drag control instructions, etc.; when the target device is a keyboard, the service data may include control command information related to keyboard functions; when the target device is a headset, the service data may be control command information related to headset functions, such as control command information such as adjusting the headset volume and switching the playback order.

[0073] In this step, the target processing mode corresponding to the business data can be determined according to the device identity information.

[0074] For example, in the case where the target device is a Bluetooth remote controller for a television, if the service data includes a tuning control instruction and a device ID of the Bluetooth remote controller, when the television host receives the service data, the target processing mode corresponding to the service data can be determined according to the device ID to process the tuning control instruction through the target device node file corresponding to the Bluetooth remote controller. After that, the driver corresponding to the target device can be called according to the device ID, and the driver can establish a target device node file corresponding to the target device. When it is determined that the target device node file is successfully established, the tuning control instruction in the service data is processed through the target device node file, so that the television completes the tuning. Among them, the target device node file is the device node in the prior art, also known as a device file or a device file node, which can usually include the processing logic of the target device for the service data, and is used to call the device interface in the system according to the service data to complete the service data.

[0075] In step 102, in the case that the service data is processed by the target processing mode fails, a target backup processing mode is determined from one or more preset backup processing modes.

[0076] The inventors found that data transmission and data processing are sometimes asynchronous. Taking the TV system as an example, the TV system is composed of the upper layer Android and the lower layer kernel (kernel), see Figure 2 , Figure 2It is a block diagram of a data processing device shown in an exemplary embodiment of the present disclosure. After the service data is triggered by the TV remote control (RCU, Remote Control Unit), the service data is transmitted to the hid subsystem (Hid-core) by Bluedroid (Bluetooth module) through the UHID driver interface in the kernel, and the hid subsystem calls the Input-core interface to establish a device node file, and transmits the TV control instruction in the service data to the device node file, and the device node file processes the TV control instruction, and the Input hal in the upper Android system reads the processed data in the device node file, and distributes the read processed data to the upper input manager, and the Input manager executes the processing result corresponding to the service data through the APP. When the TV remote control re-establishes a connection with the TV (for example, the battery of the TV remote control has just been replaced, or the Bluetooth TV remote control has been moved from an area outside the connection range to a location within the connection range), when a TV control command (for example, a channel change command, a volume increase command, a volume decrease command, etc.) is triggered through the TV remote control, it is necessary to wait for a while before the TV can execute the TV control command. This is because when the TV remote control is reconnected to the TV, it is necessary to call the Input-core interface in the kernel to establish a device node file for the TV remote control. It takes a certain amount of time to establish the device node file, so there will be a problem of asynchronous data transmission and data processing.

[0077] Considering the asynchronous problem of data transmission and data processing, in this step, a possible implementation method corresponding to the failure of processing the business data through the target processing mode is: determine whether the target device node file corresponding to the target device is successfully established; when it is determined that the target device node file corresponding to the target device is not successfully established, determine that the business data is failed to be processed through the target processing mode. It should be noted that when it is determined that the target device node file corresponding to the target device is not successfully established, it is determined that the business data is failed to be processed through the target processing mode. This situation of the failure of the target mode to process the business data is a temporary state of the target processing mode. When the target device triggers the business data again, if the target device node file corresponding to the target device is successfully established, the business data that is triggered again can be sent to the target device node file, and the business data is processed through the target device node file. In the case of not receiving the business processing feedback information that characterizes the failure of the business data processing, it is determined that the target processing mode successfully processes the business data. In this way, it can effectively alleviate the technical problems such as business data loss, slow control response speed, low control efficiency, etc. caused by the asynchronous problem of data transmission and data processing, and can ensure that the business data is processed in a timely and effective manner, which is beneficial to improving the processing efficiency of business data and also beneficial to improving user experience.

[0078] Wherein, the determination of whether the target device node file corresponding to the target device is successfully established includes: if it is determined that the file identifier of the target device node file is generated, determining that the target device node file corresponding to the target device is successfully established; if it is determined that the file identifier of the target device node file is not generated, determining that the target device node file corresponding to the target device is not successfully established. The file identifier can be a file name, a file icon, or a storage path corresponding to the target device node file, such as / dev / input / eventX, where X is the device serial number.

[0079] In this step, if the target processing mode fails to process the service data, another possible implementation method is:

[0080] Business processing feedback information is obtained, where the business processing feedback information is used to indicate success or failure in processing the business data; if it is determined that the business processing feedback information indicates failure in processing the business data, it is determined that the target processing mode fails to process the business data.

[0081] In addition, the implementation method corresponding to determining the target backup processing mode from one or more preset backup processing modes described in this step can be: when the preset backup processing mode includes one, the backup processing mode is used as the target backup processing mode; when the preset backup processing mode includes multiple, the backup processing mode with the highest preset priority among the backup processing modes is used as the target backup processing mode.

[0082] In step 103, the service data is processed by the target standby processing mode.

[0083] In this step, a possible implementation method is: sending the service data to the device node file corresponding to the target standby processing mode; and processing the service data through the device node file.

[0084] Still taking the example shown in step 1 as an example for explanation, the backup processing mode of the target processing mode corresponding to the Bluetooth remote control (i.e., processing the business data through the target device node file corresponding to the Bluetooth remote control) is set to: processing the business data through the device node file corresponding to the infrared remote control; when it is determined that the target device node file corresponding to the Bluetooth remote control fails to be established or business processing feedback information representing the failure of the business data processing is obtained, the backup processing mode is determined as the target backup processing mode, and the business data is processed through the target backup processing mode; when the business data includes a channel tuning instruction, the channel tuning control instruction is processed through the target backup processing mode (i.e., processing the business data through the device node file corresponding to the infrared remote control).

[0085] Among them, when the TV remote control triggers a channel adjustment control instruction, the service data includes the channel adjustment control instruction and the device ID of the Bluetooth remote control. When the TV host receives the service data, it can determine the target processing mode corresponding to the service data according to the device ID, that is, to process the channel adjustment control instruction through the target device node file corresponding to the Bluetooth remote control. When it is determined that the target device node file corresponding to the Bluetooth remote control has not been successfully established, the device node file corresponding to the infrared remote control preset in the TV is obtained, and the channel adjustment control instruction is sent to the device node file corresponding to the infrared remote control, and the device node file of the infrared remote control processes the channel adjustment control instruction. In this way, when the Bluetooth remote control fails to process the service data, the device node file of the spare infrared remote control can be called to process the service data, so that the service data can be processed in a timely and effective manner, avoiding the loss of service data or the phenomenon that the user needs to wait due to the target device node file not being successfully established.

[0086] The above technical solution can process the business data through the target backup processing mode when the business data cannot be processed through the target processing mode, thereby effectively ensuring that the business data is processed in a timely and effective manner, which is conducive to improving the processing speed of business data, thereby effectively improving the user experience.

[0087] Figure 3 is a flow chart of another data processing method according to an exemplary embodiment; Figure 3 As shown, the data processing method may include the following steps:

[0088] In step 301, when service data sent by a target device is received, a target processing mode corresponding to the service data is determined.

[0089] The target device can be a remote control, or an external device such as a mouse, keyboard, or headset. The target processing mode can be to process the service data through the device node file corresponding to the target device, or to process the service data by calling a preset target application. The service data can include device identity information and control instruction information. The device identity information can be a device ID, a device name, or a device identifier. It should be noted that the specific implementation method of this step can be found in Figure 1 The implementation method corresponding to step 101 is not described in detail in this disclosure.

[0090] In addition, it should be pointed out that the service data may be data obtained by decoding the service signal output by the target device, and the decoding process of the service signal may be performed by a preset decoding program or directly by the data transmission module. Figure 2 In the TV system shown (the TV system is formed by the upper-layer Android and the underlying kernel), when Bluedroid receives a service signal sent by a Bluetooth remote control, Bluedroid can directly decode the service signal to obtain the service data, or Bluedroid can send the service signal to a preset decoding module (the decoding module includes a preset decoding program), and the decoding module decodes the service signal and sends the decoded service data to the corresponding device driver in the kernel for service data processing.

[0091] In step 302, it is determined whether the target device node file corresponding to the target device is successfully established.

[0092] Among them, the target device node file is the device node in the prior art, also known as device file, or device file node, which can usually include the target device's processing logic for business data, and is used to call the device interface in the system according to the business data to complete the business data.

[0093] In this step, if it is determined that the target device node file corresponding to the target device is not successfully established, execute steps 303 to 304; if it is determined that the target device node file corresponding to the target device is successfully established, execute steps 305 to 306.

[0094] A possible implementation method corresponding to this step is: if it is determined that the file identifier of the target device node file is generated, it is determined that the target device node file corresponding to the target device is successfully established; if it is determined that the file identifier of the target device node file is not generated, it is determined that the target device node file corresponding to the target device is not successfully established. The file identifier can be a file name, a file icon, or a storage path corresponding to the target device node file, such as / dev / input / eventX, where X is the device serial number.

[0095] In step 303, a target standby processing mode is determined from one or more preset standby processing modes.

[0096] In this step, a possible implementation method is: when the preset backup processing mode includes one, the backup processing mode is used as the target backup processing mode; when the preset backup processing mode includes multiple backup processing modes, the backup processing mode with the highest preset priority among the backup processing modes is used as the target backup processing mode.

[0097] In step 304, the service data is processed by the target standby processing mode.

[0098] The specific implementation method of this step can be found in Figure 1 The contents shown in step 103 are not repeated here in this disclosure.

[0099] In step 305, the service data is sent to the target device node file.

[0100] In step 306, the business data is processed through the target device node file.

[0101] The above technical scheme, when it is determined that the target device node file corresponding to the target device has not been successfully established, determines the target backup processing mode from one or more preset backup processing modes, and processes the business data through the target backup processing mode. When it is determined that the target device node file corresponding to the target device is successfully established, the business data is processed through the target device node file. This can effectively alleviate the business data loss caused by the asynchronous problem between business data transmission and business data processing, slow control response speed and other phenomena, can effectively ensure that business data is processed in a timely and effective manner, can improve the processing speed of business data, and ensure control efficiency, thereby effectively improving user experience.

[0102] Figure 4 is a flowchart of another data processing method according to an exemplary embodiment; Figure 4 As shown, the data processing method may include the following steps:

[0103] In step 401, when service data sent by a target device is received, a target processing mode corresponding to the service data is determined according to device identity information.

[0104] Among them, the business data includes device identity information and control instruction information. The device identity information can be a device ID, a device name or a device identifier. The target processing mode can be to process the business data through a target device node file corresponding to the target device, or to process the business data by calling a preset target application. The target device node file includes the target device's processing logic for the business data, which is used to call the device interface in the system according to the business data to complete the business data.

[0105] In step 402, when the business data fails to be processed by the target processing mode, a preset backup processing mode is obtained.

[0106] The backup processing mode may be a set of programs that can replace the target processing mode to process the business data.

[0107] In this step, in a possible implementation, it is determined whether the target device node file corresponding to the target device is successfully established; when it is determined that the target device node file corresponding to the target device is not successfully established, it is determined that the business data processing through the target processing mode has failed; when it is determined that the target device node file corresponding to the target device is successfully established, the business data is processed through the target device node file, and business processing feedback information is generated, and the business processing feedback information is used to characterize the success or failure of the business data processing; when it is determined that the business processing feedback information characterizes the failure of the business data processing, it is determined that the target processing mode has failed to process the business data.

[0108] It should be noted that, when it is determined that the file identifier of the target device node file is generated, it can be determined that the target device node file corresponding to the target processing mode is successfully established; when it is determined that the file identifier of the target device node file is not generated, it is determined that the target device node file corresponding to the target processing mode is not successfully established, wherein the file identifier can be a file name, a file icon, or a storage path corresponding to the target device node file, such as / dev / input / eventX, where X is the device serial number.

[0109] In addition, in this step, the standby processing mode corresponding to the target device processing mode may be preset through a preset interface (eg, a preset input interface, a preset information input window, a preset information input box, etc.).

[0110] For example, the alternative processing mode of the target processing mode corresponding to the Bluetooth remote control (i.e., processing the business data through the target device node file corresponding to the Bluetooth remote control) is: processing the business data through the device node file corresponding to the infrared remote control; the alternative processing mode of the target processing mode corresponding to the keyboard (i.e., processing the business data through the target device node file corresponding to the keyboard) is: processing the business data through the built-in virtual keyboard.

[0111] In step 403, it is determined whether the preset standby processing mode includes multiple ones.

[0112] In this step, if it is determined that the preset backup processing mode includes multiple ones, step 404 is executed, and if it is determined that the preset backup processing mode does not include multiple ones, step 405 is executed.

[0113] In step 404, the backup processing mode with the highest preset priority among the backup processing modes is used as the target backup processing mode.

[0114] For example, if the target device is a Bluetooth remote control, the backup processing modes corresponding to the target processing mode include backup processing mode one and backup processing mode two, wherein backup processing mode one is: processing the business data through the device node file corresponding to the infrared remote control, and backup processing mode two is: processing the business data through the processing program corresponding to the control panel on the TV. The preset priority of the backup processing mode one is higher than the preset priority of the backup processing mode two. Therefore, the backup processing mode one can be determined as the target backup processing mode.

[0115] It should be noted that, in the case that the preset backup processing modes include multiple ones, if the current target backup processing mode fails to process the business data, the target backup processing mode can be updated according to the preset priority of the backup processing mode, that is, when the backup processing mode with the highest preset priority fails to process the business data, the backup processing mode with the second highest preset priority can be used as the new target backup processing mode, and the business data is processed by the new target backup processing mode. In this way, in the case that the current target processing mode fails to process the business data, the backup target backup processing mode can be called, so that the business data can be processed in a timely and effective manner, avoiding the loss of business data, or the phenomenon that the user needs to wait because the target device node file has not been successfully established.

[0116] In step 405, the standby processing mode is used as the target standby processing mode.

[0117] In step 406, the service data is sent to the device node file corresponding to the target standby processing mode.

[0118] The device node file corresponding to the target standby processing mode may be pre-set in the terminal.

[0119] In step 407, the service data is processed through the device node file.

[0120] Among them, the process of processing business data through device node files is relatively common in the prior art, and this disclosure will not go into details here.

[0121] The above technical solution can determine the target backup processing mode from the preset backup processing modes when the target processing mode fails to process the business data, and then process the business data through the target backup processing mode, thereby effectively ensuring that the business data is processed in a timely and effective manner, which is conducive to improving the processing speed of business data, thereby effectively improving the user experience.

[0122] Figure 5 is a block diagram of a data processing device according to an exemplary embodiment; Figure 5 As shown, the device may include:

[0123] The first determination module 501 is configured to determine a target processing mode corresponding to the service data when receiving service data sent by a target device;

[0124] The second determination module 502 is configured to determine a target backup processing mode from one or more preset backup processing modes when processing the service data by the target processing mode fails;

[0125] The first service processing module 503 is configured to process the service data through the target backup processing mode.

[0126] The above technical solution can process the business data through the target backup processing mode when the business data cannot be processed through the target processing mode, thereby effectively ensuring that the business data is processed in a timely and effective manner, which is conducive to improving the processing speed of business data, thereby effectively improving the user experience.

[0127] Optionally, the second determining module 502 is configured to:

[0128] Determine whether the target device node file corresponding to the target processing mode is successfully established;

[0129] When it is determined that the target device node file corresponding to the target processing mode is not successfully established, it is determined that processing the business data through the target processing mode fails.

[0130] Optionally, the device further comprises:

[0131] The third determining module 504 is configured to send the service data to the target device node file if it is determined that the target device node file corresponding to the target device is successfully established;

[0132] The second service processing module 505 is configured to process the service data through the target device node file.

[0133] Optionally, the second determining module 502 is configured to:

[0134] In the case of determining that the file identifier of the target device node file is generated, determining that the target device node file corresponding to the target processing mode is successfully established;

[0135] When it is determined that the file identifier of the target device node file is not generated, it is determined that the target device node file corresponding to the target processing mode is not successfully established.

[0136] Optionally, the second determining module 502 is configured to:

[0137] Obtaining business processing feedback information, where the business processing feedback information is used to indicate success or failure of business data processing;

[0138] When it is determined that the service processing feedback information indicates that the service data processing has failed, it is determined that the target processing mode has failed in processing the service data.

[0139] Optionally, the second determining module 502 is configured to:

[0140] In the case that the preset standby processing mode includes one, taking the standby processing mode as the target standby processing mode;

[0141] In the case that the preset standby processing modes include a plurality of modes, a standby processing mode with the highest preset priority among the standby processing modes is determined as the target standby processing mode.

[0142] Optionally, the service data includes device identity information, and the first determining module is configured to:

[0143] A target processing mode corresponding to the business data is determined according to the device identity information.

[0144] Optionally, the first service processing module 303 is configured to:

[0145] Sending the service data to the device node file corresponding to the target standby processing mode;

[0146] The service data is processed through the device node file.

[0147] The above technical solution can determine the target backup processing mode from the preset backup processing modes when the target processing mode fails to process the business data, and then process the business data through the target backup processing mode, thereby effectively ensuring that the business data is processed in a timely and effective manner, which is conducive to improving the processing speed of business data, thereby effectively improving the user experience.

[0148] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0149] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the data processing method provided by the present disclosure are implemented.

[0150] Figure 6 600 is a block diagram of another data processing device according to an exemplary embodiment. For example, the device 600 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, etc.

[0151] Reference Figure 6 , the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0152] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned data processing method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0153] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.

[0154] The power component 606 provides power to the various components of the device 600. The power component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.

[0155] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the 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 input signals from the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0156] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0157] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as 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.

[0158] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0159] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can 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 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0160] In an exemplary embodiment, the apparatus 600 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, microcontrollers, microprocessors or other electronic components to perform the above-mentioned data processing method.

[0161] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by the processor 620 of the device 600 to complete the above data processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0162] Figure 7 700 is a block diagram of a data processing device according to an exemplary embodiment. For example, the device 700 may be provided as a server. Figure 7 , the apparatus 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions, such as an application, that can be executed by the processing component 722. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the above-mentioned data processing method.

[0163] The device 700 may also include a power supply component 726 configured to perform power management of the device 700, a wired or wireless network interface 750 configured to connect the device 700 to a network, and an input / output (I / O) interface 758. The device 700 may operate based on an operating system stored in the memory 732, such as Windows Server 2000. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or similar.

[0164] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0165] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: The method comprises: In the case of receiving service data sent by a target device, determining a target processing mode corresponding to the service data, wherein the service data includes device identity information and control instruction information; In the case that processing the service data by the target processing mode fails, determining a target backup processing mode from one or more preset backup processing modes; Processing the service data by means of the target standby processing mode; The failure to process the business data by the target processing mode includes: Acquiring business processing feedback information, where the business processing feedback information is used to indicate success or failure of processing the business data; When it is determined that the business processing feedback information indicates that the business data processing has failed, it is determined that the target processing mode has failed to process the business data, and the target processing mode is to process the business data through a device node file corresponding to a target device, or to process the business data by calling a preset target application.

2. The method according to claim 1, characterized in that The failure to process the business data by the target processing mode includes: Determine whether the target device node file corresponding to the target device is successfully established; When it is determined that the target device node file corresponding to the target device is not successfully established, it is determined that processing the business data through the target processing mode fails.

3. The method according to claim 2, characterized in that The method further comprises: When it is determined that the target device node file corresponding to the target device is successfully established, sending the service data to the target device node file; The business data is processed through the target device node file.

4. The method according to claim 2 or 3, characterized in that: The determining whether the target device node file corresponding to the target device is successfully established comprises: In the case of determining that the file identifier of the target device node file is generated, determining that the target device node file corresponding to the target device is successfully established; When it is determined that the file identifier of the target device node file is not generated, it is determined that the target device node file corresponding to the target device is not successfully established.

5. The method according to claim 1, characterized in that The step of determining a target standby processing mode from one or more preset standby processing modes comprises: In the case that the preset standby processing mode includes one, taking the standby processing mode as the target standby processing mode; In the case that the preset backup processing modes include a plurality of modes, the backup processing mode with the highest preset priority among the backup processing modes is used as the target backup processing mode.

6. The method according to claim 1, characterized in that The business data includes device identity information, and determining a target processing mode corresponding to the business data includes: A target processing mode corresponding to the business data is determined according to the device identity information.

7. The method according to claim 1, characterized in that The processing of the service data by using the target standby processing mode includes: Sending the service data to the device node file corresponding to the target standby processing mode; The business data is processed through the device node file.

8. A data processing device, characterized in that: The device comprises: A first determination module is configured to determine a target processing mode corresponding to the service data when receiving service data sent by a target device, wherein the service data includes device identity information and control instruction information; A second determination module is configured to determine a target backup processing mode from one or more preset backup processing modes when processing the business data by the target processing mode fails; A first business processing module, configured to process the business data through the target standby processing mode; The second determining module is configured to: Obtain business processing feedback information, wherein the business processing feedback information is used to characterize the success or failure of the business data processing; when it is determined that the business processing feedback information characterizes the failure of the business data processing, determine that the target processing mode fails to process the business data, and the target processing mode is to process the business data through the device node file corresponding to the target device, or to process the business data by calling a preset target application.

9. A data processing device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: implement the steps of the method described in any one of claims 1 to 7 when executing the executable instructions.

10. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Remote control mode determination method and device and remote control method and device

    CN112216088A

  • Remote control response method, electronic equipment and computer readable storage medium

    CN112351321A

  • Data processing method, server equipment and computer readable storage medium

    CN112367345A