WO2017156713A1 - 一种业务处理方法及装置 - Google Patents
一种业务处理方法及装置 Download PDFInfo
- Publication number
- WO2017156713A1 WO2017156713A1 PCT/CN2016/076425 CN2016076425W WO2017156713A1 WO 2017156713 A1 WO2017156713 A1 WO 2017156713A1 CN 2016076425 W CN2016076425 W CN 2016076425W WO 2017156713 A1 WO2017156713 A1 WO 2017156713A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- function module
- terminal
- service
- processed
- information
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 105
- 238000012545 processing Methods 0.000 claims abstract description 92
- 230000008569 process Effects 0.000 claims abstract description 82
- 230000004044 response Effects 0.000 claims description 54
- 238000009434 installation Methods 0.000 claims description 25
- 230000006870 function Effects 0.000 description 420
- 238000010586 diagram Methods 0.000 description 18
- 230000015654 memory Effects 0.000 description 18
- 230000036772 blood pressure Effects 0.000 description 8
- 230000001133 acceleration Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 230000005484 gravity Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000001186 cumulative effect Effects 0.000 description 4
- 230000035487 diastolic blood pressure Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 235000012054 meals Nutrition 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000035488 systolic blood pressure Effects 0.000 description 4
- 206010020772 Hypertension Diseases 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 230000002526 effect on cardiovascular system Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 208000001953 Hypotension Diseases 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000036543 hypotension Effects 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72469—User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/22—Processing or transfer of terminal data, e.g. status or physical capabilities
- H04W8/24—Transfer of terminal data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a service processing method and apparatus.
- the current application forms on the smart terminal are different.
- One of the application forms is a native application.
- the native application is developed for the development interface of the specific operating system and the target code supported by the operating system, and needs to be downloaded to
- the smart terminal is installed and can be used by the user.
- the processing capability of the intelligent terminal is also continuously improved, and the functions of the application installed on the smart terminal are also increasingly rich.
- the installation package of native applications is getting larger and larger, usually tens of Mbytes or even hundreds of Mbytes.
- the usage efficiency refers to the ratio of the storage space occupied by the function used by the application to the total storage space occupied by the application; the higher the usage efficiency, the more valuable the storage space, the consumption of the network traffic, and the waiting time for installation.
- the embodiment of the present invention provides a service processing method, which is used to solve the technical problem that the application installation package is too large and the usage efficiency is low when the terminal performs service processing through the native application in the prior art.
- the embodiment of the invention provides a service processing method, including:
- the terminal acquires identification information of the service to be processed
- the terminal After the terminal determines that the function module corresponding to the identification information of the to-be-processed service does not exist in the installed application, the terminal sends a retrieval request message to the server; the application is a program framework that does not have a service processing function; The search request message includes the identification information of the to-be-processed service;
- the terminal invokes the target function module to process the to-be-processed service.
- the terminal After the terminal obtains the identification information of the service to be processed, it first determines whether there is a function module corresponding to the to-be-processed service in the installed application, and sends a retrieval request message to the server in the absence of the device, thereby eliminating the need for each
- the web application is obtained from the server on the other hand.
- the terminal receives the target function module returned by the server, instead of the application installation package (which may contain content not related to the function requirement), thereby effectively saving traffic and downloading. Time, and because the target function module is highly targeted, in this way, based on the processing of the service to be processed, the application efficiency is significantly improved.
- the terminal determines that the function module corresponding to the identification information of the to-be-processed service exists in the application program that is installed by the terminal, and then calls the function module corresponding to the identification information of the to-be-processed service to process the to-be-processed business.
- the terminal After the terminal determines that the function module corresponding to the identification information of the to-be-processed service exists in the installed application, the terminal directly calls the function module to process the to-be-processed service, and does not need to acquire from the server again, thereby realizing the cumulative effect and avoiding the Web.
- the terminal after the terminal receives the response message returned by the server, and before calling the target function module to process the to-be-processed service, the terminal further includes:
- the terminal invoking the target function module to process the to-be-processed service includes:
- the terminal invokes the target function module added to the installed application to process the to-be-processed service.
- the terminal can directly add the received target function module to the matched application without installing a new application.
- the processing efficiency is improved, and the classification of each functional module is realized by the application.
- the terminal after the terminal receives the response message returned by the server, and before calling the target function module to process the to-be-processed service, the terminal further includes:
- the target function module processes the to-be-processed service, including:
- the terminal invokes the target function module added to the newly installed application to process the to-be-processed service.
- the new application created by the terminal can be called a shell program, which is similar to the APP on the existing Android system.
- the hypervisor on the terminal creates the shell program, for example, by copying pseudo code, and then in the shell.
- the above target function module and other function modules are connected in the program, and the interface between the shell program and the function module may be a standard interface defined in advance.
- the terminal obtains the identification information of the service to be processed, including:
- the terminal receives the input information of the user, and obtains the identification information of the to-be-processed service from the input information.
- the terminal can identify the service to be processed by receiving the input information of the user, considering that the service to be processed can be a service initiated by the user through information input.
- the terminal obtains the identification information of the service to be processed, including:
- the terminal acquires information of the sensor, and obtains identification information of the to-be-processed service according to the information of the sensor.
- the terminal can identify the service to be processed by acquiring the information of the sensor, considering that the service to be processed can be the service triggered by the data information detected by the sensor.
- the information of the sensor includes data information collected by the sensor and functional attributes of the sensor;
- the terminal acquires the information of the sensor, and obtains the identification information of the to-be-processed service according to the information of the sensor, including:
- the terminal After determining that the data information does not meet the normal preset condition corresponding to the function attribute, the terminal acquires a first keyword corresponding to the data information and a function attribute corresponding to the sensor, according to the function attribute of the sensor. At least one second keyword set in advance;
- the terminal uses the first keyword and the at least one second keyword as the identification information of the to-be-processed service.
- the terminal determines the to-be-processed service according to the information of the sensor, and determines that the data information does not meet the normal preset condition corresponding to the function attribute of the sensor, the terminal performs the steps of acquiring the first keyword and the second keyword, which can effectively avoid The data information meets the normal preset condition, and the determined second keyword is invalid.
- the effect of effectively saving the processing resources can be achieved by reasonably arranging the execution sequence; and the embodiment of the present invention comprehensively considers two aspects. That is, the first keyword corresponding to the data information and the second keyword preset corresponding to the function attribute of the sensor, so that the determined service to be processed is more accurate.
- the data information includes data collected by the sensor at different times.
- the terminal determines the first keyword according to the accumulated analysis of the multiple data information by acquiring the data information collected by the sensor at different times, for example, if more than half of the data information collected multiple times corresponds to the same keyword
- the keyword can be determined as the first keyword, so that the error of the data to be processed by the sensor can be effectively avoided, and the subsequently determined service to be processed is inaccurate.
- An embodiment of the present invention provides another service processing method, where the method includes:
- the server receives the retrieval request message sent by the terminal, where the retrieval request message is sent by the terminal after determining that the function module corresponding to the identification information of the service to be processed does not exist in the application that is installed by the terminal;
- the target information module corresponding to the identification information of the service to be processed is obtained from the function module library, and the response message including the target function module is sent to the terminal, so that the terminal invokes the target function module to process the to-be-processed service;
- the terminal first determines whether there is a function module corresponding to the to-be-processed service in the installed application, and sends a retrieval request message to the server in the absence of the application, so that the terminal does not need to obtain the server from the server every time.
- the server returns to the terminal is the target function module, not the application installation package (may contain content not related to this functional requirement), thereby effectively saving traffic and terminal download time, and because The target function module is highly targeted.
- the target function module is highly targeted.
- the function module library includes one or more functional modules
- the target function module corresponding to the identification information of the to-be-processed service from the function module library, according to the identifier information of the to-be-processed service, including:
- the server acquires attribute information of each function module in the function module library
- the server compares the identifier information of the to-be-processed service with the attribute information of each function module in the function module library, and obtains the similarity between the identifier information of the to-be-processed service and the attribute information of each function module. ;
- the server determines the function module corresponding to the maximum similarity as the target function module.
- the server when the server retrieves the function module library, the server compares the identification information of the service to be processed with the attribute information of each function module in the function module library, and determines the target function module according to the comparison result, and the traversal search is performed through the traversal search.
- the traversal search is performed through the traversal search.
- the embodiment of the invention provides a terminal, including:
- the processing module is configured to obtain identification information of the service to be processed, and determine an application that is installed by the terminal. Whether there is a function module corresponding to the identification information of the to-be-processed service in the program;
- a sending module configured to send a retrieval request message to the server after the processing module determines that the function module corresponding to the identification information of the to-be-processed service exists in the application that is installed by the terminal, where the retrieval request message includes the to-be-received message Handling identification information of the business;
- a receiving module configured to receive a response message returned by the server, where the response message includes a target function module corresponding to the identifier information of the to-be-processed service;
- the processing module is further configured to invoke the target function module to process the to-be-processed service.
- the terminal After the terminal obtains the identification information of the service to be processed, it first determines whether there is a function module corresponding to the to-be-processed service in the installed application, and sends a retrieval request message to the server in the absence of the device, thereby eliminating the need for each
- the web application is obtained from the server on the other hand.
- the terminal receives the target function module returned by the server, instead of the application installation package (which may contain content not related to the function requirement), thereby effectively saving traffic and downloading. Time, and because the target function module is highly targeted, in this way, based on the processing of the service to be processed, the application efficiency is significantly improved.
- the processing module is further configured to:
- the function module corresponding to the identifier information of the to-be-processed service is invoked to process the to-be-processed service.
- the terminal After the terminal determines that the function module corresponding to the identification information of the to-be-processed service exists in the installed application, the terminal directly calls the function module to process the to-be-processed service, and does not need to acquire from the server again, thereby realizing the cumulative effect and avoiding the Web.
- the processing module is further configured to:
- the module processes the to-be-processed service.
- the terminal can directly add the received target function module to the matched application without installing a new application.
- the processing efficiency is improved, and the classification of each functional module is realized by the application.
- the processing module is further configured to:
- the application that matches the target function module does not exist in the installed application, install a new application, and add the target function module to the newly installed application; call to add to the new installation
- the target function module in the application processes the pending service.
- the new application created by the terminal can be called a shell program, which is similar to the APP on the existing Android system.
- the hypervisor on the terminal creates the shell program, for example, by copying pseudo code, and then in the shell.
- the above target function module and other function modules are connected in the program, and the interface between the shell program and the function module may be a standard interface defined in advance.
- the receiving module is further configured to: receive input information of the user;
- the processing module is specifically configured to: obtain identifier information of the to-be-processed service from the input information.
- the processing module is specifically configured to: acquire information of the sensor, and obtain identification information of the to-be-processed service according to the information of the sensor.
- the processing module is specifically configured to:
- the first keyword and the at least one second keyword are used as identification information of the to-be-processed service.
- the terminal determines the to-be-processed service according to the information of the sensor, and determines that the data information does not meet the normal preset condition corresponding to the function attribute of the sensor, the terminal performs the steps of acquiring the first keyword and the second keyword, which can effectively avoid The data information meets the normal preset condition, and the determined second keyword is invalid.
- the effect of effectively saving the processing resources can be achieved by reasonably arranging the execution sequence; and the embodiment of the present invention comprehensively considers two aspects. That is, the first keyword corresponding to the data information and the second keyword preset corresponding to the function attribute of the sensor, so that the determined service to be processed is more accurate.
- the data information includes data collected by the sensor at different times.
- the terminal determines the first keyword according to the accumulated analysis of the multiple data information by acquiring the data information collected by the sensor at different times, for example, if more than half of the data information collected multiple times corresponds to the same keyword
- the keyword can be determined as the first keyword, so that the error of the data to be processed by the sensor can be effectively avoided, and the subsequently determined service to be processed is inaccurate.
- An embodiment of the present invention provides a server, where the server includes:
- a receiving module configured to receive a retrieval request message sent by the terminal, where the retrieval request message is sent by the terminal after determining that the application module that is installed by the terminal does not have a function module corresponding to the identification information of the service to be processed;
- the request message includes the identification information of the to-be-processed service;
- An acquiring module configured to acquire, according to the identifier information of the to-be-processed service, a target function module corresponding to the identifier information of the to-be-processed service from the function module library;
- a sending module configured to send, to the terminal, a response message that includes the target function module, so that the terminal invokes the target function module to process the to-be-processed service.
- the server After receiving the retrieval request message that is sent by the terminal and containing the identification information of the service to be processed, the server acquires the target function module corresponding to the identification information of the service to be processed from the function module library, and sends the target function module to the terminal. Since the server sends the target function module to the terminal instead of the application installation package (which may contain content unrelated to the current function requirement), the traffic is saved and the download time of the terminal is saved, and the target function module is saved. It is highly targeted, so in this way, based on the processing of the service to be processed by the terminal, Can significantly improve the efficiency of the application.
- the function module library is in the server, and the function module library includes one or more functional modules;
- the obtaining module is specifically configured to:
- the function module corresponding to the maximum similarity is determined as the target function module.
- the server when the server retrieves the function module library, the server compares the identification information of the service to be processed with the attribute information of each function module in the function module library, and determines the target function module according to the comparison result, and the traversal search is performed through the traversal search.
- the traversal search is performed through the traversal search.
- a processor configured to obtain identification information of the service to be processed, and determine whether a function module corresponding to the identification information of the to-be-processed service exists in the application that is installed by the terminal;
- a transmitter configured to send a retrieval request message to the server when the processor determines that the function module corresponding to the identification information of the to-be-processed service does not exist in the application that is installed by the terminal, where the retrieval request message includes Describe the identification information of the processed service;
- a receiver configured to receive a response message returned by the server, where the response message includes a target function module corresponding to the identifier information of the to-be-processed service;
- the processor is further configured to invoke the target function module to process the to-be-processed service.
- the terminal After the terminal obtains the identification information of the service to be processed, it first determines whether there is a function module corresponding to the to-be-processed service in the installed application, and sends a retrieval request message to the server in the absence of the device, thereby eliminating the need for each
- the web application is obtained from the server on the other hand.
- the terminal receives the target function module returned by the server, instead of the application installation package (which may contain content not related to the function requirement), thereby effectively saving traffic and downloading. Time, and because of the purpose The standard function module is highly targeted, so in this way, the application efficiency of the application is significantly improved on the basis of processing the service to be processed.
- the processor is further configured to:
- the function module corresponding to the identifier information of the to-be-processed service is invoked to process the to-be-processed service.
- the processor is further configured to:
- the module processes the to-be-processed service.
- the processor is further configured to:
- the application that matches the target function module does not exist in the installed application, install a new application, and add the target function module to the newly installed application; call to add to the new installation
- the target function module in the application processes the pending service.
- an input device is further included for:
- the processor When acquiring the identification information of the service to be processed, the processor is specifically configured to obtain the identification information of the to-be-processed service from the input information.
- the processor when acquiring the identification information of the service to be processed, is specifically configured to: acquire information of the sensor, and obtain identification information of the to-be-processed service according to the information of the sensor.
- the processor when the processor obtains the identification information of the service to be processed, the processor is specifically configured to:
- the first keyword and the at least one second keyword are used as identification information of the to-be-processed service.
- the data information includes data collected by the sensor at different times.
- a receiver configured to receive a retrieval request message sent by the terminal, where the retrieval request message is sent by the terminal after determining that the application module that is installed by the terminal does not have a function module corresponding to the identification information of the service to be processed;
- the request message includes the identification information of the to-be-processed service;
- a processor configured to acquire, according to the identifier information of the to-be-processed service, a target function module corresponding to the identifier information of the to-be-processed service from the function module library;
- a transmitter configured to send, to the terminal, a response message that includes the target function module, so that the terminal invokes the target function module to process the to-be-processed service.
- the server After receiving the retrieval request message that is sent by the terminal and containing the identification information of the service to be processed, the server acquires the target function module corresponding to the identification information of the service to be processed from the function module library, and sends the target function module to the terminal. Since the server sends the target function module to the terminal instead of the application installation package (which may contain content unrelated to the current function requirement), the traffic is saved and the download time of the terminal is saved, and the target function module is saved. It is highly targeted. Therefore, in this way, based on the processing of the service to be processed by the terminal, the application efficiency of the application can be significantly improved.
- the function module library is in the server, and the function module library includes one or more functional modules;
- the processor is specifically configured to:
- the function module corresponding to the maximum similarity is determined as the target function module.
- the terminal acquires the identification information of the service to be processed, and after determining that the function module corresponding to the identification information of the service to be processed does not exist in the application program that has been installed, the terminal sends a retrieval request message to the server, and the terminal receives the server return.
- the terminal first determines whether there is a function module corresponding to the to-be-processed service in the installed application, and if not, in the case that the target function module is configured to process the service to be processed.
- the retrieval request message is sent to the server, so that it is not necessary to obtain the web application from the server every time.
- the terminal receives the target function module returned by the server, instead of the application installation package (may contain nothing related to the function requirement). Content), which effectively saves traffic and download time, and because the target function module is highly targeted, in this way, the use of the service to be processed is significantly improved, and the application is significantly improved. effectiveness.
- FIG. 1 is a schematic structural diagram of a system applicable to an embodiment of the present invention
- FIG. 2 is a block diagram of a terminal according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart of a service processing method according to an embodiment of the present disclosure
- FIG. 4 is a schematic flowchart of determining service identification information to be processed according to information of the sensor A;
- FIG. 5 is a schematic diagram of an application hook function module
- FIG. 6 is a schematic structural diagram of a terminal for performing service processing according to an embodiment of the present disclosure.
- FIG. 7 is a schematic structural diagram of a server for performing service processing according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of another terminal for performing service processing according to an embodiment of the present disclosure.
- FIG. 9 is a schematic structural diagram of another server for performing service processing according to an embodiment of the present invention.
- FIG. 1 exemplarily shows a schematic diagram of a system architecture to which an embodiment of the present invention is applied.
- the system architecture includes a terminal 101, a server 102, and a function module library 103.
- the function module library 103 may be integrated in the server 102 or may exist independently of the server 102.
- the server has the right to access the function module library.
- Terminal 101 can communicate with server 102 over a WLAN, cellular network, or wired network.
- the terminal involved in the embodiment of the present invention may be a device capable of supporting an application hook function module, such as a handheld device, an in-vehicle device, a wearable device, a computing device, and various forms capable of supporting an application hook function module.
- User equipment UE
- MS mobile station
- terminal equipment etc.
- UE such as mobile phones, tablets, laptops, desktop computers, and the like.
- the embodiment of the present invention is simply referred to as a terminal.
- the terminal 101 may include an input unit 130, a display unit 140, a sensor unit 150, a memory 120, a processor 190, a radio frequency unit 110, an audio circuit 160, and a speaker 161. , a microphone 162, a WiFi (wireless fidelity) module 170, a power source 180, an external interface 191, and the like.
- a WiFi wireless fidelity
- FIG. 2 is merely an example of a terminal and does not constitute a limitation of the terminal.
- the terminal in practice may include more or less components than those illustrated, or combine some components or different components. .
- the input unit 130 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal.
- the input unit 130 may include a touch screen 131 and other input devices 132.
- the touch screen 131 can collect touch operations on or near the user (such as the user's operation on the touch screen or near the touch screen using any suitable object such as a finger, a joint, a stylus pen, etc.), and drive the corresponding according to a preset program. Connection device.
- the touch screen can detect a user's touch action on the touch screen, and convert the touch action into a touch signal And sending to the processor 190, and receiving a command sent by the processor 190 and executing; the touch signal includes at least contact coordinate information.
- the touch screen 131 can provide an input interface and an output interface between the terminal 101 and a user.
- touch screens can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 130 may also include other input devices.
- other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control button 132, switch button 133, etc.), trackball, mouse, joystick, microphone, camera, and the like.
- the input unit 130 is mainly configured to acquire input information of the user, so as to obtain the identification information of the service to be processed from the input information.
- the display unit 140 can be used to display information input by a user or information provided to a user and various menus of the terminal 101.
- the touch screen 131 may cover the display panel 141.
- the touch screen 131 detects a touch operation on or near it, the touch screen 131 transmits to the processor 190 to determine the type of the touch event, and then the processor 190 displays the panel according to the type of the touch event.
- a corresponding visual output is provided on 141.
- the touch screen and the display unit can be integrated into one component to implement the input, output, and display functions of the terminal 101.
- the embodiment of the present invention uses the touch screen to represent the function set of the touch screen and the display unit;
- the touch screen and the display unit can also be used as two separate components.
- the display unit 140 is mainly used to display the interface of the application generated by the terminal 101, the processing result of the terminal 101, and the information fed back to the user.
- the sensor unit 150 includes one or more sensors, which may be built in the terminal, or may be external (through data transmission, the collected data information is sent to the terminal).
- the sensor unit 150 is mainly used for detecting data such as a user's exercise state, physiological indicators, or the like, or detecting environmental information such as temperature, humidity, and air quality of the environment.
- a gravity acceleration sensor 151, a proximity light sensor 152, an ambient light sensor 153, and the like may be included.
- the gravity acceleration sensor 151 can detect the magnitude of the acceleration in each direction (generally three axes), and the gravity acceleration sensor 151 can also be used to detect the magnitude and direction of the gravity when the terminal is stationary, and can be used to identify the terminal posture. Applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; In the embodiment, the gravity acceleration sensor 151 is configured to acquire a gravitational acceleration of the touch action of the user in the z-axis direction of the touch action of the user, thereby facilitating recognition of the input of the user.
- the proximity light sensor 152 is configured to close and disable the touch screen to avoid erroneous operation of the touch screen by the user when the terminal 101 is closer to the user (eg, close to the ear when the user is making a call); the ambient light sensor 153, Used to keep the touch screen off when the terminal 101 is in a user's pocket or other dark area to prevent the terminal 101 from consuming unnecessary battery power consumption or being mishandled in the locked state, in some embodiments, proximity to the light sensor and ambient light
- the sensor can be integrated in one component or as two separate components.
- FIG. 3 shows the gravitational acceleration sensor, the proximity photosensor, and the ambient light sensor, it is understood that it does not belong to the essential configuration of the terminal 101, and may be omitted as needed within the scope of not changing the essence of the invention.
- the memory 120 can be used to store instructions and data, the memory 120 can mainly include a storage instruction area and a storage data area, the storage data area can store an association relationship between the joint touch gesture and the application function; the storage instruction area can store an operating system, at least one Instructions and the like required for the function; the instructions may cause the processor 190 to perform the following method, as shown in FIG.
- the processor 190 is a control center of the terminal 101, and connects various parts of the entire terminal by various interfaces and lines, and executes various kinds of the terminal 101 by operating or executing an instruction stored in the memory 120 and calling data stored in the memory 120. Function and process data to monitor the terminal as a whole.
- the processor 190 may include one or more processing units; preferably, the processor 190 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 190.
- the processors, memories can be implemented on a single chip, and in some embodiments, they can also be implemented separately on separate chips.
- the radio frequency unit 110 can be used for receiving and transmitting signals during transmission and reception of information or during a call, in particular, after receiving downlink information of the base station, processing is performed by the processor 190; The data is sent to the base station.
- RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
- the radio unit 110 can also communicate with network devices and other devices through wireless communication.
- the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
- GSM Global System of Mobile communication
- GPRS General Packet Radio Service
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple
- the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal 101.
- the audio circuit 160 can transmit the converted electrical data of the received audio data to the speaker 161 for conversion to the sound signal output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal by the audio circuit 160. After receiving, it is converted into audio data, and then processed by the audio data output processor 190, transmitted to the terminal, for example, by the radio frequency unit 110, or outputted to the memory 120 for further processing (for example, conversion to text information),
- the audio circuit can also include a headphone jack 163 for providing a connection interface between the audio circuit and the earphone.
- WiFi is a short-range wireless transmission technology
- the terminal 101 can help a user to send and receive emails, browse web pages, and communicate with a server through the WiFi module 170, which provides wireless broadband Internet access for users.
- FIG. 2 shows the WiFi module 170, it can be understood that it does not belong to the essential configuration of the terminal 101, and may be omitted as needed within the scope of not changing the essence of the invention.
- the terminal 101 further includes a power source 180 (such as a battery) for supplying power to the various components.
- a power source 180 (such as a battery) for supplying power to the various components.
- the power source 180 can be logically connected to the processor 190 through the power management system to manage functions such as charging, discharging, and power management through the power management system. .
- the terminal 101 further includes an external interface 191, which may be a standard Micro USB interface, or a multi-pin connector, which may be used to connect the terminal 101 to communicate with other devices, or may be used to connect the charger to the terminal 101. Charging.
- an external interface 191 which may be a standard Micro USB interface, or a multi-pin connector, which may be used to connect the terminal 101 to communicate with other devices, or may be used to connect the charger to the terminal 101. Charging.
- the terminal 101 may further include a camera, a flash, and the like, and details are not described herein again.
- the server in the embodiment of the present invention may be a device having the right to access the function module library.
- the function module library includes one or more functional modules.
- the function module includes the following elements:
- Attribute information The service provided by the function module is described by means of a label, a key-value pair, a text, etc., and is used for server retrieval.
- Each functional module is used to implement certain business functions.
- the business logic is to implement specific business functions through software (which may require hardware cooperation).
- the business logic can also contain the data needed by the business. The data can come from the terminal, from the server, or from a third-party data source.
- Human-computer interaction interface used to receive user input and feedback the operation result to the user.
- a functional module can have one or more human-computer interaction interfaces.
- the load interface is the entry point of the application shell hook function module, and when the function module is started from the application, the load interface can be used as the startup entry of the function module.
- the load interface can describe the interface name, interface parameters, icons, names of function modules, etc. through an XML document.
- the functional module may also have other elements required by the execution environment.
- Functional modules can be implemented in a variety of forms, such as in the form of source code (web application is source code), in the form of intermediate code, and in the form of terminal native machine code.
- Different implementation forms require the terminal to provide different execution environments.
- using the source code (HTML, JaveScrpt, CSS) form of the web application requires the terminal to have a browser engine to parse and execute the function module; and the intermediate code requires the terminal.
- a virtual machine with intermediate code to parse and execute the function module in the form of the terminal native machine code, it can be supported by the operating system of the terminal.
- the function module is sent to the terminal by the server, it will be synthesized into the application on the terminal to facilitate the implementation of subsequent functions.
- the application is redefined, which is a program framework that does not have a business processing function.
- the application and the function module are hooked through the loading interface of the function module.
- loading interface can describe the interface name, interface parameter, icon, function module name, etc. through an XML document" as an example, at least the following three forms are implemented to connect the function module with the application:
- the XML The content described in the document complies with the mutually agreed rules that the developers of the functional modules and the developers of the application follow certain standards or rules in advance.
- the application and functional modules can implement both standards or rules. Mounted.
- the function module is standardized according to the relevant provisions of the rule, and the function module is attached without changing the framework of the application itself and other functional modules in the application. .
- the detailed interface name and interface parameters are forcibly defined in advance, and the interface name and interface parameters are standardized.
- the subsequent hook process is determined. Implement the hooking of the function module to the application.
- the developer of the application and the developer of the function module do not conduct any negotiation, and there is no definition of standardization of the hooking rules by the organization.
- the application update process is executed. For example, adaptively adjust the architecture of the entire application, or obtain developer permissions to adjust the architecture of the functional module to achieve the hooking of the two.
- the first implementation is the most efficient, with minimal changes to existing application development and functional module development.
- Attribute information used to describe the characteristics of the function module to which the application is attached, in order to determine the function module that matches the application.
- the attribute information of the application is derived from the attribute information of the function module, that is, the attribute information of the plurality of function modules having the association relationship may be divided into one category according to the attribute information of the function module, and the plurality of function modules are The attribute information is determined as attribute information of an application, and the plurality of function modules can be subsequently attached to the application.
- Start entry For example, it can be an icon, or a call interface for docking a voice command, or a call interface for a docking search condition building module.
- the application program in the embodiment of the present invention is a “shell”.
- the application program in the embodiment of the present invention is a “shell”.
- one or more functional modules need to be connected to the application program to have a business function.
- an application with attribute information as an entertainment activity is installed on the terminal, and the startup portal is an icon, and the application has no business processing function, and if the application has a plurality of functional modules for entertainment activities, such as movies, , shopping, etc., then follow the user's specific needs, call the corresponding function module to handle business functions.
- the processor 190 in the terminal 101 reads the program stored in the memory 120, and cooperates with the input unit 130, the display unit 140, and the sensor unit 150 to execute the method flow described below.
- the method includes:
- Step 301 The terminal acquires identification information of the to-be-processed service.
- Step 302 After determining that the function module corresponding to the identifier information of the to-be-processed service does not exist in the application that is installed by the terminal, the terminal sends a retrieval request message to the server, where the retrieval request message includes the to-be-processed service. Identification information;
- Step 303 The terminal receives a response message returned by the server, where the response message includes a target function module corresponding to the identifier information of the to-be-processed service.
- Step 304 The terminal invokes the target function module to process the to-be-processed service.
- the terminal after obtaining the identification information of the service to be processed, the terminal first determines whether there is a function module corresponding to the service to be processed in the installed application, and sends a retrieval request message to the server if the device does not exist. Therefore, it is not necessary to obtain the web application from the server every time.
- the terminal receives the target function module returned by the server, instead of the application installation package (which may contain content unrelated to the current function requirement), thereby effectively saving Traffic and download time, Moreover, since the target function module is highly targeted, in this way, the application efficiency of the application is significantly improved on the basis of processing the service to be processed.
- the to-be-processed service may be a service initiated by the user through information input, or may also be a service triggered by the data information detected by the sensor. Since the input information of the user is usually not an accurate and complete service name or a specific function description, the keyword needs to be determined according to the input information of the user, and the keyword is used as the identification information of the service initiated by the user through the input information; The keyword may also be determined according to the detected data information of the sensor, and the keyword is used as the identification information of the service triggered by the data information. That is to say, in the embodiment of the present invention, the identification information of the service to be processed is one or more keywords.
- the terminal may obtain the identification information of the service to be processed from the received input information of the user in real time, and perform step 302 to step 304 above.
- the input information of the user may be information input by the user in the form of text, and the terminal extracts keywords from the text input by the user by processing the text input by the user, such as word segmentation, removal of stop words, grammar analysis, semantic analysis, and the like. Or the input text is moderately expanded to form a keyword, and the obtained keyword is used as identification information of the service to be processed.
- the input information of the user may also be information input in the form of voice.
- the terminal first converts the voice information into text information, and then determines the keyword in the above manner, and uses the keyword as the identification information of the service to be processed. For example, if the information input by the user in the form of text is a piece of text “I want to order a meal”, the input information is extracted to determine that the keyword is “ordered meal”, so that the “ordered meal” can be determined as the identification information of the service to be processed.
- the pending business is the ordering business.
- the terminal may also obtain identification information of the to-be-processed service according to the obtained information of the sensor, where the information of the sensor includes data information collected by the sensor and functional attributes of the sensor. After determining that the data information does not meet the normal preset condition corresponding to the function attribute, the terminal obtains the identification information of the service to be processed, and performs step 302 to step 304 above.
- the identification information of the service to be processed is composed of two parts, one part is the first keyword corresponding to the data information collected by the sensor, and the other part is at least one second keyword preset corresponding to the function attribute of the sensor. The following describes the determination of the first keyword and the second keyword, respectively.
- the data information collected by the sensor can be divided into two categories, one is data information that conforms to the normal preset condition, and the other is data information that does not meet the normal preset condition.
- the normal preset condition may be set by a person skilled in the art according to experience.
- the sensors of different functional attributes correspond to different normal preset conditions. For example, if the function attribute of the sensor is to detect blood pressure, the normal preset condition may be set to a systolic pressure greater than It is equal to 90 and less than or equal to 140, and the diastolic pressure is 60 or more and 90 or less.
- the terminal does not need to perform service processing, and does not need to send a retrieval request message to the server to obtain the function module; if the data information collected by the sensor does not meet the normal state,
- the preset condition is that the terminal is in an abnormal state. In this case, the terminal needs to perform the service processing, that is, the foregoing step 302 to the foregoing step 304 are performed.
- the numerical range to which the data information belongs may be further determined, and the keyword corresponding to the numerical range is used as the first keyword.
- the correspondence between the numerical range of the sensor of different functional attributes and the keyword is preset.
- the foregoing correspondence relationship set in advance may be stored in the terminal, for example, stored in the first data table in the form of a data table.
- the above-mentioned functional attribute is a sensor for detecting blood pressure.
- the numerical range of systolic blood pressure greater than or equal to 140 and diastolic blood pressure greater than or equal to 90 corresponds to the keyword “hypertension”, and the numerical range of systolic blood pressure less than 90 corresponds to the keyword “hypotension”.
- a range of values for diastolic blood pressure less than 60 corresponds to the keyword "hypotension”.
- the terminal may acquire the data information collected by the sensor multiple times in the set time length range, and determine the first keyword according to the cumulative analysis of the multiple data information, for example: If more than half of the data information collected multiple times corresponds to the same keyword, the keyword may be determined as the first keyword.
- different functional attributes of the sensor correspond to different keywords.
- the function attribute is to detect blood pressure
- the keywords “blood pressure, cardiovascular, cerebrovascular” and the like are corresponding.
- the corresponding relationship between the function attribute and the keyword is preset.
- the foregoing correspondence corresponding to the preset may be stored in the terminal, for example, stored in the second number in the form of a data table.
- the keyword corresponding to the function attribute can be obtained by querying the second data table.
- the keyword corresponding to the function attribute may be one or more.
- at least one of the keywords corresponding to the function attribute may be used as the second keyword.
- all keywords corresponding to the functional attributes may also be used as the second keyword.
- the first keyword and the at least one second keyword may be used as the identification information of the service to be processed.
- the functional attribute is the data information collected by the sensor for detecting blood pressure: the systolic pressure is 150, the diastolic pressure is 95, and the numerical range in which the data information corresponds corresponds to the keyword "hypertension" (first keyword), functional attributes (
- the second keyword corresponding to the detection of blood pressure is "blood pressure, cardiovascular, cerebrovascular", and therefore, the identification information of the service to be processed is "hypertension, blood pressure, cardiovascular, cerebrovascular".
- FIG. 4 it is a schematic flowchart of determining service identification information to be processed according to information of the sensor A.
- Step 401 The terminal acquires the data information collected by the sensor A and the function attribute of the sensor A. Specifically, the sensor A may send the data information and the function attribute of the sensor A to the terminal after collecting the data information; or the sensor A Sending only the collected data information, and the function attribute of the sensor A is pre-configured on the terminal;
- Step 402 The terminal determines, according to the function attribute of the sensor A, whether the data information meets the normal preset condition corresponding to the function attribute of the sensor A. If yes, the process ends directly; if not, the step 403 is performed;
- Step 403 determining that the data information meets the numerical range. Specifically, the data information may be compared with the first numerical range. If not, the data information is compared with the second numerical range. By analogy, until the ith value range in which the above information meets is determined, and the keyword corresponding to the i-th numerical range is obtained by searching the first data table, that is, the first keyword;
- Step 404 Find a second data table, and obtain a keyword corresponding to the function attribute of the sensor A.
- a second keyword is available;
- Step 405 Combine the first keyword and the second keyword, and use the combined result as the identification information of the service to be processed.
- the embodiment of the present invention does not specifically limit the sequence of obtaining the first keyword and the second keyword, that is, the second keyword may be acquired first, and then obtained.
- the first keyword may also acquire the first keyword and the second keyword at the same time, or, after acquiring the function attribute of the sensor, directly search the second data table to obtain the second keyword.
- step 402 after determining that the data information meets the normal preset condition corresponding to the function attribute of the sensor A, the process will not be executed. Therefore, the embodiment of the present invention preferably determines that the data information does not conform to the normal function attribute of the sensor A. After the preset condition, the steps of obtaining the first keyword and the second keyword are performed to avoid the situation that the determined second keyword is invalid because the data information meets the normal preset condition, and can also be reasonable Arrange the execution order to achieve effective saving of processing resources.
- the terminal compares the identification information of the service to be processed with the attribute information of the function module in the installed application, to determine whether the local presence and the The function module corresponding to the identification information of the service to be processed.
- the function module corresponding to the identification information of the service to be processed is a function module that matches the identification information of the service to be processed.
- the corresponding or matching standard may be set by a person skilled in the art according to experience. For example, the function module whose similarity between the attribute information and the identification information of the service to be processed is greater than or equal to the first threshold is the service to be processed.
- the functional module, the first threshold is set by the person skilled in the art according to the test.
- the attribute information of the function module is “providing a subscription service for the user”, and the identification information of the service to be processed is “ordering meal”.
- the attribute information of the function module completely includes the identification information of the service to be processed.
- the function module can determine that the similarity between the attribute information of the function module and the identification information of the service to be processed is 100%, and the function module is a function module corresponding to the identification information of the service to be processed.
- the manner of determining the similarity may be multiple, and may be selected and determined by those skilled in the art, and is not limited to the above examples.
- the function module pair is directly called.
- the service to be processed is processed. If it does not exist, the terminal needs to obtain the target function module from the server.
- the target function module is the function module corresponding to the service to be processed. Specifically, the terminal sends a retrieval request message carrying the identification information of the to-be-processed service to the server, and correspondingly, the server performs step 501 to step 503 in FIG. 3:
- Step 501 The server receives a retrieval request message sent by the terminal, where the retrieval request message includes the identification information of the to-be-processed service.
- Step 502 The server acquires, according to the identifier information of the to-be-processed service, a target function module corresponding to the identifier information of the to-be-processed service from the function module library;
- Step 503 The server sends a response message including the target function module to the terminal, so that the terminal invokes the target function module to process the to-be-processed service.
- the server receives the retrieval request message sent by the terminal, where the retrieval request message is sent after the terminal determines that the application module that is installed by the terminal does not have the function module corresponding to the identification information of the service to be processed; the server is to be processed according to the retrieval request message.
- the identification information of the service obtains the target function module corresponding to the identification information of the service to be processed from the function module library, and sends a response message including the target function module to the terminal, so that the terminal invokes the target function module to process the to-be-processed service;
- the terminal first determines whether there is a function module corresponding to the to-be-processed service in the installed application, and sends a retrieval request message to the server in the absence of the application, so that the web application is not required to be acquired from the server every time.
- the server returns to the terminal is the target function module, not the application installation package (may contain content that is not related to this function requirement), which effectively saves traffic and terminal download time, and because of the target function
- the module is highly targeted, so Such a way, be treated on the basis of the completion of the processing business, significantly improves the efficiency of the application.
- the server can communicate with the terminal through the WLAN, the cellular network, or the wired network. After receiving the retrieval request message sent by the terminal, the server obtains the identification information of the service to be processed from the retrieval request message.
- the server accesses the function module library, compares the identification information of the service to be processed with the attribute information of each function module in the function module library, and obtains an identification letter of the service to be processed.
- the similarity between the attribute information of each function module in the function module, the specific similarity algorithm may be set by a person skilled in the art, for example, may be based on various keywords and function modules constituting the service identification information to be processed.
- the degree of similarity between the attribute information determines the similarity.
- the server determines, as the target function module, a function module that maximizes the similarity between the attribute information and the identification information of the service to be processed according to the determined similarity.
- the target function module matches the application program in the above solution, it is also possible to refer to the degree of similarity between the attribute information of the two, and when the similarity reaches a preset threshold, determine that the two match, and the target is matched.
- the function module is added to the matching application.
- the server may directly send a response message including the target function module to the terminal, and the server only needs to send one response message; or the server may send two responses.
- the message first sends a response message to the terminal to notify the terminal that the target function module has been determined from the function module library, and then sends a response message to the terminal, where the response message includes the target function module.
- step 303 and step 304 the terminal receives a response message returned by the server, where the response message includes the target function module and the attribute information of the target function module.
- the terminal determines, according to the attribute information of the target function module, whether the installed application matches the target function module.
- the application program in the embodiment of the present invention has no business function, and needs to attach one or more function modules to the application program to have a business function.
- Figure 5 is a schematic diagram of the application hook function module. As shown in FIG. 5, the function modules attached to the application 1 are: a function module 1.1, a function module 1.2, and a function module 1.3.
- whether the installed application matches the target function module may be: the terminal compares the attribute information of the installed application with the attribute information of the function module to obtain attribute information of the installed application.
- the degree of association with the attribute information of the function module, and the application whose degree of association is greater than or equal to the second threshold is used as an application that matches the target function module. If there is an application that matches the target function module, the target function module can be directly attached to the application. If it does not exist, a new application is created and installed, and the target function module is added to the newly installed application.
- the terminal creates the new application and can be called It is a shell program, which is similar to the APP on the existing Android system.
- the hypervisor on the terminal creates the shell program, for example, by copying pseudo code, and then hanging the function module, shell program and function module in the shell program.
- the interface between them can be a standard interface defined in advance.
- the terminal then calls the target functional module added to the installed or newly installed application to process the business to be processed. If the terminal receives the same pending service again, the terminal can directly obtain the target function module from the local device, and process the to-be-processed service without acquiring the server again, thereby realizing the cumulative effect and avoiding the web application on the terminal. Unable to accumulate problems.
- the corresponding service is downloaded for the user's needs, which maximizes the use efficiency, saves the transmission traffic and waits for the installation time.
- the specific method in which the terminal adds the function module to the application program is related to the packaging formation of the function segment, and the function module is hooked into the application program through the description of the loading interface of the function module.
- the icon corresponding to the function module is added on the interface of the application, and when the user clicks the icon, the function module is executed; if there is a new one in the future
- a corresponding programming interface API can be used as an execution entry of the function module.
- Each function module is attached to the application in the form of software, and the business logic inside the function module can call the local hardware module of the terminal or interact with other hosts through the network.
- FIG. 6 is a schematic structural diagram of a terminal for performing service processing according to an embodiment of the present invention.
- the embodiment of the present invention provides a terminal 600 for performing service processing, and an embodiment of a method for performing the foregoing service processing, as shown in FIG. 6, includes a processing module 601, a sending module 602, and a receiving module 603:
- the processing module 601 is configured to obtain the identification information of the to-be-processed service, and determine whether the function module corresponding to the identification information of the to-be-processed service exists in the application that is installed by the terminal;
- the sending module 602 is configured to send a retrieval request message to the server after the processing module determines that the function module corresponding to the identification information of the to-be-processed service does not exist in the application that is installed by the terminal, where the retrieval request message includes the Identification information of the service to be processed;
- the receiving module 603 is configured to receive a response message returned by the server, where the response message includes a target function module corresponding to the identifier information of the to-be-processed service, and the processing module 601 is further configured to invoke the target function.
- the module processes the to-be-processed service.
- processing module 601 is further configured to:
- the function module corresponding to the identifier information of the to-be-processed service is invoked to process the to-be-processed service.
- the processing module 601 is further configured to:
- the module processes the to-be-processed service.
- the processing module 601 is further configured to:
- the receiving module 603 is further configured to receive input information of the user;
- the processing module 601 is specifically configured to obtain identifier information of the to-be-processed service from the input information.
- the processing module 601 is specifically configured to: acquire information about the sensor, and obtain identification information of the to-be-processed service according to the information of the sensor.
- processing module 601 is specifically configured to:
- the first keyword and the at least one second keyword are used as identification information of the to-be-processed service.
- the data information includes data collected by the sensor at different times.
- the terminal obtains the identification information of the service to be processed, and after determining that the function module corresponding to the identification information of the service to be processed does not exist in the application program that has been installed, the terminal sends a search to the server.
- the request message the terminal receives the target function module returned by the server, and invokes the target function module to process the service to be processed; in the embodiment of the present invention, the terminal first determines whether there is a function module corresponding to the service to be processed in the installed application, and In the absence of the case, the retrieval request message is sent to the server, so that it is not necessary to obtain the web application from the server every time.
- the terminal receives the target function module returned by the server, instead of the application installation package (possibly Contains content that is not related to this functional requirement), which saves traffic and download time, and because the target function module is highly targeted, in this way, based on the processing of the service to be processed, Significantly improved application efficiency.
- the application installation package possibly Contains content that is not related to this functional requirement
- FIG. 7 is a schematic structural diagram of a server for performing service processing according to an embodiment of the present invention.
- the embodiment of the present invention provides a server 700 for performing service processing, and an embodiment of a method for performing the foregoing service processing, as shown in FIG. 7, includes a receiving module 701, an obtaining module 702, and a sending module 703:
- the receiving module 701 is configured to receive a retrieval request message sent by the terminal, where the retrieval request message is The terminal determines that the function module corresponding to the identification information of the service to be processed does not exist in the application that is installed by the terminal, and the search request message includes the identifier information of the to-be-processed service;
- the obtaining module 702 is configured to obtain, according to the identifier information of the to-be-processed service, a target function module corresponding to the identifier information of the to-be-processed service from the function module library;
- the sending module 703 is configured to send a response message that includes the target function module to the terminal, so that the terminal invokes the target function module to process the to-be-processed service.
- the function module library is in the server, and the function module library includes one or more functional modules;
- the obtaining module 702 is specifically configured to:
- the function module corresponding to the maximum similarity is determined as the target function module.
- the server receives the retrieval request message sent by the terminal, where the retrieval request message is a function module that the terminal determines that the application that has been installed does not have the identification information corresponding to the service to be processed.
- the server And sending, by the server, the target function module corresponding to the identification information of the to-be-processed service from the function module library according to the identification information of the service to be processed in the retrieval request message, and sending a response message including the target function module to the terminal, And causing the terminal to call the target function module to process the to-be-processed service; in the embodiment of the present invention, the terminal first determines whether the function module corresponding to the to-be-processed service exists in the installed application, and sends the search to the server if the non-existent condition exists. Requesting a message, so that it is not necessary to obtain a web application from the server every time.
- the server returns the target function module instead of the application installation package (which may contain content not related to the current function requirement), thereby effectively Saves traffic and terminal download time, and because Standard functional module having highly relevant, thus, in this way, on the basis of the completion of processing be treated on the traffic, significantly more efficient use of the application.
- FIG. 8 is a schematic structural diagram of another terminal for performing service processing according to an embodiment of the present invention.
- the embodiment of the present invention provides a terminal 800 for performing service processing, and an embodiment of a method for performing the foregoing service processing, as shown in FIG. 8, includes a processor 801, a transmitter 802, and a receiver 803. Memory 804, input device 805:
- the processor 801 is configured to obtain identification information of the service to be processed, and determine whether a function module corresponding to the identification information of the to-be-processed service exists in the application that is installed by the terminal;
- the sender 802 is configured to: when the processor determines that the function module corresponding to the identifier information of the to-be-processed service exists in the application that is installed by the terminal, send a retrieval request message to the server; the retrieval request message includes Identification information of the to-be-processed service;
- a receiver 803 configured to receive a response message returned by the server, where the response message includes a target function module corresponding to the identifier information of the to-be-processed service;
- the processor 801 is further configured to invoke the target function module to process the to-be-processed service.
- the processor 801 is further configured to:
- the function module corresponding to the identifier information of the to-be-processed service is invoked to process the to-be-processed service.
- the processor 801 is further configured to:
- the processor 801 is further configured to:
- the input device 805 is configured to receive input information of a user
- the processor 801 When acquiring the identification information of the service to be processed, the processor 801 is specifically configured to obtain the identification information of the to-be-processed service from the input information.
- the processor 801 is configured to: obtain information about the sensor, and obtain identification information of the to-be-processed service according to the information of the sensor, when acquiring the identifier information of the service to be processed.
- the processor 801 when acquiring the identifier information of the service to be processed, is specifically configured to:
- the first keyword and the at least one second keyword are used as identification information of the to-be-processed service.
- the data information includes data collected by the sensor at different times.
- the terminal After obtaining the identification information of the to-be-processed service, the terminal first determines whether there is a function module corresponding to the to-be-processed service in the installed application, and sends a retrieval request message to the server when the non-existence exists, so that the Obtaining the web application from the server. On the other hand, the terminal receives the target function module returned by the server, instead of the application installation package (which may contain content unrelated to the current function requirement), thereby effectively saving traffic and download time. Moreover, since the target function module is highly targeted, in this way, the application efficiency of the application is significantly improved on the basis of processing the service to be processed.
- the bus architecture may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of memory represented by the memory.
- the bus architecture can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore will not be further described herein. Said.
- the bus interface provides an interface.
- the transceiver provides a unit for communicating with various other devices on a transmission medium.
- the processor is responsible for managing the bus architecture and the usual processing, and the memory can store the data that the processor uses when performing operations.
- FIG. 9 is a schematic structural diagram of a server for performing service processing according to an embodiment of the present invention.
- the embodiment of the present invention provides a server 900 for performing service processing, and an embodiment of a method for performing the foregoing service processing, as shown in FIG. 9, includes a processor 901, a receiver 902, and a transmitter 903.
- Memory 904 :
- the receiver 902 is configured to receive a retrieval request message sent by the terminal, where the retrieval request message is sent after the terminal determines that the application program that is installed by the terminal does not have a function module corresponding to the identification information of the service to be processed;
- the search request message includes the identification information of the to-be-processed service;
- the processor 901 is configured to obtain, according to the identifier information of the to-be-processed service, a target function module corresponding to the identifier information of the to-be-processed service from the function module library;
- the transmitter 903 is further configured to send a response message that includes the target function module to the terminal, so that the terminal invokes the target function module to process the to-be-processed service.
- the function module library is in the server, and the function module library includes one or more functional modules;
- the processor 901 is specifically configured to:
- the function module corresponding to the maximum similarity is determined as the target function module.
- the server After receiving the retrieval request message that is sent by the terminal and containing the identification information of the service to be processed, the server acquires the target function module corresponding to the identification information of the service to be processed from the function module library, and sends the target function module to the terminal. Since the server sends the target function module to the terminal, The application installation package (which may contain content unrelated to this function requirement) is not sent to the terminal, thereby effectively saving traffic and terminal download time, and since the target function module is highly targeted, therefore, The method can significantly improve the application efficiency of the application on the basis of processing the processing of the service to be processed by the terminal.
- the bus architecture may include any number of interconnected buses and bridges, specifically linked by one or more processors represented by the processor and various circuits of memory represented by the memory.
- the bus architecture can also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and, therefore, will not be further described herein.
- the bus interface provides an interface.
- the transceiver provides a unit for communicating with various other devices on a transmission medium.
- the processor is responsible for managing the bus architecture and the usual processing, and the memory can store the data that the processor uses when performing operations.
- the terminal obtains the identification information of the service to be processed, and after determining that the function module corresponding to the identification information of the service to be processed does not exist in the application program that has been installed, the terminal sends a search to the server.
- the request message the terminal receives the target function module returned by the server, and invokes the target function module to process the service to be processed; in the embodiment of the present invention, the terminal first determines whether there is a function module corresponding to the service to be processed in the installed application, and In the absence of the case, the retrieval request message is sent to the server, so that it is not necessary to obtain the web application from the server every time.
- the terminal receives the target function module returned by the server, instead of the application installation package (possibly Contains content that is not related to this functional requirement), which saves traffic and download time, and because the target function module is highly targeted, in this way, based on the processing of the service to be processed, Significantly improved application efficiency.
- the application installation package possibly Contains content that is not related to this functional requirement
- embodiments of the present invention can be provided as a method, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- a device implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of a flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
- Telephonic Communication Services (AREA)
Abstract
一种业务处理方法,终端获取待处理业务的标识信息,在确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后,向服务器发送检索请求消息,终端接收服务器返回的目标功能模块,并调用目标功能模块对待处理业务进行处理;本发明实施例中,终端确定不存在对应的功能模块后,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,有效节省了流量和下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
Description
本发明涉及通信技术领域,尤其涉及一种业务处理方法及装置。
当前智能终端上的应用程序不同的应用形式,其中一种应用形式为有原生(Native)应用,原生应用是针对特定的操作***的开发接口和该操作***支持的目标代码开发的,需要下载到智能终端,并进行安装后才能够供用户使用。随着智能终端存储能力和网络传输带宽的不断提升,智能终端的处理能力也在不断提升,在智能终端上安装的应用程序的功能也越来越丰富。为满足用户不断增长的功能需求,原生应用的安装包越来越大,通常是几十M字节甚至几百M字节。然而,用户往往只使用应用程序的部分功能,或者只是在某个时刻、某个地点仅使用应用程序的部分功能,但用户也必须把完整的应用程序下载到智能终端,这样不仅耗费大量流量,而且下载消耗时间较长、使用效率比较低。其中,使用效率是指应用程序被使用的功能所占用的存储空间与应用程序总占用存储空间的比值;使用效率越高,则对存储空间、网络流量的消耗、等候安装的时间越有价值。
综上,现有技术中智能终端通过原生应用进行业务处理时,会存在应用程序的安装包过大且使用效率低的问题。
发明内容
本发明实施例提供一种业务处理方法,用于解决现有技术中终端通过原生应用进行业务处理时,所存在的应用程序安装包过大、使用效率低的技术问题。
本发明实施例提供一种业务处理方法,包括:
终端获取待处理业务的标识信息;
所述终端确定自身已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块后,向服务器发送检索请求消息;所述应用程序为不具有业务处理功能的程序框架;所述检索请求消息中包括所述待处理业务的标识信息;
所述终端接收所述服务器返回的响应消息,所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;
所述终端调用所述目标功能模块处理所述待处理业务。
如此,终端获取待处理业务的标识信息后,首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
较佳地,所述终端确定自身已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
如此,终端确定已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,直接调用该功能模块处理待处理业务,无需再次从服务器获取,实现了累积效应,避免了Web应用在终端上无法积累的问题。
较佳地,所述终端接收所述服务器返回的响应消息之后,调用所述目标功能模块处理所述待处理业务之前,还包括:
若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;
所述终端调用所述目标功能模块处理所述待处理业务,包括:
所述终端调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。
如此,在已安装的应用程序中存在与所述目标功能模块匹配的应用程序的情况下,终端可直接将接收到的目标功能模块添加到匹配的应用程序中,而无需安装新的应用程序,提高了处理效率,且通过应用程序实现了对各个功能模块的分类。
较佳地,所述终端接收所述服务器返回的响应消息之后,调用所述目标功能模块处理所述待处理业务之前,还包括:
若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序中;所述终端调用所述目标功能模块处理所述待处理业务,包括:
所述终端调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。
如此,终端创建的新的应用程序可称之为壳程序,其类似于现有安卓***上的APP,终端上的管理程序创建该壳程序,例如通过复制伪代码的形式进行创建,随后在壳程序中挂接上述目标功能模块和其它的功能模块,壳程序与功能模块之间的接口可以是事先定义好的标准接口。
较佳地,所述终端获取待处理业务的标识信息,包括:
所述终端接收用户的输入信息,并从所述输入信息中获取所述待处理业务的标识信息。
如此,考虑到待处理业务可以为用户通过信息输入发起的业务,因此,终端可通过接收用户的输入信息,识别出待处理业务。
较佳地,所述终端获取待处理业务的标识信息,包括:
所述终端获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
如此,考虑到待处理业务可以是传感器检测到的数据信息所触发的业务,因此,终端可通过获取传感器的信息,识别出待处理业务。
较佳地,所述传感器的信息包括所述传感器采集的数据信息以及所述传感器的功能属性;
所述终端获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息,包括:
所述终端根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述传感器的功能属性预先设置的至少一个第二关键词;
所述终端将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
如此,终端在根据传感器的信息确定待处理业务时,确定数据信息不符合传感器的功能属性对应的正常预设条件后,才执行获取第一关键词和第二关键词的步骤,能够有效避免由于数据信息符合正常预设条件,而导致确定出的第二关键词为无效的情况发生,同时也能够通过合理安排执行顺序,实现有效节省处理资源的效果;且本发明实施例综合考虑两个方面,即与数据信息对应的第一关键词以及对应传感器的功能属性预先设置的第二关键词,从而使得确定出的待处理业务更准确。
较佳地,所述数据信息包括所述传感器在不同时刻采集的数据。
如此,终端通过获取传感器在不同时刻采集的数据信息,根据多次数据信息的累积分析,确定第一关键词,例如:若多次采集的数据信息中有一半以上的数据信息对应的同一关键词,则可将该关键词确定为第一关键词,从而能够有效避免传感器采集的数据存在误差而造成后续确定出的待处理业务不准确的问题。
本发明实施例提供另一种业务处理方法,该方法包括:
服务器接收终端发送的检索请求消息;所述检索请求消息是所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;
所述服务器根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;
所述服务器向所述终端发送包含所述目标功能模块的响应消息,以使所
述终端调用所述目标功能模块处理所述待处理业务。
如此,服务器接收终端发送的检索请求消息,其中,检索请求消息是终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;服务器根据检索请求消息中的待处理业务的标识信息,从功能模块库中获取与待处理业务的标识信息对应的目标功能模块,并向终端发送包含目标功能模块的响应消息,以使终端调用目标功能模块处理待处理业务;本发明实施例中,终端首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,服务器返回给终端的是目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和终端的下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
较佳地,所述功能模块库中包括一个或一个以上的功能模块;
所述服务器根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块,包括:
所述服务器获取所述功能模块库中各个功能模块的属性信息;
所述服务器将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;
所述服务器将最大相似度对应的功能模块确定为目标功能模块。
如此,服务器在检索功能模块库时,通过将待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,并根据比较结果确定出目标功能模块,通过这种遍历检索的方式,能够准确地确定出目标功能模块。
本发明实施例提供一种终端,包括:
处理模块,用于获取待处理业务的标识信息,并确定终端已安装的应用
程序中是否存在与所述待处理业务的标识信息对应的功能模块;
发送模块,用于在处理模块确定终端已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块之后,向服务器发送检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;
接收模块,用于接收所述服务器返回的响应消息,所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;
所述处理模块,还用于调用所述目标功能模块处理所述待处理业务。
如此,终端获取待处理业务的标识信息后,首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
较佳地,所述处理模块还用于:
确定所述已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
如此,终端确定已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,直接调用该功能模块处理待处理业务,无需再次从服务器获取,实现了累积效应,避免了Web应用在终端上无法积累的问题。
较佳地,在所述接收模块接收所述服务器返回的响应消息之后,所述处理模块调用所述目标功能模块处理所述待处理业务之前,所述处理模块还用于:
若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。
如此,在已安装的应用程序中存在与所述目标功能模块匹配的应用程序的情况下,终端可直接将接收到的目标功能模块添加到匹配的应用程序中,而无需安装新的应用程序,提高了处理效率,且通过应用程序实现了对各个功能模块的分类。
较佳地,在所述接收模块接收所述服务器返回的响应消息之后,所述处理模块调用所述目标功能模块处理所述待处理业务之前,所述处理模块还用于:
若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序中;调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。
如此,终端创建的新的应用程序可称之为壳程序,其类似于现有安卓***上的APP,终端上的管理程序创建该壳程序,例如通过复制伪代码的形式进行创建,随后在壳程序中挂接上述目标功能模块和其它的功能模块,壳程序与功能模块之间的接口可以是事先定义好的标准接口。
较佳地,所述接收模块还用于:接收用户的输入信息;
所述处理模块具体用于:从所述输入信息中获取所述待处理业务的标识信息。
较佳地,所述处理模块具体用于:获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
较佳地,所述处理模块具体用于:
获取传感器采集的数据信息以及所述传感器的功能属性;
根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述传感器的功能属性预先设置的至少一个第二关键词;
将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
如此,终端在根据传感器的信息确定待处理业务时,确定数据信息不符合传感器的功能属性对应的正常预设条件后,才执行获取第一关键词和第二关键词的步骤,能够有效避免由于数据信息符合正常预设条件,而导致确定出的第二关键词为无效的情况发生,同时也能够通过合理安排执行顺序,实现有效节省处理资源的效果;且本发明实施例综合考虑两个方面,即与数据信息对应的第一关键词以及对应传感器的功能属性预先设置的第二关键词,从而使得确定出的待处理业务更准确。
较佳地,所述数据信息包括所述传感器在不同时刻采集的数据。
如此,终端通过获取传感器在不同时刻采集的数据信息,根据多次数据信息的累积分析,确定第一关键词,例如:若多次采集的数据信息中有一半以上的数据信息对应的同一关键词,则可将该关键词确定为第一关键词,从而能够有效避免传感器采集的数据存在误差而造成后续确定出的待处理业务不准确的问题。
本发明实施例提供一种服务器,其特征在于,该服务器包括:
接收模块,用于接收终端发送的检索请求消息;所述检索请求消息是所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;
获取模块,用于根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;
发送模块,用于向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
如此,服务器接收到终端发送的包含待处理业务的标识信息的检索请求消息后,从功能模块库中获取与待处理业务的标识信息对应的目标功能模块,并将目标功能模块发送给终端。由于服务器是将目标功能模块发送给终端,而非将应用程序的安装包(可能包含与本次功能需求无关的内容)发送终端,从而有效节省了流量和终端的下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在终端完成对待处理业务进行处理的基础上,
能够显著提高应用程序的使用效率。
较佳地,所述功能模块库处于所述服务器中,所述功能模块库中包括一个或一个以上的功能模块;
所述获取模块,具体用于:
获取所述功能模块库中各个功能模块的属性信息;
将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;
将最大相似度对应的功能模块确定为目标功能模块。
如此,服务器在检索功能模块库时,通过将待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,并根据比较结果确定出目标功能模块,通过这种遍历检索的方式,能够准确地确定出目标功能模块。
本发明实施例提供的另一种终端,该终端包括:
处理器,用于获取待处理业务的标识信息,以及确定终端已安装的应用程序中是否存在与所述待处理业务的标识信息对应的功能模块;
发送器,用于在所述处理器确定终端已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块时,向服务器发送检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;
接收器,用于接收所述服务器返回的响应消息;所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;
所述处理器,还用于调用所述目标功能模块处理所述待处理业务。
如此,终端获取待处理业务的标识信息后,首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,且由于目
标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
较佳地,所述处理器还用于:
确定所述已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
较佳地,在所述接收器接收所述服务器返回的响应消息之后,所述处理器调用所述目标功能模块处理所述待处理业务之前,所述处理器还用于:
若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。
较佳地,在所述接收器接收所述服务器返回的响应消息之后,所述处理器调用所述目标功能模块处理所述待处理业务之前,所述处理器还用于:
若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序中;调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。
较佳地,还包括输入设备,用于:
接收用户的输入信息;
所述处理器在获取待处理业务的标识信息时,具体用于从所述输入信息中获取所述待处理业务的标识信息。
较佳地,所述处理器在获取待处理业务的标识信息时,具体用于:获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
较佳地,所述处理器在获取待处理业务的标识信息时,具体用于:
获取传感器采集的数据信息以及所述传感器的功能属性;
根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述
传感器的功能属性预先设置的至少一个第二关键词;
将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
较佳地,所述数据信息包括所述传感器在不同时刻采集的数据。
本发明实施例提供的另一种服务器,包括:
接收器,用于接收终端发送的检索请求消息;所述检索请求消息是所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;
处理器,用于根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;
发送器,用于向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
如此,服务器接收到终端发送的包含待处理业务的标识信息的检索请求消息后,从功能模块库中获取与待处理业务的标识信息对应的目标功能模块,并将目标功能模块发送给终端。由于服务器是将目标功能模块发送给终端,而非将应用程序的安装包(可能包含与本次功能需求无关的内容)发送终端,从而有效节省了流量和终端的下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在终端完成对待处理业务进行处理的基础上,能够显著提高应用程序的使用效率。
较佳地,所述功能模块库处于所述服务器中,所述功能模块库中包括一个或一个以上的功能模块;
所述处理器,具体用于:
获取所述功能模块库中各个功能模块的属性信息;
将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;
将最大相似度对应的功能模块确定为目标功能模块。
本发明实施例中,终端获取待处理业务的标识信息,在确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后,向服务器发送检索请求消息,终端接收服务器返回的目标功能模块,并调用目标功能模块对待处理业务进行处理;本发明实施例中,终端首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例适用的***架构示意图;
图2为本发明实施例提供的一种终端的框图;
图3示出了本发明实施例提供的一种业务处理方法所对应的流程示意图;
图4为根据传感器A的信息确定待处理业务标识信息的流程示意图;
图5为应用程序挂接功能模块示意图;
图6为本发明实施例提供的一种执行业务处理的终端的结构示意图;
图7为本发明实施例提供的一种执行业务处理的服务器的结构示意图;
图8为本发明实施例提供的另一种执行业务处理的终端的结构示意图;
图9为本发明实施例提供的另一种执行业务处理的服务器的结构示意图。
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
图1示例性示出了本发明实施例适用的***架构示意图。如图1所示,该***架构中包括终端101、服务器102、功能模块库103。其中,功能模块库103可以集成在服务器102中,也可以独立于服务器102而存在,服务器具有访问功能模块库的权限。终端101可以通过WLAN、蜂窝网络或者有线网络与服务器102进行通信。
本发明实施例所涉及到的终端可以为能够支持应用程序挂接功能模块的设备,比如能够支持应用程序挂接功能模块的手持设备、车载设备、可穿戴设备、计算设备,以及各种形式的用户设备(User Equipment,简称UE),移动台(Mobile station,简称MS),终端(terminal),终端设备(Terminal Equipment)等。具体来说,比如手机、平板电脑、便携式电脑、台式机电脑等。为方便描述,本发明实施例中简称为终端。
图2为本发明实施例提供的一种终端的框图,所述终端101可以包括输入单元130、显示单元140、传感器单元150、存储器120、处理器190、射频单元110、音频电路160、扬声器161、麦克风162、WiFi(wireless fidelity,无线保真)模块170、电源180、外部接口191等部件。
本领域技术人员可以理解,图2仅仅是终端的举例,并不构成对终端的限定,实际中的终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件。
所述输入单元130可用于接收输入的数字或字符信息,以及产生与所述终端的用户设置以及功能控制有关的键信号输入。具体地,输入单元130可包括触摸屏131以及其他输入设备132。所述触摸屏131可收集用户在其上或附近的触摸操作(比如用户使用手指、关节、触笔等任何适合的物体在触摸屏上或在触摸屏附近的操作),并根据预先设定的程序驱动相应的连接装置。触摸屏可以检测用户对触摸屏的触摸动作,将所述触摸动作转换为触摸信号
发送给所述处理器190,并能接收所述处理器190发来的命令并加以执行;所述触摸信号至少包括触点坐标信息。所述触摸屏131可以提供所述终端101和用户之间的输入界面和输出界面。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏。除了触摸屏131,输入单元130还可以包括其他输入设备。具体地,其他输入设备132可以包括但不限于物理键盘、功能键(比如音量控制按键132、开关按键133等)、轨迹球、鼠标、操作杆、麦克风、摄像头等中的一种或多种。本发明实施例中,输入单元130主要用于获取用户的输入信息,以便于从输入信息中获取待处理业务的标识信息。
所述显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端101的各种菜单。进一步的,触摸屏131可覆盖显示面板141,当触摸屏131检测到在其上或附近的触摸操作后,传送给处理器190以确定触摸事件的类型,随后处理器190根据触摸事件的类型在显示面板141上提供相应的视觉输出。在本实施例中,触摸屏与显示单元可以集成为一个部件而实现终端101的输入、输出、显示功能;为便于描述,本发明实施例以触摸屏代表触摸屏和显示单元的功能集合;在某些实施例中,触摸屏与显示单元也可以作为两个独立的部件。本发明实施例中,显示单元140主要用于展示终端101所生成的应用程序的界面以及终端101的处理结果和反馈给用户的信息。
所述传感器单元150包括一个或一个以上的传感器,可以是终端内置的,也可以是外置的(通过数据传输取到把采集到的数据信息发送给终端)。传感器单元150主要用于检测用户的运动状态、生理指标等数据,或者检测环境的温度、湿度、空气质量等环境信息。例如,可以包括重力加速度传感器151、接近光传感器152、环境光传感器153等。
具体地,所述重力加速度传感器151可检测各个方向上(一般为三轴)加速度的大小,同时,所述重力加速度传感器151还可用于检测终端静止时重力的大小及方向,可用于识别终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;在本发
明实施例中,所述重力加速度传感器151用于获取用户的触摸动作接触触摸屏在z轴方向的重力加速度,从而便于识别用户的输入。
所述接近光传感器152,用于当所述终端101距用户较近时(例如当用户正在打电话时靠近耳朵)关闭并禁用触摸屏以避免用户对触摸屏的误操作;所述环境光传感器153,用于当终端101位于用户口袋里或其他黑暗区域时保持触摸屏关闭,以防止终端101在锁定状态时消耗不必要的电池功耗或被误操作,在一些实施例中,接近光传感器和环境光传感器可以集成在一颗部件中,也可以作为两个独立的部件。至于终端101还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。虽然图3示出了重力加速度传感器、接近光传感器和环境光传感器,但是可以理解的是,其并不属于终端101的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
所述存储器120可用于存储指令和数据,存储器120可主要包括存储指令区和存储数据区,存储数据区可存储关节触摸手势与应用程序功能的关联关系;存储指令区可存储操作***、至少一个功能所需的指令等;所述指令可使处理器190执行以下方法,具体方法如图3所示。
处理器190是终端101的控制中心,利用各种接口和线路连接整个终端的各个部分,通过运行或执行存储在存储器120内的指令以及调用存储在存储器120内的数据,执行终端101的各种功能和处理数据,从而对终端进行整体监控。可选的,处理器190可包括一个或多个处理单元;优选的,处理器190可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器190中。在一些实施例中,处理器、存储器、可以在单一芯片上实现,在一些实施例中,他们也可以在独立的芯片上分别实现。
所述射频单元110可用于收发信息或通话过程中信号的接收和发送,特别地,将基站的下行信息接收后,给处理器190处理;另外,将设计上行的
数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,射频单元110还可以通过无线通信与网络设备和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯***(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
音频电路160、扬声器161、麦克风162可提供用户与终端101之间的音频接口。音频电路160可将接收到的音频数据转换后的电信号,传输到扬声器161,由扬声器161转换为声音信号输出;另一方面,麦克风162将收集的声音信号转换为电信号,由音频电路160接收后转换为音频数据,再将音频数据输出处理器190处理后,经射频单元110以发送给比如另一终端,或者将音频数据输出至存储器120以便进一步处理(例如,转换为文本信息),音频电路也可以包括耳机插孔163,用于提供音频电路和耳机之间的连接接口。
WiFi属于短距离无线传输技术,终端101通过WiFi模块170可以帮助用户收发电子邮件、浏览网页和与服务器通信等,它为用户提供了无线的宽带互联网访问。虽然图2示出了WiFi模块170,但是可以理解的是,其并不属于终端101的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。
终端101还包括给各个部件供电的电源180(比如电池),优选的,电源180可以通过电源管理***与处理器190逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
终端101还包括外部接口191,所述外部接口可以是标准的Micro USB接口,也可以使多针连接器,可以用于连接终端101与其他装置进行通信,也可以用于连接充电器为终端101充电。
尽管未示出,终端101还可以包括摄像头、闪光灯等,在此不再赘述。
本发明实施例中的服务器可以为具有访问功能模块库的权限的设备。其中,功能模块库中包括一个或一个以上的功能模块,具体地,功能模块包括以下要素:
(1)属性信息:采用标签、键值对(Key-Value)、文本等方式描述功能模块提供的服务,供服务器检索时使用。
(2)业务逻辑:每个功能模块都用于实现一定的业务功能,业务逻辑就是通过软件(可能需要硬件的配合)实现特定的业务功能。业务逻辑除了包含软件,还可以包含业务所需要的数据,数据可以来自于终端本地,也可以来自服务器,或者来自于第三方数据源。
(3)人机交互界面:用于接收用户的输入,向用户反馈运行结果。一个功能模块可以有一个或者多个人机交互界面。
(4)加载接口:终端生成应用程序时,加载接口是应用程序外壳挂接功能模块的入口,以及从应用程序中启动功能模块时,加载接口可以作为功能模块的启动入口。例如,加载接口可以通过一个XML文档来描述接口名称、接口参数、图标、功能模块的名称等。
本发明实施例中,根据终端上应用程序的执行环境不同,功能模块还可能有执行环境所要求的其他要素。
功能模块可以采用多种形式实现,例如采用源码的形式(Web应用就是源码)、中间代码的形式、终端原生机器码的形式。不同的实现形式,要求终端提供不同的执行环境,例如,使用Web应用的源码(HTML、JaveScrpt、CSS)形式,则要求终端有浏览器引擎来解析和执行功能模块;采用中间代码,则要求终端有中间代码的虚拟机来解析和执行功能模块;采用终端原生机器码的形式,则由终端的操作***支撑即可。功能模块被服务器发送到终端后,将在终端上合成到应用程序中,以便于后续功能的实现。
本发明实施例中,对应用程序进行了重新的定义,其是不具有业务处理功能的程序框架。应用程序与功能模块挂接通过所述功能模块的加载接口实
现。以上述“加载接口可以通过一个XML文档来描述接口名称、接口参数、图标、功能模块的名称等”为例,至少存在如下三种形式实现该功能模块与应用程序挂接:其一,该XML文档中描述的内容符合双方认可的规则,即功能模块的开发者和应用程序的开发者事先遵循某种标准或规则,默认只要应用程序和功能模块认可这种标准或规则,就可实现两者的挂接。应用程序读取该规则后,按照该规则的相关规定,对该功能模块进行标准化处理,在不变动应用程序本身框架以及不影响该应用程序内的其它功能模块的前提下,挂接该功能模块。其二,预先强制定义详细的接口名称、接口参数等,实现接口名称、接口参数等的标准化,应用程序在读取该XML文档中标准化的接口名称、接口参数后,确定后续的挂接流程,实现该功能模块与应用程序的挂接。其三,应用程序的开发者和功能模块的开发者未进行任何协商,且没有任何组织对挂接规则进行标准化的定义,则,应用程序读取该XML文档后,执行应用程序的更新流程,例如自适应地调整整个应用程序的架构,或者,获取开发者权限调整该功能模块的架构,实现两者的挂接。在上述三种实现方式中,第一种实现方式效率最高、对现有应用程序开发和功能模块开发的变动最小。
应用程序具有以下基本特征:
(1)属性信息:用于描述该应用程序所挂接的功能模块的特性,以便于确定与该应用程序匹配的功能模块。应用程序的属性信息来源于功能模块的属性信息,也就是说,可以根据功能模块的属性信息,将具有关联关系的多个功能模块的属性信息划分为一个类别,并将该多个功能模块的属性信息确定为一个应用程序的属性信息,后续可将该多个功能模块挂接在该应用程序上。
(2)启动入口:例如,可以为一个图标,或者对接语音指令的调用接口,又或者对接检索条件构建模块的调用接口。
(3)启动之后展示的空的窗口:若应用程序尚未挂接功能模块,则展示的是空的窗口;若应用程序已经挂接功能模块,则展示的是已经挂接的各个
功能模块的图标。
(4)与功能模块加载接口配对的调用接口:应用程序通过这个接口来调用功能模块。
也就是说,本发明实施例中的应用程序是一个“壳”,安装完毕后没有业务功能,需要把一个或者一个以上的功能模块挂接到应用程序上,才能具有业务功能。例如,在终端上安装了一个属性信息为娱乐活动的应用程序,其启动入口为一个图标,该应用程序没有业务处理功能,若该应用程序上挂接有多种娱乐活动的功能模块,如电影、购物等,则后续可根据用户的具体需求,调用相应的功能模块处理业务功能。例如,用户想要看电影,在交互界面上点击该应用程序的图标,可将电影这一功能模块的图标展示给用户,进而根据用户需求处理相应的业务。基于图1所示的的***架构,图3示出了本发明实施例提供的终端可执行的一种业务处理方法,该方法的执行主体终端可为图2中的终端101,具体来说,终端101中的处理器190读取存储器120中所存储的程序,并在输入单元130、显示单元140、传感器单元150的配合下,用于执行下述方法流程,该方法包括:
步骤301,终端获取待处理业务的标识信息;
步骤302,所述终端确定自身已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块后,向服务器发送检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;
步骤303,所述终端接收所述服务器返回的响应消息,所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;
步骤304,所述终端调用所述目标功能模块处理所述待处理业务。
本发明实施例中,终端获取待处理业务的标识信息后,首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,
且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
本发明实施例中,待处理业务可以为用户通过信息输入发起的业务,或者也可以为传感器检测到的数据信息所触发的业务。由于用户的输入信息通常不是准确完整的业务名称或者具体的功能描述,因此,需要根据用户的输入信息确定出关键词,并将该关键词作为用户通过输入信息发起的业务的标识信息;同样地,也可以根据传感器检测到数据信息确定出关键词,并将该关键词作为数据信息所触发的业务的标识信息。也就是说,本发明实施例中,待处理业务的标识信息为一个或一个以上的关键词。
具体来说,上述步骤301中,终端可实时从接收到的用户的输入信息中获取待处理业务的标识信息,并执行上述步骤302至上述步骤304。用户的输入信息可以为用户以文本形式输入的信息,终端通过对用户输入的文本进行处理,例如分词、去除停用词、语法分析、语义分析等,从用户输入的文本中提取出关键词,或者对输入的文本进行适度扩展形成关键词,并将得到的关键词作为待处理业务的标识信息。用户的输入信息也可以为以语音形式输入的信息,终端首先将语音信息转换为文本信息,然后通过上述方式确定出关键词,并将关键词作为待处理业务的标识信息。例如,用户以文本形式输入的信息为一段文字“我要订餐”,则通过对该输入信息进行提取,确定出关键词为“订餐”,从而可将“订餐”确定为待处理业务的标识信息,相应地,待处理业务即为订餐业务。
终端也可以根据获取到的传感器的信息得到所述待处理业务的标识信息,其中,传感器的信息包括传感器采集的数据信息以及传感器的功能属性。终端在确定数据信息不符合功能属性对应的正常预设条件后,得到待处理业务的标识信息,并执行上述步骤302至上述步骤304。在这种情形下,待处理业务的标识信息由两部分组成,一部分为传感器采集的数据信息对应的第一关键词,另一部分为对应传感器的功能属性预先设置的至少一个第二关键词。下面分别针对第一关键词和第二关键词的确定进行介绍。
(1)第一关键词
由于传感器所采集的数据信息可分为两类,一类是符合正常预设条件的数据信息,另一类是不符合正常预设条件的数据信息。正常预设条件可以为本领域技术人员根据经验设置的,不同功能属性的传感器对应不同的正常预设条件,例如,若传感器的功能属性为检测血压,则正常预设条件可设置为收缩压大于等于90且小于等于140,舒张压大于等于60且小于等于90。若传感器所采集的数据信息符合正常预设条件,即处于正常状态,此时终端无需进行业务处理,也无需向服务器发送检索请求消息以获取到功能模块;若传感器所采集的数据信息不符合正常预设条件,即处于异常状态,此时终端需要进行业务处理,即需要执行上述步骤302至上述步骤304。
针对不同功能属性的传感器,在采集到的数据信息不符合正常预设条件后,可进一步确定数据信息所属的数值范围,并将该数值范围对应的关键词作为第一关键词。其中,不同功能属性的传感器的数值范围与关键词之间的对应关系是预先设置的。本发明实施例中,可将预先设置好的上述对应关系存储在终端中,例如,以数据表的形式存储在第一数据表中。仍以上述功能属性为检测血压的传感器为例,收缩压大于等于140且舒张压大于等于90的数值范围对应关键词“高血压”,收缩压小于90的数值范围对应关键词“低血压”,舒张压小于60的数值范围对应关键词“低血压”。
本发明实施例中,为避免传感器采集的数据存在误差,终端可获取传感器在设定时间长度范围多次采集的数据信息,根据多次数据信息的累积分析,确定第一关键词,例如:若多次采集的数据信息中有一半以上的数据信息对应的同一关键词,则可将该关键词确定为第一关键词。
(2)第二关键词
本发明实施例中,传感器的不同功能属性对应不同的关键词,例如,功能属性为检测血压,则对应关键词“血压、心血管、脑血管”等。其中,功能属性与关键词之间的对应关系是预先设置的,本发明实施例中,可将预先设置好的上述对应关系存储在终端中,例如,以数据表的形式存储在第二数
据表中,从而在获取到传感器的功能属性后,可通过查询第二数据表,得到与该功能属性对应的关键词。功能属性对应的关键词可以为一个或一个以上,本发明实施例中,可将功能属性对应的关键词中的至少一个关键词作为第二关键词。优选地,为了使选取的关键词更为全面具体,也可以将功能属性对应的所有关键词均作为第二关键词。
通过上述方式确定出第一关键词和至少一个第二关键词后,可将第一关键词和至少一个第二关键词作为待处理业务的标识信息。例如,功能属性为检测血压的传感器采集到的数据信息:收缩压为150、舒张压为95,该数据信息所符合的数值范围对应关键词“高血压”(第一关键词),功能属性(检测血压)对应的第二关键词为“血压、心血管、脑血管”,因此,可得到待处理业务的标识信息为“高血压、血压、心血管、脑血管”。
下面以根据一个传感器(例如,传感器A)的信息确定待处理业务标识信息为例,对本发明实施例的上述过程进行具体说明。如图4所示,为根据传感器A的信息确定待处理业务标识信息的流程示意图。
步骤401,终端获取传感器A采集的数据信息以及传感器A的功能属性,具体来说,可以为:传感器A在采集到数据信息后,将数据信息以及传感器A的功能属性发送给终端;或者传感器A仅发送采集的数据信息,传感器A的功能属性预先配置在终端上;
步骤402,终端根据传感器A的功能属性,确定数据信息是否符合传感器A的功能属性对应的正常预设条件,若符合,则直接结束流程,若不符合,则执行步骤403;
步骤403,确定上述数据信息所符合数值范围,具体来说,可以为:将上述数据信息与第一数值范围进行比较,若不符合,则将上述数据信息与第二数值范围进行比较……依次类推,直到确定出上述所述信息符合的第i数值范围,并通过查找第一数据表,获取第i数值范围对应的关键词,即为第一关键词;
步骤404,查找第二数据表,获取传感器A的功能属性对应的关键词,
可得到第二关键词;
步骤405,将第一关键词和第二关键词组合,并将组合结果作为待处理业务的标识信息。
需要说明的是,上述流程仅为一种实现方式,本发明实施例对获取第一关键词和第二关键词的先后顺序不做具体限定,即也可以先获取第二关键词,然后再获取第一关键词,或者也可以同时获取第一关键词和第二关键词,又或者,也可以在获取到传感器的功能属性后,便直接查找第二数据表,获取第二关键词。由于步骤402中,在确定数据信息符合传感器A的功能属性对应的正常预设条件后,将不再执行流程,因此,本发明实施例优选在确定数据信息不符合传感器A的功能属性对应的正常预设条件后,再执行获取第一关键词和第二关键词的步骤,以免由于数据信息符合正常预设条件,而导致确定出的第二关键词为无效的情况发生,同时也能够通过合理安排执行顺序,实现有效节省处理资源的效果。
本发明实施例在步骤302中,终端获取到待处理业务的标识信息后,将待处理业务的标识信息与自身已安装的应用程序中的功能模块的属性信息进行比较,以确定本地是否存在与待处理业务的标识信息对应的功能模块。其中,与待处理业务的标识信息对应的功能模块即为与待处理业务的标识信息相匹配的功能模块。本发明实施例中,对应或相匹配的标准可以由本领域技术人员根据经验设置,例如,属性信息与待处理业务的标识信息的相似度大于等于第一阈值的功能模块即为待处理业务对应的功能模块,第一阈值由本领域技术人员根据检验设置。举个例子,功能模块的属性信息为“为用户提供订餐服务”,待处理业务的标识信息为“订餐”,经比较,功能模块的属性信息中完全包含了待处理业务的标识信息,此时,可确定该功能模块的属性信息与待处理业务的标识信息的相似度为100%,该功能模块即为与待处理业务的标识信息对应的功能模块。本发明实施例中,相似度的确定方式可以有多种,具体可由本领域技术人员进行选择和确定,并不局限于上述实例。
若确定本地存在待处理业务对应的功能模块,则直接调用该功能模块对
待处理业务进行处理,若不存在,则终端需从服务器获取目标功能模块,目标功能模块即为与待处理业务对应的功能模块。具体来说,终端向服务器发送携带有待处理业务的标识信息的检索请求消息,相应地,服务器执行图3中的步骤501至步骤503:
步骤501,服务器接收终端发送的检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;
步骤502,所述服务器根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;
步骤503,所述服务器向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
服务器接收终端发送的检索请求消息,其中,检索请求消息是终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;服务器根据检索请求消息中的待处理业务的标识信息,从功能模块库中获取与待处理业务的标识信息对应的目标功能模块,并向终端发送包含目标功能模块的响应消息,以使终端调用目标功能模块处理待处理业务;本发明实施例中,终端首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,服务器返回给终端的是目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和终端的下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
在步骤501中,服务器可通过WLAN、蜂窝网络或者有线网络与终端进行通信,在接收到终端发送的检索请求消息后,从检索请求消息中获取待处理业务的标识信息。
在步骤502中,服务器访问功能模块库,将待处理业务的标识信息与功能模块库中的各个功能模块的属性信息进行比较,得到待处理业务的标识信
息与功能模块库中的各个功能模块的属性信息之间的相似度,具体相似度的算法可由本领域技术人员设置,例如,可以为根据构成待处理业务标识信息的各个关键词与功能模块的属性信息之间的相似程度,确定相似度。服务器根据确定出的相似度,将属性信息与待处理业务的标识信息的相似度最大的功能模块确定为目标功能模块。同理,在上述方案中确定目标功能模块与应用程序是否匹配时,也可参照两者的属性信息之间的相似程度,在相似度达到预设的阈值时,确定两者相匹配,将目标功能模块加添加到匹配的应用程序中。
在步骤503中,服务器从功能模块库中确定出目标功能模块后,可直接向终端发送包含目标功能模块的响应消息,此时服务器仅需发送一条响应消息;或者,服务器也可以发送两条响应消息,即首先向终端发送一条响应消息,用于通知终端已从功能模块库中确定出目标功能模块,随后,再向终端发送一条响应消息,该响应消息中包含目标功能模块。
在步骤303和步骤304中,终端接收服务器返回的响应消息,响应消息中包括目标功能模块以及目标功能模块的属性信息。终端根据目标功能模块的属性信息,确定已安装的应用程序是否与目标功能模块匹配。如上所述,本发明实施例中的应用程序没有业务功能,需要把一个或者一个以上的功能模块挂接到应用程序上,才能具有业务功能。
图5为应用程序挂接功能模块示意图。如图5所示,应用程序1上挂接的功能模块有:功能模块1.1、功能模块1.2、功能模块1.3。
本发明实施例中,已安装的应用程序是否与目标功能模块匹配的标准可以为:终端将已安装的应用程序的属性信息与功能模块的属性信息进行比较,得到已安装的应用程序的属性信息与功能模块的属性信息之间的关联度,并将关联度大于等于第二阈值的应用程序作为与目标功能模块匹配的应用程序。若存在与目标功能模块匹配的应用程序,则可直接将目标功能模块挂接到该应用程序上,若不存在,则创建一个新的应用程序并安装,将目标功能模块添加到新安装的应用程序中。具体地,终端创建所述新的应用程序可称
之为壳程序,其类似于现有安卓***上的APP,终端上的管理程序创建该壳程序,例如通过复制伪代码的形式进行创建,随后在壳程序中挂功能模块,壳程序与功能模块之间的接口可以是事先定义好的标准接口。随后,终端调用添加到已安装的、或新安装的应用程序中的目标功能模块对待处理业务进行处理。若终端再次接收到相同的待处理业务,则终端可直接从本地获取到目标功能模块,对该待处理业务进行处理,而无需再次从服务器获取,实现了累积效应,避免了Web应用在终端上无法积累的问题。且,实现了针对用户的需求下载相应的服务,使得使用效率最大化,节省了传输流量和等待安装的时间。
本发明实施例中,终端将功能模块添加到应用程序中的具体方法与功能片段的打包形成有关,通过功能模块的加载接口的描述,把功能模块挂接到应用程序中。为了兼容传统的以点击图标执行应用程序的方式,使用加载接口提供的图标,在应用程序的界面上增加该功能模块对应的图标,当用户点击该图标则执行该功能模块;以后如果有新的人机交互方式,例如通过语音或者拍照启动调用功能模块,则可使用相应的编程接口(API)作为功能模块的执行入口。
终端每在应用程序上挂接一个功能模块,便在该应用程序上为挂接的功能模块设置执行的入口,例如,设置一个图标,或者是与检索接口、语音输入接口进行对接的接口。每个功能模块是以软件的形式挂接在应用程序上,而功能模块内部的业务逻辑则可以调用终端本地的硬件模块,或者是通过网络与其他主机进行交互。
图6示例性示出了本发明实施例提供的一种执行业务处理的终端的结构示意图。
基于相同构思,本发明实施例中提供一种执行业务处理的终端600,用于执行上述业务处理的方法的实施例,如图6所示,包括处理模块601、发送模块602、接收模块603:
处理模块601,用于获取待处理业务的标识信息,并确定终端已安装的应用程序中是否存在与所述待处理业务的标识信息对应的功能模块;
发送模块602,用于在处理模块确定终端已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块之后,向服务器发送检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;
接收模块603,用于接收所述服务器返回的响应消息,所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;所述处理模块601,还用于调用所述目标功能模块处理所述待处理业务。
可选地,所述处理模块601还用于:
确定所述已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
可选地,在所述接收模块603接收所述服务器返回的响应消息之后,所述处理模块601调用所述目标功能模块处理所述待处理业务之前,所述处理模块601还用于:
若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。
可选地,在所述接收模块603接收所述服务器返回的响应消息之后,所述处理模块601调用所述目标功能模块处理所述待处理业务之前,所述处理模块601还用于:
若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序中;调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。可选地,所述接收模块603还用于接收用户的输入信息;
所述处理模块601具体用于从所述输入信息中获取所述待处理业务的标识信息。
可选地,所述处理模块601具体用于:获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
可选地,所述处理模块601具体用于:
获取传感器采集的数据信息以及所述传感器的功能属性;
根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述传感器的功能属性预先设置的至少一个第二关键词;
将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
可选地,所述数据信息包括所述传感器在不同时刻采集的数据。
从上述内容可看出,本发明实施例中,终端获取待处理业务的标识信息,在确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后,向服务器发送检索请求消息,终端接收服务器返回的目标功能模块,并调用目标功能模块对待处理业务进行处理;本发明实施例中,终端首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
图7示例性示出了本发明实施例提供的一种执行业务处理的服务器的结构示意图。
基于相同构思,本发明实施例中提供一种执行业务处理的服务器700,用于执行上述业务处理的方法的实施例,如图7所示,包括接收模块701、获取模块702、发送模块703:
接收模块701,用于接收终端发送的检索请求消息;所述检索请求消息是
所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;
获取模块702,用于根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;
发送模块703,用于向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
可选地,所述功能模块库处于所述服务器中,所述功能模块库中包括一个或一个以上的功能模块;
所述获取模块702,具体用于:
获取所述功能模块库中各个功能模块的属性信息;
将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;
将最大相似度对应的功能模块确定为目标功能模块。
从上述内容可以看出,本发明实施例中,服务器接收终端发送的检索请求消息,其中,检索请求消息是终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;服务器根据检索请求消息中的待处理业务的标识信息,从功能模块库中获取与待处理业务的标识信息对应的目标功能模块,并向终端发送包含目标功能模块的响应消息,以使终端调用目标功能模块处理待处理业务;本发明实施例中,终端首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,服务器返回给终端的是目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和终端的下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
图8示例性示出了本发明实施例提供的另一种执行业务处理的终端的结构示意图。
基于相同构思,本发明实施例中提供一种执行业务处理的终端800,用于执行上述业务处理的方法的实施例,如图8所示,包括处理器801、发送器802,接收器803,存储器804,输入设备805:
处理器801,用于获取待处理业务的标识信息,以及确定终端已安装的应用程序中是否存在与所述待处理业务的标识信息对应的功能模块;
发送器802,用于在所述处理器确定终端已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块时,向服务器发送检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;
接收器803,用于接收所述服务器返回的响应消息;所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;
所述处理器801,还用于调用所述目标功能模块处理所述待处理业务。
可选地,所述处理器801还用于:
确定所述已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
可选地,在所述接收器803接收所述服务器返回的响应消息之后,所述处理器801调用所述目标功能模块处理所述待处理业务之前,所述处理器801还用于:
若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。可选地,在所述接收器803接收所述服务器返回的响应消息之后,所述处理器801调用所述目标功能模块处理所述待处理业务之前,所述处理器801还用于:
若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序
中;调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。
可选地,所述输入设备805用于接收用户的输入信息;
所述处理器801在获取待处理业务的标识信息时,具体用于从所述输入信息中获取所述待处理业务的标识信息。
可选地,所述处理器801在获取待处理业务的标识信息时,具体用于:获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
可选地,所述处理器801在获取待处理业务的标识信息时,具体用于:
获取传感器采集的数据信息以及所述传感器的功能属性;
根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述传感器的功能属性预先设置的至少一个第二关键词;
将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
可选地,所述数据信息包括所述传感器在不同时刻采集的数据。
终端获取待处理业务的标识信息后,首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
其中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器代表的一个或多个处理器和存储器代表的存储器的各种电路链接在一起。总线架构还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描
述。总线接口提供接口。收发器提供用于在传输介质上与各种其他设备通信的单元。处理器负责管理总线架构和通常的处理,存储器可以存储处理器在执行操作时所使用的数据。
图9示例性示出了本发明实施例提供的一种执行业务处理的服务器的结构示意图。
基于相同构思,本发明实施例中提供一种执行业务处理的服务器900,用于执行上述业务处理的方法的实施例,如图9所示,包括处理器901、接收器902,发送器903,存储器904:
接收器902,用于接收终端发送的检索请求消息;所述检索请求消息是所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;
处理器901,用于根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;
所述发送器903,还用于向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
可选地,所述功能模块库处于所述服务器中,所述功能模块库中包括一个或一个以上的功能模块;
所述处理器901,具体用于:
获取所述功能模块库中各个功能模块的属性信息;
将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;
将最大相似度对应的功能模块确定为目标功能模块。
服务器接收到终端发送的包含待处理业务的标识信息的检索请求消息后,从功能模块库中获取与待处理业务的标识信息对应的目标功能模块,并将目标功能模块发送给终端。由于服务器是将目标功能模块发送给终端,而
非将应用程序的安装包(可能包含与本次功能需求无关的内容)发送终端,从而有效节省了流量和终端的下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在终端完成对待处理业务进行处理的基础上,能够显著提高应用程序的使用效率。
其中,总线架构可以包括任意数量的互联的总线和桥,具体由处理器代表的一个或多个处理器和存储器代表的存储器的各种电路链接在一起。总线架构还可以将诸如***设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器提供用于在传输介质上与各种其他设备通信的单元。处理器负责管理总线架构和通常的处理,存储器可以存储处理器在执行操作时所使用的数据。
从上述内容可看出,本发明实施例中,终端获取待处理业务的标识信息,在确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后,向服务器发送检索请求消息,终端接收服务器返回的目标功能模块,并调用目标功能模块对待处理业务进行处理;本发明实施例中,终端首先判断已安装的应用程序中是否存在与待处理业务对应的功能模块,并在不存在的情况下,才向服务器发送检索请求消息,从而无需每次都从服务器获取Web应用,另一方面,终端接收的是服务器返回的目标功能模块,而非应用程序的安装包(可能包含与本次功能需求无关的内容),从而有效节省了流量和下载时间,且由于目标功能模块具有很强的针对性,因此,通过这种方式,在完成对待处理业务进行处理的基础上,显著提高了应用程序的使用效率。
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的设备。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令设备的制造品,该指令设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。
Claims (30)
- 一种业务处理方法,其特征在于,该方法包括:终端获取待处理业务的标识信息;所述终端确定自身已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块后,向服务器发送检索请求消息;所述应用程序为不具有业务处理功能的程序框架;所述检索请求消息中包括所述待处理业务的标识信息;所述终端接收所述服务器返回的响应消息,所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;所述终端调用所述目标功能模块处理所述待处理业务。
- 如权利要求1所述的方法,其特征在于,所述终端确定自身已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
- 如权利要求1所述的方法,其特征在于,所述终端接收所述服务器返回的响应消息之后,调用所述目标功能模块处理所述待处理业务之前,还包括:若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;所述终端调用所述目标功能模块处理所述待处理业务,包括:所述终端调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。
- 如权利要求1所述的方法,其特征在于,所述终端接收所述服务器返回的响应消息之后,调用所述目标功能模块处理所述待处理业务之前,还包括:若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序 中;所述终端调用所述目标功能模块处理所述待处理业务,包括:所述终端调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。
- 如权利要求1-4中任一项所述的方法,其特征在于,所述终端获取待处理业务的标识信息,包括:所述终端接收用户的输入信息,并从所述输入信息中获取所述待处理业务的标识信息。
- 如权利要求1-4中任一项所述的方法,其特征在于,所述终端获取待处理业务的标识信息,包括:所述终端获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
- 如权利要求6所述的方法,其特征在于,所述传感器的信息包括所述传感器采集的数据信息以及所述传感器的功能属性;所述终端获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息,包括:所述终端根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述传感器的功能属性预先设置的至少一个第二关键词;所述终端将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
- 如权利要求7所述的方法,其特征在于,所述数据信息包括所述传感器在不同时刻采集的数据。
- 一种业务处理方法,其特征在于,该方法包括:服务器接收终端发送的检索请求消息;所述检索请求消息是所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;所述服务器根据所述待处理业务的标识信息,从功能模块库中获取与所 述待处理业务的标识信息对应的目标功能模块;所述服务器向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
- 如权利要求9所述的方法,其特征在于,所述功能模块库中包括一个或一个以上的功能模块;所述服务器根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块,包括:所述服务器获取所述功能模块库中各个功能模块的属性信息;所述服务器将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;所述服务器将最大相似度对应的功能模块确定为目标功能模块。
- 一种终端,其特征在于,包括:处理模块,用于获取待处理业务的标识信息,并确定终端已安装的应用程序中是否存在与所述待处理业务的标识信息对应的功能模块;发送模块,用于在处理模块确定终端已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块之后,向服务器发送检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;接收模块,用于接收所述服务器返回的响应消息,所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;所述处理模块,还用于调用所述目标功能模块处理所述待处理业务。
- 如权利要求11所述的终端,其特征在于,所述处理模块还用于:确定所述已安装的应用程序中存在与所述待处理业务的标识信息对应的功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
- 如权利要求11所述的终端,其特征在于,在所述接收模块接收所述服务器返回的响应消息之后,所述处理模块调用所述目标功能模块处理所述 待处理业务之前,所述处理模块还用于:若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。
- 如权利要求11所述的终端,其特征在于,在所述接收模块接收所述服务器返回的响应消息之后,所述处理模块调用所述目标功能模块处理所述待处理业务之前,所述处理模块还用于:若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序中;调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。
- 如权利要求11-14中任一项所述的终端,其特征在于,所述接收模块还用于:接收用户的输入信息;所述处理模块具体用于:从所述输入信息中获取所述待处理业务的标识信息。
- 如权利要求11-14中任一项所述的终端,其特征在于,所述处理模块具体用于:获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
- 如权利要求16所述的终端,其特征在于,所述处理模块具体用于:获取传感器采集的数据信息以及所述传感器的功能属性;根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述传感器的功能属性预先设置的至少一个第二关键词;将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
- 如权利要求17所述的终端,其特征在于,所述数据信息包括所述传感器在不同时刻采集的数据。
- 一种服务器,其特征在于,该服务器包括:接收模块,用于接收终端发送的检索请求消息;所述检索请求消息是所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;获取模块,用于根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;发送模块,用于向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
- 如权利要求19所述的服务器,其特征在于,所述功能模块库处于所述服务器中,所述功能模块库中包括一个或一个以上的功能模块;所述获取模块,具体用于:获取所述功能模块库中各个功能模块的属性信息;将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;将最大相似度对应的功能模块确定为目标功能模块。
- 一种终端,其特征在于,该终端包括:处理器,用于获取待处理业务的标识信息,以及确定终端已安装的应用程序中是否存在与所述待处理业务的标识信息对应的功能模块;发送器,用于在所述处理器确定终端已安装的应用程序中不存在与所述待处理业务的标识信息对应的功能模块时,向服务器发送检索请求消息;所述检索请求消息中包括所述待处理业务的标识信息;接收器,用于接收所述服务器返回的响应消息;所述响应消息中包括与所述待处理业务的标识信息对应的目标功能模块;所述处理器,还用于调用所述目标功能模块处理所述待处理业务。
- 如权利要求21所述的终端,其特征在于,所述处理器还用于:确定所述已安装的应用程序中存在与所述待处理业务的标识信息对应的 功能模块后,调用与所述待处理业务的标识信息对应的功能模块处理所述待处理业务。
- 如权利要求21所述的终端,其特征在于,在所述接收器接收所述服务器返回的响应消息之后,所述处理器调用所述目标功能模块处理所述待处理业务之前,所述处理器还用于:若所述已安装的应用程序中存在与所述目标功能模块匹配的应用程序,则将所述目标功能模块添加到匹配的应用程序中;调用添加到已安装的应用程序中的所述目标功能模块处理所述待处理业务。
- 如权利要求21所述的终端,其特征在于,在所述接收器接收所述服务器返回的响应消息之后,所述处理器调用所述目标功能模块处理所述待处理业务之前,所述处理器还用于:若所述已安装的应用程序中不存在与所述目标功能模块匹配的应用程序,则安装新的应用程序,并将所述目标功能模块添加到新安装的应用程序中;调用添加到新安装的应用程序中的所述目标功能模块处理所述待处理业务。
- 如权利要求21-24中任一项所述的终端,其特征在于,还包括输入设备,用于:接收用户的输入信息;所述处理器在获取待处理业务的标识信息时,具体用于从所述输入信息中获取所述待处理业务的标识信息。
- 如权利要求21-24中任一项所述的终端,其特征在于,所述处理器在获取待处理业务的标识信息时,具体用于:获取传感器的信息,并根据所述传感器的信息得到所述待处理业务的标识信息。
- 如权利要求26所述的终端,其特征在于,所述处理器在获取待处理业务的标识信息时,具体用于:获取传感器采集的数据信息以及所述传感器的功能属性;根据所述传感器的功能属性,确定所述数据信息不符合所述功能属性对 应的正常预设条件后,获取与所述数据信息对应的第一关键词以及对应所述传感器的功能属性预先设置的至少一个第二关键词;将所述第一关键词和所述至少一个第二关键词作为所述待处理业务的标识信息。
- 如权利要求27所述的终端,其特征在于,所述数据信息包括所述传感器在不同时刻采集的数据。
- 一种服务器,其特征在于,包括:接收器,用于接收终端发送的检索请求消息;所述检索请求消息是所述终端确定自身已安装的应用程序中不存在与待处理业务的标识信息对应的功能模块后发送的;所述检索请求消息中包括所述待处理业务的标识信息;处理器,用于根据所述待处理业务的标识信息,从功能模块库中获取与所述待处理业务的标识信息对应的目标功能模块;发送器,用于向所述终端发送包含所述目标功能模块的响应消息,以使所述终端调用所述目标功能模块处理所述待处理业务。
- 如权利要求29所述的服务器,其特征在于,所述功能模块库处于所述服务器中,所述功能模块库中包括一个或一个以上的功能模块;所述处理器,具体用于:获取所述功能模块库中各个功能模块的属性信息;将所述待处理业务的标识信息与所述功能模块库中的各个功能模块的属性信息进行比较,得到所述待处理业务的标识信息与所述各个功能模块的属性信息的相似度;将最大相似度对应的功能模块确定为目标功能模块。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/084,491 US11647108B2 (en) | 2016-03-15 | 2016-03-15 | Service processing method and apparatus |
CN201680024832.4A CN107534685B (zh) | 2016-03-15 | 2016-03-15 | 一种业务处理方法、装置、可读存储介质及芯片*** |
EP16893878.5A EP3402160B1 (en) | 2016-03-15 | 2016-03-15 | Service processing method and apparatus |
PCT/CN2016/076425 WO2017156713A1 (zh) | 2016-03-15 | 2016-03-15 | 一种业务处理方法及装置 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2016/076425 WO2017156713A1 (zh) | 2016-03-15 | 2016-03-15 | 一种业务处理方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017156713A1 true WO2017156713A1 (zh) | 2017-09-21 |
Family
ID=59850573
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/076425 WO2017156713A1 (zh) | 2016-03-15 | 2016-03-15 | 一种业务处理方法及装置 |
Country Status (4)
Country | Link |
---|---|
US (1) | US11647108B2 (zh) |
EP (1) | EP3402160B1 (zh) |
CN (1) | CN107534685B (zh) |
WO (1) | WO2017156713A1 (zh) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324523B (zh) * | 2018-12-14 | 2023-05-12 | 深圳云天励飞技术有限公司 | 一种数据处理方法及装置 |
CN109783092A (zh) * | 2019-01-04 | 2019-05-21 | 珠海天燕科技有限公司 | 一种应用程序安装方法及装置 |
JP7259432B2 (ja) * | 2019-03-18 | 2023-04-18 | 富士フイルムビジネスイノベーション株式会社 | 情報処理装置及びプログラム |
CN109871291B (zh) * | 2019-03-19 | 2023-07-04 | 广州华多网络科技有限公司 | 数据处理方法及装置 |
CN110347350A (zh) * | 2019-05-31 | 2019-10-18 | 平安科技(深圳)有限公司 | 业务流程处理方法、装置、存储介质及计算机设备 |
CN110809043B (zh) * | 2019-11-01 | 2023-08-11 | 腾讯云计算(北京)有限责任公司 | 一种基于物联网的数据处理方法、装置、设备及存储介质 |
CN110837426B (zh) * | 2019-11-06 | 2024-01-30 | 腾讯科技(深圳)有限公司 | 消息处理方法、装置及***、存储介质 |
CN111355800B (zh) * | 2020-02-28 | 2022-05-20 | 中国建设银行股份有限公司 | 服务的处理方法、装置、设备和存储介质 |
CN113364826B (zh) * | 2020-03-06 | 2023-10-03 | 华为技术有限公司 | 终端设备的***特性的增强方法、终端设备及服务器 |
CN112202896A (zh) * | 2020-09-30 | 2021-01-08 | 中移(杭州)信息技术有限公司 | 边缘计算方法、框架、终端和存储介质 |
CN113779058B (zh) * | 2020-10-16 | 2024-06-14 | 北京京东振世信息技术有限公司 | 获取业务数据的方法、装置、设备和计算机可读介质 |
CN112737760B (zh) * | 2020-12-22 | 2023-01-10 | 航天信息股份有限公司 | 一种基于管道通信技术进行双工数据通信的方法及*** |
CN112839084B (zh) * | 2021-01-04 | 2022-06-07 | 浙江诺诺网络科技有限公司 | 一种业务处理方法、装置、设备及计算机可读存储介质 |
CN113487350A (zh) * | 2021-06-30 | 2021-10-08 | 北京市商汤科技开发有限公司 | 业务产品确定方法及相关装置 |
CN115695549A (zh) * | 2022-10-27 | 2023-02-03 | 武汉方舟拓海科技有限公司 | 一种软件架构、终端设备及软件架构的应用方法 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348004A (zh) * | 2010-08-04 | 2012-02-08 | ***通信有限公司 | 一种业务组件的配置方法、***及设备 |
CN102541598A (zh) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | 一种动态加载组件的方法及*** |
CN102594859A (zh) * | 2011-12-06 | 2012-07-18 | 中兴通讯股份有限公司 | 一种业务数据的呈现方法、终端、服务器及*** |
CN102932441A (zh) * | 2012-10-26 | 2013-02-13 | 北京小米科技有限责任公司 | 一种下载应用的方法、终端、服务器及*** |
CN103246532A (zh) * | 2013-04-08 | 2013-08-14 | 东莞宇龙通信科技有限公司 | 一种终端设备应用程序安装方法及装置 |
US20130298185A1 (en) * | 2012-05-02 | 2013-11-07 | Kony Solutions, Inc. | Mobile application management systems and methods thereof |
CN104657164A (zh) * | 2013-11-21 | 2015-05-27 | 北大方正集团有限公司 | 软件升级处理方法和装置 |
Family Cites Families (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1384212B2 (en) | 2001-04-30 | 2012-03-07 | Activcard Ireland Limited | Method and system for remote activation and management of personal security devices |
US8364638B2 (en) * | 2005-09-15 | 2013-01-29 | Ca, Inc. | Automated filer technique for use in virtualized appliances and applications |
US9274774B2 (en) * | 2005-10-28 | 2016-03-01 | Google Inc. | Common installer server |
US20070174429A1 (en) * | 2006-01-24 | 2007-07-26 | Citrix Systems, Inc. | Methods and servers for establishing a connection between a client system and a virtual machine hosting a requested computing environment |
US20080027945A1 (en) | 2006-07-28 | 2008-01-31 | Nichols Paul H | Methods, systems and computer program products for downloading a Java application based on identification of supported classes |
US8365164B1 (en) * | 2008-02-21 | 2013-01-29 | T-APP Ltd. | Portable software applications |
US9112928B2 (en) * | 2009-05-29 | 2015-08-18 | Nokia Technologies Oy | Method and apparatus for automatic loading of applications |
US8438256B2 (en) * | 2009-06-26 | 2013-05-07 | Vmware, Inc. | Migrating functionality in virtualized mobile devices |
CN103218738A (zh) * | 2012-01-20 | 2013-07-24 | 北京富基融通科技有限公司 | 用于网络交易平台的信息处理方法和*** |
US9710247B2 (en) | 2012-06-26 | 2017-07-18 | Microsoft Technology Licensing, Llc | Identification of host-compatible downloadable applications |
US9924102B2 (en) * | 2013-03-14 | 2018-03-20 | Qualcomm Incorporated | Image-based application launcher |
CN103500266A (zh) | 2013-09-05 | 2014-01-08 | 北京航空航天大学 | 基于健康识别的应用信息推送方法及装置 |
US20150156257A1 (en) | 2013-12-04 | 2015-06-04 | Huawei Technologies Co., Ltd. | Application service providing method and system, and related device |
CN104731607B (zh) | 2013-12-18 | 2018-10-30 | 华为技术有限公司 | 终端终生学习处理方法、装置和*** |
JP2016207019A (ja) * | 2015-04-24 | 2016-12-08 | 株式会社リコー | 画像形成装置、情報処理方法、およびプログラム |
US9898260B2 (en) * | 2015-12-28 | 2018-02-20 | Samsung Electronics Co., Ltd. | Adaptive function-based dynamic application extension framework |
-
2016
- 2016-03-15 CN CN201680024832.4A patent/CN107534685B/zh active Active
- 2016-03-15 US US16/084,491 patent/US11647108B2/en active Active
- 2016-03-15 EP EP16893878.5A patent/EP3402160B1/en active Active
- 2016-03-15 WO PCT/CN2016/076425 patent/WO2017156713A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102348004A (zh) * | 2010-08-04 | 2012-02-08 | ***通信有限公司 | 一种业务组件的配置方法、***及设备 |
CN102594859A (zh) * | 2011-12-06 | 2012-07-18 | 中兴通讯股份有限公司 | 一种业务数据的呈现方法、终端、服务器及*** |
CN102541598A (zh) * | 2011-12-26 | 2012-07-04 | 深圳联友科技有限公司 | 一种动态加载组件的方法及*** |
US20130298185A1 (en) * | 2012-05-02 | 2013-11-07 | Kony Solutions, Inc. | Mobile application management systems and methods thereof |
CN102932441A (zh) * | 2012-10-26 | 2013-02-13 | 北京小米科技有限责任公司 | 一种下载应用的方法、终端、服务器及*** |
CN103246532A (zh) * | 2013-04-08 | 2013-08-14 | 东莞宇龙通信科技有限公司 | 一种终端设备应用程序安装方法及装置 |
CN104657164A (zh) * | 2013-11-21 | 2015-05-27 | 北大方正集团有限公司 | 软件升级处理方法和装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3402160A4 * |
Also Published As
Publication number | Publication date |
---|---|
EP3402160A4 (en) | 2018-12-12 |
EP3402160B1 (en) | 2020-04-29 |
US20190082048A1 (en) | 2019-03-14 |
CN107534685B (zh) | 2021-04-20 |
EP3402160A1 (en) | 2018-11-14 |
US11647108B2 (en) | 2023-05-09 |
CN107534685A (zh) | 2018-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017156713A1 (zh) | 一种业务处理方法及装置 | |
WO2017206916A1 (zh) | 处理器中内核运行配置的确定方法以及相关产品 | |
US9800609B2 (en) | Method, device and system for detecting malware in a mobile terminal | |
CN105471931B (zh) | 一种查询业务数据的方法、装置和*** | |
KR102107132B1 (ko) | 전자 장치의 억세스 포인트 접속 방법 및 그 전자 장치 | |
CN108039963B (zh) | 一种容器配置方法、装置及存储介质 | |
CN107704363B (zh) | 冻屏监测方法、移动终端及计算机可读存储介质 | |
WO2017206915A1 (zh) | 处理器中内核运行配置的确定方法以及相关产品 | |
CN110020293B (zh) | 多媒体数据展示方法、装置及存储介质 | |
EP2869604B1 (en) | Method, apparatus and device for processing a mobile terminal resource | |
CN107908491B (zh) | 卡屏检测与解决方法、移动终端及计算机可读存储介质 | |
CN110688497A (zh) | 资源信息搜索方法、装置、终端设备及存储介质 | |
CN111078316B (zh) | 布局文件加载方法、装置、存储介质及电子设备 | |
CN112749074B (zh) | 一种测试用例推荐方法以及装置 | |
CN108874554B (zh) | 信息通信方法及装置 | |
CN106095423B (zh) | 提供浏览服务的方法、终端及服务器 | |
CN107861827B (zh) | 卡屏检测方法、移动终端及计算机可读存储介质 | |
CN109145598B (zh) | 脚本文件的病毒检测方法、装置、终端及存储介质 | |
WO2015101254A1 (zh) | 一种信息交互的方法、装置及*** | |
CN106528231B (zh) | 一种启动应用程序的方法和装置 | |
CN106709330B (zh) | 记录文件执行行为的方法及装置 | |
CN105528220B (zh) | 加载动态共享对象的方法和装置 | |
CN107122204B (zh) | 应用的卸载状态检测方法及装置 | |
CN111045737A (zh) | 设备标识获取方法、装置、终端设备和存储介质 | |
CN106933626B (zh) | 应用关联方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 2016893878 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2016893878 Country of ref document: EP Effective date: 20180808 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |